:root {
    --sky-top: #5ea2e8;
    --sky-mid: #a8c8ee;
    --sky-bottom: #f6f9ff;
    --steppe: #d9a86c;
    --ink: #0f1e3a;
    --ink-soft: #4a5a7a;
    --ink-mute: #7a8aa3;
    --accent: #1a73e8;
    --accent-dark: #0f5bc7;
    --card: rgba(255, 255, 255, 0.78);
    --border: rgba(15, 30, 58, 0.08);
    --shadow: 0 20px 60px rgba(15, 30, 58, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 35%, var(--sky-bottom) 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

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

/* Sky background */
.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    filter: blur(24px);
}
.cloud--1 { width: 360px; height: 360px; top: 8%; left: -100px; }
.cloud--2 { width: 260px; height: 260px; top: 30%; right: -80px; opacity: 0.85; }
.cloud--3 { width: 480px; height: 480px; bottom: -180px; left: 25%; opacity: 0.55; }

/* Nav */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}
.brand__mark { color: var(--accent); font-size: 1.4rem; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav__links a:hover { color: var(--accent); }
.nav__cta {
    background: var(--ink);
    color: white !important;
    padding: 0.55rem 1rem;
    border-radius: 999px;
}
.nav__cta:hover { background: var(--accent); color: white !important; }

/* Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.hero__inner { max-width: 620px; }
.hero__pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--ink);
}
.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink-soft);
    margin: 0 0 2rem;
}

.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Coming soon + waitlist */
.coming-soon { margin-top: 0.5rem; }
.coming-soon__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(26, 115, 232, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.coming-soon__badge--light {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}
.coming-soon__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}
.coming-soon__text {
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    max-width: 460px;
}

.waitlist-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 0.45rem 0.45rem 0.45rem 0.5rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 20px 50px -12px rgba(15, 30, 58, 0.18),
        0 4px 14px rgba(15, 30, 58, 0.06);
    max-width: 500px;
    position: relative;
    flex-wrap: wrap;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.waitlist-form:focus-within {
    border-color: rgba(26, 115, 232, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 4px rgba(26, 115, 232, 0.14),
        0 24px 56px -12px rgba(15, 30, 58, 0.24),
        0 4px 14px rgba(15, 30, 58, 0.08);
}
.waitlist-form__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.6rem;
    min-width: 200px;
}
.waitlist-form__icon {
    width: 18px;
    height: 18px;
    color: var(--ink-mute);
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.waitlist-form:focus-within .waitlist-form__icon { color: var(--accent); }
.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0.85rem 0;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.waitlist-form input[type="email"]::placeholder { color: var(--ink-mute); }

.waitlist-form__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    background:
        linear-gradient(135deg, #1a73e8 0%, #0f5bc7 50%, #1a73e8 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 8px 18px rgba(26, 115, 232, 0.35);
    transition: background-position 0.45s ease, transform 0.15s ease, box-shadow 0.25s ease;
    overflow: hidden;
    isolation: isolate;
}
.waitlist-form__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.waitlist-form__btn:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 14px 24px rgba(26, 115, 232, 0.45);
}
.waitlist-form__btn:hover::before { transform: translateX(110%); }
.waitlist-form__btn:active { transform: translateY(0); }
.waitlist-form__btn:disabled { cursor: not-allowed; opacity: 0.85; transform: none; }
.waitlist-form__btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.waitlist-form__btn:hover .waitlist-form__btn-arrow { transform: translateX(3px); }
.waitlist-form.is-loading .waitlist-form__btn-arrow { display: none; }
.waitlist-form__btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    animation: spin 0.7s linear infinite;
}
.waitlist-form.is-loading .waitlist-form__btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.waitlist-form__message {
    flex-basis: 100%;
    margin: 0.4rem 0.6rem 0.1rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    min-height: 1.2em;
}
.waitlist-form__message.is-error { color: #c0392b; }
.waitlist-form__message.is-success { color: #1a8754; }

/* Light variant for the dark CTA banner */
.waitlist-form--light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 50px -10px rgba(0, 0, 0, 0.35);
    margin: 0 auto;
}
.waitlist-form--light:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.18),
        0 24px 56px -10px rgba(0, 0, 0, 0.4);
}
.waitlist-form--light .waitlist-form__icon { color: rgba(255, 255, 255, 0.75); }
.waitlist-form--light:focus-within .waitlist-form__icon { color: white; }
.waitlist-form--light input[type="email"] { color: white; }
.waitlist-form--light input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.7); }
.waitlist-form--light .waitlist-form__btn {
    color: var(--ink);
    background:
        linear-gradient(135deg, #ffffff 0%, #e8efff 50%, #ffffff 100%);
    background-size: 200% 100%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(15, 30, 58, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.25);
}
.waitlist-form--light .waitlist-form__btn:hover {
    background-position: 100% 50%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(15, 30, 58, 0.1),
        0 14px 24px rgba(0, 0, 0, 0.35);
}
.waitlist-form--light .waitlist-form__btn-spinner {
    border-color: rgba(15, 30, 58, 0.2);
    border-top-color: var(--ink);
}
.waitlist-form--light .waitlist-form__message { color: rgba(255, 255, 255, 0.85); }
.waitlist-form--light .waitlist-form__message.is-error { color: #ffd3cd; }
.waitlist-form--light .waitlist-form__message.is-success { color: #b6f0d2; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Stat cards */
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.5rem;
    max-width: 500px;
}
.stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 1rem 1.05rem 1.1rem;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 24px rgba(15, 30, 58, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.18) 0%, rgba(26, 115, 232, 0) 70%);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(26, 115, 232, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 16px 32px rgba(15, 30, 58, 0.14);
}
.stat-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #6db3f2);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.35);
}
.stat-card__icon svg { width: 16px; height: 16px; }
.stat-card__num {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-card__unit {
    font-size: 1.1rem;
    margin-left: 1px;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: inherit;
}
.stat-card__label {
    margin-top: 0.4rem;
    color: var(--ink-mute);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1.3rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 30, 58, 0.18); }
.btn__small { font-size: 0.7rem; opacity: 0.8; font-weight: 500; }
.btn__big { font-size: 1.05rem; margin-top: 2px; }
.btn--primary { background: var(--ink); color: white; }
.btn--primary:hover { background: var(--accent); }
.btn--secondary {
    background: white;
    color: var(--ink);
    border: 1px solid var(--border);
}

/* Phone mockup */
.hero__phone { display: flex; justify-content: center; }
.phone {
    width: 300px;
    height: 600px;
    background: linear-gradient(180deg, #1a2540, #0f1e3a);
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 30px 70px rgba(15, 30, 58, 0.35), inset 0 0 0 2px rgba(255,255,255,0.05);
    position: relative;
    transform: rotate(-3deg);
}
.phone__notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 22px;
    background: #0a1226;
    border-radius: 999px;
    z-index: 2;
}
.phone__screen {
    background: linear-gradient(180deg, #eaf2ff, #ffffff);
    border-radius: 28px;
    height: 100%;
    padding: 50px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}
.phone__header { display: flex; justify-content: center; }
.phone__brand {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}
.phone__search {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(15, 30, 58, 0.05);
}
.phone__card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: white;
    border-radius: 14px;
    padding: 0.7rem;
    box-shadow: 0 4px 14px rgba(15, 30, 58, 0.08);
}
.phone__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6db3f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.phone__avatar--alt {
    background: linear-gradient(135deg, var(--steppe), #f0c089);
}
.phone__info { flex: 1; min-width: 0; }
.phone__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.phone__verified {
    color: white;
    background: #22c55e;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}
.phone__role {
    font-size: 0.72rem;
    color: var(--ink-mute);
    margin-top: 2px;
}
.phone__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}
.phone__price small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--ink-mute);
}
.phone__match {
    margin-top: auto;
    background: var(--ink);
    color: white;
    text-align: center;
    padding: 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Section heading */
.section__heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section__heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}
.section__heading p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 1.05rem;
}

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.feature {
    background: var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15, 30, 58, 0.18);
}
.feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #6db3f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.feature__desc {
    color: var(--ink-soft);
    margin: 0;
    font-size: 0.95rem;
}

/* How it works */
.how {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.step {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
}
.step__num {
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.step__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.step__desc { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* CTA banner */
.cta-banner {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}
.cta-banner__inner {
    background: linear-gradient(135deg, #0f1e3a 0%, #1a73e8 100%);
    color: white;
    border-radius: 28px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 30px 70px rgba(15, 30, 58, 0.25);
}
.cta-banner__inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}
.cta-banner__inner p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
}
.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.footer__inner p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 1.5rem;
        padding-bottom: 3rem;
        gap: 2rem;
    }
    .hero__phone { order: -1; }
    .phone { transform: rotate(0deg) scale(0.9); }
    .stats { max-width: none; }
}

@media (max-width: 600px) {
    .nav { padding: 1rem; }
    .nav__links { gap: 1rem; }
    .nav__links a:not(.nav__cta) { display: none; }
    .hero, .features, .how { padding-left: 1.25rem; padding-right: 1.25rem; }
    .btn { padding: 0.65rem 1rem; }
    .stats { gap: 0.5rem; }
    .stat-card { padding: 0.85rem 0.85rem 0.95rem; }
    .stat-card__num { font-size: 1.55rem; }
    .waitlist-form { padding: 0.4rem; }
    .waitlist-form__field { padding: 0 0.4rem; }
    .waitlist-form__btn { padding: 0.75rem 1.1rem; font-size: 0.9rem; }
}
