/* ========== RESET & TOKENS ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FAF7F2;
    --bg-secondary: #EDE6DD;
    --text: #2E2A26;
    --text-muted: rgba(46, 42, 38, 0.55);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* ========== SCROLL ANIMATIONS ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
[data-animate].visible .feature-card:nth-child(1),
[data-animate].visible .testimonial-card:nth-child(1),
[data-animate].visible .step:nth-child(1) {
    transition-delay: 0s;
}

[data-animate].visible .feature-card:nth-child(2),
[data-animate].visible .testimonial-card:nth-child(2),
[data-animate].visible .step:nth-child(2) {
    transition-delay: 0.1s;
}

[data-animate].visible .feature-card:nth-child(3),
[data-animate].visible .testimonial-card:nth-child(3),
[data-animate].visible .step:nth-child(3) {
    transition-delay: 0.2s;
}

[data-animate].visible .feature-card:nth-child(4) {
    transition-delay: 0.3s;
}

.feature-card,
.testimonial-card,
.step {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].visible .feature-card,
[data-animate].visible .testimonial-card,
[data-animate].visible .step {
    opacity: 1;
    transform: translateY(0);
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(250, 247, 242, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(46, 42, 38, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    display: none;
    padding: 0.5rem 1.25rem;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

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

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1.5rem;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu.open {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.625rem 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mobile-menu a:hover {
    opacity: 1;
}

.mobile-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--text);
    color: var(--bg) !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    opacity: 1 !important;
    transition: opacity 0.2s;
}

.mobile-cta:hover {
    opacity: 0.85 !important;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius);
    font-size: 1rem;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ========== PHONE MOCKUP ========== */
.hero-phone {
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
}

.phone-frame {
    background: var(--bg);
    border: 2px solid rgba(46, 42, 38, 0.1);
    border-radius: 32px;
    padding: 0.75rem;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    width: 100px;
    height: 6px;
    background: rgba(46, 42, 38, 0.1);
    border-radius: 3px;
    margin: 0.25rem auto 0.75rem;
}

.phone-screen {
    background: var(--bg);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.phone-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.phone-chat {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phone-msg {
    display: flex;
}

.phone-msg-user {
    justify-content: flex-end;
}

.phone-msg-assistant {
    justify-content: flex-start;
}

.phone-bubble {
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    max-width: 85%;
}

.phone-bubble-user {
    background: var(--text);
    color: var(--bg);
    border-radius: 14px 14px 4px 14px;
}

.phone-bubble-assistant {
    background: var(--bg-secondary);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.phone-bubble-assistant p {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.phone-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 0.5rem 0.625rem;
    border: 1px solid rgba(46, 42, 38, 0.08);
}

.phone-category {
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.45;
    font-weight: 500;
    margin-top: 0.375rem;
    margin-bottom: 0.125rem;
}

.phone-category:first-child {
    margin-top: 0;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.phone-list li {
    font-size: 0.6875rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.phone-bullet {
    opacity: 0.5;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin: 0 0.5rem 0.5rem;
}

.phone-input-placeholder {
    flex: 1;
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.4rem 0.625rem;
    border-radius: 10px;
}

.phone-input-btn {
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--text);
    color: var(--bg);
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 5rem 1.5rem;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.section-narrow {
    max-width: 680px;
    text-align: center;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.section-narrow h2 {
    margin-bottom: 1.25rem;
}

/* ========== PROBLEM ========== */
.problem-copy {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ========== FEATURES ========== */
.features-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 640px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ========== HOW IT WORKS ========== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--text);
    color: var(--bg);
    border-radius: 50%;
    margin-bottom: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-connector {
    display: none;
}

.step h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 260px;
}

/* Vertical connector for mobile — only between circles, not behind text */
.step:not(:last-child)::after {
    display: none;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-author strong {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========== WAITLIST ========== */
.waitlist-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: box-shadow 0.2s;
}

.waitlist-form input[type="email"]:focus {
    box-shadow: 0 0 0 2px rgba(46, 42, 38, 0.15);
}

.waitlist-form .btn-primary {
    width: 100%;
    text-align: center;
}

.waitlist-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.waitlist-success {
    margin-top: 1rem;
}

.waitlist-success p {
    font-size: 1.125rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(46, 42, 38, 0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========== RESPONSIVE: 768px ========== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-block;
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

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

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

    /* Horizontal steps */
    .steps {
        flex-direction: row;
        gap: 0;
        justify-content: center;
    }

    .step {
        flex: 1;
        max-width: 260px;
    }

    .step:not(:last-child)::after {
        display: block;
        content: '';
        position: absolute;
        top: 24px;
        left: calc(50% + 24px);
        width: calc(100% - 48px);
        height: 2px;
        background: rgba(46, 42, 38, 0.12);
        transform: none;
    }

    .waitlist-form {
        flex-direction: row;
    }

    .waitlist-form input[type="email"] {
        flex: 1;
    }

    .waitlist-form .btn-primary {
        width: auto;
        white-space: nowrap;
    }

    .section h2 {
        font-size: 2.25rem;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========== RESPONSIVE: 1024px ========== */
@media (min-width: 1024px) {
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }

    .hero-text {
        flex: 1;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-phone {
        max-width: 340px;
    }

    .section {
        padding: 7rem 2rem;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .nav-inner {
        padding: 0 2.5rem;
    }

    .hero {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}
