@charset "UTF-8";
/* ==========================================================================
   SkyCloud - Cyber-Infrastructure design system
   Deep obsidian surfaces, laser-cut 1px strokes, monospaced telemetry.
   Authored to the Aether-Link Nexus brand spec.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  /* Surfaces - tonal layering, not drop shadows */
  --bg:                #070a11;
  --surface-0:         #0b0f19;
  --surface-1:         #0e1422;
  --surface-2:         #121a2b;
  --surface-3:         #18223a;
  --surface-glass:     rgba(14, 20, 34, .72);
  --surface-terminal:  #04060c;

  /* Strokes */
  --line:              rgba(255, 255, 255, .07);
  --line-strong:       rgba(255, 255, 255, .13);
  --line-cyan:         rgba(6, 182, 212, .32);
  --line-inset:        rgba(0, 0, 0, .35);

  /* Text */
  --text:              #e3e9f5;
  --text-dim:          #97a6bd;
  --text-mute:         #62718a;
  --text-invert:       #05121a;

  /* Accents */
  --cyan:              #06b6d4;
  --cyan-bright:       #4cd7f6;
  --cyan-deep:         #0e7490;
  --indigo:            #6366f1;
  --indigo-bright:     #a5b4fc;
  --emerald:           #10b981;
  --amber:             #f59e0b;
  --rose:              #f43f5e;

  /* Glows */
  --glow-cyan:         0 0 24px rgba(6, 182, 212, .22);
  --glow-cyan-soft:    0 0 40px rgba(6, 182, 212, .12);
  --glow-indigo:       0 0 28px rgba(99, 102, 241, .20);
  --glow-emerald:      0 0 12px rgba(16, 185, 129, .55);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Shape - soft-industrial */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Rhythm - 4px base grid */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(16px, 4vw, 32px);

  --header-h: 64px;
  --ticker-h: 30px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ----------------------------------------------------------- 2. Foundation */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-6));
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The whole page sits on a faint engineering grid with a cyan aurora. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  z-index: -3;
  background:
    radial-gradient(ellipse 55% 45% at 22% 0%, rgba(6,182,212,.13), transparent 62%),
    radial-gradient(ellipse 50% 40% at 82% 8%, rgba(99,102,241,.11), transparent 66%);
  pointer-events: none;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.12;
  margin: 0 0 var(--sp-4);
  color: #fff;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-bright); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-10) 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: .9em; }

::selection { background: rgba(6,182,212,.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-0); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: var(--r-pill); border: 2px solid var(--surface-0); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-deep); }

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4);
  z-index: 999; padding: var(--sp-3) var(--sp-5);
  background: var(--cyan); color: var(--text-invert);
  font: 700 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--sp-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ 3. Primitives */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 760px; }

.section { padding-block: clamp(56px, 7vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(11,15,25,.85) 12%, rgba(11,15,25,.85) 88%, transparent); }

.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-6); }
.grid > *, [data-post-grid] > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Above the breakpoint, pin the column count so a very wide display does not
   quietly turn a three-up grid into a four-up one. */
@media (min-width: 1080px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.icon { display: inline-block; vertical-align: middle; flex: none; }

/* Eyebrow - monospaced label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { color: var(--text-dim); font-size: 1.0625rem; }

.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--text-dim); line-height: 1.6; }

/* --- Status pill: a hardware LED in text form ---------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.03);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.pill .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); box-shadow: var(--glow-emerald);
  animation: breathe 2.4s var(--ease) infinite;
}
.pill--cyan { border-color: var(--line-cyan); color: var(--cyan-bright); background: rgba(6,182,212,.07); }
.pill--cyan .led { background: var(--cyan-bright); box-shadow: 0 0 10px rgba(76,215,246,.7); }
.pill--indigo { border-color: rgba(99,102,241,.3); color: var(--indigo-bright); background: rgba(99,102,241,.08); }
.pill--indigo .led { background: var(--indigo-bright); box-shadow: 0 0 10px rgba(165,180,252,.6); }
.pill--amber { border-color: rgba(245,158,11,.3); color: var(--amber); background: rgba(245,158,11,.07); }
.pill--amber .led { background: var(--amber); box-shadow: 0 0 10px rgba(245,158,11,.6); }
.pill--plain .led { display: none; }

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 12px 20px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .22s var(--ease), transform .12s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--cyan-bright);
  --btn-fg: var(--text-invert);
  --btn-line: var(--cyan-bright);
  box-shadow: var(--glow-cyan);
}
.btn--primary:hover { --btn-bg: #6ee2ff; --btn-fg: var(--text-invert); box-shadow: 0 0 32px rgba(76,215,246,.4); }

.btn--ghost { --btn-line: var(--line-cyan); --btn-fg: var(--cyan-bright); }
.btn--ghost:hover { --btn-bg: rgba(6,182,212,.09); --btn-line: var(--cyan-bright); --btn-fg: #fff; }

.btn--outline:hover { --btn-bg: rgba(255,255,255,.05); --btn-line: var(--line-strong); }

.btn--indigo { --btn-bg: rgba(99,102,241,.14); --btn-line: rgba(99,102,241,.4); --btn-fg: var(--indigo-bright); }
.btn--indigo:hover { --btn-bg: rgba(99,102,241,.24); --btn-fg: #fff; }

.btn--sm { padding: 8px 14px; font-size: 11px; }
.btn--lg { padding: 15px 26px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with an animated arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: 700 12px/1 var(--font-mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--cyan-bright);
}
.link-arrow .icon { transition: transform .2s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Cards: glass with a milled edge ------------------------------------- */
.card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .22s var(--ease), background .22s var(--ease),
              box-shadow .28s var(--ease), transform .22s var(--ease-out);
}
/* Top-left highlight + bottom-right shade = milled aluminium */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.055), transparent 42%);
  opacity: .9;
}
.card > * { position: relative; }

.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--line-cyan);
  box-shadow: var(--glow-cyan-soft), 0 18px 40px -24px rgba(0,0,0,.9);
}

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: var(--sp-5);
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, rgba(6,182,212,.16), rgba(99,102,241,.07));
  color: var(--cyan-bright);
}
.card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--sp-2); }
.card__text { color: var(--text-dim); font-size: .9375rem; margin: 0; }

/* Corner tick marks - technical brutalism detail */
.card--ticked::after {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 14px; height: 14px; pointer-events: none;
  border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan);
  border-top-right-radius: var(--r-lg);
  opacity: .55;
}

/* --- Spec list ----------------------------------------------------------- */
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.specs li {
  display: grid; grid-template-columns: 16px 1fr; gap: var(--sp-3);
  font-size: .875rem; color: var(--text-dim); line-height: 1.55;
}
.specs li::before {
  content: ""; margin-top: 8px;
  width: 8px; height: 8px; border-radius: 1px;
  background: var(--cyan); box-shadow: 0 0 8px rgba(6,182,212,.6);
  transform: rotate(45deg);
}
.specs--tight li { font-size: .8125rem; }

/* --- Telemetry data table ------------------------------------------------ */
.table-wrap,
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
table.data {
  width: 100%; border-collapse: collapse; min-width: 640px;
  font-size: .875rem;
}
table.data th {
  padding: 12px 16px;
  text-align: left;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
table.data td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: middle;
}
table.data tbody tr:nth-child(even) { background: rgba(255,255,255,.017); }
table.data tbody tr:hover { background: rgba(6,182,212,.05); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num, table.data .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
table.data .num { text-align: right; }

/* --- Metric readout ------------------------------------------------------ */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.metric { padding: var(--sp-5) var(--sp-5); background: var(--surface-1); }
.metric__value {
  font: 700 clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem)/1 var(--font-display);
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff, var(--cyan-bright) 70%, var(--indigo-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.metric__label { margin-top: var(--sp-2); font: 500 12px/1.4 var(--font-mono); letter-spacing: .05em; color: var(--text-mute); text-transform: uppercase; }
.metric__hint { margin-top: var(--sp-1); font-size: .75rem; color: var(--text-mute); }

/* --- Terminal ------------------------------------------------------------ */
.terminal {
  background: var(--surface-terminal);
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(6,182,212,.035), 0 24px 60px -32px #000;
}
.terminal__bar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 9px var(--sp-4);
  border-bottom: 1px solid rgba(6,182,212,.18);
  background: rgba(6,182,212,.05);
  font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute);
}
.terminal__dot { width: 8px; height: 8px; border-radius: 50%; background: #1f2937; }
.terminal__dot:nth-child(1) { background: rgba(244,63,94,.55); }
.terminal__dot:nth-child(2) { background: rgba(245,158,11,.55); }
.terminal__dot:nth-child(3) { background: rgba(16,185,129,.55); }
.terminal__body {
  padding: var(--sp-5);
  font: 400 13px/1.75 var(--font-mono);
  color: #86efd4;
  white-space: pre-wrap; word-break: break-word;
  max-height: 420px; overflow: auto;
}
.terminal__body .c-cyan { color: var(--cyan-bright); }
.terminal__body .c-dim { color: #4b6274; }
.terminal__body .c-amber { color: var(--amber); }
.terminal__body .c-prompt { color: var(--indigo-bright); }

/* --- Forms --------------------------------------------------------------- */
.field { margin-bottom: var(--sp-5); }
.field__label {
  display: block; margin-bottom: var(--sp-2);
  font: 700 11px/1 var(--font-mono); letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-dim);
}
.field__label .req { color: var(--cyan-bright); }
.field__hint { margin-top: var(--sp-2); font-size: .75rem; color: var(--text-mute); }
.field__error { margin-top: var(--sp-2); font-size: .75rem; color: #fda4af; }

.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.5;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #4a5a72; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface-1);
  box-shadow: 0 0 0 3px rgba(6,182,212,.14);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: rgba(244,63,94,.6); }
.textarea { min-height: 148px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2397a6bd' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.input--mono { font-family: var(--font-mono); }

.checkbox { display: grid; grid-template-columns: 18px 1fr; gap: var(--sp-3); align-items: start; font-size: .8125rem; color: var(--text-dim); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--cyan); cursor: pointer; }

/* Honeypot: kept out of the layout and out of the a11y tree */
.hp-field { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--sp-5); }
.form-grid .field--full { grid-column: 1 / -1; }

/* --- Alerts -------------------------------------------------------------- */
.alert {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  font-size: .875rem;
  margin-bottom: var(--sp-5);
}
.alert--success { border-left-color: var(--emerald); color: #a7f3d0; background: rgba(16,185,129,.07); }
.alert--error   { border-left-color: var(--rose);    color: #fecdd3; background: rgba(244,63,94,.07); }
.alert--info    { border-left-color: var(--cyan);    color: #a5f3fc; background: rgba(6,182,212,.07); }
.alert--warning { border-left-color: var(--amber);   color: #fde68a; background: rgba(245,158,11,.07); }

/* ------------------------------------------------------------- 4. Chrome */

/* --- Ticker -------------------------------------------------------------- */
.ticker {
  height: var(--ticker-h);
  display: none;
  align-items: center;
  gap: var(--sp-5);
  padding-inline: var(--gutter);
  background: #05070d;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .05em;
  color: var(--text-mute);
  overflow: hidden;
}
.ticker__item { display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.ticker__item strong { color: var(--text-dim); font-weight: 600; }
.ticker__sep { color: #1f2937; }
.ticker__spacer { margin-left: auto; }
@media (min-width: 1100px) { .ticker { display: flex; } }

/* --- Header -------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,10,17,.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.header.is-stuck { background: rgba(7,10,17,.95); box-shadow: 0 12px 40px -24px #000; }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-6);
}

/* --- Brand mark ---------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  position: relative;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-sm);
  background: radial-gradient(circle at 30% 25%, rgba(6,182,212,.22), rgba(11,15,25,.9));
  box-shadow: inset 0 0 12px rgba(6,182,212,.15);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.brand:hover .brand__mark { border-color: var(--cyan-bright); box-shadow: var(--glow-cyan); }
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font: 800 17px/1 var(--font-display);
  letter-spacing: .06em;
  color: #fff;
}
.brand__name em { font-style: normal; color: var(--cyan-bright); }
.brand__sub {
  margin-top: 3px;
  font: 600 8.5px/1 var(--font-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute);
}

/* --- Primary navigation -------------------------------------------------- */
.nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
@media (min-width: 1040px) { .nav { display: flex; } }

.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--text-dim);
  transition: color .16s var(--ease), background .16s var(--ease);
  cursor: pointer;
  background: none; border: 0; font-family: inherit;
}
.nav__link:hover, .nav__item:hover > .nav__link,
.nav__link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.05); }
.nav__link.is-active { color: var(--cyan-bright); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1px; background: var(--cyan-bright); box-shadow: 0 0 8px var(--cyan);
}
.nav__chev { transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

/* Mega dropdown */
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, -6px);
  min-width: 300px;
  padding: var(--sp-3);
  background: rgba(11,16,27,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 28px 70px -30px #000, 0 0 0 1px rgba(6,182,212,.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease-out), visibility .18s;
  z-index: 60;
}
.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel,
.nav__panel.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__panel--wide { min-width: 640px; }
.nav__panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; }
.nav__panel--narrow .nav__panel-grid { grid-template-columns: 1fr; }

.nav__card {
  display: grid; grid-template-columns: 32px 1fr; gap: var(--sp-3);
  padding: 10px 12px; border-radius: var(--r-sm);
  transition: background .16s var(--ease);
}
.nav__card:hover { background: rgba(6,182,212,.08); }
.nav__card-icon {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); color: var(--cyan-bright);
}
.nav__card-title { font-size: .875rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.nav__card-desc { font-size: .75rem; color: var(--text-mute); line-height: 1.45; margin-top: 2px; }
.nav__badge {
  font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 6px; border-radius: var(--r-xs);
  background: rgba(6,182,212,.14); color: var(--cyan-bright); border: 1px solid var(--line-cyan);
}
.nav__panel-foot {
  margin-top: var(--sp-3); padding: var(--sp-3) 12px 4px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
}

.header__actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
@media (min-width: 1040px) { .header__actions { margin-left: 0; } }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.02); color: var(--text-dim);
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.icon-btn:hover { color: #fff; border-color: var(--line-cyan); background: rgba(6,182,212,.08); }

.nav-toggle { display: grid; }
@media (min-width: 1040px) { .nav-toggle { display: none; } }

/* --- Mobile drawer ------------------------------------------------------- */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,6,12,.75);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(400px, 100%);
  background: var(--surface-0);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform .3s var(--ease-out);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface-0); z-index: 2; }
.drawer__body { padding: var(--sp-5); flex: 1; }
.drawer__foot { padding: var(--sp-5); border-top: 1px solid var(--line); display: grid; gap: var(--sp-3); }

.acc { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 14px 0; background: none; border: 0; cursor: pointer;
  font: 600 .9375rem/1 var(--font-body); color: var(--text); text-align: left;
  font-family: inherit;
}
.acc__btn .icon { color: var(--text-mute); transition: transform .2s var(--ease); }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--cyan-bright); }
.acc__panel { display: none; padding-bottom: var(--sp-4); }
.acc__panel.is-open { display: block; }
.acc__panel a { display: block; padding: 9px 0 9px var(--sp-4); font-size: .875rem; color: var(--text-dim); border-left: 1px solid var(--line); }
.acc__panel a:hover { color: var(--cyan-bright); border-left-color: var(--cyan); }

/* --- Narrow phones -------------------------------------------------------- */
@media (max-width: 460px) {
  .header__inner { gap: var(--sp-3); }
  .brand__sub { display: none; }
  .brand__name { font-size: 16px; }
  .header__actions { gap: 6px; }
  .header__actions .btn { padding: 10px 12px; font-size: 10px; letter-spacing: .06em; }
}

/* --------------------------------------------------------------- 5. Hero */

.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 .accent {
  background: linear-gradient(120deg, #fff 8%, var(--cyan-bright) 52%, var(--indigo-bright) 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub { font-size: clamp(1rem, .95rem + .35vw, 1.1875rem); color: var(--text-dim); max-width: 56ch; margin-bottom: var(--sp-8); }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.hero__stat-value { font: 700 1.375rem/1 var(--font-mono); color: var(--cyan-bright); letter-spacing: -.02em; }
.hero__stat-label { margin-top: 6px; font: 500 12px/1.35 var(--font-mono); color: var(--text-mute); }

/* Globe / topology canvas frame */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / .92;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 48%, rgba(6,182,212,.10), transparent 62%),
    var(--surface-0);
  overflow: hidden;
}
.hero__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__visual-frame {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero__readout {
  position: absolute; right: var(--sp-4); top: var(--sp-4);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  pointer-events: none;
}
.hero__chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 10px;
  background: rgba(4,6,12,.86);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: 500 11px/1 var(--font-mono);
  color: var(--text-dim);
  backdrop-filter: blur(8px);
}
.hero__chip b { color: var(--cyan-bright); font-weight: 600; }
.hero__corner {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--line-cyan); opacity: .8;
}
.hero__corner--tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.hero__corner--br { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }

/* --- Marquee of trust logos --------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: var(--sp-5); position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 15%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: var(--sp-12); width: max-content; animation: slide 42s linear infinite; }
.marquee__item { font: 600 13px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); white-space: nowrap; display: flex; align-items: center; gap: var(--sp-3); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- 6. Components */

/* Service catalogue card */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.service-card__body { flex: 1; }
.service-card__foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  flex-wrap: wrap;
}
.service-card__price { font: 700 .875rem/1 var(--font-mono); color: var(--text); }
.service-card__price span { color: var(--text-mute); font-weight: 400; font-size: .75rem; }

/* Category rail heading */
.cat-head {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.cat-head__icon {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-cyan); border-radius: var(--r-sm);
  background: rgba(6,182,212,.08); color: var(--cyan-bright);
}
.cat-head__title { font-size: 1.25rem; margin: 0; }
.cat-head__desc { font-size: .875rem; color: var(--text-mute); margin: 2px 0 0; }
.cat-head__count { margin-left: auto; }

/* Feature row with a left rule */
.feature-list { display: grid; gap: var(--sp-6); }
.feature {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-4);
  padding-left: var(--sp-5);
  border-left: 1px solid var(--line);
  transition: border-color .2s var(--ease);
}
.feature:hover { border-left-color: var(--cyan); }
.feature__icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--cyan-bright); background: rgba(255,255,255,.02); }
.feature__title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.feature__text { font-size: .875rem; color: var(--text-dim); margin: 0; }

/* Step / process */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-5); position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-cyan); border-radius: var(--r-sm);
  font: 700 13px/1 var(--font-mono); color: var(--cyan-bright);
  background: rgba(6,182,212,.06);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: -18px;
  width: 1px; background: linear-gradient(180deg, var(--line-cyan), transparent);
}

/* Accordion (FAQ) */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) 0; background: none; border: 0; cursor: pointer;
  font: 600 1.0625rem/1.4 var(--font-display); color: var(--text); text-align: left;
  transition: color .16s var(--ease);
}
.faq__btn:hover { color: var(--cyan-bright); }
.faq__sign { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-mute); transition: transform .22s var(--ease), color .16s; }
.faq__btn[aria-expanded="true"] .faq__sign { transform: rotate(45deg); color: var(--cyan-bright); }
.faq__panel { display: none; padding-bottom: var(--sp-6); color: var(--text-dim); font-size: .9375rem; max-width: 78ch; }
.faq__panel.is-open { display: block; animation: fadeUp .28s var(--ease-out); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Testimonial */
.quote { display: flex; flex-direction: column; height: 100%; }
.quote__mark { font: 800 44px/1 var(--font-display); color: var(--cyan); opacity: .28; margin-bottom: var(--sp-2); }
.quote__text { font-size: 1rem; color: var(--text); line-height: 1.6; flex: 1; }
.quote__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); display: flex; align-items: center; gap: var(--sp-3); }
.quote__avatar {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font: 700 12px/1 var(--font-mono); color: var(--cyan-bright); background: rgba(6,182,212,.08);
}
.quote__author { font-size: .875rem; font-weight: 600; }
.quote__role { font-size: .75rem; color: var(--text-mute); }

/* Article cards */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.post-card__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__media--empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(6,182,212,.16), transparent 60%),
    linear-gradient(140deg, var(--surface-2), var(--surface-0));
  display: grid; place-items: center; color: rgba(6,182,212,.35);
}
.post-card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--text-mute); text-transform: uppercase; margin-bottom: var(--sp-3); }
.post-card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; margin-bottom: var(--sp-2); }
.post-card__title a { color: #fff; }
.post-card__title a:hover { color: var(--cyan-bright); }
/* Stretched link: one accessible link covers the whole card, so the cover
   image and the "Read" affordance do not need to be links of their own. */
.post-card { position: relative; }
.post-card__title a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__meta a { position: relative; z-index: 2; }
.post-card__excerpt { font-size: .875rem; color: var(--text-dim); flex: 1; margin: 0; }
.post-card__foot { margin-top: var(--sp-4); }

/* World map */
.map-wrap {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: radial-gradient(ellipse at 50% 50%, rgba(6,182,212,.06), transparent 70%), var(--surface-0);
  padding: clamp(16px, 3vw, 32px);
  overflow: hidden;
}
.map-svg { width: 100%; height: auto; }
.map-svg .land { fill: rgba(255,255,255,.045); stroke: rgba(255,255,255,.07); stroke-width: .4; }
.map-node { fill: var(--cyan-bright); }
.map-node--core { fill: #fff; }
.map-halo { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: .5; transform-box: fill-box; transform-origin: center; animation: ping 3.4s var(--ease-out) infinite; }
@keyframes ping { 0% { r: 3; opacity: .65; } 100% { r: 15; opacity: 0; } }
.map-arc { fill: none; stroke: url(#arcGrad); stroke-width: 1.1; opacity: .5; }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 8px rgba(76,215,246,.7); }

/* Region tabs */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.tab {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.02); color: var(--text-dim);
  font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all .16s var(--ease); font-family: var(--font-mono);
}
.tab:hover { color: #fff; border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: rgba(6,182,212,.12); border-color: var(--line-cyan); color: var(--cyan-bright); box-shadow: var(--glow-cyan-soft); }
.tabpanel[hidden] { display: none; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 70% 120% at 15% 0%, rgba(6,182,212,.16), transparent 60%),
    radial-gradient(ellipse 60% 120% at 88% 100%, rgba(99,102,241,.16), transparent 62%),
    var(--surface-0);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band p { color: var(--text-dim); max-width: 60ch; margin-inline: auto; margin-bottom: var(--sp-8); }

/* Contact channel tiles */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-4); }
.channel {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-1);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease-out);
}
.channel:hover { border-color: var(--line-cyan); background: var(--surface-2); transform: translateY(-2px); }
.channel__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.channel__label { font: 700 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.channel__value { margin-top: 5px; font-size: .9375rem; font-weight: 600; color: var(--text); word-break: break-word; }
.channel__hint { margin-top: 3px; font-size: .75rem; color: var(--text-mute); }
.channel--wa .channel__icon { color: #25d366; border-color: rgba(37,211,102,.3); background: rgba(37,211,102,.07); }
.channel--tg .channel__icon { color: #29b6f6; border-color: rgba(41,182,246,.3); background: rgba(41,182,246,.07); }
.channel--mail .channel__icon { color: var(--cyan-bright); border-color: var(--line-cyan); background: rgba(6,182,212,.07); }
.channel--tel .channel__icon { color: var(--indigo-bright); border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.07); }

/* Floating contact dock */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
.dock__toggle {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--cyan-bright);
  background: var(--cyan-bright); color: var(--text-invert);
  box-shadow: 0 10px 30px -8px rgba(6,182,212,.55);
  transition: transform .2s var(--ease-out);
}
.dock__toggle:hover { transform: scale(1.06); }
.dock__toggle .icon-close { display: none; }
.dock.is-open .dock__toggle .icon-open { display: none; }
.dock.is-open .dock__toggle .icon-close { display: block; }
.dock__list { display: grid; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s var(--ease-out); }
.dock.is-open .dock__list { opacity: 1; visibility: visible; transform: none; }
.dock__item {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(11,16,27,.96); backdrop-filter: blur(10px);
  font: 600 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--text);
  box-shadow: 0 8px 24px -12px #000;
}
.dock__item:hover { border-color: var(--cyan); color: #fff; }

/* Prose (blog + legal) */
.prose { min-width: 0; max-width: 74ch; color: var(--text-dim); font-size: 1.0625rem; line-height: 1.78; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.9em; font-size: 1.1875rem; scroll-margin-top: 100px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(76,215,246,.4); }
.prose a:hover { text-decoration-color: var(--cyan-bright); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--cyan); }
.prose blockquote {
  margin: 1.8em 0; padding: var(--sp-5) var(--sp-6);
  border-left: 2px solid var(--cyan);
  background: rgba(6,182,212,.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text); font-size: 1.0625rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre {
  padding: var(--sp-5); overflow-x: auto;
  background: var(--surface-terminal); border: 1px solid var(--line-cyan);
  border-radius: var(--r-md); font-size: .8125rem; line-height: 1.7; color: #86efd4;
}
.prose :not(pre) > code {
  padding: 2px 6px; border-radius: var(--r-xs);
  background: rgba(6,182,212,.10); border: 1px solid rgba(6,182,212,.2);
  color: var(--cyan-bright); font-size: .875em;
}
.prose img, .prose figure { border-radius: var(--r-md); border: 1px solid var(--line); }
.prose figcaption { margin-top: var(--sp-2); font-size: .8125rem; color: var(--text-mute); text-align: center; }
/* Tables are wrapped in .table-scroll by the sanitiser, so a wide comparison
   table scrolls inside its own box instead of widening the whole page. */
.prose .table-scroll { margin-block: 1.6em; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font: 700 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.prose hr { margin: 2.4em 0; }

/* Table of contents */
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc__title { font: 700 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: var(--sp-4); }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc__list a { display: block; padding: 6px 0 6px var(--sp-4); margin-left: -1px; border-left: 1px solid transparent; font-size: .8125rem; color: var(--text-mute); line-height: 1.45; }
.toc__list a:hover { color: var(--text); }
.toc__list a.is-active { color: var(--cyan-bright); border-left-color: var(--cyan); }
.toc__list .lvl-3 a { padding-left: var(--sp-8); font-size: .78rem; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font: 500 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-mute); margin-bottom: var(--sp-5); }
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--cyan-bright); }
.crumbs li { display: flex; align-items: center; gap: var(--sp-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.crumbs [aria-current] { color: var(--text-dim); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-12); flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding-inline: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 600 12px/1 var(--font-mono); color: var(--text-dim);
}
.pager a:hover { border-color: var(--line-cyan); color: var(--cyan-bright); background: rgba(6,182,212,.07); }
.pager .is-current { background: rgba(6,182,212,.14); border-color: var(--line-cyan); color: var(--cyan-bright); }
.pager .is-disabled { opacity: .35; pointer-events: none; }

/* Page header band */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); position: relative; }
.page-head::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .4;
}
.page-head h1 { margin-bottom: var(--sp-4); }
.page-head p { color: var(--text-dim); font-size: 1.0625rem; max-width: 68ch; margin: 0; }

/* --------------------------------------------------------------- 7. Footer */

.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(4,6,12,.7)); margin-top: clamp(56px, 8vw, 112px); }
.footer__top { padding-block: clamp(40px, 5vw, 72px); display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr); } }

.footer__brand-text { color: var(--text-mute); font-size: .875rem; max-width: 42ch; margin: var(--sp-5) 0 var(--sp-6); }
.footer__cols { display: grid; gap: var(--sp-8) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.footer__col-title { font: 700 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: var(--sp-4); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { font-size: .875rem; color: var(--text-dim); }
.footer__links a:hover { color: var(--cyan-bright); }

.footer__newsletter { margin-top: var(--sp-6); }
.footer__form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.footer__form .input { flex: 1 1 200px; }

.footer__bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-6);
  font: 500 11px/1.6 var(--font-mono); letter-spacing: .04em; color: var(--text-mute);
}
.footer__bottom a { color: var(--text-mute); }
.footer__bottom a:hover { color: var(--cyan-bright); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-left: auto; }
.footer__social { display: flex; gap: var(--sp-2); }
.footer__social a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-mute); }
.footer__social a:hover { border-color: var(--line-cyan); color: var(--cyan-bright); background: rgba(6,182,212,.07); }

/* -------------------------------------------------------------- 8. Utility */

.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.text-cyan { color: var(--cyan-bright); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); } .mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); } .mb-12 { margin-bottom: var(--sp-12); }
.flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
/* Hide below the breakpoint only, so the element keeps whatever display its
   own component rule gives it (inline-flex for buttons, grid for icon buttons)
   at larger sizes. Setting `display: initial` here would clobber that. */
@media (max-width: 767.98px) { .hide-sm { display: none !important; } }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ 9. A11y prefs */

@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; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,.22); --line-strong: rgba(255,255,255,.35); --text-dim: #c3cede; --text-mute: #9aa9bf; }
}

/* --------------------------------------------------------------- 10. Print */

@media print {
  body::before, body::after, .header, .ticker, .footer, .dock, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap { border-color: #ccc; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .prose { max-width: none; color: #000; }
}
