:root {
    --bg: #07070f;
    --ink: #eaf2f5;
    --ink-dim: #9fb0c3;
    --ink-faint: #6b7a8d;
    --mint: #5fd4b8;
    --mint-bright: #2bb89a;
    --blue: #6e7df0;
    --violet: #9c4ed1;
    --purple: #4d0872;
    --line: rgba(234, 242, 245, .10);
    --card: rgba(234, 242, 245, .035);
    --maxw: 1180px;
    --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    --mono: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.field {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg);
    overflow: hidden;
}

.field::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(46% 40% at 14% 8%, rgba(110, 125, 240, .42), transparent 70%),
        radial-gradient(44% 38% at 88% 14%, rgba(156, 78, 209, .40), transparent 70%),
        radial-gradient(50% 46% at 16% 96%, rgba(42, 61, 126, .55), transparent 72%),
        radial-gradient(48% 44% at 92% 100%, rgba(77, 8, 114, .50), transparent 72%);
    filter: saturate(1.05);
}

.field::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 38%, transparent 40%, rgba(0, 0, 0, .55) 100%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .03;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, .02) 2px, rgba(255, 255, 255, .02) 4px);
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0 0;
}

nav .mark {
    height: 40px;
    width: auto;
    display: block;
    opacity: .96;
}

.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 64px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: clamp(40px, 6.6vw, 82px);
    line-height: 1.02;
    letter-spacing: -.025em;
    font-weight: 700;
    max-width: 14ch;
    text-wrap: balance;
}

h1 .grad {
    background: linear-gradient(120deg, #fff 10%, var(--mint) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub {
    margin-top: 26px;
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--ink-dim);
    max-width: 54ch;
    text-wrap: pretty;
}

.availability {
    margin-top: 14px;
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--ink-dim);
}

form.signup {
    margin-top: 38px;
    display: flex;
    gap: 10px;
    width: min(480px, 100%);
    flex-wrap: wrap;
    justify-content: center;
}

.signup input {
    flex: 1 1 240px;
    min-width: 0;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px 18px;
    transition: border-color .2s, background .2s;
}

.signup input::placeholder {
    color: var(--ink-faint);
}

.signup input:focus {
    outline: none;
    border-color: rgba(95, 212, 184, .6);
    background: rgba(95, 212, 184, .06);
}

.btn {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    color: #06140f;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 15px 26px;
    white-space: nowrap;
    background: linear-gradient(180deg, #5ba3f9, #398cf7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .15s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.helper {
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--ink-faint);
}

.helper a {
    color: var(--ink-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.helper a:hover { color: var(--mint); }

#cf-turnstile {
    display: flex;
    justify-content: center;
}

#cf-turnstile:not(:empty) {
    margin-top: 18px;
}

.formerror {
    margin-top: 16px;
    display: none;
    font-size: 13.5px;
    color: #e0607a;
}

.confirm {
    margin-top: 38px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--ink);
    border: 1px solid rgba(95, 212, 184, .35);
    background: rgba(95, 212, 184, .08);
    border-radius: 14px;
    padding: 16px 22px;
}

.confirm .ck {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mint);
    color: #06140f;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

body.done form.signup,
body.done #cf-turnstile,
body.done .formerror,
body.done .helper { display: none; }

body.done .confirm { display: flex; }

.stage {
    position: relative;
    z-index: 1;
    margin-top: 74px;
    display: flex;
    justify-content: center;
}

.stage .glow {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 92vw);
    height: 560px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(110, 125, 240, .5), rgba(156, 78, 209, .22) 45%, transparent 72%);
    filter: blur(30px);
    z-index: -1;
}

.phone {
    width: clamp(280px, 40vw, 372px);
    height: auto;
    display: block;
    filter: drop-shadow(0 50px 80px rgba(0, 0, 0, .6)) drop-shadow(0 14px 30px rgba(0, 0, 0, .5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.reflect {
    position: absolute;
    bottom: -6%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    background: radial-gradient(50% 100% at 50% 0, rgba(95, 212, 184, .16), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.deck {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.deck .phone {
    width: clamp(150px, 19vw, 232px);
    margin: 0 -3.5%;
    transition: transform .3s ease;
}

.p-presets { transform: translateY(28px) scale(.85); z-index: 1; }
.p-hpf { transform: translateY(10px) scale(.93); z-index: 2; }
.p-hero { transform: translateY(-8px) scale(1.07); z-index: 4; }
.p-peq { transform: translateY(10px) scale(.93); z-index: 2; }
.p-trim { transform: translateY(28px) scale(.85); z-index: 1; }

.deck-nav { display: none; }

.deck-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.deck-arrow svg {
    width: 20px;
    height: 20px;
}

.deck-arrow:active { transform: scale(.92); }

.deck-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.features {
    position: relative;
    z-index: 2;
    padding: 120px 0 40px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 56px;
}

.feat {
    display: flex;
    gap: 18px;
    padding: 22px 4px;
    border-top: 1px solid var(--line);
}

.feat .dia {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 6px;
    transform: rotate(45deg);
    border-radius: 3px;
    background: linear-gradient(135deg, #5ba3f9, #398cf7);
}

.feat p {
    font-size: 17.5px;
    line-height: 1.5;
    color: var(--ink-dim);
}

.feat b {
    color: var(--ink);
    font-weight: 600;
}

footer {
    position: relative;
    z-index: 2;
    margin-top: 90px;
    border-top: 1px solid var(--line);
    padding: 44px 0 56px;
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.foot .mark {
    height: 22px;
    opacity: .85;
}

.foot .meta {
    font-size: 13px;
    color: var(--ink-faint);
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
    font-family: var(--mono);
    letter-spacing: .02em;
}

.foot .meta a {
    color: var(--ink-dim);
    text-decoration: none;
}

.foot .meta a:hover { color: var(--mint); }

@media (max-width: 820px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .wrap { padding: 0 22px; }
    .hero { padding-top: 44px; }
    nav { padding-top: 22px; }
    .deck {
        width: 100vw;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 16px;
        max-width: none;
        margin: 0;
        padding: 8px 0 16px;
        align-items: center;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .deck::-webkit-scrollbar { display: none; }
    .deck .phone {
        flex: 0 0 auto;
        width: 62vw;
        max-width: 280px;
        margin: 0;
        position: relative;
        z-index: 1;
        transform: scale(.8);
        transition: transform .45s cubic-bezier(.33, 1, .68, 1);
        scroll-snap-align: center;
    }
    .deck .phone.active {
        z-index: 3;
        transform: scale(1);
    }
    .deck .p-hero { order: -1; }
    .stage {
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    .deck-nav {
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-top: 18px;
    }
}
