/* =================================================================
   SHOOLIN INFOCOM — design system
   Dark, premium, infrastructure-grade. Inspired by the reference.

   ┌──────────────────────────────────────────────────────────────┐
   │  ►►  BRAND COLOUR  ◄◄                                          │
   │  Change ONLY --brand and --brand-2 below to match the logo.   │
   │  Everything else (buttons, glows, gradients, links, the logo  │
   │  mark) is derived from these two values automatically.        │
   └──────────────────────────────────────────────────────────────┘
   ================================================================= */

:root {
    /* ►► THE TWO BRAND COLOURS — taken from the Shoolin Infocom logo ◄◄ */
    --brand:   #1f78d1;   /* azure  — the "1", swoosh, INFOCOM, IoT nodes */
    --brand-2: #45a8ef;   /* lighter azure highlight / gradient end       */
    --navy:    #14295a;   /* deep navy — the "S" and SHOOLIN wordmark     */
    --brand-deep: #1763b8;/* darker azure — keeps white text ≥AA on gradients */

    /* Dark surfaces (subtly navy-tinted to harmonise with the logo) */
    --bg:        #080d1b;
    --bg-soft:   #0c1426;
    --surface:   #111b33;
    --surface-2: #17233f;
    --border:    rgba(255, 255, 255, .08);
    --border-2:  rgba(255, 255, 255, .14);

    /* Text */
    --text:    #e9eef7;
    --heading: #ffffff;
    --muted:   #9aa7bd;
    --faint:   #8a96ac;   /* lightened to pass WCAG AA on dark surfaces */

    /* Derived brand tints (cascade from --brand) */
    --brand-soft:   color-mix(in srgb, var(--brand) 14%, transparent);
    --brand-line:   color-mix(in srgb, var(--brand) 35%, transparent);
    --brand-glow:   color-mix(in srgb, var(--brand) 45%, transparent);
    --brand-ink:    #5096db;   /* static fallback for browsers without color-mix() — recompute if --brand changes */
    --brand-ink:    color-mix(in srgb, var(--brand) 78%, white);
    --on-brand:     #ffffff;
    --gradient:     linear-gradient(120deg, var(--brand), var(--brand-deep));

    --success: #34d399;
    --warn:    #fbbf24;

    /* Shape & motion */
    --radius:    14px;
    --radius-lg: 22px;
    --container: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ----------------------------------------------------------------- *
   Reset & base
 * ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16.5px;
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient brand glow behind the page */
body::before {
    content: "";
    position: fixed;
    inset: -20% -20% auto -20%;
    height: 720px;
    background:
        radial-gradient(60% 60% at 75% 0%, var(--brand-soft), transparent 70%),
        radial-gradient(50% 50% at 15% 10%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    color: var(--heading);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 800;
}

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; position: relative; z-index: 1; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--brand); color: var(--on-brand);
    padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 17px; height: 17px; }

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ----------------------------------------------------------------- *
   Buttons
 * ----------------------------------------------------------------- */
.btn {
    --pad: 13px 22px;
    display: inline-flex; align-items: center; gap: 9px;
    padding: var(--pad);
    border-radius: 11px;
    font-weight: 600;
    font-size: .98rem;
    border: 1px solid transparent;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease),
                background .25s, border-color .25s, color .2s;
    white-space: nowrap;
}
.btn--sm { --pad: 9px 16px; font-size: .9rem; border-radius: 9px; }
.btn--lg { --pad: 16px 28px; font-size: 1.04rem; }

.btn--primary {
    background: var(--gradient);
    color: var(--on-brand);
    box-shadow: 0 12px 30px -12px var(--brand-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--brand-glow); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); color: #fff; transform: translateY(-2px); }

.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--sm, .btn:hover .icon { transform: translateX(3px); }

/* ----------------------------------------------------------------- *
   Header / nav
 * ----------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }

/* Top utility bar — collapses once the page is scrolled */
.topbar {
    overflow: hidden; max-height: 46px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--navy) 34%, var(--bg));
    transition: max-height .35s var(--ease), opacity .3s, border-color .3s;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; font-size: .82rem; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a, .topbar__meta span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); transition: color .2s; }
.topbar__contact a:hover { color: #fff; }
.topbar__meta { display: flex; align-items: center; gap: 20px; }
.topbar__hours { color: var(--faint); }
.topbar__social { display: inline-flex; gap: 12px; }
.topbar__social a { display: inline-flex; color: var(--muted); transition: color .2s, transform .2s; }
.topbar__social a:hover { color: var(--brand-ink); transform: translateY(-1px); }
.icon--xs { width: 14px; height: 14px; }
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }

.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand-link { display: inline-flex; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px var(--brand-glow)); transition: transform .3s var(--ease); }
.brand-link:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; align-items: baseline; gap: 7px; font-weight: 800; }
.brand__name { color: var(--heading); font-size: 1.12rem; letter-spacing: .07em; }
.brand__sub { color: var(--brand-ink); font-size: 1.12rem; font-weight: 700; letter-spacing: .07em; }
/* Real logo on a clean light plate so the navy artwork reads on dark */
.brand--img {
    display: inline-flex; align-items: center;
    background: #ffffff; border-radius: 11px; padding: 7px 12px;
    box-shadow: 0 8px 22px -10px rgba(0,0,0,.65);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-link:hover .brand--img { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.7); }
.brand__img { height: 34px; width: auto; display: block; }
.brand--footer.brand--img { padding: 9px 14px; }
.brand--footer .brand__img { height: 42px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    display: inline-block; padding: 8px 14px; border-radius: 9px;
    color: var(--muted); font-weight: 500; font-size: .96rem;
    transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--heading); background: rgba(255,255,255,.05); }
.nav__link.is-active { color: var(--heading); }
.nav__link.is-active::after {
    content: ""; display: block; height: 2px; margin-top: 5px;
    border-radius: 2px; background: var(--gradient);
}
.site-header__cta { margin-left: 6px; display: flex; align-items: center; gap: 8px; }
.header-call { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid var(--brand-line); transition: background .25s, color .2s, transform .2s; }
.header-call:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.nav__drawer-foot { display: none; }

.nav-toggle {
    position: relative;
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); place-items: center;
}
.nav-toggle .icon { position: absolute; transition: opacity .2s, transform .2s; }
.nav-toggle svg:last-child { opacity: 0; transform: rotate(-45deg); }
body.nav-open .nav-toggle svg:first-child { opacity: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle svg:last-child { opacity: 1; transform: rotate(0); }

/* ----------------------------------------------------------------- *
   Layout primitives
 * ----------------------------------------------------------------- */
.section { padding: clamp(36px, 4.5vw, 64px) 0; position: relative; }
.section--tight { padding: clamp(16px, 2.2vw, 32px) 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: .76rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-ink);
    padding: 6px 12px; border-radius: 999px;
    background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 18px 0 14px; }
.section__lead { color: var(--muted); font-size: 1.1rem; }

.text-grad {
    background: linear-gradient(110deg, var(--brand-ink), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------------------------------------------- *
   Hero
 * ----------------------------------------------------------------- */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(16px, 2.5vw, 34px); }
.hero__grid {
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.hero__title {
    font-size: clamp(2.5rem, 5.6vw, 4.05rem);
    line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 22px;
}
/* Rotating headline phrase */
.rotator { display: inline-flex; align-items: baseline; }
.rotator__word { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rotator__word.is-out { opacity: 0; transform: translateY(.12em); }
.rotator__caret {
    display: inline-block; width: 4px; align-self: stretch; min-height: .82em;
    margin-left: .16em; border-radius: 3px; background: var(--gradient);
    transform: translateY(.06em);
    animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.hero__sub { color: var(--muted); font-size: 1.18rem; max-width: 33ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 30px; display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: .9rem; }
.hero__trust b { color: var(--text); font-weight: 600; }

/* Status card (the "live ops" visual) */
.status-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.status-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-line), transparent);
}
.status-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.status-card__title { font-family: var(--mono); font-size: .82rem; color: var(--muted); letter-spacing: .05em; }
.pill-live {
    display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
    font-size: .72rem; color: var(--success); padding: 5px 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--success) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.status-rows { display: grid; gap: 9px; }
.status-row {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    padding: 12px 14px; border-radius: 11px;
    background: rgba(255,255,255,.025); border: 1px solid var(--border);
    font-size: .9rem;
}
.status-row__name { display: flex; align-items: center; gap: 10px; color: var(--text); }
.status-row__name .icon { color: var(--brand-ink); }
.status-row__meta { font-family: var(--mono); font-size: .8rem; color: var(--success); }
.status-card__foot { margin-top: 18px; display: flex; gap: 18px; }
.status-stat { flex: 1; }
.status-stat b { display: block; font-family: var(--mono); font-size: 1.5rem; color: #fff; }
.status-stat span { font-size: .78rem; color: var(--muted); }

/* ----------------------------------------------------------------- *
   Hero "Expertise across" row
 * ----------------------------------------------------------------- */
.hero__expertise { margin-top: 32px; }
.hero__expertise-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }
.hero__expertise-list { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 14px; }
.hero__expertise-list span { font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: color .2s; cursor: default; }
.hero__expertise-list span:hover { color: #fff; }

/* ----------------------------------------------------------------- *
   Hero live-ops dashboard (mock)
 * ----------------------------------------------------------------- */
.dash { position: relative; perspective: 1700px; padding-bottom: 18px; }
.dash__panel {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-2); border-radius: var(--radius-lg);
    padding: 18px; box-shadow: var(--shadow);
    transform: rotateY(-11deg) rotateX(3deg); transform-origin: 78% 50%;
}
.dash__panel::before {
    content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(130% 100% at 70% 0%, #000, transparent 78%);
    mask-image: radial-gradient(130% 100% at 70% 0%, #000, transparent 78%);
}
.dash__glow { position: absolute; top: -45%; right: -25%; width: 70%; height: 90%; pointer-events: none;
    background: radial-gradient(closest-side, var(--brand-soft), transparent); }
.dash__panel > *:not(.dash__glow) { position: relative; z-index: 1; }
.dash__top { display: grid; grid-template-columns: 1.12fr 1fr; gap: 12px; margin-bottom: 14px; position: relative; z-index: 1; }
.mono-faint { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }

.dash-alert { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.dash-alert__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.dash-alert__body { display: flex; gap: 12px; align-items: center; }
.gauge { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.gauge svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.gauge__bg { fill: none; stroke: var(--border-2); stroke-width: 4; }
.gauge__fg { fill: none; stroke: var(--brand-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 34; filter: drop-shadow(0 0 4px var(--brand-glow)); }
.gauge b { position: absolute; font-family: var(--mono); font-size: .72rem; color: #fff; }
.dash-alert__title { font-size: .82rem; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dash-alert__title .icon { color: var(--warn); flex: none; }
.bar { height: 5px; border-radius: 99px; background: var(--border-2); margin-top: 9px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gradient); border-radius: 99px; }

.dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.tile { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; }
.tile__k { font-family: var(--mono); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); display: block; }
.tile__v { font-family: var(--mono); font-size: 1.3rem; color: #fff; line-height: 1.35; }
.tile__v small { font-size: .68rem; color: var(--muted); }
.tile__d { font-size: .64rem; font-family: var(--mono); }
.tile__d.up { color: var(--success); }
.tile__d.down { color: var(--brand-2); }
.tile--wide { grid-column: span 2; display: flex; align-items: baseline; gap: 10px; }
.tile--wide .tile__k { flex: none; align-self: center; }
.tile--wide .tile__d { margin-left: auto; }

.dash-chart { margin-bottom: 14px; position: relative; z-index: 1; }
.dash-chart__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dash-chart__avg { font-size: .74rem; color: var(--muted); }
.dash-chart__avg b { color: #fff; font-family: var(--mono); }
.dash-chart__avg .down { color: var(--brand-2); font-style: normal; }
.seg { margin-left: auto; display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.seg i { font-style: normal; font-family: var(--mono); font-size: .62rem; color: var(--muted); padding: 3px 9px; border-radius: 7px; }
.seg i.on { background: var(--brand-soft); color: var(--brand-ink); }
.chart { width: 100%; height: 92px; display: block; }
.chart__dot { fill: #fff; filter: drop-shadow(0 0 6px var(--brand)); }

.dash-svc { position: relative; z-index: 1; }
.dash-svc__head { display: flex; justify-content: space-between; margin-bottom: 9px; }
.dash-svc__list { display: grid; gap: 8px; }
.dash-svc__list li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sdot.ok { background: var(--success); box-shadow: 0 0 6px var(--success); }
.sdot.warn { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.sname { color: var(--text); min-width: 104px; }
.spark { width: 90px; height: 18px; flex: none; }
.spark polyline { fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.dash-svc__list li .sdot.warn ~ .spark polyline { stroke: var(--warn); }
.smeta { margin-left: auto; color: var(--faint); }

/* floating terminal */
.term {
    position: absolute; right: -16px; bottom: -8px; width: 62%; max-width: 350px; z-index: 3;
    background: #0a1020; border: 1px solid var(--border-2); border-radius: 12px;
    box-shadow: 0 34px 64px -22px rgba(0,0,0,.9); overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; }
.term__bar i:nth-child(1) { background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 6px; font-family: var(--mono); font-size: .64rem; color: var(--faint); }
.term__body { margin: 0; padding: 12px 13px; font-family: var(--mono); font-size: .64rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.c-cmd { color: #cdd8ec; } .c-ok { color: var(--success); } .c-dim { color: var(--muted); } .c-json { color: var(--brand-2); }
.cursor { color: var(--brand-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 980px) {
    .dash { perspective: none; padding-bottom: 0; }
    .dash__panel { transform: none; }
    .term { position: relative; right: 0; bottom: 0; width: 100%; max-width: none; margin-top: 14px; }
}
@media (max-width: 480px) {
    .dash__top { grid-template-columns: 1fr; }
    .dash-tiles { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------------- *
   Stat strip
 * ----------------------------------------------------------------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-soft); padding: 28px 24px; text-align: center; }
.stat__value { font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: #fff; }
.stat__value .text-grad { font-weight: 700; }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ----------------------------------------------------------------- *
   Service cards
 * ----------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px;
    transition: transform .3s var(--ease), border-color .3s, background .3s;
    overflow: hidden; min-height: 100%;
}
.card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 100% 0%, var(--brand-soft), transparent 60%);
    opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--brand-line); }
.card:hover::after { opacity: 1; }
/* Card banner image (full-bleed top, fades into the card surface) */
.card__media {
    position: relative; margin: -26px -26px 22px; height: 160px;
    overflow: hidden; background: var(--surface-2);
}
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.06); }
.card__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(8,13,27,.05), rgba(8,13,27,.22) 58%, var(--surface) 100%);
}
.card__no {
    position: absolute; top: 14px; right: 16px; z-index: 2;
    font-family: var(--mono); font-size: .76rem; color: #fff;
    background: rgba(8, 13, 27, .5); border: 1px solid rgba(255, 255, 255, .16);
    padding: 4px 10px; border-radius: 999px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.card__icon {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
    background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink);
    margin-bottom: 18px;
}
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 1.22rem; margin-bottom: 8px; }
.card__lead { color: var(--muted); font-size: .96rem; margin-bottom: 16px; flex: 1; }
.card__points { display: grid; gap: 8px; margin-bottom: 16px; }
.card__points li { display: flex; gap: 9px; font-size: .9rem; color: var(--text); align-items: flex-start; }
.card__points .icon { color: var(--brand-ink); margin-top: 2px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.card__metric { font-family: var(--mono); font-size: .82rem; color: var(--brand-ink); }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text); }
.card__more .icon { transition: transform .25s var(--ease); }
.card:hover .card__more .icon { transform: translateX(4px); }

/* ----------------------------------------------------------------- *
   Process steps
 * ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 22px; position: relative;
    transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: var(--brand-line); transform: translateY(-4px); }
.step__no {
    font-family: var(--mono); font-weight: 600; font-size: .85rem;
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: var(--gradient); color: var(--on-brand); margin-bottom: 16px;
}
.step__title { font-size: 1.18rem; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: .94rem; }

/* ----------------------------------------------------------------- *
   Values (Why) — alternating feature rows
 * ----------------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value {
    display: flex; gap: 18px; padding: 26px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color .3s, transform .3s var(--ease);
}
.value:hover { border-color: var(--brand-line); transform: translateY(-4px); }
.value__icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); }
.value__title { font-size: 1.2rem; margin-bottom: 6px; }
.value__text { color: var(--muted); font-size: .96rem; }

/* ----------------------------------------------------------------- *
   Split / feature blocks
 * ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--reverse .split__media { order: 2; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 1.04rem; }
.prose p strong { color: var(--text); }
.check-list { display: grid; gap: 12px; margin-top: 8px; }
.benefits-grid { grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 940px; margin: 0 auto; }
.benefits-grid li { font-size: 1.02rem; }
@media (max-width: 700px) { .benefits-grid { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .ck { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); }
.check-list .ck .icon { width: 14px; height: 14px; }

.media-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow);
}

/* Introduction figure (image with caption overlay) */
.intro-figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.intro-figure img { display: block; width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.intro-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--bg) 72%, transparent)); }
.intro-figure figcaption {
    position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1;
    padding: 15px 18px; border-radius: 12px; color: var(--text); font-size: .98rem; line-height: 1.5;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--border-2);
}
.media-card__row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); margin-bottom: 10px; }
.media-card__row:last-child { margin-bottom: 0; }
.media-card__row .badge { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); flex: none; }
.media-card__row b { color: #fff; font-size: .98rem; }
.media-card__row span { color: var(--muted); font-size: .86rem; }

/* ----------------------------------------------------------------- *
   Tech marquee
 * ----------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 60px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tech { display: inline-flex; align-items: center; height: 56px; flex: none; }
.tech__logo {
    height: 40px; width: auto; display: block;
    filter: brightness(0) invert(1);                 /* any logo -> uniform white silhouette */
    opacity: .7;
    transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease);
}
.tech:hover .tech__logo {
    opacity: 1; transform: scale(1.07);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--brand-glow));
}

/* ----------------------------------------------------------------- *
   FAQ accordion
 * ----------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s; }
.faq__item.open { border-color: var(--brand-line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; color: var(--heading); font-weight: 600; font-size: 1.05rem; text-align: left; }
.faq__q .icon { color: var(--brand-ink); transition: transform .3s var(--ease); flex: none; }
.faq__item.open .faq__q .icon { transform: rotate(180deg); }
.faq__a { overflow: hidden; transition: max-height .35s var(--ease); }
.js .faq__a { max-height: 0; }   /* collapse only when JS can re-open it (no-JS shows all answers) */
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ----------------------------------------------------------------- *
   CTA band
 * ----------------------------------------------------------------- */
.cta {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface));
    border: 1px solid var(--brand-line); border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 66px); text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, var(--brand-soft), transparent 70%); }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; position: relative; }
.cta__text { color: var(--muted); max-width: 50ch; margin: 0 auto 28px; position: relative; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ----------------------------------------------------------------- *
   Page hero (inner pages)
 * ----------------------------------------------------------------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px auto 16px; max-width: 16ch; }
.page-hero__lead { color: var(--muted); font-size: 1.18rem; max-width: 60ch; margin: 0 auto; }

/* ----------------------------------------------------------------- *
   Contact
 * ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 36px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field .req { color: var(--brand-ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 11px;
    background: var(--bg-soft); border: 1px solid var(--border-2); color: var(--text);
    font: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 140px; }
.field--error input, .field--error select, .field--error textarea { border-color: #f87171; }
.field__err { display: none; color: #f87171; font-size: .84rem; margin-top: 6px; }
.field--error .field__err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { color: var(--faint); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; padding: 15px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .96rem; align-items: flex-start; }
.alert .icon { margin-top: 1px; flex: none; }
.alert--ok { background: color-mix(in srgb, var(--success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--success) 32%, transparent); color: #c9f7e3; }
.alert--ok .icon { color: var(--success); }
.alert--err { background: color-mix(in srgb, #f87171 12%, transparent); border: 1px solid color-mix(in srgb, #f87171 32%, transparent); color: #ffd9d9; }
.alert--err .icon { color: #f87171; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.info-card + .info-card { margin-top: 18px; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); flex: none; }
.info-list .lbl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-list .val { color: #fff; font-weight: 600; }
.info-list .val a:hover { color: var(--brand-ink); }

/* ----------------------------------------------------------------- *
   Reveal-on-scroll
 * ----------------------------------------------------------------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(22px); }   /* hidden only when JS is present (no-JS shows everything) */
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- *
   Footer
 * ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: clamp(40px, 6vw, 90px); padding-top: clamp(48px, 6vw, 72px); background: var(--bg-soft); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.site-footer__desc { color: var(--muted); font-size: .95rem; margin: 16px 0 18px; max-width: 38ch; }
.brand--footer .brand__name, .brand--footer .brand__sub { font-size: 1.02rem; }
.social { display: flex; gap: 10px; }
.social__link { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: color .2s, border-color .2s, transform .2s; }
.social__link:hover { color: #fff; border-color: var(--brand-line); transform: translateY(-3px); }
.social__link .icon { width: 18px; height: 18px; }
.site-footer__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.site-footer__col ul { display: grid; gap: 11px; }
.site-footer__col a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.site-footer__col a:hover { color: var(--brand-ink); }
.site-footer__contact li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .93rem; }
.site-footer__contact .icon { color: var(--brand-ink); margin-top: 2px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border); color: var(--faint); font-size: .88rem; }
.site-footer__made a:hover { color: var(--brand-ink); }

/* ----------------------------------------------------------------- *
   Cookie consent
 * ----------------------------------------------------------------- */
.cookie {
    position: fixed; left: 22px; bottom: 22px; z-index: 70;
    width: min(420px, calc(100vw - 44px));
    background: var(--surface); border: 1px solid var(--border-2);
    border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow);
    transform: translateY(160%); opacity: 0;
    transition: transform .55s var(--ease), opacity .4s var(--ease);
}
.cookie.is-shown { transform: none; opacity: 1; }
.cookie__body { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cookie__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); }
.cookie__title { display: block; color: var(--heading); font-size: 1rem; margin-bottom: 4px; }
.cookie__text { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.cookie__text a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie__text a:hover { color: #fff; }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 520px) {
    .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
    .cookie__actions .btn { flex: 1; justify-content: center; }
}

/* ----------------------------------------------------------------- *
   Responsive
 * ----------------------------------------------------------------- */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__sub { max-width: 46ch; }
    .split, .split--reverse { grid-template-columns: 1fr; gap: 30px; }
    .split--reverse .split__media { order: 0; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
    .topbar { display: none; }
    .site-header__cta { display: none; }
    .nav-toggle { display: grid; }
    .nav {
        position: fixed; inset: 72px 0 auto 0; margin: 0;
        background: var(--bg-soft); border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; visibility: hidden;
        transition: max-height .35s var(--ease), visibility .35s var(--ease);
    }
    body.nav-open .nav { max-height: calc(100vh - 72px); overflow-y: auto; visibility: visible; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 8px; }
    .nav__link { padding: 13px 14px; border-radius: 10px; font-size: 1.02rem; }
    .nav__link.is-active::after { display: none; }
    .nav__link.is-active { background: var(--brand-soft); }
    .nav__drawer-foot { display: block; padding: 10px 20px 26px; border-top: 1px solid var(--border); margin-top: 6px; }
    .nav__drawer-foot .btn { width: 100%; justify-content: center; }
    .nav__contact { display: grid; gap: 14px; margin-top: 18px; }
    .nav__contact a { display: inline-flex; align-items: center; gap: 11px; color: var(--muted); font-size: .96rem; }
    .nav__contact a:hover { color: var(--brand-ink); }
    .nav__contact .icon { color: var(--brand-ink); }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .cards, .steps, .value-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .status-card__foot { flex-wrap: wrap; }
}

/* ----------------------------------------------------------------- *
   Motion / FX layer  (all JS-gated; no-JS shows final state)
 * ----------------------------------------------------------------- */
.scroll-prog {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--brand-2), var(--brand));
    box-shadow: 0 0 12px var(--brand-glow); transition: transform .1s linear;
}

/* Hero entrance & grid reveals use the class-based .reveal system (robust:
   final visible state is set by the .in class, the transition only adds motion).
   Per-child stagger delays are applied in main.js. */

/* Animated ambient aurora (0% keyframe == the normal glow, so it degrades safely) */
@keyframes aurora { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(2.5%, 2%, 0) scale(1.07); } }
.js body::before { animation: aurora 18s ease-in-out infinite; }

/* Primary-button sheen on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
    content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
    transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
}
.btn--primary:hover::after { animation: sheen .85s ease; }
@keyframes sheen { to { left: 140%; } }

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