/* ===========================
   Torch AI — Marketing Page
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Nav --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: #007AFF;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: #0063d1;
}

/* --- Hero --- */

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cta-button {
    display: inline-block;
    transition: opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.85;
}

.hero-screenshot {
    flex-shrink: 0;
}

.hero-screenshot img {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* --- Features --- */

.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.7;
    max-width: 480px;
}

.feature-screenshot {
    flex-shrink: 0;
}

.feature-screenshot img {
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* --- How It Works --- */

.how-it-works {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007AFF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
}

/* --- Not Military --- */

.not-military {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.not-military h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.not-military p {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.7;
}

/* --- Final CTA --- */

.final-cta {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.final-cta > p {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.final-cta-buttons {
    margin-bottom: 2rem;
}

.qr-section {
    margin-top: 1rem;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* --- Footer --- */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-brand img {
    border-radius: 6px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #aaa;
}

/* --- Platform visibility --- */

/* Desktop: hide download buttons, show QR code */
.mobile-only {
    display: none;
}
.desktop-only {
    display: block;
}

/* Mobile: show download buttons, hide QR code */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none;
    }
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 6rem 1.25rem 3rem;
        gap: 2.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-screenshot img {
        width: 240px;
    }

    .feature,
    .feature-reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 3rem 0;
    }

    .feature-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-screenshot img {
        width: 240px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
