/* GOSpock — gospock.com
   Brand colors follow the panel design system (navy, purple → pink gradient, deep purple).
   The site is dark only: the navy is the brand's own background. */

:root {
    --navy: #09032d;
    --navy-2: #0d0634;
    --navy-3: #110a3a;
    --deep: #49005b;
    --purple: #7f16f8;
    --pink: #e563fe;
    --lilac: #b48aff;
    --lilac-soft: #d6c0ff;
    --text: #f4f2fb;
    --muted: #a59fc4;
    --faint: #6f6895;
    --line: rgba(180, 138, 255, 0.16);
    --line-strong: rgba(180, 138, 255, 0.32);
    --glass: rgba(255, 255, 255, 0.045);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(120deg, #7f16f8 0%, #b13cfb 45%, #e563fe 100%);
    --android: #27a050;
    --ios: #e0508f;
    --web: #4a90e8;
    --ok: #4ade9a;

    --font-display: 'Unbounded', 'Poppins', system-ui, sans-serif;
    --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --radius: 22px;
    --radius-sm: 14px;
    --gutter: clamp(16px, 4vw, 40px);
    --max: 1200px;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--lilac);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--lilac-soft);
}

:focus-visible {
    outline: 2px solid var(--lilac);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--lilac);
    color: var(--navy);
    border-radius: 10px;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.grad-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lilac);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gradient);
}

.lead {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--muted);
    max-width: 60ch;
}

/* ---------- Atmosphere ---------- */

.sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60vw 50vw at 85% -10%, rgba(127, 22, 248, 0.28), transparent 60%),
        radial-gradient(50vw 40vw at -10% 30%, rgba(73, 0, 91, 0.55), transparent 65%),
        radial-gradient(40vw 40vw at 70% 110%, rgba(229, 99, 254, 0.14), transparent 60%),
        var(--navy);
}

.sky canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */

.glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Buttons ---------- */

.btn {
    --pad: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--pad);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(127, 22, 248, 0.8);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(229, 99, 254, 0.8);
}

.btn-ghost {
    background: var(--glass);
    border-color: var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--glass-strong);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(9, 3, 45, 0.72);
    border-bottom-color: var(--line);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand svg {
    height: 22px;
    width: auto;
}

.brand span {
    font-family: 'Poppins', var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.01em;
    line-height: 1;
}

.brand:hover {
    color: var(--text);
}

.nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass);
    font-family: var(--font-mono);
    font-size: 12px;
}

.lang a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    line-height: 1;
}

.lang a[aria-current='true'] {
    background: var(--glass-strong);
    color: var(--text);
}

.header-actions .btn {
    --pad: 11px 18px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--glass);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 960px) {
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: rgba(9, 3, 45, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
    }

    .nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .header-actions .btn {
        display: none;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    padding: calc(var(--header-h) + 48px) 0 80px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 6.2vw, 80px);
    font-weight: 600;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.hero h1 .line {
    display: block;
}

.hero .lead {
    margin-bottom: 34px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.platform-pills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.dot.web {
    color: var(--web);
}

.dot.ios {
    color: var(--ios);
}

.dot.android {
    color: var(--android);
}

.dot.ok {
    color: var(--ok);
}

/* Orbit visual: the "O" of the logo as a transmitter */

.orbit {
    position: relative;
    aspect-ratio: 1;
    width: min(100%, 560px);
    margin-left: auto;
}

.orbit .ring {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.orbit .r1 {
    width: 36%;
    height: 36%;
    border-color: rgba(229, 99, 254, 0.35);
    box-shadow:
        0 0 80px rgba(127, 22, 248, 0.45),
        inset 0 0 40px rgba(229, 99, 254, 0.25);
}

.orbit .r2 {
    width: 64%;
    height: 64%;
    border-style: dashed;
    animation: spin 60s linear infinite;
}

.orbit .r3 {
    width: 94%;
    height: 94%;
    animation: spin 120s linear infinite reverse;
}

.orbit .core {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
        var(--gradient);
    box-shadow:
        0 0 0 10px rgba(127, 22, 248, 0.12),
        0 0 120px rgba(229, 99, 254, 0.55);
    display: grid;
    place-items: center;
}

.orbit .core svg {
    width: 54%;
    filter: drop-shadow(0 4px 10px rgba(73, 0, 91, 0.6));
}

.orbit .pulse {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    border: 1.5px solid rgba(229, 99, 254, 0.7);
    animation: pulse 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.orbit .pulse:nth-of-type(2) {
    animation-delay: 1.2s;
}

.orbit .pulse:nth-of-type(3) {
    animation-delay: 2.4s;
}

.orbit .node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}

.orbit .node small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.orbit .node .ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.orbit .node .ico svg {
    width: 16px;
    height: 16px;
}

.orbit .n-web {
    top: 34%;
    left: -6%;
}

.orbit .n-ios {
    top: 60%;
    right: -4%;
    animation-delay: -2s;
}

.orbit .n-android {
    bottom: 2%;
    left: 12%;
    animation-delay: -4s;
}

.orbit .n-web .ico {
    color: var(--web);
}

.orbit .n-ios .ico {
    color: var(--ios);
}

.orbit .n-android .ico {
    color: var(--android);
}

.notif {
    position: absolute;
    right: -2%;
    top: 2%;
    width: min(72%, 330px);
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    border-radius: 18px;
    animation: drop 7s ease-in-out infinite;
}

.notif .app-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient);
    display: grid;
    place-items: center;
}

.notif .app-ico svg {
    width: 70%;
}

.notif b {
    display: block;
    font-size: 14px;
}

.notif span {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.notif .meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--faint);
    margin-bottom: 2px;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
}

.scroll-cue i {
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--lilac), transparent);
    animation: cue 2.2s ease-in-out infinite;
    transform-origin: top;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(3.6);
        opacity: 0;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes drop {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes cue {
    0% {
        transform: scaleY(0);
    }

    50% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .hero {
        min-height: auto;
    }

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

    .orbit {
        margin: 0 auto;
        width: min(100%, 440px);
    }

    .orbit .n-ios {
        right: 0;
    }

    .orbit .n-web {
        left: 0;
    }

    .scroll-cue {
        display: none;
    }
}

/* ---------- Sections ---------- */

.section {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
    font-size: clamp(30px, 4.4vw, 54px);
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.center .lead {
    margin-left: auto;
    margin-right: auto;
}

/* Marquee of capabilities */

.marquee {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.015);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee span {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 22px);
    color: var(--muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 48px;
}

.marquee span::after {
    content: '✦';
    color: var(--pink);
    font-size: 0.7em;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Story (sticky scrollytelling) ---------- */

.story {
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
}

.story-steps {
    padding: 10vh 0 20vh;
}

.step {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.28;
    transition: opacity 0.5s ease;
}

.step.is-active {
    opacity: 1;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--lilac);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num::after {
    content: '';
    flex: 0 0 60px;
    height: 1px;
    background: var(--line-strong);
}

.step h3 {
    font-size: clamp(26px, 3vw, 38px);
}

.step p {
    color: var(--muted);
    max-width: 48ch;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 10px;
}

.ticks li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-size: 15.5px;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 2px, transparent 2.5px),
        var(--gradient);
    box-shadow: 0 0 12px rgba(229, 99, 254, 0.5);
}

.story-stage {
    position: sticky;
    top: calc(var(--header-h) + 4vh);
    height: calc(100vh - var(--header-h) - 8vh);
    display: grid;
    place-items: center;
}

.stage-progress {
    position: absolute;
    left: -24px;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: var(--line);
    border-radius: 2px;
}

.stage-progress i {
    position: absolute;
    inset: 0 0 auto;
    height: var(--p, 0%);
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--pink);
}

/* The console: a glass panel mock whose state follows the active step */

.console {
    position: relative;
    width: min(100%, 520px);
    padding: 22px;
}

.console-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--faint);
}

.console-top i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
}

.console-top span {
    margin-left: auto;
}

.wizard-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.wizard-tabs span {
    padding: 8px 6px;
    text-align: center;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--faint);
    border: 1px solid var(--line);
    transition: all 0.4s ease;
}

.console[data-step='1'] .wizard-tabs span:nth-child(-n + 1),
.console[data-step='2'] .wizard-tabs span:nth-child(-n + 2),
.console[data-step='3'] .wizard-tabs span:nth-child(-n + 3),
.console[data-step='4'] .wizard-tabs span:nth-child(-n + 4) {
    color: var(--text);
    border-color: transparent;
    background: rgba(127, 22, 248, 0.35);
}

.panes {
    position: relative;
    min-height: 330px;
}

.pane {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    pointer-events: none;
}

.console[data-step='1'] .pane-1,
.console[data-step='2'] .pane-2,
.console[data-step='3'] .pane-3,
.console[data-step='4'] .pane-4 {
    opacity: 1;
    transform: none;
}

.field-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 8px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.chip.on {
    border-color: rgba(180, 138, 255, 0.55);
    background: rgba(127, 22, 248, 0.18);
}

.audience-count {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
}

.audience-count b {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.audience-count small {
    color: var(--muted);
    font-size: 13px;
}

.preview-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.preview-tabs span {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--muted);
    border: 1px solid var(--line);
}

.preview-tabs span.on {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.mock-notif {
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 34px 1fr 64px;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.mock-notif .app-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gradient);
}

.mock-notif b {
    display: block;
    font-size: 13.5px;
}

.mock-notif span {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

.mock-notif .thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 30% 30%, rgba(229, 99, 254, 0.8), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(74, 144, 232, 0.7), transparent 55%),
        var(--navy-3);
}

.target-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    font-size: 13px;
    color: var(--muted);
}

.target-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--lilac);
}

.target-row code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--lilac-soft);
}

.schedule {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.schedule span {
    padding: 12px 8px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.schedule span.on {
    color: var(--text);
    border-color: rgba(180, 138, 255, 0.55);
    background: rgba(127, 22, 248, 0.18);
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.days span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.days span.on {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.send-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--gradient);
    font-weight: 600;
    font-size: 14px;
}

.send-btn small {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 11.5px;
    opacity: 0.85;
}

.funnel {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.funnel-row {
    display: grid;
    grid-template-columns: 96px 1fr 70px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.funnel-row span:first-child {
    color: var(--muted);
}

.funnel-row b {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bar {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: var(--gradient);
    transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.console[data-step='4'] .bar i {
    width: var(--w);
}

.after-click {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(74, 222, 154, 0.08);
    border: 1px solid rgba(74, 222, 154, 0.25);
    font-size: 13px;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 960px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-stage {
        position: sticky;
        top: var(--header-h);
        height: auto;
        z-index: 2;
        padding: 12px 0;
        order: -1;
    }

    .stage-progress {
        display: none;
    }

    .console {
        padding: 16px;
    }

    .panes {
        min-height: 300px;
    }

    .story-steps {
        padding: 0;
        position: relative;
        z-index: 3;
    }

    .step {
        min-height: auto;
        opacity: 1;
        padding: 28px 22px;
        margin: 0 0 60vh;
        border-radius: var(--radius);
        background: rgba(13, 6, 52, 0.88);
        border: 1px solid var(--line);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .step:last-child {
        margin-bottom: 10vh;
    }
}

/* ---------- Analytics: live event stream ---------- */

.analytics-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.live {
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.live-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.live-head h3 {
    font-size: 18px;
    margin: 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ok);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-badge .dot {
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    50% {
        opacity: 0.25;
    }
}

.live-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
}

.stat small {
    display: block;
    color: var(--muted);
    font-size: 12.5px;
    margin-bottom: 4px;
}

.stat b {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}

.sparks {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 70px;
    margin-bottom: 18px;
}

.sparks i {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, rgba(127, 22, 248, 0.5), rgba(229, 99, 254, 0.9));
    height: var(--h, 20%);
    transition: height 0.6s ease;
}

.stream {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 210px;
    max-height: 250px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12.5px;
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(#000 60%, transparent);
}

.stream li {
    display: grid;
    grid-template-columns: 62px 18px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(180, 138, 255, 0.08);
    animation: streamIn 0.5s ease both;
}

.stream time {
    color: var(--faint);
}

.stream .ev {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream .src {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.stream .src.gs {
    background: rgba(127, 22, 248, 0.3);
    color: var(--lilac-soft);
}

@keyframes streamIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature {
    padding: 22px 22px 20px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
}

.feature .ico,
.card .ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, rgba(127, 22, 248, 0.4), rgba(229, 99, 254, 0.15));
    border: 1px solid var(--line-strong);
    color: var(--lilac-soft);
}

.feature .ico svg,
.card .ico svg {
    width: 20px;
    height: 20px;
}

.feature h3 {
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

@media (max-width: 960px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Platforms ---------- */

.platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.platform {
    position: relative;
    padding: 28px;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

.platform:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.platform::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c), transparent 70%);
    opacity: 0.35;
}

.platform.web {
    --c: var(--web);
}

.platform.ios {
    --c: var(--ios);
}

.platform.android {
    --c: var(--android);
}

.platform .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c);
    margin-bottom: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.platform .badge .dot {
    color: var(--c);
}

.platform h3 {
    font-size: 22px;
}

.platform p {
    color: var(--muted);
    font-size: 15.5px;
}

.platform .ticks li {
    font-size: 14.5px;
}

@media (max-width: 960px) {
    .platforms {
        grid-template-columns: 1fr;
    }
}

/* ---------- Bento ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.card h3 {
    font-size: 20px;
    margin: 18px 0 8px;
    letter-spacing: -0.015em;
}

.card p {
    color: var(--muted);
    font-size: 15.5px;
    margin: 0;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.card-visual {
    margin-top: 22px;
}

.qr-pair {
    display: flex;
    align-items: center;
    gap: 18px;
}

.qr {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.qr svg {
    width: 100%;
    height: 100%;
}

.pair-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--lilac) 0 6px, transparent 6px 12px);
    background-size: 24px 2px;
    animation: dash 1s linear infinite;
}

@keyframes dash {
    to {
        background-position: 24px 0;
    }
}

.phone-mini {
    width: 52px;
    height: 92px;
    border-radius: 12px;
    border: 1.5px solid var(--line-strong);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--ok);
}

.toggles {
    display: grid;
    gap: 10px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    font-size: 14px;
}

.switch {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    flex-shrink: 0;
}

.switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s;
}

.switch.on {
    background: var(--gradient);
}

.switch.on::after {
    transform: translateX(16px);
}

.lang-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-badges span {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 960px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-3,
    .span-4 {
        grid-column: auto;
    }
}

/* ---------- Promise (guarantees) ---------- */

.promise {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.promise div {
    padding: 30px 26px;
    border-right: 1px solid var(--line);
}

.promise div:last-child {
    border-right: 0;
}

.promise b {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.promise p {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0;
}

.promise .k {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--lilac);
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    display: block;
}

@media (max-width: 960px) {
    .promise {
        grid-template-columns: 1fr 1fr;
    }

    .promise div:nth-child(2) {
        border-right: 0;
    }

    .promise div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .promise {
        grid-template-columns: 1fr;
    }

    .promise div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .promise div:last-child {
        border-bottom: 0;
    }
}

/* ---------- Developers ---------- */

.dev {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.code {
    padding: 0;
    overflow: hidden;
}

.code-top {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--faint);
    align-items: center;
}

.code-top i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
}

.code-top span {
    margin-left: 8px;
}

.code pre {
    margin: 0;
    padding: 22px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text);
}

.code .k {
    color: #e563fe;
}

.code .s {
    color: #7ee0b5;
}

.code .c {
    color: var(--faint);
}

.code .f {
    color: #8fb8ff;
}

/* ---------- Packages ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.plan {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.plan.featured {
    border-color: rgba(229, 99, 254, 0.5);
    background: linear-gradient(170deg, rgba(127, 22, 248, 0.22), rgba(255, 255, 255, 0.03));
}

.plan-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lilac);
    min-height: 16px;
    margin-bottom: 10px;
}

.plan h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.plan > p {
    color: var(--muted);
    font-size: 14.5px;
    min-height: 3.2em;
}

.plan dl {
    margin: 10px 0 20px;
    display: grid;
    gap: 0;
}

.plan dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.plan dt {
    color: var(--muted);
}

.plan dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.plan .ticks {
    margin-bottom: 24px;
}

.plan .ticks li {
    font-size: 14px;
}

.plan .btn {
    margin-top: auto;
}

.plans-note {
    margin-top: 22px;
    color: var(--faint);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1100px) {
    .plans {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .plans {
        grid-template-columns: 1fr;
    }
}

/* ---------- CTA ---------- */

.cta {
    position: relative;
    padding: clamp(40px, 7vw, 88px);
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto;
    height: 120%;
    background: radial-gradient(closest-side, rgba(127, 22, 248, 0.45), transparent);
    pointer-events: none;
}

.cta > * {
    position: relative;
}

.cta h2 {
    font-size: clamp(30px, 4.6vw, 58px);
    max-width: 18ch;
    margin: 0 auto 18px;
}

.cta .lead {
    margin: 0 auto 32px;
}

.cta .hero-cta {
    justify-content: center;
    margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 64px 0 40px;
    font-size: 14.5px;
    color: var(--muted);
    background: rgba(5, 1, 28, 0.55);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-grid h4 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-grid a {
    color: var(--muted);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--text);
}

.footer-grid address {
    font-style: normal;
    line-height: 1.7;
}

.footer-brand p {
    max-width: 36ch;
    margin-top: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--faint);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Legal pages ---------- */

.legal-hero {
    padding: calc(var(--header-h) + 64px) 0 40px;
}

.legal-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    max-width: 20ch;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding-bottom: 120px;
    align-items: start;
}

.toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 20px;
    font-size: 14px;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow: auto;
}

.toc h2 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 500;
    margin-bottom: 12px;
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.toc a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.toc a:hover,
.toc a.is-current {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--pink);
}

.legal-doc {
    padding: clamp(24px, 4vw, 48px);
    font-size: 16px;
    line-height: 1.75;
    min-width: 0;
}

.legal-doc h2 {
    font-size: 22px;
    margin: 2.2em 0 0.7em;
    padding-top: 0.2em;
    letter-spacing: -0.01em;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    margin: 1.6em 0 0.5em;
    letter-spacing: 0;
}

.legal-doc p,
.legal-doc li {
    color: #d9d4ec;
}

.legal-doc ul,
.legal-doc ol {
    padding-left: 1.3em;
    margin: 0 0 1.1em;
}

.legal-doc li {
    margin-bottom: 0.45em;
}

.legal-doc strong {
    color: var(--text);
}

.legal-doc .table-wrap {
    overflow-x: auto;
    margin: 0 0 1.4em;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.legal-doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.55;
}

.legal-doc th,
.legal-doc td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.legal-doc th {
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.legal-doc tr:last-child td {
    border-bottom: 0;
}

.legal-doc code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--lilac-soft);
}

.legal-doc .callout {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(127, 22, 248, 0.12);
    border: 1px solid rgba(180, 138, 255, 0.3);
    margin: 0 0 1.4em;
}

.legal-doc .callout p:last-child {
    margin: 0;
}

.legal-others {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-others h2 {
    font-size: 15px;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 500;
    margin: 0 0 14px;
}

.legal-others ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-others a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
}

.legal-others a:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        max-height: none;
    }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

.js .hero .reveal {
    transition-duration: 1.1s;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}

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

@media (max-width: 560px) {
    .notif {
        right: 0;
        top: 0;
        width: 82%;
    }

    .orbit .n-web {
        top: 40%;
    }

    .orbit .n-ios {
        top: 68%;
    }

    .orbit .n-android {
        bottom: -2%;
        left: 4%;
    }

    .orbit .node small {
        display: none;
    }
}
