/* =========================================================================
   PLAYNSOFT — marketing site design system
   Dark indigo. Depth comes from gradient borders, blurred indigo light and
   animated gradient type rather than flat surfaces.
   ========================================================================= */

/* ---------- Fonts ------------------------------------------------------- */
@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
    --bg: #040613;

    --gray-950: #030712;
    --gray-900: #101828;
    --gray-800: #1e2939;
    --gray-700: #364153;
    --gray-600: #4a5565;
    --gray-500: #6a7282;
    --gray-400: #99a1af;
    --gray-300: #d1d5dc;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --indigo-200: #c6d2ff;
    --indigo-300: #a3b3ff;
    --indigo-400: #7c86ff;
    --indigo-500: #615fff;
    --indigo-600: #4f39f6;

    --text: var(--gray-200);
    --muted: rgb(198 210 255 / 0.65);
    --muted-dim: rgb(198 210 255 / 0.4);

    --font-display: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fast: 0.15s;
    --slow: 0.6s;

    --container: 1152px;
    --gutter: 24px;
    --nav-h: 64px;

    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 24px;

    /* Fading hairline used for every rule and divider on the page. */
    --rule: linear-gradient(to right, transparent, rgb(148 163 184 / 0.25), transparent);
    --rule-v: linear-gradient(to bottom, transparent, rgb(148 163 184 / 0.25), transparent);
}

/* ---------- Reset ------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    /* Clipped here, not on body: `overflow-x: hidden` on body turns body into
       the scroll container, which breaks the fixed header while scrolling. */
    overflow-x: clip;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.53;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img,
svg,
video {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}
button {
    background: none;
    border: 0;
    cursor: pointer;
}
ul,
ol {
    list-style: none;
}
::selection {
    background: rgb(97 95 255 / 0.35);
}
:focus-visible {
    outline: 2px solid var(--indigo-400);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Typography -------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    text-wrap: balance;
}
.h1,
h1 {
    font-size: clamp(36px, 6.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.0268em;
}
.h2,
h2 {
    font-size: clamp(28px, 4.6vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.0268em;
}
.h3,
h3 {
    font-size: 16px;
    line-height: 1.53;
    letter-spacing: -0.0117em;
    color: var(--gray-200);
}

/* Headline treatment: a wide gradient slowly panning across the type. */
.grad-text {
    background-image: linear-gradient(
        to right,
        var(--gray-200),
        var(--indigo-200),
        var(--gray-50),
        var(--indigo-300),
        var(--gray-200)
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient 6s linear infinite;
}
@keyframes gradient {
    to {
        background-position: 200% center;
    }
}

/* Short indigo-to-light run, used on eyebrow labels. */
.grad-inline {
    display: inline-flex;
    background-image: linear-gradient(to right, var(--indigo-500), var(--indigo-200));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}
.body-muted {
    color: var(--muted);
    text-wrap: pretty;
}

/* Eyebrow flanked by two short fading hairlines. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}
.eyebrow::before,
.eyebrow::after {
    content: '';
    height: 1px;
    width: 32px;
    flex: none;
}
.eyebrow::before {
    background: linear-gradient(to right, transparent, rgb(198 210 255 / 0.5));
}
.eyebrow::after {
    background: linear-gradient(to left, transparent, rgb(198 210 255 / 0.5));
}
/* Left-aligned variant drops the leading rule. */
.eyebrow--start::before {
    display: none;
}

.num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--indigo-300);
    font-variant-numeric: tabular-nums;
}

/* ---------- Layout ------------------------------------------------------ */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section {
    position: relative;
    padding-block: clamp(56px, 8vw, 96px);
}
.section--tight {
    padding-block: clamp(40px, 5vw, 64px);
}
/* Sections are separated by a fading rule rather than a hard edge. */
.section--ruled {
    border-top: 1px solid transparent;
    border-image: var(--rule) 1;
}
.section-head {
    max-width: 640px;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head .eyebrow {
    margin-bottom: 14px;
}
.section-head h2 + .lead {
    margin-top: 18px;
}
.divider {
    height: 1px;
    border: 0;
    background: var(--rule);
}

/* The illustration is wider than the viewport by design; `clip` contains it
   without creating a scroll container (so it cannot widen the document). */
main {
    position: relative;
    overflow-x: clip;
}

/* Page illustration — blurred indigo light behind the top of the page. */
.page-illustration {
    position: absolute;
    left: 50%;
    top: -80px;
    z-index: -10;
    transform: translateX(-28%);
    pointer-events: none;
    opacity: 0.85;
}
.page-illustration img {
    max-width: none;
}
@media (max-width: 767px) {
    .page-illustration {
        transform: translateX(-50%) scale(0.9);
        opacity: 0.6;
    }
}

/* Soft indigo pool anchored to a section. */
.glow {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 560px;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
        50% 100% at 50% 0%,
        rgb(97 95 255 / 0.13) 0%,
        rgb(97 95 255 / 0.04) 42%,
        transparent 72%
    );
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    /* The gradient is anchored to the bottom and grown on hover, which lifts
       the lighter stop up through the button instead of cross-fading. */
    background-size: 100% 100%;
    background-position: bottom;
    transition: all var(--fast) var(--ease);
}
.arrow {
    flex: none;
}
.btn .arrow {
    opacity: 0.55;
    transition: transform var(--fast) var(--ease);
}
.btn:hover .arrow {
    transform: translateX(2px);
}

.btn--primary {
    background-image: linear-gradient(to top, var(--indigo-600), var(--indigo-500));
    color: #fff;
    box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.16);
}
.btn--primary:hover {
    background-size: 100% 150%;
}

.btn--ghost {
    position: relative;
    background-image: linear-gradient(to bottom, var(--gray-800), rgb(30 41 57 / 0.6));
    color: var(--gray-300);
}
/* Gradient hairline border, painted into the border box only. */
.btn--ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(to right, var(--gray-800), var(--gray-700), var(--gray-800)) border-box;
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}
.btn--ghost:hover {
    background-size: 100% 150%;
}

.btn--lg {
    padding: 13px 22px;
    font-size: 15px;
}
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-row--center {
    justify-content: center;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--indigo-300);
    transition: color var(--fast) var(--ease);
}
.link-arrow:hover {
    color: var(--indigo-200);
}
.link-arrow .arrow {
    transition: transform var(--fast) var(--ease);
}
.link-arrow:hover .arrow {
    transform: translateX(3px);
}

/* ---------- Pills & badges ---------------------------------------------- */
.pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--gray-800), rgb(30 41 57 / 0.6));
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--indigo-200);
}
.pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(to right, var(--gray-800), var(--gray-700), var(--gray-800)) border-box;
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}
.pill .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--indigo-400);
    box-shadow: 0 0 8px 1px rgb(124 134 255 / 0.8);
    flex: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgb(54 65 83 / 0.7);
    border-radius: var(--r-sm);
    background: rgb(30 41 57 / 0.4);
    font-size: 13px;
    color: var(--muted);
    transition: all var(--fast) var(--ease);
}
.tag:hover {
    border-color: var(--indigo-500);
    color: var(--indigo-200);
}

/* ---------- Spotlight cards --------------------------------------------- *
   The group tracks the pointer and exposes it as --mouse-x/--mouse-y. Each
   card paints two blurred indigo circles at that point: one under the 1px
   border shell (lighting the border), one above it (lighting the surface).  */
.spotlight {
    position: relative;
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1px;
    border-radius: var(--r-xl);
    background: var(--gray-800);
    overflow: hidden;
}
.card::before,
.card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    translate: var(--mouse-x) var(--mouse-y);
}
/* Border light — visible whenever the pointer is anywhere in the group. */
.card::before {
    left: -160px;
    top: -160px;
    width: 320px;
    height: 320px;
    z-index: 10;
    background: rgb(97 95 255 / 0.8);
}
/* Surface light — only for the card actually under the pointer. */
.card::after {
    left: -192px;
    top: -192px;
    width: 256px;
    height: 256px;
    z-index: 30;
    background: var(--indigo-500);
}
.spotlight:hover .card::before {
    opacity: 1;
}
.card:hover::after {
    opacity: 0.2;
}
.card__inner {
    position: relative;
    z-index: 20;
    height: 100%;
    padding: 24px;
    border-radius: inherit;
    background: var(--gray-950);
    overflow: hidden;
}
.card__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgb(16 24 40 / 0.5),
        rgb(30 41 57 / 0.25),
        rgb(16 24 40 / 0.5)
    );
    pointer-events: none;
}
.card__inner > * {
    position: relative;
    z-index: 1;
}
.card h3 {
    margin-bottom: 8px;
}
.card p {
    color: var(--muted);
    font-size: 14.5px;
    text-wrap: pretty;
}
.card__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--r-md);
    background: linear-gradient(to bottom, var(--gray-800), rgb(30 41 57 / 0.6));
    box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.08);
    color: var(--indigo-300);
}
.card__icon svg {
    width: 17px;
    height: 17px;
}

/* ---------- Product frame (browser chrome) ------------------------------ */
.frame {
    position: relative;
    border-radius: var(--r-lg);
    background: var(--gray-800);
    padding: 1px;
    box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.9);
}
.frame__inner {
    border-radius: inherit;
    background: var(--gray-950);
    overflow: hidden;
}
.frame__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding-inline: 12px;
    border-bottom: 1px solid rgb(54 65 83 / 0.6);
    background: rgb(16 24 40 / 0.8);
}
.frame__bar .knob {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--indigo-500);
    box-shadow: 0 0 8px 1px rgb(97 95 255 / 0.6);
    flex: none;
}
.frame__url {
    flex: 1;
    min-width: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgb(30 41 57 / 0.6);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-dim);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.frame__body {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.frame__body img {
    width: 100%;
    height: auto;
}

/* Floating UI fragments layered over a main capture. */
.float {
    position: absolute;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--gray-800);
    padding: 1px;
    box-shadow: 0 24px 50px -12px rgb(0 0 0 / 0.95);
    transition: transform var(--slow) var(--ease);
}
.float img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--r-lg) - 1px);
}

/* ---------- Logo marquee ------------------------------------------------ */
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}
.marquee__group {
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
    padding-right: clamp(40px, 6vw, 72px);
    flex: none;
}
.marquee__group img {
    height: 22px;
    width: auto;
    /* Provider marks ship as dark artwork for light backgrounds. */
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: opacity var(--fast) var(--ease);
}
.marquee__group img:hover {
    opacity: 1;
}
@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Bento ------------------------------------------------------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.bento > * {
    grid-column: span 6;
}
.bento__cell {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1px;
    border-radius: var(--r-xl);
    background: var(--gray-800);
    overflow: hidden;
}
.bento__cell::before,
.bento__cell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    translate: var(--mouse-x) var(--mouse-y);
}
.bento__cell::before {
    left: -160px;
    top: -160px;
    width: 320px;
    height: 320px;
    z-index: 10;
    background: rgb(97 95 255 / 0.8);
}
.bento__cell::after {
    left: -192px;
    top: -192px;
    width: 256px;
    height: 256px;
    z-index: 30;
    background: var(--indigo-500);
}
.spotlight:hover .bento__cell::before {
    opacity: 1;
}
.bento__cell:hover::after {
    opacity: 0.2;
}
.bento__inner {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: inherit;
    background: var(--gray-950);
    overflow: hidden;
}
.bento__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgb(16 24 40 / 0.5),
        rgb(30 41 57 / 0.25),
        rgb(16 24 40 / 0.5)
    );
    pointer-events: none;
}
.bento__text {
    position: relative;
    z-index: 1;
    padding: 24px;
}
.bento__text .eyebrow {
    margin-bottom: 12px;
}
.bento__text p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14.5px;
    text-wrap: pretty;
}
.bento__media {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 0 24px 24px;
}
/* Captures vary wildly in aspect ratio, so each sits in a fixed-height
   window and is cropped from the top rather than driving the row height. */
.bento__shot {
    overflow: hidden;
    border: 1px solid rgb(54 65 83 / 0.6);
    border-radius: var(--r-md);
}
.bento__shot img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--slow) var(--ease);
}
.bento__cell:hover .bento__shot img {
    transform: scale(1.035);
}
.bento__media--bleed {
    padding: 0 0 0 24px;
}
.bento__media--bleed .bento__shot {
    border-radius: var(--r-md) 0 0 0;
    border-right: 0;
    border-bottom: 0;
}
.bento__media--bleed .bento__shot img {
    height: 300px;
    object-position: top left;
}
@media (max-width: 959px) {
    .bento__shot img,
    .bento__media--bleed .bento__shot img {
        height: clamp(180px, 34vw, 280px);
    }
}
/* Below this the narrow cells crop the landscape captures into illegible
   slivers, so the bento stays single-column. */
@media (min-width: 960px) {
    .bento .span-3 {
        grid-column: span 3;
    }
    .bento .span-2 {
        grid-column: span 2;
    }
    .bento .span-4 {
        grid-column: span 4;
    }
}

/* ---------- Grids ------------------------------------------------------- */
.grid {
    display: grid;
    gap: 16px;
}
.grid--2 {
    grid-template-columns: 1fr;
}
.grid--3 {
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .grid--2,
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Checklist --------------------------------------------------- */
.checklist {
    display: grid;
    gap: 12px;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--muted);
}
.checklist li strong {
    color: var(--gray-200);
    font-weight: 500;
}
.checklist svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 3px;
    color: var(--indigo-400);
}

/* ---------- Showcase rows ----------------------------------------------- */
.showcase {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}
@media (min-width: 960px) {
    .showcase {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: clamp(40px, 5vw, 72px);
    }
    /* Reordering alone would drop the capture into the narrow column, so the
       track widths are mirrored too. */
    .showcase--flip {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
    .showcase--flip .showcase__media {
        order: -1;
    }
}
.showcase__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

/* Left rule with a light that travels down it. */
.shine-border {
    position: relative;
    padding-left: 28px;
    border-left: 1px solid transparent;
    border-image: var(--rule-v) 1;
}
.shine-border::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 16px;
    transform-origin: bottom;
    background: linear-gradient(
        180deg,
        transparent,
        rgb(97 95 255 / 0.5) 25%,
        var(--indigo-500) 50%,
        rgb(97 95 255 / 0.5) 75%,
        transparent
    );
    opacity: 0;
    animation: shine 5s ease-in-out 500ms infinite;
}
@keyframes shine {
    0% {
        top: 0;
        transform: scaleY(5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    20% {
        top: 100%;
        transform: scaleY(10);
        opacity: 0;
    }
    100% {
        top: 100%;
        transform: scaleY(1);
        opacity: 0;
    }
}

.showcase__copy h2 {
    margin-bottom: 18px;
}
.showcase__copy .lead {
    margin-bottom: 28px;
}
.showcase__copy .checklist {
    margin-bottom: 32px;
}
.showcase__media {
    position: relative;
    min-width: 0;
}

/* ---------- Stats ------------------------------------------------------- */
.stats {
    padding: 1px;
    border-radius: var(--r-xl);
    background: var(--gray-800);
    overflow: hidden;
}
.stats__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: inherit;
    background: var(--gray-950);
    overflow: hidden;
}
@media (min-width: 768px) {
    .stats__inner {
        grid-template-columns: repeat(3, 1fr);
    }
}
.stat {
    padding: 26px 22px;
    border-right: 1px solid rgb(54 65 83 / 0.5);
    border-bottom: 1px solid rgb(54 65 83 / 0.5);
    transition: background var(--slow) var(--ease);
}
.stat:hover {
    background: rgb(30 41 57 / 0.35);
}
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.0268em;
    font-variant-numeric: tabular-nums;
    background-image: linear-gradient(to right, var(--gray-50), var(--indigo-200));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.stat__label {
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--muted);
}
.stats__inner .stat:nth-child(2n) {
    border-right: 0;
}
.stats__inner .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
}
@media (min-width: 768px) {
    .stats__inner .stat:nth-child(2n) {
        border-right: 1px solid rgb(54 65 83 / 0.5);
    }
    .stats__inner .stat:nth-child(3n) {
        border-right: 0;
    }
    .stats__inner .stat:nth-last-child(-n + 3) {
        border-bottom: 0;
    }
}

/* ---------- Tabs -------------------------------------------------------- */
.tabs {
    position: relative;
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: var(--r-lg);
    background: linear-gradient(to bottom, var(--gray-800), rgb(30 41 57 / 0.6));
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}
.tab {
    padding: 9px 16px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--muted);
    white-space: nowrap;
    transition: all var(--fast) var(--ease);
}
.tab:hover {
    color: var(--indigo-200);
}
.tab[aria-selected='true'] {
    background-image: linear-gradient(to top, var(--indigo-600), var(--indigo-500));
    box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.16);
    color: #fff;
}
.tabpanel[hidden] {
    display: none;
}
.tabpanel {
    animation: fade-in var(--slow) var(--ease);
}
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* ---------- Header ------------------------------------------------------ */
.header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: all var(--slow) var(--ease);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}
/* The bar itself is a floating pill once the page scrolls. */
.header.is-stuck .header__inner::before {
    content: '';
    position: absolute;
    inset: -10px calc(var(--gutter) * -0.5);
    border-radius: var(--r-lg);
    background: rgb(4 6 19 / 0.7);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    border-image: var(--rule) 1;
    z-index: -1;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
}
.brand img {
    width: 22px;
    height: auto;
}
.brand span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--gray-50);
}
.nav {
    display: none;
    margin-inline: auto;
}
.nav ul {
    display: flex;
    gap: 4px;
}
.nav a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--muted);
    transition: color var(--fast) var(--ease);
}
.nav a:hover {
    color: var(--indigo-200);
}
.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
/* On narrow screens the CTA would push the bar past the viewport; the mobile
   menu carries its own full-width CTA instead. */
@media (max-width: 600px) {
    .header__actions > .btn {
        display: none;
    }
}
@media (min-width: 1024px) {
    .nav {
        display: block;
    }
    .header__actions {
        margin-left: 0;
    }
}

/* Language switch */
.lang {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    gap: 2px;
    border-radius: var(--r-md);
    background: linear-gradient(to bottom, var(--gray-800), rgb(30 41 57 / 0.6));
}
.lang a {
    display: block;
    padding: 4px 9px;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted-dim);
    transition: all var(--fast) var(--ease);
}
.lang a:hover {
    color: var(--indigo-200);
}
.lang a[aria-current='true'] {
    background-image: linear-gradient(to top, var(--indigo-600), var(--indigo-500));
    box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 0.16);
    color: #fff;
}

/* Mobile menu */
.burger {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    background: linear-gradient(to bottom, var(--gray-800), rgb(30 41 57 / 0.6));
    color: var(--gray-300);
    transition: color var(--fast) var(--ease);
}
.burger:hover {
    color: var(--indigo-200);
}
.burger svg {
    width: 17px;
    height: 17px;
}
.burger .icon-close {
    display: none;
}
.burger[aria-expanded='true'] .icon-open {
    display: none;
}
.burger[aria-expanded='true'] .icon-close {
    display: block;
}
@media (min-width: 1024px) {
    .burger {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 55;
    background: rgb(4 6 19 / 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid transparent;
    border-image: var(--rule) 1;
    padding: 20px var(--gutter) 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity var(--fast) var(--ease),
        transform var(--fast) var(--ease),
        visibility var(--fast) var(--ease);
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.mobile-menu ul {
    display: grid;
    gap: 2px;
    margin-bottom: 24px;
}
/* Scoped to the list so it cannot override the CTA button's own display. */
.mobile-menu ul a {
    display: block;
    padding: 13px 12px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--gray-200);
    border-bottom: 1px solid transparent;
    border-image: var(--rule) 1;
    transition: color var(--fast) var(--ease);
}
.mobile-menu ul a:hover {
    color: var(--indigo-200);
}
.mobile-menu .btn {
    width: 100%;
}
@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 88px));
    padding-bottom: clamp(56px, 7vw, 80px);
}
.hero__copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}
.hero__copy .pill {
    margin-bottom: 24px;
}
.hero__copy .lead {
    margin: 22px auto 32px;
    max-width: 580px;
    font-size: 19px;
}
.hero__stage {
    position: relative;
    margin-top: clamp(48px, 7vw, 80px);
}
.hero__floats {
    display: none;
}
@media (min-width: 1100px) {
    .hero__floats {
        display: block;
    }
    .hero__float--slip {
        position: absolute;
        width: 186px;
        right: -60px;
        top: 12%;
        z-index: 2;
    }
    .hero__float--kpi {
        position: absolute;
        width: 360px;
        left: -72px;
        bottom: -36px;
        z-index: 2;
    }
    .hero__stage:hover .hero__float--slip {
        transform: translateY(-8px);
    }
    .hero__stage:hover .hero__float--kpi {
        transform: translateY(8px);
    }
}

/* ---------- Contact form ------------------------------------------------ */
.form {
    display: grid;
    gap: 14px;
}
.form__row {
    display: grid;
    gap: 14px;
}
@media (min-width: 640px) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}
.field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
.field input,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgb(16 24 40 / 0.6);
    border: 1px solid var(--gray-700);
    border-radius: var(--r-sm);
    font-size: 14.5px;
    color: var(--gray-100);
    transition: all var(--fast) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-dim);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgb(97 95 255 / 0.15);
}
.field textarea {
    resize: vertical;
    min-height: 128px;
}
.form__status {
    font-size: 14px;
    min-height: 21px;
}
.form__status[data-state='error'] {
    color: #ff9a9a;
}
.form__status[data-state='success'] {
    color: #86efac;
}

/* ---------- CTA band ---------------------------------------------------- */
.cta-band {
    position: relative;
    padding: 1px;
    border-radius: var(--r-2xl);
    background: var(--gray-800);
    overflow: hidden;
}
.cta-band__inner {
    position: relative;
    border-radius: inherit;
    background: var(--gray-950);
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    text-align: center;
    overflow: hidden;
}
.cta-band__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 130% at 50% 0%, rgb(97 95 255 / 0.22), transparent 62%);
    pointer-events: none;
}
.cta-band__inner > * {
    position: relative;
}
.cta-band .lead {
    margin: 18px auto 32px;
    max-width: 540px;
}

/* ---------- Footer ------------------------------------------------------ */
.footer {
    border-top: 1px solid transparent;
    border-image: var(--rule) 1;
    padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer__top {
    display: grid;
    gap: 40px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .footer__top {
        grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}
.footer__about {
    max-width: 320px;
}
.footer__about .brand {
    margin-bottom: 16px;
}
.footer__about p {
    color: var(--muted);
    font-size: 14px;
    text-wrap: pretty;
}
.footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-200);
    margin-bottom: 16px;
}
.footer__col ul {
    display: grid;
    gap: 10px;
}
.footer__col a {
    font-size: 14px;
    color: var(--muted);
    transition: color var(--fast) var(--ease);
}
.footer__col a:hover {
    color: var(--indigo-200);
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid transparent;
    border-image: var(--rule) 1;
    font-size: 13px;
    color: var(--muted-dim);
}

/* ---------- Scroll reveal ----------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity var(--slow) var(--ease),
        transform var(--slow) var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal[data-delay='1'] {
    transition-delay: 100ms;
}
.reveal[data-delay='2'] {
    transition-delay: 200ms;
}
.reveal[data-delay='3'] {
    transition-delay: 300ms;
}
.reveal[data-delay='4'] {
    transition-delay: 400ms;
}

/* ---------- Utilities --------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--indigo-500);
    color: #fff;
    border-radius: var(--r-md);
    font-size: 14px;
    transition: top var(--fast) var(--ease);
}
.skip-link:focus {
    top: 12px;
}

/* ---------- Reduced motion ---------------------------------------------- */
@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;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .marquee__track,
    .grad-text,
    .shine-border::after {
        animation: none;
    }
    .grad-text {
        background-position: 25% center;
    }
}
