:root {
    color-scheme: dark;
    --navy: #020817;
    --white: #f7f9ff;
    --cyan: #55e9ff;
    --violet: #9b5cff;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--navy);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--white);
    background-color: var(--navy);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

    body::after {
        position: fixed;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        content: "";
        background-image: linear-gradient(rgba(74,144,222,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(74,144,222,.055) 1px, transparent 1px);
        background-size: 36px 36px;
        mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 88%, transparent 100%);
    }

a, button, input {
    font: inherit;
}

a {
    color: inherit;
}

button {
    border: 0;
}

.page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 16%, rgba(47,115,255,.1), transparent 25rem), linear-gradient(90deg, rgba(1,6,19,.18), transparent 24%, transparent 76%, rgba(1,6,19,.18)), linear-gradient(180deg, rgba(1,7,22,.1), rgba(1,7,22,.2) 48%, rgba(1,6,18,.72)), url("assets/frozen-bridge.webp") top center / cover no-repeat;
}

    .page::after {
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        content: "";
        box-shadow: inset 0 0 170px rgba(0,5,18,.72);
    }

.shell {
    width: min(var(--max), calc(100% - 64px));
    margin-inline: auto;
}

.micro {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .32em;
    line-height: 1.72;
    text-transform: uppercase;
}

.site-header {
    display: flex;
    min-height: 118px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.brand-icon {
    display: grid;
    width: 58px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(90,204,255,.14);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,144,255,.12), transparent 67%);
    filter: drop-shadow(0 0 12px rgba(70,218,255,.38));
}

    .brand-icon svg {
        width: 50px;
        height: 50px;
    }

.brand-name {
    color: #f3f7ff;
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(142,180,255,.25);
}

    .brand-name strong {
        color: #88b8ff;
        font-weight: 650;
    }

.brand-divider {
    width: 1px;
    height: 25px;
    background: linear-gradient(transparent, rgba(124,172,255,.45), transparent);
}

.brand-subtitle {
    color: #7793bf;
    font-size: .62rem;
    letter-spacing: .46em;
    text-transform: uppercase;
}

.build {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 10px 19px;
    border: 1px solid rgba(122,157,222,.45);
    border-radius: 99px;
    color: #9eb1d8;
    background: rgba(5,13,35,.54);
    box-shadow: inset 0 0 22px rgba(43,106,206,.08);
}

.build-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37fff3;
    box-shadow: 0 0 13px rgba(55,255,243,.95);
    animation: blink 2.2s ease-in-out infinite;
}

.hero {
    position: relative;
    padding: 0 0 42px;
}

.edge-copy {
    position: absolute;
    top: 33px;
    margin: 0;
    color: #7f9ed0;
    opacity: .9;
}

    .edge-copy::after {
        display: block;
        width: 17px;
        height: 1px;
        margin-top: 9px;
        content: "";
        background: #62a8f0;
    }

.edge-copy-left {
    left: 0;
}

.edge-copy-right {
    right: 0;
    text-align: right;
}

    .edge-copy-right::after {
        margin-left: auto;
    }

.scanner-panel {
    position: relative;
    width: min(650px, calc(100% - 200px));
    min-height: 410px;
    margin: 43px auto 50px;
    border: 1px solid rgba(104,187,255,.72);
    clip-path: polygon(25px 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 25px), calc(100% - 25px) 100%, 25px 100%, 0 calc(100% - 25px), 0 25px);
    background: linear-gradient(180deg, rgba(20,59,107,.25), rgba(2,12,32,.79)), rgba(4,21,48,.51);
    box-shadow: 0 0 38px rgba(41,128,255,.22), inset 0 0 70px rgba(28,84,165,.16);
    backdrop-filter: blur(7px);
}

    .scanner-panel::before, .scanner-panel::after {
        position: absolute;
        right: 50%;
        left: 50%;
        width: 48%;
        height: 2px;
        content: "";
        translate: -50% 0;
        background: linear-gradient(90deg, transparent, #66d6ff, transparent);
        box-shadow: 0 0 16px #2f83ff;
    }

    .scanner-panel::before {
        top: -1px;
    }

    .scanner-panel::after {
        bottom: -1px;
    }

.corner {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: .9;
}

    .corner.tl {
        top: 19px;
        left: 19px;
        border-top: 2px solid #54baff;
        border-left: 2px solid #54baff;
    }

    .corner.tr {
        top: 19px;
        right: 19px;
        border-top: 2px solid #54baff;
        border-right: 2px solid #54baff;
    }

    .corner.bl {
        bottom: 19px;
        left: 19px;
        border-bottom: 2px solid #54baff;
        border-left: 2px solid #54baff;
    }

    .corner.br {
        right: 19px;
        bottom: 19px;
        border-right: 2px solid #54baff;
        border-bottom: 2px solid #54baff;
    }

.scanner-inner {
    display: flex;
    min-height: 410px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px 34px 30px;
    text-align: center;
}

.scan-orb {
    position: relative;
    display: grid;
    width: 178px;
    aspect-ratio: 1;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41,101,174,.22), rgba(3,14,35,.65) 60%, transparent 62%);
}

    .scan-orb::before {
        position: absolute;
        inset: 8px;
        border: 2px solid transparent;
        border-top-color: #64e7ff;
        border-right-color: #915cff;
        border-bottom-color: #46bfff;
        border-radius: 50%;
        content: "";
        filter: drop-shadow(0 0 8px #438cff);
        animation: rotate 4.2s linear infinite;
    }

    .scan-orb::after {
        position: absolute;
        inset: -8px;
        border: 1px dashed rgba(67,223,255,.78);
        border-radius: 50%;
        content: "";
        animation: rotate-reverse 10s linear infinite;
    }

    .scan-orb svg {
        width: 48px;
        height: 48px;
        fill: none;
        stroke: #dff5ff;
        stroke-linecap: round;
        stroke-width: 2.3;
        filter: drop-shadow(0 0 8px #448aff);
    }

.scan-kicker {
    margin: 0 0 22px;
    color: #c3d9ff;
    font-size: .76rem;
}

.session-status {
    margin: 0;
    color: #f4f7ff;
    font-size: clamp(1.25rem, 2.7vw, 1.7rem);
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(102,158,255,.45);
}

.scanner-message {
    margin: 14px 0 0;
    color: #9db6df;
    font-size: 1.12rem;
    letter-spacing: .02em;
}

.main-copy {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin: 0;
    color: transparent;
    background: linear-gradient(96deg, #edf3ff 8%, #d9f7ff 40%, #62ddff 63%, #a96bff 93%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: clamp(2.6rem, 6vw, 4.65rem);
    font-weight: 820;
    letter-spacing: -.055em;
    line-height: 1;
    text-wrap: balance;
    filter: drop-shadow(0 0 12px rgba(73,144,255,.2));
}

.description {
    max-width: 720px;
    margin: 25px auto 0;
    color: #d3dcf2;
    font-size: 1.03rem;
    line-height: 1.7;
    letter-spacing: .035em;
    text-wrap: balance;
}

.tagline {
    display: grid;
    grid-template-columns: minmax(24px,76px) auto minmax(24px,76px);
    width: min(500px,100%);
    margin: 23px auto 26px;
    align-items: center;
    gap: 24px;
    color: transparent;
    background: linear-gradient(90deg,#bb6fff,#66d6ff);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: clamp(1.08rem,2vw,1.35rem);
    font-weight: 700;
    letter-spacing: .28em;
}

    .tagline::before, .tagline::after {
        height: 1px;
        content: "";
    }

    .tagline::before {
        background: linear-gradient(90deg,transparent,#9b54ff);
    }

    .tagline::after {
        background: linear-gradient(90deg,#54d8ff,transparent);
    }

.signup {
    display: grid;
    grid-template-columns: minmax(0,1fr) 208px;
    max-width: 620px;
    margin: 0 auto;
    gap: 12px;
}

.email-wrap {
    position: relative;
}

    .email-wrap svg {
        position: absolute;
        top: 50%;
        left: 20px;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: #7894c1;
        stroke-width: 1.6;
        transform: translateY(-50%);
        pointer-events: none;
    }

.signup input, .signup button {
    width: 100%;
    height: 58px;
    border-radius: 10px;
}

.signup input {
    border: 1px solid rgba(102,160,226,.48);
    outline: none;
    padding: 0 18px 0 54px;
    color: var(--white);
    background: rgba(4,14,34,.73);
    box-shadow: inset 0 0 22px rgba(37,83,150,.08);
}

    .signup input::placeholder {
        color: #8195ba;
    }

.signup button {
    color: #03111e;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(110deg,#48dfff,#4da7ff 47%,#a455ff);
    box-shadow: 0 0 24px rgba(64,157,255,.22);
    transition: transform 170ms ease, filter 170ms ease, box-shadow 170ms ease;
}

    .signup button:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
        box-shadow: 0 0 30px rgba(78,169,255,.4);
    }

    .signup input:focus-visible, .signup button:focus-visible {
        outline: 3px solid rgba(85,233,255,.46);
        outline-offset: 3px;
    }

.form-note {
    max-width: 620px;
    margin: 11px auto 0;
    color: #758aae;
    font-size: .78rem;
    letter-spacing: .04em;
    text-align: center;
}

.formkit-powered-by-convertkit-container {
    margin-top: 12px;
    text-align: center;
}

.formkit-powered-by-convertkit {
    color: #647da8;
    font-size: .7rem;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color 160ms ease;
}

    .formkit-powered-by-convertkit:hover {
        color: #9db6df;
    }

.signup button:disabled {
    cursor: wait;
    filter: saturate(.72);
    opacity: .78;
    transform: none;
}

.signup-success {
    max-width: 620px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(85,233,255,.42);
    border-radius: 10px;
    color: #dffcff;
    background: rgba(5,42,67,.62);
    box-shadow: 0 0 26px rgba(65,189,255,.13);
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

    .signup-success strong {
        display: block;
        margin-bottom: 3px;
        color: #77fff2;
    }

    .signup-success[hidden] {
        display: none;
    }

#kit-submit-frame {
    display: none;
    width: 0;
    height: 0;
    border: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 44px;
}

.feature {
    min-height: 210px;
    padding: 24px 24px 20px;
    border: 1px solid rgba(99,158,224,.56);
    border-radius: 14px;
    text-align: center;
    background: radial-gradient(circle at 50% 22%,rgba(62,142,255,.1),transparent 31%), linear-gradient(150deg,rgba(4,17,39,.72),rgba(4,12,29,.88));
    box-shadow: 0 16px 38px rgba(0,5,17,.25), inset 0 0 30px rgba(37,83,150,.08);
    backdrop-filter: blur(6px);
    transition: transform 180ms ease,border-color 180ms ease;
}

    .feature:hover {
        transform: translateY(-4px);
        border-color: rgba(91,220,255,.76);
    }

.feature-icon {
    display: grid;
    width: 64px;
    aspect-ratio: 1;
    margin: -3px auto 14px;
    place-items: center;
    border: 1px solid rgba(64,164,248,.28);
    border-radius: 50%;
    color: var(--cyan);
    background: rgba(6,25,55,.55);
    box-shadow: 0 0 22px rgba(60,149,255,.12);
}

.feature:nth-child(2) .feature-icon {
    color: #bc68ff;
}

.feature:nth-child(3) .feature-icon {
    color: #55dcff;
}

.feature-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 6px currentColor);
}

.feature h2 {
    margin: 0 0 13px;
    font-size: .94rem;
    font-weight: 680;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.feature p {
    margin: 0;
    color: #c0cae0;
    font-size: .9rem;
    line-height: 1.55;
}

.feature-accent {
    width: 28px;
    height: 3px;
    margin: 19px auto 0;
    border-radius: 3px;
    background: #48cfff;
    box-shadow: 0 0 10px rgba(72,207,255,.7);
}

.feature:nth-child(2) .feature-accent {
    background: #a958ff;
    box-shadow: 0 0 10px rgba(169,88,255,.7);
}

.signal-band {
    position: relative;
    height: 112px;
    margin: 44px 0 12px;
    overflow: hidden;
}

    .signal-band::before {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        height: 1px;
        content: "";
        background: linear-gradient(90deg,transparent,rgba(88,149,255,.62),transparent);
        box-shadow: 0 0 18px rgba(73,124,255,.6);
    }

    .signal-band svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
    }

.signal-path {
    fill: none;
    stroke: url(#signal-gradient);
    stroke-width: 1.2;
    filter: drop-shadow(0 0 6px #4a65ff);
    stroke-dasharray: 8 4;
    animation: signal 4s linear infinite;
}

.bottom-meta {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 24px;
    padding-bottom: 42px;
}

    .bottom-meta p {
        margin: 0;
        color: #6f8cb8;
    }

    .bottom-meta .right {
        justify-self: end;
        text-align: right;
    }

.connection {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #7d97c4 !important;
    white-space: nowrap;
}

.connection-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2be7ff;
    box-shadow: 0 0 13px #2be7ff;
}

.legal {
    padding: 17px 24px;
    border-top: 1px solid rgba(104,152,216,.13);
    color: #58729c;
    background: rgba(0,5,16,.45);
    font-size: .7rem;
    text-align: center;
}

@keyframes blink {
    0%,100% {
        opacity: .48;
    }

    50% {
        opacity: 1;
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes signal {
    to {
        stroke-dashoffset: -48;
    }
}

@media (max-width: 900px) {
    .shell {
        width: min(var(--max),calc(100% - 36px));
    }

    .site-header {
        min-height: 96px;
    }

    .brand-divider, .brand-subtitle {
        display: none;
    }

    .scanner-panel {
        width: min(650px,calc(100% - 72px));
        margin-top: 72px;
    }

    .edge-copy {
        top: 15px;
    }

    .feature-grid {
        gap: 13px;
    }
}

@media (max-width: 700px) {
    .page {
        background: radial-gradient(circle at 50% 12%,rgba(47,115,255,.1),transparent 22rem), linear-gradient(180deg,rgba(1,7,22,.08),rgba(1,7,22,.4) 48%,#020817 66%), url("assets/frozen-bridge.webp") top center / auto 1040px no-repeat, #020817;
    }

    .site-header {
        min-height: 80px;
    }

    .brand {
        gap: 11px;
    }

    .brand-icon {
        width: 46px;
    }

        .brand-icon svg {
            width: 42px;
            height: 42px;
        }

    .brand-name {
        font-size: .9rem;
        letter-spacing: .24em;
    }

    .build {
        padding: 8px 12px;
        font-size: 0;
    }

        .build::after {
            content: "0.0.1";
            font-size: .64rem;
            letter-spacing: .15em;
        }

    .edge-copy {
        display: none;
    }

    .scanner-panel {
        width: 100%;
        min-height: 390px;
        margin-top: 34px;
        margin-bottom: 42px;
    }

    .scanner-inner {
        min-height: 390px;
        padding: 30px 18px;
    }

    .scan-orb {
        width: 150px;
        margin-bottom: 23px;
    }

    .session-status {
        font-size: 1.05rem;
        letter-spacing: .15em;
        line-height: 1.45;
    }

    .scanner-message {
        font-size: 1rem;
    }

    h1 {
        font-size: clamp(2.55rem,12.4vw,4.1rem);
    }

    .description {
        font-size: .98rem;
        line-height: 1.62;
    }

    .tagline {
        grid-template-columns: 28px auto 28px;
        gap: 12px;
        font-size: 1rem;
        letter-spacing: .16em;
    }

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

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

    .feature {
        min-height: 0;
        padding: 23px 28px 20px;
    }

    .signal-band {
        height: 92px;
        margin-top: 28px;
    }

    .bottom-meta {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        padding-bottom: 30px;
        text-align: center;
    }

        .bottom-meta .left, .bottom-meta .right {
            display: none;
        }

    .connection {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .shell {
        width: min(var(--max),calc(100% - 22px));
    }

    .brand-name {
        font-size: .76rem;
        letter-spacing: .18em;
    }

    .scanner-panel {
        clip-path: polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);
    }

    .scanner-inner {
        padding-inline: 14px;
    }

    .scan-orb {
        width: 132px;
    }

    .scan-kicker {
        font-size: .67rem;
        letter-spacing: .22em;
    }

    .session-status {
        font-size: .92rem;
        letter-spacing: .12em;
    }

    .tagline {
        display: block;
    }

        .tagline::before, .tagline::after {
            display: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
