/* ==========================================================================
   FuTu APAC Tech Limited — Design System
   Dark, precision-engineered corporate identity. No build step required.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --maxw: 1200px;
  --gutter: clamp(20px, 4.2vw, 44px);
  --header-h: 74px;

  --ink: #04060d;
  --ink-2: #060a13;
  --panel: #0b111e;
  --panel-2: #0f1727;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .012));
  --card-border: rgba(148, 163, 184, .15);

  --text: #eef2f9;
  --muted: #a3afc4;
  --dim: #78879f;

  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .26);

  --brand: #3b7cff;
  --brand-2: #2ee6c5;
  --violet: #8b5cf6;
  --gold: #e6b567;

  --grad: linear-gradient(105deg, #2ee6c5 0%, #3b8cff 54%, #8b5cf6 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(59, 140, 255, .55), transparent);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 40px 100px -50px rgba(0, 0, 0, .95);

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .72, .18, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(59, 124, 255, .35); color: #fff; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-160%);
  background: #fff;
  color: #04060d;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .85rem;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.section { position: relative; padding: clamp(72px, 8.5vw, 124px) 0; }
.section--tight { padding: clamp(52px, 6vw, 84px) 0; }
.section--bordered { border-top: 1px solid var(--line); }

.section--light {
  --text: #0a1120;
  --muted: #4c5b73;
  --dim: #6d7a90;
  --line: rgba(15, 23, 42, .1);
  --line-2: rgba(15, 23, 42, .18);
  --panel: #fff;
  --panel-2: #f1f5fa;
  --card-bg: #fff;
  --card-border: rgba(15, 23, 42, .09);
  --shadow: 0 30px 70px -45px rgba(15, 23, 42, .5);
  background: linear-gradient(180deg, #f8fafd 0%, #eef3f9 100%);
  color: var(--text);
}

.section--light .grad-text {
  background-image: linear-gradient(100deg, #0b8f7d 0%, #1d5fd6 55%, #5b3fd6 100%);
}
.section--light .eyebrow .dot {
  background: #0b8f7d;
  box-shadow: 0 0 0 4px rgba(11, 143, 125, .13);
}

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: .718rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(46, 230, 197, .14);
}

.h2 { font-size: clamp(1.9rem, 3.5vw, 2.95rem); }
.h2--sm { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.h3 { font-size: clamp(1.12rem, 1.5vw, 1.3rem); letter-spacing: -.02em; }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.135rem);
  line-height: 1.78;
  color: var(--muted);
  max-width: 62ch;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 62px);
}
.section-head > p { padding-bottom: 6px; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--grad-line);
}

/* ---------- 5. Buttons / chips ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .925rem;
  font-weight: 550;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  color: #03060e;
  background: linear-gradient(100deg, #4df0d4 0%, #5fa2ff 58%, #a58bff 100%);
  box-shadow: 0 14px 40px -16px rgba(59, 140, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px -18px rgba(59, 140, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover {
  border-color: rgba(148, 163, 184, .5);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}
.section--light .btn--ghost { background: rgba(255, 255, 255, .7); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: .84rem; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.link-arrow:hover { color: var(--brand-2); }
.section--light .link-arrow:hover { color: #0b7c6c; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .755rem;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}
.chip--mono { font-family: var(--mono); letter-spacing: .06em; }
.section--light .chip { background: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--mono);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
    backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 66px;
  background: rgba(4, 6, 13, .78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { display: block; height: 52px; width: auto; }
.footer .brand__logo { height: 54px; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__list { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 20px); }

.nav__list a {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: .875rem;
  color: var(--muted);
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--text); }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
}
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: .715rem;
  font-weight: 550;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] {
  color: #04060d;
  background: linear-gradient(100deg, #4df0d4, #7fb0ff);
}

.nav__cta { display: none; }

@media (min-width: 1180px) {
  .nav__cta { display: inline-flex; }
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 92px)) 0 clamp(48px, 6vw, 76px);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -10% -10% auto;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(58% 48% at 16% 8%, rgba(46, 230, 197, .13), transparent 62%),
    radial-gradient(48% 46% at 82% 2%, rgba(59, 124, 255, .2), transparent 60%),
    radial-gradient(46% 40% at 62% 62%, rgba(139, 92, 246, .12), transparent 65%),
    var(--ink);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 22%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 22%, #000 20%, transparent 78%);
  opacity: .55;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.62rem);
  line-height: 1.06;
  letter-spacing: -.038em;
  margin: 0 0 24px;
}
.hero h1 .line { display: block; }

.hero__lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .82rem;
  color: var(--dim);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { width: 15px; height: 15px; color: var(--brand-2); flex: none; }

/* Delivery console */
.console {
  position: relative;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(20, 31, 52, .96), rgba(7, 11, 21, .98));
  box-shadow:
    0 50px 120px -50px rgba(46, 230, 197, .32),
    0 30px 70px -40px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px at 82% -18%, rgba(59, 140, 255, .28), transparent 62%);
  pointer-events: none;
}
.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.console__title {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.console__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7ff0d8;
}
.console__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ee6c5;
  box-shadow: 0 0 0 0 rgba(46, 230, 197, .6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 197, .55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 230, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0); }
}

.console__rows { position: relative; padding: 8px 0; }
.c-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 10px;
  transition: background-color .25s;
}
.c-row:hover { background: rgba(148, 163, 184, .06); }
.c-row + .c-row { box-shadow: inset 0 1px 0 rgba(148, 163, 184, .09); }
.c-row__idx { font-family: var(--mono); font-size: .64rem; color: #5d6b84; }
.c-row__name { font-size: .83rem; color: #dbe4f3; letter-spacing: -.01em; }
.c-row__bar {
  display: block;
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(148, 163, 184, .16);
  overflow: hidden;
}
.c-row__bar i {
  display: block;
  height: 100%;
  width: var(--p, 68%);
  border-radius: 2px;
  background: linear-gradient(90deg, #2ee6c5, #3b8cff);
}
.c-row__state {
  font-family: var(--mono);
  font-size: .59rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.c-row__state[data-state="done"] {
  color: #7ff0d8;
  background: rgba(46, 230, 197, .1);
  border-color: rgba(46, 230, 197, .28);
}
.c-row__state[data-state="progress"] {
  color: #9fc3ff;
  background: rgba(59, 124, 255, .14);
  border-color: rgba(59, 124, 255, .34);
}
.c-row__state[data-state="queue"] {
  color: #9aa8c0;
  background: rgba(148, 163, 184, .1);
  border-color: rgba(148, 163, 184, .22);
}
.console__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--line);
  position: relative;
}
.console__foot span {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  color: #8b99b2;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 6px;
  background: rgba(255, 255, 255, .02);
}
.console__note {
  position: relative;
  margin: 10px 8px 2px;
  font-size: .62rem;
  color: #5f6d86;
  letter-spacing: .02em;
}

/* ---------- 8. Metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(46px, 6vw, 70px);
  padding-top: 8px;
}
.metric { padding: 22px 26px 6px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric__value small { font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.metric__label {
  margin-top: 10px;
  font-size: .79rem;
  color: var(--dim);
  line-height: 1.55;
}

/* ---------- 9. Cards / bento ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease),
    box-shadow .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 140, 255, .16), transparent 62%);
  pointer-events: none;
}
.card:hover { border-color: rgba(148, 163, 184, .34); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, .2);
  background: linear-gradient(150deg, rgba(46, 230, 197, .16), rgba(59, 124, 255, .14));
  color: #bfe9ff;
  flex: none;
}
.card__icon svg { width: 22px; height: 22px; }
.card__num { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; }

.card__title { font-size: 1.12rem; margin-bottom: 10px; }
.card__text { font-size: .905rem; line-height: 1.72; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 22px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.bento > .card { grid-column: span 6; }
.bento > .card.span-7 { grid-column: span 7; }
.bento > .card.span-5 { grid-column: span 5; }

.card__list { display: grid; gap: 9px; margin-top: 16px; }
.card__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.6;
}
.card__list svg { width: 15px; height: 15px; margin-top: 4px; color: var(--brand-2); flex: none; }
.section--light .card__list svg { color: #0b8f7d; }

.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: .73rem;
  color: var(--muted);
}
.flow .flow__node {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-family: var(--mono);
  letter-spacing: .03em;
}
.section--light .flow .flow__node { background: var(--panel-2); }
.flow svg { width: 13px; height: 13px; color: var(--dim); }

/* ---------- 10. Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .015);
}
.process__step {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border-left: 1px solid var(--line);
}
.process__step:first-child { border-left: 0; }
.process__step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.process__step:hover::before { opacity: 1; }
.process__idx {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.process__idx::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.process__step h3 { font-size: 1.22rem; margin-bottom: 12px; }
.process__step p { font-size: .89rem; color: var(--muted); line-height: 1.72; }
.process__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.section--light .process { background: #fff; }
.section--light .process__tags .chip { background: var(--panel-2); }

/* ---------- 11. Dual engine ---------- */
.dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}
.dual__panel {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.dual__panel--hk { background: linear-gradient(160deg, rgba(46, 230, 197, .08), transparent 55%), var(--card-bg); }
.dual__panel--id { background: linear-gradient(160deg, rgba(59, 124, 255, .1), transparent 55%), var(--card-bg); }
.dual__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dual__flag {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.dual h3 { font-size: 1.18rem; }
.dual p { font-size: .9rem; color: var(--muted); }
.dual__list { display: grid; gap: 11px; margin-top: 20px; }
.dual__list li { display: flex; gap: 9px; font-size: .86rem; color: var(--muted); }
.dual__list svg { width: 15px; height: 15px; color: var(--brand-2); margin-top: 4px; flex: none; }
.dual__join {
  display: grid;
  place-items: center;
  align-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle, rgba(59, 124, 255, .22), rgba(4, 6, 13, .9));
  color: var(--muted);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .06em;
}
.dual__join svg { width: 20px; height: 20px; color: var(--brand-2); }

/* ---------- 12. Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.reason {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 28px 26px 28px 0;
  border-bottom: 1px solid var(--line);
}
.reason:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--line); }
.reason__idx {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--brand-2);
  letter-spacing: .1em;
  padding-top: 5px;
}
.reason h3 { font-size: 1.02rem; margin-bottom: 7px; }
.reason p { font-size: .86rem; line-height: 1.68; color: var(--muted); }

/* ---------- 13. Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7d8ba3;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(46, 230, 197, .55);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(34px, 5.4vw, 64px);
  background:
    radial-gradient(70% 130% at 88% 8%, rgba(59, 124, 255, .3), transparent 58%),
    radial-gradient(60% 120% at 6% 96%, rgba(46, 230, 197, .16), transparent 60%),
    linear-gradient(160deg, #0c1424, #070b14);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 90% at 80% 20%, #000, transparent 75%);
  mask-image: radial-gradient(60% 90% at 80% 20%, #000, transparent 75%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 32px;
  align-items: center;
}
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 52ch; font-size: .95rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta__meta { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; font-size: .78rem; color: var(--dim); }
.cta__meta a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.cta__meta a:hover { color: var(--brand-2); border-color: var(--brand-2); }

/* ---------- 15. Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(54px, 7vw, 88px)) 0 clamp(44px, 5vw, 66px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 12% 0%, rgba(46, 230, 197, .14), transparent 62%),
    radial-gradient(46% 58% at 78% 4%, rgba(59, 124, 255, .2), transparent 62%),
    var(--ink);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(72% 80% at 30% 0%, #000, transparent 78%);
  mask-image: radial-gradient(72% 80% at 30% 0%, #000, transparent 78%);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.038em;
  max-width: 30ch;
  margin-bottom: 20px;
}
.page-hero .lead { max-width: 64ch; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .765rem;
  color: var(--dim);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }

/* ---------- 16. Two-column content ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.prose { display: grid; gap: 18px; }
.prose p { color: var(--muted); font-size: .96rem; line-height: 1.82; }
.prose strong { color: var(--text); font-weight: 600; }

.aside-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.aside-card h3 { font-size: .95rem; margin-bottom: 16px; }
.aside-card dl { display: grid; gap: 13px; margin: 0; }
.aside-card dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-family: var(--mono); }
.aside-card dd { margin: 3px 0 0; font-size: .875rem; color: var(--text); line-height: 1.6; }

/* ---------- 17. Tables ---------- */
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.table-card__head h3 { font-size: .98rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th, td { padding: 14px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  background: rgba(255, 255, 255, .025);
  white-space: nowrap;
}
tbody th { color: var(--dim); font-weight: 500; white-space: nowrap; }
tbody td { color: var(--text); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: rgba(148, 163, 184, .04); }
.section--light thead th { background: var(--panel-2); }

/* ---------- 18. Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__year {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--brand-2);
  padding-top: 3px;
}
.section--light .timeline__year { color: #0b8f7d; }
.timeline__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline__body p { font-size: .875rem; color: var(--muted); }

/* ---------- 19. Architecture diagram ---------- */
.arch { display: grid; justify-items: center; }
.arch__box {
  position: relative;
  width: min(620px, 100%);
  padding: 22px 26px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  text-align: center;
}
.arch__box--hq {
  border-color: rgba(46, 230, 197, .4);
  background: linear-gradient(160deg, rgba(46, 230, 197, .16), rgba(59, 124, 255, .08));
  box-shadow: 0 0 60px -22px rgba(46, 230, 197, .55);
}
.arch__box--jv {
  border-color: rgba(59, 124, 255, .42);
  background: linear-gradient(160deg, rgba(59, 124, 255, .16), rgba(139, 92, 246, .08));
}
.arch__kicker { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.arch__box h3 { font-size: 1.05rem; margin: 7px 0 4px; }
.arch__box p { font-size: .78rem; color: var(--muted); }
.arch__box .chip { margin-top: 12px; font-size: .68rem; }
.arch__stem { width: 1px; height: 34px; background: linear-gradient(rgba(148, 163, 184, .1), rgba(46, 230, 197, .7)); }
.arch__split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
  padding-top: 46px;
}
.arch__split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, .45);
}
.arch__split::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: rgba(148, 163, 184, .3);
}
.arch__leaf { position: relative; }
.arch__leaf::before {
  content: "";
  position: absolute;
  top: -31px;
  left: 50%;
  width: 1px;
  height: 31px;
  background: rgba(148, 163, 184, .3);
}
.arch__leaf .arch__box { width: 100%; text-align: left; padding: 20px 22px; }
.arch__leaf .arch__box h3 { font-size: .96rem; }
.arch__leaf .arch__box p { font-size: .76rem; }
.arch__support {
  margin-top: 32px;
  width: 100%;
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
}
.arch__support h4 {
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.arch__support .chip { margin: 0 6px 6px 0; font-size: .7rem; }

/* ---------- 20. Numbered grid (nine lines) ---------- */
.grid-9 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.line-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.line-card:hover { border-color: rgba(148, 163, 184, .34); transform: translateY(-2px); }
.line-card__num {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  color: var(--brand-2);
  display: block;
  margin-bottom: 12px;
}
.line-card h3 { font-size: .98rem; margin-bottom: 10px; letter-spacing: -.015em; }
.line-card ul { display: grid; gap: 7px; }
.line-card li {
  position: relative;
  padding-left: 13px;
  font-size: .785rem;
  line-height: 1.6;
  color: var(--muted);
}
.line-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .55);
}

/* ---------- 21. Path steps ---------- */
.path { display: grid; gap: 0; }
.path__item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.path__item:last-child { border-bottom: 1px solid var(--line); }
.path__num {
  display: grid;
  place-items: center;
  align-self: start;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.section--light .path__num { background: #fff; }
.path__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.path__item p { font-size: .875rem; color: var(--muted); }

/* ---------- 22. Team ---------- */
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.profile {
  position: relative;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
}
.profile::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 124, 255, .16), transparent 65%);
  pointer-events: none;
}
.profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .28);
  background: linear-gradient(150deg, rgba(46, 230, 197, .22), rgba(59, 124, 255, .22));
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #eaf4ff;
  flex: none;
}
.profile__name { font-size: 1.08rem; }
.profile__role { font-size: .765rem; color: var(--brand-2); margin-top: 3px; letter-spacing: .01em; }
.profile p { font-size: .88rem; line-height: 1.75; color: var(--muted); }
.profile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

/* ---------- 23. Accordion (details) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.015em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--dim);
  transition: transform .3s var(--ease), color .3s;
}
.acc details[open] summary::after { transform: rotate(45deg); color: var(--brand-2); }
.acc summary:hover { color: var(--brand-2); }
.acc__idx { font-family: var(--mono); font-size: .68rem; color: var(--dim); }
.acc__body { padding: 0 2px 24px 46px; }
.acc__body p { font-size: .9rem; color: var(--muted); line-height: 1.8; max-width: 78ch; }
.section--light .acc summary:hover { color: #0b7c6c; }

/* ---------- 24. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-list { display: grid; gap: 2px; }
.contact-item {
  position: relative;
  padding: 20px 0 20px 58px;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item__icon {
  position: absolute;
  left: 0;
  top: 17px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--brand-2);
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.contact-item dd { margin: 0; font-size: .9rem; line-height: 1.62; }
.contact-item dd a { border-bottom: 1px solid var(--line-2); }
.contact-item dd a:hover { color: var(--brand-2); border-color: var(--brand-2); }

.form-card {
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.form-card__head { margin-bottom: 26px; }
.form-card__head h2 { font-size: clamp(1.3rem, 2vw, 1.72rem); margin-bottom: 8px; }
.form-card__head p { font-size: .87rem; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .775rem; color: var(--muted); letter-spacing: .01em; }
.field label .req { color: var(--brand-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-family: inherit;
  font-size: .885rem;
  line-height: 1.5;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: #63718a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(59, 140, 255, .7);
  background: rgba(59, 124, 255, .06);
  box-shadow: 0 0 0 3px rgba(59, 124, 255, .16);
}
.field textarea { resize: vertical; min-height: 118px; }
.field 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 d='M1 1l5 5 5-5' fill='none' stroke='%239aa8c0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: #0b111e; color: #eef2f9; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .78rem;
  color: var(--dim);
  line-height: 1.6;
  grid-column: 1 / -1;
}
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #3b8cff; flex: none; }
.check a { color: var(--muted); border-bottom: 1px solid var(--line-2); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; grid-column: 1 / -1; margin-top: 4px; }
.form__status { font-size: .8rem; color: var(--brand-2); min-height: 1.2em; }
.form__status[data-tone="error"] { color: #ff8d8d; }
.form__note { font-size: .73rem; color: var(--dim); margin-top: 14px; line-height: 1.6; }
.field__error { font-size: .72rem; color: #ff9b9b; min-height: 0; }

/* ---------- 25. Privacy / article ---------- */
.article { max-width: 78ch; }
.article h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 40px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.02rem; margin: 26px 0 8px; }
.article p, .article li { color: var(--muted); font-size: .93rem; line-height: 1.85; }
.article p + p { margin-top: 12px; }
.article ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 2px; }
.article ul li { position: relative; padding-left: 18px; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); }
.article a { color: var(--text); border-bottom: 1px solid var(--line-2); }

/* ---------- 26. Footer ---------- */
.footer {
  --text: #eef2f9;
  --muted: #94a2b9;
  --dim: #6f7e96;
  --line: rgba(148, 163, 184, .12);
  --line-2: rgba(148, 163, 184, .2);
  background: #04060d;
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 76px) 0 30px;
  color: var(--text);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { font-size: .86rem; color: var(--muted); max-width: 34ch; line-height: 1.75; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.footer h3 {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: .85rem; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__contact { display: grid; gap: 12px; font-size: .83rem; color: var(--muted); line-height: 1.65; }
.footer__contact a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.footer__contact a:hover { color: var(--brand-2); border-color: var(--brand-2); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .75rem;
  color: var(--dim);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a:hover { color: var(--text); }
.footer__langs { display: flex; gap: 12px; }
.footer__langs button {
  background: none;
  border: 0;
  padding: 0;
  font-size: .75rem;
  color: var(--dim);
  cursor: pointer;
}
.footer__langs button[aria-pressed="true"] { color: var(--brand-2); }
.footer__langs button:hover { color: var(--text); }

/* ---------- 27. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }
[data-reveal][data-delay="4"] { transition-delay: .28s; }
[data-reveal][data-delay="5"] { transition-delay: .35s; }

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { max-width: 620px; }
  .bento > .card, .bento > .card.span-7, .bento > .card.span-5 { grid-column: span 6; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: calc(var(--header-h) + 26px) 26px 40px;
    background: rgba(5, 8, 16, .97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
    z-index: 125;
  }
  body.nav-open .nav { transform: none; }
  .nav:focus { outline: none; }

  /* brand and close button stay above the drawer */
  .site-header .brand,
  .menu-toggle { position: relative; z-index: 140; }

  /* dim the page behind the drawer */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 118;
    background: rgba(2, 4, 10, .62);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  body.nav-open::before { opacity: 1; pointer-events: auto; }

  /* keep brand and close button above the drawer.
     No backdrop-filter here: it would make the header the containing block
     for the position:fixed drawer and collapse it to header height. */
  body.nav-open .site-header {
    z-index: 132;
    height: var(--header-h);
    background: rgba(4, 6, 13, .96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--line);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { padding: 15px 2px; font-size: 1rem; }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--brand-2); }
  .nav .lang { margin-top: 22px; align-self: flex-start; padding: 4px; }
  .lang__btn { padding: 8px 16px; font-size: .8rem; }
  .nav__cta { display: inline-flex; margin-top: 16px; width: 100%; }
  .menu-toggle { display: block; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .process { grid-template-columns: 1fr; }
  .process__step { border-left: 0; border-top: 1px solid var(--line); }
  .process__step:first-child { border-top: 0; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .grid-9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profiles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reason:nth-child(2n) { padding-left: 0; border-left: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metric { border-top: 1px solid var(--line); }
  .metric:nth-child(-n+2) { border-top: 0; }
  .dual { grid-template-columns: 1fr; }
  .dual__join { margin: -4px auto; transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .brand__logo { height: 44px; }
  .bento > .card, .bento > .card.span-7, .bento > .card.span-5 { grid-column: span 12; }
  .hero h1 { font-size: clamp(2.15rem, 8.4vw, 2.9rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__points { gap: 8px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-9 { grid-template-columns: 1fr; }
  .arch__split { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .arch__split::before, .arch__split::after, .arch__leaf::before { display: none; }
  .arch__stem { height: 24px; }
  .arch__box { padding: 18px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .path__item { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; }
  .path__num { width: 40px; height: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .table-card__head { flex-direction: column; align-items: flex-start; }
  th, td { padding: 12px 16px; }
  .cta__meta { flex-direction: column; gap: 10px; }
  .console { padding: 12px; }
  .c-row__name { font-size: .78rem; }
}

@media (max-width: 430px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0; padding-left: 0; }
  .metric:nth-child(2) { border-top: 1px solid var(--line); }
  .brand__logo { height: 38px; }
}

/* ---------- 29. Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .footer, .cta, .marquee { display: none; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 20px 0; }
}

/* ---------- 30. Page components ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.bento > .card.span-4 { grid-column: span 4; }
.bento > .card.span-12 { grid-column: span 12; }

.chip { transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease); }
a.chip:hover, .chip:hover { border-color: var(--line-2); color: var(--text); }

/* Service detail blocks */
.svc {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 4.4vw, 58px) 0;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
}
.svc__num {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: #0b8f7d;
  padding-top: 9px;
}
.svc__head h2 { margin-bottom: 10px; }
.svc__head .lead { font-size: .96rem; max-width: 62ch; }
.svc__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 4vw, 56px);
  padding-left: 104px;
}
.svc__list { display: grid; gap: 12px; align-content: start; }
.svc__list li {
  display: flex;
  gap: 11px;
  font-size: .93rem;
  line-height: 1.62;
  color: var(--muted);
}
.svc__list svg { width: 16px; height: 16px; color: #0b8f7d; margin-top: 4px; flex: none; }
.svc__deliver {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 32px);
}
.svc__deliver h4 {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 14px;
}
.svc__deliver .chip { margin: 0 6px 6px 0; font-size: .72rem; }

/* Small content grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stat-card {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stat-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stat-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(46, 230, 197, .1);
  color: #0b8f7d;
}
.stat-card__icon svg { width: 19px; height: 19px; }
.stat-card h3 { font-size: .98rem; margin-bottom: 8px; }
.stat-card p { font-size: .845rem; line-height: 1.66; color: var(--muted); }

/* Error page */
.error-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: calc(var(--header-h) + 70px) 0 90px;
  text-align: center;
}
.error-page .container { position: relative; z-index: 1; }
.error-page .lead { margin-left: auto; margin-right: auto; max-width: 48em; }
.error-code {
  font-size: clamp(5rem, 15vw, 10.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.07em;
  margin: 6px 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---------- 31. Additional responsive rules ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card.span-4 { grid-column: span 6; }
  .svc__body { padding-left: 0; }
  .svc__head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 960px) {
  .svc__body { grid-template-columns: 1fr; gap: 26px; }
  .svc__deliver { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid-4 { grid-template-columns: 1fr; }
  .svc__head { grid-template-columns: 1fr; gap: 6px; }
  .svc__num { padding-top: 0; }
  .bento > .card.span-4 { grid-column: span 12; }
}
