/* ===========================
   CSS RESET & BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;

    --transition-base: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

/* ===========================
   LAYOUT COMPONENTS
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   NAVIGATION
   =========================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: inline-block;
}

.logo-image {
    height: 24px;
    width: auto;
    display: block;
    transition: var(--transition-base);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover {
    color: var(--color-white);
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--color-white);
    color: var(--color-black);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--color-white);
    transition: var(--transition-base);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--color-white);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.play-icon {
    font-size: 12px;
    display: inline-block;
}

.btn-nav {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    color: var(--color-white) !important;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white) !important;
    border-color: var(--color-white);
    transform: translateY(-1px);
}

.btn-large {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-with-badge {
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ===========================
   HERO SECTION WITH VIDEO BACKGROUND
   =========================== */

.hero-video {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-video .container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.highlight {
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}

.hero-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}


/* ===========================
   SECTION HEADERS
   =========================== */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

/* ===========================
   APPS SHOWCASE SECTION
   =========================== */

.apps-showcase {
    padding: 80px 0;
    background: var(--color-gray-50);
}

.apps-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.app-preview-card {
    background: var(--color-white);
    border: 1px solid var(--color-black);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.app-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.app-preview-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.app-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
}

.apps-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .apps-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .apps-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .app-preview-card {
        padding: 20px;
    }

    .app-preview-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .apps-showcase {
        padding: 60px 0;
    }

    .apps-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .app-preview-card {
        padding: 16px;
    }

    .app-preview-logo {
        width: 36px;
        height: 36px;
    }

    .app-preview-name {
        font-size: 13px;
    }
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features {
    padding: 80px 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-white);
    padding: 32px 24px;
    border: 1px solid var(--color-black);
    border-radius: 8px;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ===========================
   HOW IT WORKS SECTION
   =========================== */

.how-it-works {
    padding: 80px 0;
    background: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.step-card {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-mono);
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-description {
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.demo-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
}

.demo-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--color-gray-700);
}

.demo-example {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    padding: 16px;
    border-radius: 6px;
    border: 2px solid var(--color-black);
    font-size: 16px;
    font-family: var(--font-mono);
}

.demo-prompt {
    font-weight: 700;
    color: var(--color-black);
}

.demo-input {
    border: none;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 18px;
    outline: none;
    flex: 1;
    color: var(--color-gray-600);
}

.demo-arrow {
    color: var(--color-gray-400);
    font-size: 20px;
}

.demo-result {
    color: var(--color-gray-600);
    font-size: 16px;
}

/* ===========================
   CTA SECTION
   =========================== */

.cta {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.cta-description {
    font-size: 18px;
    color: var(--color-gray-600);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-gray-600);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo-image {
    height: 24px;
    width: auto;
}

.footer-tagline {
    color: var(--color-gray-600);
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-address {
    color: var(--color-gray-500);
    font-size: 14px;
    font-style: italic;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--color-gray-600);
    font-size: 15px;
}

.footer-section a:hover {
    color: var(--color-black);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--color-black);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Hero Video Mobile Optimization */
    .hero-video {
        height: 80vh;
        min-height: 600px;
    }

    .hero-bg-video {
        /* Reduce video quality impact on mobile */
        opacity: 0.8;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .hero-note {
        font-size: 12px;
        padding: 0 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .demo-example {
        flex-wrap: wrap;
        font-size: 14px;
    }

    .demo-result {
        width: 100%;
        font-size: 14px;
    }

    /* Improve section spacing on tablet */
    .department-shortcuts,
    .apps-showcase,
    .features,
    .how-it-works {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    /* Hero Mobile Optimizations */
    .hero-video {
        height: auto;
        min-height: 100vh;
    }

    .hero-bg-video {
        /* Hide video on very small screens for performance */
        display: none;
    }

    .hero-overlay {
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 15px;
        padding: 14px 24px;
    }

    .btn-with-badge {
        padding-right: 24px;
    }

    .coming-soon-badge {
        position: relative;
        margin-left: 8px;
    }

    /* Improve readability on small screens */
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .feature-card,
    .step-card {
        padding: 24px 20px;
    }

    .feature-title,
    .step-title {
        font-size: 18px;
    }

    .feature-description,
    .step-description {
        font-size: 14px;
    }

    /* Improve section spacing on mobile */
    .department-shortcuts,
    .apps-showcase,
    .features,
    .how-it-works {
        padding: 50px 0;
    }

    .container {
        padding: 0 20px;
    }
}
