/* ==========================================================================
   New Byte Order — design system
   ========================================================================== */

/* Dark is the default theme; [data-theme="light"] below remaps the same tokens.
   An inline script in the layout sets the attribute before first paint. */
:root {
    /* palette */
    --ink: #05060c;
    --ink-2: #0a0c17;
    --panel: #10131f;
    --panel-solid: rgba(10, 12, 23, .8);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);

    --text: #eef1f8;
    --text-hi: #fff;
    --muted: #99a1b8;
    --dim: #6f7791;

    /* translucent surfaces */
    --surface: rgba(255, 255, 255, .055);
    --surface-2: rgba(255, 255, 255, .02);
    --surface-hover: rgba(255, 255, 255, .09);
    --nav-bg: rgba(5, 6, 12, .78);
    --nav-panel: rgba(8, 9, 18, .97);
    --cta-veil: rgba(7, 8, 16, .88);
    --grid-line: rgba(255, 255, 255, .035);
    --orb-op: .5;
    --orb-op-3: .3;
    --noise-op: .035;

    --brand: #00e5ff;
    --brand-2: #7c5cff;
    --brand-3: #ff2d95;
    --accent: #4dffb8;

    --grad: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
    --grad-soft: linear-gradient(115deg, rgba(0,229,255,.16), rgba(124,92,255,.16) 55%, rgba(255,45,149,.14));

    /* metrics */
    --nav-h: 74px;
    --radius: 18px;
    --radius-lg: 26px;
    --maxw: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);

    --shadow: 0 24px 70px -28px rgba(0, 0, 0, .9);
    --glow: 0 0 60px -12px rgba(124, 92, 255, .55);
}

[data-theme="light"] {
    --ink: #f5f7fc;
    --ink-2: #e9edf7;
    --panel: #fff;
    --panel-solid: rgba(255, 255, 255, .82);
    --line: rgba(12, 16, 32, .10);
    --line-strong: rgba(12, 16, 32, .19);

    --text: #0c1020;
    --text-hi: #05060c;
    --muted: #4c556f;
    --dim: #6c7590;

    --surface: rgba(255, 255, 255, .72);
    --surface-2: rgba(255, 255, 255, .42);
    --surface-hover: rgba(255, 255, 255, .95);
    --nav-bg: rgba(245, 247, 252, .8);
    --nav-panel: rgba(248, 250, 254, .98);
    --cta-veil: rgba(255, 255, 255, .84);
    --grid-line: rgba(12, 16, 32, .05);
    --orb-op: .3;
    --orb-op-3: .18;
    --noise-op: .02;

    /* the neons need taking down a stop or two to stay legible on white */
    --brand: #0089ad;
    --brand-2: #6338f0;
    --brand-3: #d40f7d;
    --accent: #06996a;

    --grad-soft: linear-gradient(115deg, rgba(0,137,173,.12), rgba(99,56,240,.12) 55%, rgba(212,15,125,.10));

    --shadow: 0 24px 60px -30px rgba(18, 24, 56, .45);
    --glow: 0 0 60px -18px rgba(99, 56, 240, .35);

    color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: .1px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text-hi); }

h1, h2, h3, h4 {
    font-family: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; color: var(--muted); }

::selection { background: var(--brand-2); color: #fff; }

/* --- ambient background ------------------------------------------------- */

.bg-field {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-field::after {
    /* fine grid */
    content: "";
    position: absolute;
    inset: -2px;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--orb-op);
    animation: drift 26s var(--ease) infinite alternate;
}

.orb-1 { width: 640px; height: 640px; top: -240px; left: -140px; background: radial-gradient(circle, #00e5ff, transparent 68%); }
.orb-2 { width: 720px; height: 720px; top: -180px; right: -220px; background: radial-gradient(circle, #7c5cff, transparent 68%); animation-delay: -8s; }
.orb-3 { width: 560px; height: 560px; top: 55%; left: 42%; background: radial-gradient(circle, #ff2d95, transparent 70%); opacity: var(--orb-op-3); animation-delay: -15s; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(70px, 60px, 0) scale(1.18); }
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: var(--noise-op);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- layout primitives -------------------------------------------------- */

.wrap {
    width: min(100% - 44px, var(--maxw));
    margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--grad);
}

.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

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

.stack { display: grid; gap: 24px; }

/* --- buttons ------------------------------------------------------------ */

.btn {
    --btn-bg: var(--grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 0;
    border-radius: 100px;
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: .01em;
    color: #06070d;
    background: var(--btn-bg);
    cursor: pointer;
    position: relative;
    isolation: isolate;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s;
    box-shadow: 0 10px 34px -12px rgba(124, 92, 255, .8);
}

.btn:hover {
    color: #06070d;
    transform: translateY(-3px);
    box-shadow: 0 18px 46px -14px rgba(0, 229, 255, .85);
}

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

.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line-strong);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.btn--ghost:hover {
    color: var(--text-hi);
    background: var(--surface-hover);
    box-shadow: 0 16px 40px -18px rgba(255, 255, 255, .5);
}

.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn--block { width: 100%; }

.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .txtlink:hover .arrow { transform: translateX(4px); }

.txtlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 620;
    font-size: .93rem;
    color: var(--text);
}

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

/* --- glass card --------------------------------------------------------- */

.card {
    position: relative;
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}

.card::before {
    /* cursor spotlight */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .22), transparent 65%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card > * { position: relative; }

/* --- top nav ------------------------------------------------------------ */

.nav {
    position: fixed;
    inset: 0 0 auto;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
    border-bottom: 1px solid transparent;
}

.nav.is-stuck {
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--line);
}

.nav__inner {
    width: min(100% - 44px, var(--maxw));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.16rem;
    margin-right: auto;
}

.brand__word {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    color: var(--text);
    transition: color .25s;
}

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

@media (prefers-reduced-motion: reduce) {
    .brand__word { transition: none; }
}

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav__link {
    display: block;
    padding: 9px 15px;
    border-radius: 100px;
    font-size: .93rem;
    font-weight: 550;
    color: var(--muted);
    transition: color .2s, background .2s;
}

.nav__link:hover, .nav__link.is-active { color: var(--text-hi); background: var(--surface-hover); }

.nav__cta { margin-left: 8px; }

/* --- theme toggle ------------------------------------------------------- */

.theme-toggle {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: color .25s var(--ease), background .25s var(--ease), border-color .25s, transform .35s var(--ease);
}

.theme-toggle:hover { color: var(--text-hi); background: var(--surface-hover); transform: rotate(-18deg); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .3s var(--ease), transform .4s var(--ease); }

/* dark theme shows the sun (the thing you'd switch to), light shows the moon */
.theme-toggle .i-moon { opacity: 0; transform: scale(.5) rotate(-90deg); }
[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: scale(.5) rotate(90deg); }

@media (max-width: 900px) {
    .theme-toggle { margin-left: auto; margin-right: 4px; order: -1; }
}

.nav__burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    place-items: center;
}

.nav__burger span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .2s;
}

.nav__burger span + span { margin-top: 5px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav__burger { display: grid; }

    .nav__links {
        position: fixed;
        inset: var(--nav-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 18px 22px 26px;
        background: var(--nav-panel);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: .3s var(--ease);
    }

    .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
    .nav__link { padding: 13px 15px; font-size: 1rem; }
    .nav__cta { margin: 12px 0 0; }
    .nav__cta .btn { width: 100%; }
}

/* --- hero --------------------------------------------------------------- */

.hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(60px, 8vw, 110px);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(34px, 5vw, 70px);
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 8px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    backdrop-filter: blur(10px);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 26px;
}

.pill b {
    background: var(--grad);
    color: #06070d;
    border-radius: 100px;
    padding: 3px 11px;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hero h1 { margin-bottom: 22px; }

.hero h1 .line { display: block; overflow: hidden; }

.hero h1 .line > span {
    display: block;
    animation: riseIn 1s var(--ease) both;
}

.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }

@keyframes riseIn {
    from { transform: translateY(105%) rotate(3deg); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--dim);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* code panel */

.codewin {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(165deg, rgba(20, 23, 40, .95), rgba(8, 9, 18, .95));
    box-shadow: var(--shadow), var(--glow);
    overflow: hidden;
    backdrop-filter: blur(18px);
    transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
    transition: transform .7s var(--ease);
    animation: floaty 7s ease-in-out infinite;
}

.codewin:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) scale(1.02); }

@keyframes floaty {
    50% { translate: 0 -14px; }
}

.codewin__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.codewin__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3145; }
.codewin__bar i:nth-child(1) { background: #ff5f57; }
.codewin__bar i:nth-child(2) { background: #febc2e; }
.codewin__bar i:nth-child(3) { background: #28c840; }
.codewin__bar em { margin-left: 8px; font-style: normal; font-size: .76rem; color: var(--dim); }

.codewin pre {
    margin: 0;
    padding: 22px 24px 26px;
    font-family: "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;
    font-size: .82rem;
    line-height: 1.85;
    color: #c6cde2;
    overflow-x: auto;
}

.c-key { color: #7c5cff; }
.c-typ { color: #00e5ff; }
.c-str { color: #4dffb8; }
.c-fn  { color: #ffd166; }
.c-cmt { color: #5b6480; font-style: italic; }

.caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    vertical-align: -2px;
    background: var(--brand);
    animation: blink 1.1s steps(2) infinite;
}

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

/* --- marquee ------------------------------------------------------------ */

.marquee {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    border-block: 1px solid var(--line);
    background: var(--surface-2);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: slide 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .05em;
    color: var(--dim);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 56px;
    transition: color .3s;
}

.marquee__track span::after { content: "◆"; font-size: .55rem; color: var(--brand-2); }
.marquee:hover .marquee__track span { color: var(--muted); }

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

/* --- grids -------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Five cards: three across, with the trailing two centred underneath. */
.grid--5 { grid-template-columns: repeat(6, 1fr); }
.grid--5 > * { grid-column: span 2; }
.grid--5 > *:nth-child(4) { grid-column: 2 / span 2; }

@media (max-width: 980px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--5 { grid-template-columns: repeat(4, 1fr); }
    .grid--5 > *, .grid--5 > *:nth-child(4) { grid-column: span 2; }
    .hero__grid { grid-template-columns: 1fr; }
    .codewin { transform: none; }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
    .grid--5 > *, .grid--5 > *:nth-child(4) { grid-column: auto; }
}

/* --- service cards ------------------------------------------------------ */

.svc { display: flex; flex-direction: column; min-height: 100%; }

.svc__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--grad-soft);
    border: 1px solid var(--line-strong);
    margin-bottom: 20px;
    color: var(--brand);
    transition: transform .4s var(--ease), color .3s;
}

.card:hover .svc__icon { transform: rotate(-6deg) scale(1.08); color: var(--text-hi); }
.svc__icon svg { width: 26px; height: 26px; }

.svc h3 { margin-bottom: 10px; }
.svc p { font-size: .95rem; margin-bottom: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }

.tags li {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 5px 11px;
    border-radius: 100px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
}

.svc .txtlink { margin-top: auto; }

/* --- stats -------------------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
}

.stat {
    padding: 34px 26px;
    background: var(--panel-solid);
    text-align: center;
    transition: background .35s;
}

.stat:hover { background: rgba(124, 92, 255, .1); }

.stat b {
    display: block;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    display: block;
    margin-top: 10px;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}

@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- process ------------------------------------------------------------ */

.steps { display: grid; gap: 0; counter-reset: step; }

.step {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: clamp(16px, 4vw, 48px);
    padding: 32px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--line); }

/* The number is always gradient-filled — there is nothing here to interact with, so it no
   longer waits for a hover (which stuck on as a tap highlight on touch devices). */
.step__no {
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1;
    color: transparent;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
}

.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .96rem; max-width: 70ch; }

@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* --- split feature ------------------------------------------------------ */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 66px);
    align-items: center;
}

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

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }

.checks li {
    position: relative;
    padding-left: 34px;
    color: var(--muted);
    font-size: .96rem;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad-soft);
    border: 1px solid var(--line-strong);
}

.checks li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: .62em;
    width: 5px;
    height: 9px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

/* device mock */

.devices { position: relative; display: flex; justify-content: center; gap: 22px; padding: 20px 0; }

.device {
    width: 190px;
    aspect-ratio: 9 / 18.5;
    border-radius: 30px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(170deg, rgba(24,27,46,.95), rgba(8,9,18,.98));
    box-shadow: var(--shadow), 0 0 50px -18px rgba(0, 229, 255, .5);
    padding: 12px 11px;
    position: relative;
    overflow: hidden;
    animation: floaty 8s ease-in-out infinite;
}

.device:nth-child(2) { animation-delay: -3s; transform: translateY(26px); }

.device::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    translate: -50% 0;
    width: 52px;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .16);
}

.device__screen {
    height: 100%;
    border-radius: 21px;
    background: radial-gradient(120% 80% at 20% 0%, rgba(124,92,255,.35), transparent 60%), #0b0d18;
    padding: 26px 13px 13px;
    display: grid;
    gap: 9px;
    align-content: start;
}

.device__screen i {
    display: block;
    height: 9px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .1);
}

.device__screen i:nth-child(1) { width: 62%; height: 15px; background: var(--grad); }
.device__screen i:nth-child(2) { width: 88%; }
.device__screen i:nth-child(3) { width: 74%; }
.device__screen i.blk { height: 52px; width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.device__screen i.pill-b { width: 55%; height: 22px; border-radius: 100px; background: rgba(0, 229, 255, .25); }

@media (max-width: 520px) {
    .device { width: 150px; }
}

/* --- testimonials ------------------------------------------------------- */

.quote { display: flex; flex-direction: column; height: 100%; }

.quote__mark {
    font-family: Georgia, serif;
    font-size: 3.4rem;
    line-height: .8;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.quote p { color: var(--text); font-size: 1rem; margin-bottom: 22px; }

.quote__by { margin-top: auto; display: flex; align-items: center; gap: 12px; }

.avatar {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #06070d;
    font-weight: 750;
    font-size: .88rem;
}

.quote__by b { display: block; font-size: .92rem; font-weight: 620; }
.quote__by span { font-size: .8rem; color: var(--dim); }

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

.cta {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 76px);
    text-align: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: linear-gradient(140deg, rgba(0,229,255,.14), rgba(124,92,255,.16) 50%, rgba(255,45,149,.13));
    box-shadow: var(--shadow);
}

.cta::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent 0 62%, rgba(0,229,255,.35) 76%, rgba(255,45,149,.35) 88%, transparent 100%);
    animation: spin 14s linear infinite;
    opacity: .5;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--cta-veil);
    backdrop-filter: blur(30px);
}

.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { margin-inline: auto; max-width: 56ch; }
.cta .hero__cta { justify-content: center; }

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

/* --- forms -------------------------------------------------------------- */

.field { display: grid; gap: 7px; margin-bottom: 18px; }

.field label {
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
}

.field input, .field textarea, .field select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--panel); color: var(--text); }

.field textarea { resize: vertical; min-height: 138px; }

.field input::placeholder, .field textarea::placeholder { color: #59617a; }

.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface-hover);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

.field .text-danger, .field-validation-error {
    font-size: .82rem;
    color: #ff7a9c;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.input-validation-error { border-color: #ff7a9c !important; }

.validation-summary-errors { display: none; }

.alert {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 255, 184, .35);
    background: rgba(77, 255, 184, .08);
    margin-bottom: 26px;
}

.alert--error {
    border-color: color-mix(in srgb, var(--brand-3) 35%, transparent);
    background: color-mix(in srgb, var(--brand-3) 8%, transparent);
}

.alert svg { flex: none; color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.alert--error svg { color: var(--brand-3); }
.alert b { display: block; margin-bottom: 3px; }
.alert p { margin: 0; font-size: .93rem; }

/* --- contact side ------------------------------------------------------- */

.contact-item { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }

.contact-item svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 4px; }
.contact-item b { display: block; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); font-weight: 650; }
.contact-item a, .contact-item span { color: var(--text); font-size: .98rem; }

/* --- faq ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 1.04rem;
    font-weight: 620;
    transition: color .2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }

.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--brand);
    transition: transform .3s var(--ease), background .3s;
}

.faq details[open] summary::after { transform: rotate(135deg); background: rgba(0, 229, 255, .12); }
.faq details p { padding: 0 4px 22px; margin: 0; max-width: 82ch; font-size: .96rem; }

/* --- footer ------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--line);
    padding: clamp(46px, 6vw, 72px) 0 32px;
    background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .06));
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 34px;
    padding-bottom: 40px;
}

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

.footer h4 {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 16px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .93rem; }
.footer ul a:hover { color: var(--text-hi); }
.footer p { font-size: .93rem; max-width: 40ch; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--dim);
}

.footer__bottom a { color: var(--dim); }
.footer__bottom a:hover { color: var(--text-hi); }

.socials { display: flex; gap: 9px; }

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: .25s var(--ease);
}

.socials a:hover { color: #fff; border-color: transparent; background: var(--grad); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* --- page header (inner pages) ------------------------------------------ */

.pagehead {
    padding: calc(var(--nav-h) + clamp(50px, 7vw, 84px)) 0 clamp(34px, 5vw, 56px);
    position: relative;
}

.pagehead h1 { max-width: 16ch; }
.pagehead .lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); }

.crumbs { font-size: .84rem; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--brand); }

/* --- scroll reveal ------------------------------------------------------ */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* --- misc --------------------------------------------------------------- */

.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: .5em; }
.prose { max-width: 78ch; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- light-theme corrections -------------------------------------------- */

/* The code window and phone mockups stay dark in both themes — real editors and
   phones are dark, and it keeps the neon gradients somewhere to live. Local
   token overrides do that without duplicating any component rules. */
.codewin, .device {
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --surface: rgba(255, 255, 255, .055);
    --surface-2: rgba(255, 255, 255, .03);
    --surface-hover: rgba(255, 255, 255, .09);
    --text: #eef1f8;
    --muted: #99a1b8;
    --dim: #6f7791;
}

/* The light palette darkens the gradient, so gradient-filled chips need light text. */
[data-theme="light"] .btn,
[data-theme="light"] .btn:hover,
[data-theme="light"] .pill b,
[data-theme="light"] .avatar { color: #fff; }

[data-theme="light"] .btn--ghost { color: var(--text); }
[data-theme="light"] .btn--ghost:hover { color: var(--text-hi); }

[data-theme="light"] .btn { box-shadow: 0 10px 30px -14px rgba(99, 56, 240, .7); }
[data-theme="light"] .btn:hover { box-shadow: 0 18px 40px -16px rgba(0, 137, 173, .7); }

[data-theme="light"] .alert {
    border-color: rgba(6, 153, 106, .35);
    background: rgba(6, 153, 106, .09);
}

[data-theme="light"] .card::before {
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 56, 240, .12), transparent 65%);
}

[data-theme="light"] .cta {
    background: linear-gradient(140deg, rgba(0,137,173,.16), rgba(99,56,240,.18) 50%, rgba(212,15,125,.15));
}

[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(99, 56, 240, .05)); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] { opacity: 1; transform: none; }
}
