/* ==========================================================================
   EToken Tech — Design System
   Dark, technical, enterprise-grade. No framework, no build step.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #06080d;
  --bg-2: #090d15;
  --surface: #0d1219;
  --surface-2: #111823;
  --surface-3: #16202c;

  /* Lines */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  /* Text */
  --text: #e8edf5;
  --text-2: #a4b0c2;
  --text-3: #6f7d91;

  /* Brand */
  --brand: #2f9dff;
  --brand-2: #1b6fd6;
  --brand-soft: rgba(47, 157, 255, .12);
  --accent: #2fe6c0;
  --accent-2: #6f8bff;
  --warn: #ffb547;

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;
  --r-4: 22px;

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

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

  /* Layout */
  --nav-h: 68px;
  --wrap: 1200px;
  --wrap-wide: 1400px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  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-feature-settings: "tnum" 1, "cv05" 1;
}

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

/* Any inline <svg><use/></svg> gets a sane default size so a missing width
   attribute can never blow the layout out. */
svg:not([width]) { width: 1em; height: 1em; flex: 0 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: rgba(47, 157, 255, .32); color: #fff; }

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

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-1) 0;
}
.skip:focus { left: 0; }

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: var(--wrap-wide); }
.wrap-narrow { max-width: 820px; }

.section { padding-block: var(--s-8); position: relative; }
.section-tight { padding-block: var(--s-6); }
.section-alt { background: var(--bg-2); }
.section-rule { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }

.grid { display: grid; gap: var(--s-3); }
.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)); }

@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: var(--s-7); }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  :root { --s-8: 80px; --s-7: 64px; }
}

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; font-weight: 650; }

.h1 { font-size: clamp(2.15rem, 1.35rem + 3.2vw, 3.9rem); }
.h2 { font-size: clamp(1.7rem, 1.15rem + 2vw, 2.65rem); }
.h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); }
.h4 { font-size: 1.05rem; }

.lead {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem);
  color: var(--text-2);
  max-width: 66ch;
}
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.kicker::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-head { max-width: 780px; margin-bottom: var(--s-6); }
.section-head .lead { margin-top: var(--s-2); }

.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .01em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.hl { color: var(--brand); }
.hl-2 { color: var(--accent); }

/* Bilingual visibility. The active language is a class on <html> (lang-zh /
   lang-en); the lang attribute is a localised BCP-47 tag such as "zh-CN", so it
   cannot be matched by an attribute selector and is deliberately not used here. */
.lang-zh .en-only { display: none; }
.lang-en .zh-only { display: none; }
.lang-en .h1, .lang-en .h2, .lang-en .h3 { letter-spacing: -.015em; }
html.lang-en body { line-height: 1.65; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 600; font-size: .94rem;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(47, 157, 255, .75); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); box-shadow: none; }

.btn-quiet { background: var(--surface-2); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-3); box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); }

.btn-sm { padding: 9px 15px; font-size: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 600; font-size: .92rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-4);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(47, 157, 255, .10), transparent 62%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card:hover { border-color: rgba(47, 157, 255, .35); transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(0,0,0,.9); }
.card:hover::after { opacity: 1; }
.card-flat:hover { transform: none; }
.card-pad-lg { padding: var(--s-5); }

.card-title { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.card-body { color: var(--text-2); font-size: .94rem; }

.icon-box {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border-radius: var(--r-2);
  background: var(--brand-soft);
  border: 1px solid rgba(47, 157, 255, .26);
  color: var(--brand);
  margin-bottom: var(--s-3);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box-accent { background: rgba(47, 230, 192, .10); border-color: rgba(47, 230, 192, .26); color: var(--accent); }

/* ---------- 7. Chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-size: .78rem; color: var(--text-2);
  font-family: var(--mono); letter-spacing: .01em;
  white-space: nowrap;
}
.chip-brand { border-color: rgba(47, 157, 255, .35); color: #8dc6ff; background: rgba(47, 157, 255, .08); }
.chip-accent { border-color: rgba(47, 230, 192, .3); color: #74e6cd; background: rgba(47, 230, 192, .07); }

/* ---------- 8. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: rgba(6, 8, 13, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: var(--s-4);
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--text-3); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 9px 13px;
  font-size: .9rem; color: var(--text-2); font-weight: 500;
  border-radius: var(--r-1);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

/* dropdown */
.has-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 268px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 8px;
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .85);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-drop:hover .drop-panel,
.has-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop-item { display: block; padding: 10px 12px; border-radius: var(--r-1); }
.drop-item:hover { background: rgba(47, 157, 255, .1); }
.drop-item b { display: block; font-size: .9rem; font-weight: 600; }
.drop-item span { display: block; font-size: .78rem; color: var(--text-3); line-height: 1.45; }

.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: var(--s-2); }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 3px; background: rgba(255, 255, 255, .03);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  color: var(--text-3);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"]:hover { color: #fff; }

.nav-cta { display: inline-flex; }

.burger {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  background: transparent; cursor: pointer; place-items: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--text);
  transition: transform var(--dur) var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: rgba(6, 8, 13, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--s-4) 24px var(--s-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  border-top: 1px solid var(--line);
}
.nav-open .drawer { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.drawer-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem; font-weight: 550;
}
.drawer-link svg { width: 15px; height: 15px; color: var(--text-3); }
.drawer-group { margin-top: var(--s-3); }
.drawer-group-title { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.drawer-sub { display: block; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .95rem; }
.drawer-foot { margin-top: var(--s-5); display: grid; gap: 10px; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-8);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 72%);
}
.hero-glow {
  position: absolute; left: 50%; top: -340px; width: 1100px; height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47,157,255,.24), rgba(47,157,255,.06) 55%, transparent 74%);
  filter: blur(12px);
}
.hero-glow-2 {
  position: absolute; right: -220px; top: 120px; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(47,230,192,.14), transparent 70%);
  filter: blur(20px);
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-6); align-items: center; }
@media (max-width: 1023px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }

.hero-title { margin-bottom: var(--s-3); }
.hero-title em {
  font-style: normal;
  background: linear-gradient(96deg, var(--brand) 8%, var(--accent) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { max-width: 60ch; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-5); }

.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.stat-n { font-family: var(--mono); font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat-n span { font-size: .95rem; color: var(--brand); }
.stat-l { font-size: .8rem; color: var(--text-3); margin-top: 7px; }

/* Page hero (interior pages) */
.page-hero {
  position: relative; padding-top: calc(var(--nav-h) + var(--s-7)); padding-bottom: var(--s-6);
  overflow: hidden; isolation: isolate;
}
.page-hero .hero-grid-lines {
  mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, #000 20%, transparent 70%);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-3); margin-bottom: var(--s-3); font-family: var(--mono); }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }

/* ---------- 10. Terminal / code panel (tech texture) ---------- */
.panel {
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(22, 32, 44, .92), rgba(9, 13, 21, .96));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.panel-title { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .06em; }
.panel-body { padding: 18px 20px 22px; font-family: var(--mono); font-size: 12.8px; line-height: 1.85; }
.t-line { display: flex; gap: 10px; }
.t-p { color: var(--accent); flex: 0 0 auto; }
.t-c { color: #cfd8e6; }
.t-dim { color: var(--text-3); }
.t-k { color: var(--brand); }
.t-s { color: #8fe3c8; }
.t-w { color: var(--warn); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--brand); vertical-align: -2px; animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Animated status list inside hero panel */
.t-check { display: flex; align-items: center; gap: 10px; }
.t-check svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }
.t-row { opacity: 0; animation: rowIn .55s var(--ease) forwards; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 11. Marquee (trust bar) ---------- */
.marquee { overflow: hidden; position: relative; padding-block: var(--s-4); border-block: 1px solid var(--line); }
.marquee-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-2); }
.marquee-track { display: flex; gap: var(--s-5); width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .93rem; color: var(--text-2); font-weight: 550; white-space: nowrap;
  opacity: .82;
}
.marquee-item svg { width: 16px; height: 16px; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- 12. Feature list ---------- */
.flist > li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .94rem; color: var(--text-2);
}
.flist > li:last-child { border-bottom: 0; }
.flist svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 17px; margin-top: 4px; }
.flist b { color: var(--text); font-weight: 600; }

/* numbered process */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--s-3);
  padding-block: var(--s-4); border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  counter-increment: step;
  font-family: var(--mono); font-size: .95rem; color: var(--brand);
  border: 1px solid rgba(47, 157, 255, .3); border-radius: 50%;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--brand-soft);
}
.step-n::before { content: "0" counter(step); }
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--text-2); font-size: .93rem; }

/* ---------- 13. Product detail blocks ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--text-3); font-weight: 550; width: 34%; font-size: .82rem; letter-spacing: .02em; }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(255, 255, 255, .02); }
.spec-table td { color: var(--text-2); }

.tabset { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
.tab {
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font-size: .88rem; color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tab:hover:not([aria-selected="true"]) { color: var(--text); border-color: rgba(255,255,255,.3); }
.tabpanel[hidden] { display: none; }

.product-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 900px) { .product-split { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } }

.band { position: relative; padding-block: var(--s-7); border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(47,157,255,.05), transparent 70%); }

/* ---------- 14. Architecture diagram (pure CSS/SVG) ---------- */
.arch { border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4); background: var(--surface); }
.arch-row { display: grid; gap: 10px; }
.arch-row + .arch-row { margin-top: 12px; }
.arch-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arch-box {
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  padding: 12px 14px; background: var(--surface-2);
  font-size: .84rem; text-align: center; color: var(--text-2);
}
.arch-box b { display: block; color: var(--text); font-size: .88rem; margin-bottom: 3px; }
.arch-box-brand { border-color: rgba(47,157,255,.4); background: rgba(47,157,255,.08); }
.arch-box-accent { border-color: rgba(47,230,192,.35); background: rgba(47,230,192,.06); }
.arch-arrow { text-align: center; color: var(--text-3); font-family: var(--mono); font-size: 12px; padding-block: 4px; }
@media (max-width: 639px) { .arch-row-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 15. FAQ / accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px 44px 20px 0; font-size: 1.02rem; font-weight: 600; position: relative;
  color: var(--text);
}
.acc-btn::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 1.6px solid var(--brand); border-bottom: 1.6px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.acc-btn[aria-expanded="true"]::after { transform: translateY(-25%) rotate(225deg); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.acc-panel p { padding-bottom: 20px; color: var(--text-2); font-size: .94rem; max-width: 76ch; }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; color: var(--text-2); font-weight: 550; }
.field .req { color: var(--warn); }
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 12px 14px;
  font-size: .93rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.textarea { min-height: 128px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 157, 255, .16);
  background: var(--surface-2);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 639px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.form-note { font-size: .78rem; color: var(--text-3); }
.form-status { font-size: .88rem; min-height: 22px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff7b72; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.contact-item .icon-box { margin-bottom: 0; width: 40px; height: 40px; flex-basis: 40px; }
.contact-item .icon-box svg { width: 18px; height: 18px; }
.contact-l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.contact-v { font-size: .96rem; font-weight: 550; }
.contact-v a:hover { color: var(--brand); }

/* ---------- 17. CTA banner ---------- */
.cta {
  position: relative; overflow: hidden;
  border: 1px solid rgba(47, 157, 255, .3);
  border-radius: var(--r-4);
  padding: var(--s-6) var(--s-5);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(47, 157, 255, .22), transparent 60%),
    radial-gradient(600px 320px at 88% 100%, rgba(47, 230, 192, .14), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.cta > * { position: relative; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 18. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: var(--s-7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-h { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.footer-link { display: block; padding: 6px 0; font-size: .9rem; color: var(--text-2); }
.footer-link:hover { color: var(--brand); }
.footer-bottom {
  margin-top: var(--s-6); padding-block: var(--s-4); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-3);
}
.footer-bottom a:hover { color: var(--text-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 19. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }
.reveal[data-d="5"] { transition-delay: .45s; }
.no-js .reveal, .reveal.no-anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 20. Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.flex { display: flex; } .aic { align-items: center; } .gap-2 { gap: var(--s-2); } .gap-1 { gap: var(--s-1); }
.wrap-gap { flex-wrap: wrap; }
.hidden { display: none !important; }
.full { width: 100%; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-4); }

/* Typographic utilities. The site's Content-Security-Policy forbids inline
   style attributes, so every per-element size/caption tweak is a class here. */
.t-sm   { font-size: .78rem; }
.t-sm2  { font-size: .8rem; }
.t-sm3  { font-size: .82rem; }
.t-cap  { max-width: 66ch; }
.t-left { text-align: left; }
.note-block {
  margin-top: var(--s-3); padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--text-3);
}
.note-block-term {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--mono); font-size: 11.5px; color: #6f7d91;
}
.diagram-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3);
}

/* Hero terminal panel: staggered entrance, driven by classes rather than
   inline animation shorthand. */
.t-stagger > * { opacity: 0; animation: rowIn .55s var(--ease) forwards; }
.t-stagger > *:nth-child(1) { animation-delay: .15s; }
.t-stagger > *:nth-child(2) { animation-delay: .30s; }
.t-stagger > *:nth-child(3) { animation-delay: .50s; }
.t-stagger > *:nth-child(4) { animation-delay: .70s; }
.t-stagger > *:nth-child(5) { animation-delay: .90s; }
.t-stagger > *:nth-child(6) { animation-delay: 1.10s; }
.t-stagger > *:nth-child(7) { animation-delay: 1.30s; }
.t-stagger > *:nth-child(8) { animation-delay: 1.50s; }
.t-ico { display: inline; width: 13px; height: 13px; vertical-align: -2px; }
.t-ico-ok  { color: var(--accent); }
.t-ico-warn { color: var(--warn); }
@media (prefers-reduced-motion: reduce) {
  .t-stagger > * { opacity: 1; animation: none; }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 101;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  width: 0; transition: width .12s linear;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(13, 18, 25, .85);
  backdrop-filter: blur(10px);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); border-color: var(--brand); }
.to-top svg { width: 17px; height: 17px; color: var(--text-2); }

/* print */
@media print {
  .nav, .drawer, .to-top, .scroll-progress, .hero-bg, .cta { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding-block: 16px; }
}

/* Print-on-paper safety: the chrome above is hidden, but .nav-inner nests the
   language toggle, so un-hide the interactive bits instead of nuking the bar. */
@media print {
  .nav, .nav * { display: none !important; }
}
.t-sm4  { font-size: .88rem; }
.t-cap2 { max-width: 34ch; font-size: .9rem; }
.pb-10  { padding-bottom: 10px; }
