/* ─── HEY ALISSA — Landing Page Styles ─────────────────────────────────────── */

/* ─── RESET ───────────────────────────────────────────────────────────────── */

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

/* ─── CUSTOM PROPERTIES ───────────────────────────────────────────────────── */

:root {
    /* Surfaces */
    --bg: #f4f4f5;
    --surface: #ffffff;
    --dark: #18181b;
    --dark-surface: #27272a;

    /* Brand */
    --primary: #0066ff;
    --primary-hover: #0052cc;

    /* Typography */
    --text: #18181b;
    --text-on-dark: #ffffff;
    --muted: #71717a;
    --muted-on-dark: rgba(255, 255, 255, 0.6);

    /* Borders */
    --line: #e4e4e7;

    /* Spacing */
    --radius: 6px;
    --radius-lg: 10px;
    --section-pad: 80px;
    --content-max: 1100px;
}

/* ─── BASE ────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 1.125rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────────────────────── */

.heading-xl {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.heading-lg {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.heading-md {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.text-muted { color: var(--muted); }
.text-muted-on-dark { color: var(--muted-on-dark); }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }

/* ─── BRAND ───────────────────────────────────────────────────────────────── */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── SECTION UTILITIES ──────────────────────────────────────────────────── */

.section-dark {
    background: var(--dark);
    color: var(--text-on-dark);
}

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────────────────── */

.animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger feature cards */
.feature-card.animate:nth-child(2) { transition-delay: 0.1s; }
.feature-card.animate:nth-child(3) { transition-delay: 0.2s; }
.feature-card.animate:nth-child(4) { transition-delay: 0.3s; }

/* Stagger steps */
.step.animate:nth-child(2) { transition-delay: 0.15s; }
.step.animate:nth-child(3) { transition-delay: 0.3s; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */

#hero {
    padding: 80px 0 var(--section-pad);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(0, 102, 255, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

.hero-brand {
    justify-content: center;
    margin-bottom: 48px;
}

.hero-headline {
    max-width: 720px;
    margin: 0 auto 24px;
    position: relative;
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── FEATURES ────────────────────────────────────────────────────────────── */

#features {
    padding: var(--section-pad) 0;
}

.features-headline {
    text-align: center;
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .heading-md {
    margin-bottom: 8px;
}

.feature-card .text-muted {
    font-size: 1rem;
    line-height: 1.6;
}

/* ─── HOW IT WORKS ────────────────────────────────────────────────────────── */

#how-it-works {
    padding: 0 0 var(--section-pad);
}

.how-headline {
    text-align: center;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step .heading-md {
    margin-bottom: 8px;
}

.step .text-muted {
    font-size: 1rem;
    line-height: 1.6;
}

/* ─── STORY ───────────────────────────────────────────────────────────────── */

#story {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--line);
}

.story-content {
    max-width: 680px;
    margin: 0 auto;
}

.story-content .heading-lg {
    margin-bottom: 32px;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--muted);
}

.story-content p:last-of-type {
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 500;
}

.story-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.story-link:hover {
    opacity: 0.8;
}
/* ─── FOOTER ──────────────────────────────────────────────────────────────── */

#footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--muted-on-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-copy {
    font-size: 0.875rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    :root {
        --section-pad: 56px;
    }

    .heading-xl {
        font-size: 2rem;
    }

    .heading-lg {
        font-size: 1.75rem;
    }

    /* Hero */
    #hero {
        padding: 60px 0 var(--section-pad);
    }

    .hero-brand {
        margin-bottom: 32px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Story */
    .story-content {
        text-align: center;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Disable stagger on mobile — feels slow */
    .feature-card.animate:nth-child(2),
    .feature-card.animate:nth-child(3),
    .feature-card.animate:nth-child(4),
    .step.animate:nth-child(2),
    .step.animate:nth-child(3) {
        transition-delay: 0s;
    }
}
