﻿/* Page-level layout: nav, hero, sections, footer, grids */

/* ---------- Nav ---------- */
.nav {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav__logo {
    display: inline-flex;
    align-items: center;
    /* remove old font/color styles */
}

    .nav__logo img {
        display: block;
        height: 80px; /* adjust to taste */
        width: auto;
        max-width: 100%;
    }

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

.nav__link {
    font: 500 14px/1 var(--font-family);
}

/* Mobile toggle (checkbox hack) */
.nav__toggle {
    display: none;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

    .nav__burger span {
        display: block;
        width: 20px;
        height: 1.5px;
        background: var(--color-text-primary);
        transition: background-color var(--duration-micro) var(--easing-default);
    }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    padding: 140px 0 112px;
}

    /* Masked dot grid */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
        background-size: 24px 24px;
        -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 72%);
        mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 72%);
        opacity: 0.55;
        pointer-events: none;
    }

    /* Soft accent wash from the top */
    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: radial-gradient(60% 50% at 50% 0%, rgba(37, 99, 235, 0.07) 0%, transparent 65%);
        pointer-events: none;
    }

/* Eyebrow chip */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: var(--text-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-card);
    margin-bottom: 32px;
    animation: hero-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    animation: hero-pulse 2.2s ease-out infinite;
}

/* Title */
.hero__title {
    font: 700 clamp(2.5rem, 6vw, 5rem)/1.1 var(--font-family);
    letter-spacing: -0.035em;
    color: var(--color-primary);
    max-width: 900px;
    margin: 0 auto 28px;
    text-wrap: balance;
    animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero__title-line,
.hero__title-highlight {
    display: block;
}

.hero__title-highlight {
    position: relative; /* fixes the ::after anchor bug */
    width: fit-content; /* underline matches text, not the h1 */
    margin: 0 auto; /* keeps it centered */
    color: var(--color-accent);
}

    .hero__title-highlight::after {
        content: "";
        position: absolute;
        left: -0.04em;
        right: -0.04em;
        bottom: 0.04em;
        height: 0.1em;
        background: currentColor;
        opacity: 0.22;
        transform: scaleX(0);
        transform-origin: left center;
        animation: hero-underline 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
    }

/* Subtitle */
.hero__subtitle {
    font: var(--text-body-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    text-wrap: pretty;
    animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

/* Waitlist — pill wrapper around input + button */
.waitlist {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 8px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    transition: border-color var(--duration-transition) var(--easing-default), box-shadow var(--duration-transition) var(--easing-default);
    animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

    .waitlist:focus-within {
        border-color: var(--color-accent);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-card);
    }

    .waitlist .input {
        flex: 1;
        min-width: 0;
        border: 0;
        background: transparent;
        padding: 0 20px;
        font: var(--text-body);
        color: var(--color-text-primary);
        outline: none;
    }

        .waitlist .input::placeholder {
            color: var(--color-text-tertiary);
        }

    .waitlist .btn {
        border-radius: 999px;
        padding: 14px 28px;
        transition: transform var(--duration-micro) var(--easing-default), box-shadow var(--duration-micro) var(--easing-default), background-color var(--duration-micro) var(--easing-default);
    }

        .waitlist .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.45);
        }

        .waitlist .btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 12px -6px rgba(37, 99, 235, 0.4);
        }

/* Note line */
.hero__note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font: var(--text-body-sm);
    color: var(--color-text-tertiary);
    animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero__note-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-tertiary);
}

/* Success */
.form-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: var(--text-body-sm);
    color: var(--color-success);
}

/* Keyframes */
@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 96px 0;
}

.section__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.section__title {
    font: var(--text-section);
    margin: 16px 0;
}

.section__subtitle {
    font: var(--text-body-lg);
    color: var(--color-text-secondary);
}

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

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--color-primary);
    text-align: center;
    padding: 96px 0;
}

.cta-band__title {
    font: var(--text-section);
    color: #fff;
    margin: 16px 0;
}

.cta-band__subtitle {
    font: var(--text-body-lg);
    color: var(--color-text-tertiary);
    max-width: 480px;
    margin: 0 auto 48px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 0 32px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px 48px;
    align-items: center;
}

/* Brand */
.footer__brand-mark {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px; /* keep spacing below */
}

    .footer__brand-mark img {
        display: block;
        height: 46px; /* slightly smaller than header */
        width: auto;
        max-width: 100%;
        filter: brightness(0) invert(1); /* turns the logo pure white */
    }

.footer__brand-meta {
    font: var(--text-label);
    color: var(--color-text-tertiary);
}

/* Legal nav */
.footer__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .footer__nav a {
        font: var(--text-label);
        color: var(--color-text-tertiary);
        text-decoration: none;
        transition: color var(--duration-micro) var(--easing-default);
    }

        .footer__nav a:hover {
            color: var(--color-card);
        }

/* Copyright — spans full width with a hairline divider */
.footer__copyright {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font: var(--text-label);
    color: var(--color-text-tertiary);
}

/* ---------- Steps: process rail ---------- */
.steps-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

    .steps-rail::before {
        content: "";
        position: absolute;
        top: 20px; /* node center: 40px node / 2 */
        left: 12%;
        right: 12%;
        height: 1px;
        background: var(--color-border);
    }

.step-rail__node {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-base);
    border: 1.5px solid var(--color-border-input);
    background: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 600 14px/1 var(--font-family);
    color: var(--color-text-secondary);
    position: relative; /* sits above the rail line */
    margin-bottom: 24px;
    transition: border-color var(--duration-micro) var(--easing-default), color var(--duration-micro) var(--easing-default);
}

.steps-rail .reveal--visible .step-rail__node,
.step-rail:hover .step-rail__node {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.step-rail__title {
    font: var(--text-card-title);
    margin: 0 0 8px;
}

.step-rail__body {
    font: var(--text-body-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .steps-rail {
        grid-template-columns: 1fr;
    }

        .steps-rail::before {
            top: 12px;
            left: 20px;
            right: auto;
            bottom: 12px;
            width: 1px;
            height: auto;
        }

    .step-rail {
        padding-left: 64px;
        position: relative;
    }

    .step-rail__node {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

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

    .hero {
        padding: 72px 0 56px;
    }

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

    .hero__content {
        text-align: left; /* keep left even on mobile */
    }

    .hero__aside {
        display: none; /* hide the vertical mark on mobile */
    }

    .hero__title {
        letter-spacing: -0.025em;
    }

    .nav__links a:not(.btn) {
        display: none;
    }

    .waitlist {
        flex-direction: column;
        border-radius: var(--radius-base);
    }

        .waitlist .input {
            padding: 16px 20px;
            text-align: center;
        }

        .waitlist .btn {
            border-radius: var(--radius-base);
            width: 100%;
        }

    .footer {
        padding: 40px 0 28px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .footer__nav {
        gap: 20px;
    }

    .footer__copyright {
        padding-top: 20px;
    }

    .nav__burger {
        display: flex;
    }

    .nav__menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-card);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-card);
        padding: 8px 24px 24px;
    }

    .nav__link {
        padding: 16px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__menu .btn {
        margin-top: 16px;
    }

    .nav__toggle:checked ~ .nav__menu {
        display: flex;
    }

    .nav__logo img {
        height: 50px;
    }

    .footer__brand-mark img {
        height: 45px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero__eyebrow,
    .hero__title,
    .hero__subtitle,
    .waitlist,
    .hero__note {
        animation: none;
        opacity: 1;
        transform: none;
    }   

    .hero__eyebrow-dot {
        animation: none;
    }
}
