/* Alo brand tokens mapped to Resend design structure */
:root {
    /* Alo palette */
    --alo-blue: #2D67FA;
    --alo-lime: #A3E635;
    --alo-navy: #0B132B;
    --alo-cyan: #00E5FF;

    /* Canvas & surfaces (Resend structure, Alo atmosphere) */
    --canvas: #000000;
    --ink: #fcfdff;
    --body: rgba(252, 253, 255, 0.86);
    --charcoal: rgba(252, 253, 255, 0.7);
    --mute: #a1a4a5;
    --ash: #888e90;
    --surface-card: #0a0a0c;
    --surface-elevated: #101012;
    --surface-deep: #06060a;
    --hairline: rgba(255, 255, 255, 0.06);
    --hairline-strong: rgba(255, 255, 255, 0.14);
    --divider-soft: rgba(255, 255, 255, 0.04);

    /* Alo accent glows */
    --accent-blue: var(--alo-blue);
    --accent-blue-glow: rgba(45, 103, 250, 0.34);
    --accent-green: var(--alo-lime);
    --accent-green-glow: rgba(163, 230, 53, 0.22);
    --accent-red: #ff2047;
    --accent-yellow: #ffc53d;

    /* Typography families */
    --font-display: 'Playfair Display', 'Tiempos Headline', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --section: 96px;
    --band: 128px;

    /* Radius */
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

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

/* Typography */
.display-xxl {
    font-family: var(--font-display);
    font-size: clamp(44px, 8vw, 96px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.display-xl {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.heading-md {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.body-lg {
    font-size: 18px;
    line-height: 1.5;
    color: var(--body);
}

.section-lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--body);
    max-width: 640px;
    margin-bottom: 48px;
}

.caption {
    font-size: 12px;
    color: var(--charcoal);
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 8px 16px;
    background: var(--alo-lime);
    color: var(--alo-navy);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #b8f04a;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 8px 16px;
    background: var(--surface-elevated);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    transition: border-color 0.2s ease;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 7px 15px;
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    transition: border-color 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Badge & status */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-elevated);
    color: var(--body);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--rounded-full);
    margin-bottom: 32px;
    border: 1px solid var(--hairline);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: var(--rounded-full);
    flex-shrink: 0;
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-icon-sm {
    width: 28px;
    height: 28px;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    letter-spacing: 0.35px;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px 32px 32px;
    border-top: 1px solid var(--hairline);
    background: var(--canvas);
}

.mobile-menu a {
    font-size: 16px;
    color: var(--body);
}

.mobile-menu .btn-primary {
    align-self: flex-start;
    margin-top: 8px;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu.open {
    display: flex;
}

/* Hero */
.hero-stripe {
    padding: var(--band) 0 var(--section);
    background: var(--canvas);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--hairline);
    overflow: hidden;
    isolation: isolate;
}

.hero-stripe::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse 100% 70% at 50% -10%,
        rgba(45, 103, 250, 0.45) 0%,
        rgba(45, 103, 250, 0.22) 30%,
        rgba(45, 103, 250, 0.08) 55%,
        transparent 75%
    );
}

.hero-stripe .container {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Sections */
.section {
    padding: var(--section) 0;
    position: relative;
    background: var(--canvas);
}

.section.glow-blue,
.section.glow-green {
    overflow: hidden;
    isolation: isolate;
}

.glow-blue::before,
.glow-green::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 90%);
    height: 480px;
    pointer-events: none;
    z-index: 0;
}

.glow-blue::before {
    background: radial-gradient(ellipse at 50% 50%, var(--accent-blue-glow) 0%, transparent 68%);
}

.glow-green::before {
    background: radial-gradient(ellipse at 50% 50%, var(--accent-green-glow) 0%, transparent 68%);
}

.section > .container {
    position: relative;
    z-index: 1;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card,
.feature-card-bordered {
    background: var(--surface-card);
    border-radius: var(--rounded-lg);
    padding: 32px;
}

.feature-card-bordered {
    border: 1px solid var(--hairline-strong);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--alo-blue);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card p,
.feature-card-bordered p {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.5;
}

/* Split layout */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 32px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--alo-lime);
    border-radius: var(--rounded-full);
}

/* Phone mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    width: 100%;
}

.app-mockup-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 32px;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 0 80px var(--accent-blue-glow);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 32px;
}

.step-card.featured {
    background: var(--surface-elevated);
}

.step-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--alo-lime);
    margin-bottom: 20px;
}

.step-card p {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.5;
}

/* Stats */
.stats-band {
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 48px 64px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--alo-lime);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Final CTA */
.final-cta {
    padding: var(--band) 0;
    text-align: center;
}

.final-inner .body-lg {
    max-width: 480px;
    margin: 0 auto 32px;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.final-inner .caption {
    color: var(--mute);
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--hairline);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--divider-soft);
}

.footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.footer-brand span {
    font-size: 18px;
    font-weight: 600;
}

.footer-tagline {
    width: 100%;
    font-size: 14px;
    color: var(--ash);
    margin-top: 8px;
    max-width: 280px;
    line-height: 1.5;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ash);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Legal pages */
.legal-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.legal-hero .display-xl {
    margin-bottom: 12px;
}

.legal-updated {
    font-size: 14px;
    color: var(--mute);
}

.legal-page {
    padding: 48px 0 96px;
}

.legal-content {
    max-width: 720px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 40px 0 16px;
    color: var(--ink);
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 24px 0 12px;
    color: var(--ink);
}

.legal-content p,
.legal-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--alo-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content .highlight-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin: 24px 0;
}

.legal-content .highlight-box p:last-child {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.contact-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--alo-lime);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .phone-mockup {
        order: -1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section: 64px;
        --band: 72px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-inner {
        height: 56px;
    }

    .mobile-menu {
        padding: 20px;
    }

    .hero-stripe {
        padding-top: 56px;
    }

    .hero-subtitle,
    .section-lead {
        font-size: 17px;
    }

    .display-xl {
        margin-bottom: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-ghost {
        width: 100%;
        min-height: 44px;
    }

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

    .store-buttons .btn-primary,
    .store-buttons .btn-outline {
        width: 100%;
        max-width: 320px;
        min-height: 44px;
    }

    .btn-primary,
    .btn-ghost,
    .btn-outline {
        min-height: 44px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-hero {
        padding: 48px 0 32px;
    }

    .legal-page {
        padding: 32px 0 64px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .badge-pill {
        font-size: 11px;
    }
}

@media (max-width: 425px) {
    .app-mockup-img {
        max-width: 100%;
        border-radius: 24px;
    }
}
