/* ==========================================================================
   CodeMasters · db-ya.com · design system
   ========================================================================== */
:root {
  --bg: #07090d;
  --bg-2: #0a0d13;
  --bg-3: #0d1118;
  --panel: #0e131b;
  --panel-2: #121924;
  --panel-3: #172030;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);

  --text: #f2f5f9;
  --text-2: #a3adbb;
  --text-3: #6c7686;
  --text-4: #4a5362;

  --accent: #5b8cff;
  --accent-2: #39d0ff;
  --accent-3: #8fb0ff;
  --accent-soft: rgba(91, 140, 255, 0.13);
  --accent-line: rgba(91, 140, 255, 0.42);
  --ok: #5fd39a;
  --warn: #ffb547;
  --err: #ff7f7a;

  --c-lang: #ffb86b;
  --c-front: #7cc7ff;
  --c-back: #8fe0a8;
  --c-data: #ffd580;
  --c-mobile: #ff9ec7;
  --c-desktop: #c3a6ff;
  --c-ai: #39d0ff;
  --c-cloud: #8fb0ff;
  --c-integ: #ffa59a;

  --t-k: #ff8fb8;
  --t-s: #9fe3a9;
  --t-f: #7cc7ff;
  --t-n: #ffb86b;
  --t-t: #ffd98a;
  --t-c: #5f6d81;
  --t-v: #e9eef5;
  --t-tag: #7ee0c8;
  --t-a: #ffd98a;
  --t-p: #8b98aa;

  --font: "IBM Plex Sans Hebrew", "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --section: clamp(88px, 11vw, 150px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
::selection { background: rgba(91, 140, 255, 0.35); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 300;
  padding: 10px 16px; border-radius: var(--r);
  background: #fff; color: #05070b; font-weight: 600;
  transform: translateY(-180%); transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

* { scrollbar-width: thin; scrollbar-color: #222a36 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1d2430; border-radius: 10px; border: 2px solid var(--bg); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ic { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 0.98rem; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 0.92rem; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-primary {
  background: #fff; color: #06080c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 24px -10px rgba(91, 140, 255, 0.55);
}
.btn-primary:hover { background: #e9efff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 32px -10px rgba(91, 140, 255, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn-ic { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-ic { transform: translateX(-3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-3); font-weight: 500; font-size: 0.98rem;
  transition: color 0.2s ease, gap 0.25s var(--ease);
}
.link-arrow .ic { width: 17px; height: 17px; }
.link-arrow:hover { color: #fff; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  view-transition-name: site-header;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  opacity: 0; transition: opacity 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before, .site-header.menu-open::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; filter: drop-shadow(0 6px 14px rgba(91, 140, 255, 0.35)); }
.logo-cursor { animation: blink 1.15s steps(1) infinite; }
.logo-text { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.015em; }
.logo-text span { font-weight: 400; color: var(--text-2); }
.main-nav {
  display: flex; gap: 2px; margin-inline-start: auto;
  padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
}
.main-nav a {
  position: relative; padding: 7px 15px; border-radius: 10px;
  font-size: 0.94rem; color: var(--text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); align-items: center; justify-content: center; color: var(--text);
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-x { display: none; }
.menu-btn[aria-expanded="true"] .ic-x { display: block; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.mobile-menu {
  position: absolute; top: var(--header-h); inset-inline: 0;
  height: calc(100dvh - var(--header-h));
  background: rgba(7, 9, 13, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { display: grid; padding-block: 18px 32px; }
.mobile-menu-inner > a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; font-size: 1.4rem; font-weight: 600; border-bottom: 1px solid var(--line);
}
.mobile-menu-inner > a[aria-current="page"] { color: var(--accent-3); }
.mobile-menu-inner .ic { width: 20px; height: 20px; color: var(--text-3); }
.mobile-cta { margin-top: 26px; }

/* ---------- section heads ---------- */
.section { position: relative; padding-block: var(--section); }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 20px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
.sh-side { display: grid; gap: 16px; justify-items: start; }
.section-head-stack { grid-template-columns: minmax(0, 1fr); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 0.86rem; font-weight: 500; color: var(--accent-3);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.section-title { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.025em; }
.section-sub { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.16rem); color: var(--text-2); max-width: 34em; }

/* ---------- spotlight cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(143, 176, 255, 0.55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease;
}
.spot:hover::after { opacity: 1; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 72px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px; padding-bottom: 56px;
}
.footer-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-brand p { color: var(--text-3); font-size: 0.95rem; max-width: 26em; }
.footer-col h2 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-3); font-size: 0.94rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-col p { color: var(--text-3); font-size: 0.94rem; margin-bottom: 14px; }
.footer-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-3) !important; font-weight: 500; }
.footer-cta .ic { width: 16px; height: 16px; }
.footer-channels { display: grid; gap: 8px; margin-top: 16px; }
.footer-channels a { display: flex; align-items: center; gap: 8px; }
.footer-channels .ch-label { display: none; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px 26px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--text-4);
}
.footer-perf { font-family: var(--mono); font-size: 0.78rem; }
[data-channels][hidden], [data-channel][hidden], [data-channels-card][hidden] { display: none !important; }

@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(72px, 9vw, 128px);
}
.hero-bg, .page-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-glow.g1 {
  width: 760px; height: 520px; inset-inline-end: -8%; top: 8%;
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.34), transparent 72%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-glow.g2 {
  width: 520px; height: 420px; inset-inline-end: 18%; top: 42%;
  background: radial-gradient(closest-side, rgba(57, 208, 255, 0.18), transparent 72%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.hero-beam {
  position: absolute; top: -20%; inset-inline-end: 26%;
  width: 2px; height: 70%;
  background: linear-gradient(to bottom, transparent, rgba(143, 176, 255, 0.55), transparent);
  transform: rotate(28deg); filter: blur(0.5px); opacity: 0.55;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.035);
  font-size: 0.88rem; color: var(--text-2);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 211, 154, 0.15); }
.hero-title {
  font-size: clamp(2.4rem, 1.2rem + 3.1vw, 3.9rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
}
.hero-em {
  display: block;
  background: linear-gradient(100deg, #ffffff 0%, #c9d9ff 35%, var(--accent) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 33em; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); color: var(--text-2); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  padding-top: 26px; margin-top: 6px; border-top: 1px solid var(--line);
}
.hero-facts > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-facts dt { font-size: 0.88rem; color: var(--text-3); }
.hero-facts dd { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; text-align: right; }

/* entry choreography (CSS only, so it never depends on JS) */
.hero-content > * { animation: rise 0.9s var(--ease) both; }
.hero-content > :nth-child(1) { animation-delay: 0.05s; }
.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.22s; }
.hero-content > :nth-child(4) { animation-delay: 0.32s; }
.hero-content > :nth-child(5) { animation-delay: 0.42s; }
.hero-visual { animation: rise-visual 1.2s var(--ease) 0.25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-visual { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- IDE ---------- */
.hero-visual { position: relative; min-width: 0; perspective: 1800px; }
.ide-wrap {
  position: relative;
  transform: rotateY(var(--ry, 6deg)) rotateX(var(--rx, 3deg));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.ide {
  --lh: 22px;
  position: relative;
  direction: ltr; text-align: left;
  font-family: var(--mono);
  border-radius: 16px;
  background: linear-gradient(180deg, #0f1520, #0b1018);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 30px 120px -40px rgba(91, 140, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.ide-titlebar {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 38px; background: #0c1119; border-bottom: 1px solid var(--line);
}
.ide-dots { position: absolute; left: 14px; display: flex; gap: 7px; }
.ide-dots i { width: 11px; height: 11px; border-radius: 50%; background: #262f3d; }
.ide-dots i:nth-child(1) { background: #ff6b6b; opacity: 0.85; }
.ide-dots i:nth-child(2) { background: #ffc35a; opacity: 0.85; }
.ide-dots i:nth-child(3) { background: #46d17f; opacity: 0.85; }
.ide-title { font-size: 12px; color: var(--text-3); }
.ide-body { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
.ide-activity {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding-top: 14px; background: #0b1017; border-right: 1px solid var(--line); color: #4b5566;
}
.ide-activity .ic { width: 20px; height: 20px; }
.ide-activity .ic.on { color: var(--text-2); }
.ide-editor { min-width: 0; display: flex; flex-direction: column; }
.ide-tabs {
  position: relative; display: flex; height: 36px; overflow-x: auto; scrollbar-width: none;
  background: #0c1119; border-bottom: 1px solid var(--line);
}
.ide-tabs::-webkit-scrollbar { display: none; }
.ide-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px; font-family: var(--mono); font-size: 12px; white-space: nowrap;
  color: var(--text-3); border-right: 1px solid var(--line);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.ide-tab:hover { color: var(--text-2); }
.ide-tab .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c, #888); }
.ide-tab.is-active { color: var(--text); background: #0f1520; }
.ide-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.ide-code {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  height: calc(var(--lh) * 15 + 24px); padding-block: 12px; overflow: hidden;
}
.ide-hl {
  position: absolute; top: 12px; left: 0; right: 0; height: var(--lh);
  background: rgba(91, 140, 255, 0.07);
  border-left: 2px solid var(--accent);
  transform: translateY(calc(var(--line, 0) * var(--lh)));
  transition: transform 0.12s ease;
}
.ide-gutter {
  padding: 0 14px 0 14px; min-width: 3.2em; text-align: right;
  font-size: 12px; line-height: var(--lh); color: #3b4556; user-select: none;
}
.ide-gutter li.cur { color: var(--text-2); }
.ide-pre {
  padding: 0 18px 0 4px; font-family: var(--mono); font-size: 13px; line-height: var(--lh);
  color: var(--t-v); white-space: pre; overflow: hidden; tab-size: 4;
}
.ide-pre code { font: inherit; }
.caret {
  display: inline-block; width: 2px; height: 16px; margin-right: -2px; vertical-align: -3px;
  background: var(--accent-3); animation: blink 1s steps(1) infinite;
}
.caret.typing { animation: none; }
.tk-k { color: var(--t-k); }
.tk-s { color: var(--t-s); }
.tk-f { color: var(--t-f); }
.tk-n { color: var(--t-n); }
.tk-t { color: var(--t-t); }
.tk-v { color: #f3c9a8; }
.tk-c { color: var(--t-c); font-style: italic; }
.tk-c bdi { font-style: normal; font-family: var(--font); font-size: 0.95em; }
.tk-p { color: var(--t-p); }
.tk-o { color: #a6b3c4; }
.tk-tag { color: var(--t-tag); }
.tk-a { color: var(--t-a); }

.ide-term { border-top: 1px solid var(--line); background: #090d13; }
.ide-term-tabs {
  display: flex; align-items: center; gap: 18px; height: 32px; padding: 0 14px;
  font-size: 11px; letter-spacing: 0.04em; color: var(--text-4); border-bottom: 1px solid var(--line);
}
.ide-term-tabs .on { color: var(--text-2); box-shadow: inset 0 -1px 0 var(--accent); padding-block: 8px; }
.ide-term-tabs em { margin-left: auto; font-style: normal; color: var(--text-3); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ide-term-body { height: 124px; padding: 10px 14px; font-size: 12px; line-height: 1.72; color: var(--text-2); overflow: hidden; }
.tline { white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: tline 0.3s var(--ease) both; }
.tline .p { color: var(--accent-3); }
.tline .ok { color: var(--ok); }
.tline .dim { color: var(--text-3); }
.tline .wr { color: var(--warn); }
.tline .hi { color: var(--text); }
@keyframes tline { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ide-status {
  display: flex; align-items: center; gap: 16px; height: 24px; padding: 0 12px;
  font-size: 11px; color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(90deg, #2d55d6, #3a6cf0);
}
.ide-status span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ide-status .ic { width: 12px; height: 12px; }
.ide-status .sp { flex: 1; }

/* floating cards */
.fcard {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 14px; border-radius: 14px;
  background: rgba(14, 19, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transform: translateZ(60px);
  animation: float 7s ease-in-out infinite;
}
.fcard b { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.fcard small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); line-height: 1.4; text-align: right; }
.fc-ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-3); }
.fc-ic.ok { background: rgba(95, 211, 154, 0.14); color: var(--ok); }
.fc-ic.cy { background: rgba(57, 208, 255, 0.13); color: var(--accent-2); }
.fc-1 { top: -28px; right: -22px; animation-delay: -1s; }
.fc-2 { top: 60%; left: -64px; animation-delay: -3.5s; }
.fc-3 { bottom: -44px; right: 16%; animation-delay: -5s; }
.fcard.ping { animation: float 7s ease-in-out infinite, ping 0.9s var(--ease); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.55), 0 18px 40px -18px rgba(0, 0, 0, 0.8); } 100% { box-shadow: 0 0 0 14px rgba(91, 140, 255, 0), 0 18px 40px -18px rgba(0, 0, 0, 0.8); } }

/* ---------- tech marquee ---------- */
.logos { padding-block: 8px 24px; border-block: 1px solid var(--line); background: var(--bg-2); }
.logos-title { padding-block: 26px 18px; font-size: 0.92rem; font-weight: 500; color: var(--text-3); text-align: center; }
.marquee {
  --gap: 12px;
  direction: ltr;
  overflow: hidden; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 70s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.tpill {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  height: 42px; padding: 0 16px 0 7px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.tp-mono, .tc-mono {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc) 26%, transparent);
}
.c-lang { --cc: var(--c-lang); } .c-front { --cc: var(--c-front); } .c-back { --cc: var(--c-back); }
.c-data { --cc: var(--c-data); } .c-mobile { --cc: var(--c-mobile); } .c-desktop { --cc: var(--c-desktop); }
.c-ai { --cc: var(--c-ai); } .c-cloud { --cc: var(--c-cloud); } .c-integ { --cc: var(--c-integ); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  grid-column: span 4;
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease;
}
a.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile-web { grid-column: span 7; }
.tile-backend { grid-column: span 5; }
.tile-automation { grid-column: span 6; }
.tile-list { grid-column: span 6; padding: 28px; }
.tile-viz {
  position: relative; height: 236px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(91, 140, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 22px;
}
.tile-web .tile-viz { place-items: start center; padding-bottom: 0; }
.tile-web .mock-browser { max-width: 600px; }
.tile-body { display: grid; gap: 8px; padding: 22px 26px 26px; }
.tile-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 6px;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent-3);
  border: 1px solid rgba(91, 140, 255, 0.22);
}
.tile-icon .ic { width: 20px; height: 20px; }
.tile h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }
.tile p { color: var(--text-2); font-size: 0.98rem; line-height: 1.65; }
.tile-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  color: var(--accent-3); font-size: 0.92rem; font-weight: 500;
  transition: gap 0.25s var(--ease);
}
.tile-more .ic { width: 16px; height: 16px; }
a.tile:hover .tile-more { gap: 11px; }
.tile-list-head { margin-bottom: 14px; }
.tile-list-head h3 { margin-bottom: 4px; }
.more-list { display: grid; }
.more-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 13px 4px; border-top: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.more-list li:first-child a { border-top: 0; }
.more-list a:hover { background: rgba(255, 255, 255, 0.025); }
.ml-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2); }
.ml-icon .ic { width: 18px; height: 18px; }
.ml-text b { display: block; font-size: 0.98rem; font-weight: 600; }
.ml-text small { display: block; font-size: 0.86rem; color: var(--text-3); line-height: 1.5; }
.ml-chev { width: 16px; height: 16px; color: var(--text-4); transition: transform 0.25s var(--ease), color 0.2s ease; }
.more-list a:hover .ml-chev { color: var(--text-2); transform: translateX(-3px); }

/* ---------- mock UIs (shared by bento + services) ---------- */
.mock-browser, .mock-ext {
  width: 100%; max-width: 520px; border-radius: 12px; overflow: hidden;
  background: #0b1018; border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}
.mb-bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; background: #0e141e; border-bottom: 1px solid var(--line); direction: ltr; }
.mb-dots { display: flex; gap: 5px; } .mb-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2a3342; }
.mb-url { flex: 1; height: 18px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #141b26; font-family: var(--mono); font-size: 10px; color: var(--text-3); overflow: hidden; white-space: nowrap; }
.mb-body { display: grid; grid-template-columns: 46px minmax(0, 1fr); min-height: 166px; }
.mb-side { display: flex; flex-direction: column; gap: 9px; padding: 12px 10px; border-inline-end: 1px solid var(--line); background: #0d121b; }
.mb-side b { height: 14px; border-radius: 4px; background: var(--accent); opacity: 0.85; }
.mb-side span { height: 6px; border-radius: 3px; background: #222b39; }
.mb-side span.on { background: #3a4659; }
.mb-main { padding: 12px; display: grid; gap: 10px; }
.mb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mb-kpis > div { padding: 8px 10px; border-radius: 8px; background: #111823; border: 1px solid var(--line); display: grid; }
.mb-kpis small { font-size: 9.5px; color: var(--text-3); line-height: 1.3; }
.mb-kpis b { font-size: 14px; font-weight: 600; text-align: right; }
.mb-kpis em { font-style: normal; font-size: 9.5px; color: var(--ok); text-align: right; }
.mb-kpis em.live { color: var(--accent-2); }
.mb-chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 6px 8px 0; border-radius: 8px; background: #0f151f; border: 1px solid var(--line); direction: ltr; }
.mb-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-3), var(--accent)); opacity: 0.85; transform-origin: bottom; animation: bar-live 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.27s); }
@keyframes bar-live { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.82); } }
.mb-rows { display: grid; gap: 6px; }
.mb-rows span { height: 7px; border-radius: 4px; background: #1a2230; }
.mb-rows span:nth-child(2) { width: 82%; } .mb-rows span:nth-child(3) { width: 64%; }

.mock-api { width: 100%; max-width: 360px; display: grid; gap: 8px; font-family: var(--mono); font-size: 11.5px; }
.api-req, .api-res { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; background: #0d131c; border: 1px solid var(--line); }
.api-m { padding: 2px 7px; border-radius: 5px; background: rgba(95, 211, 154, 0.14); color: var(--ok); font-weight: 500; }
.api-path { color: var(--text); flex: 1; }
.api-tag { color: var(--text-3); font-size: 10px; }
.api-res { animation: api-in 4s ease-in-out infinite; }
.api-code { color: var(--ok); }
.api-ms { margin-left: auto; color: var(--text-3); }
.api-json { padding: 10px 12px; border-radius: 9px; background: #0a0f16; border: 1px solid var(--line); color: var(--text-2); line-height: 1.6; font-family: var(--mono); font-size: 11.5px; }
.api-json .jl { display: block; white-space: pre; animation: api-line 4s ease-in-out infinite; animation-delay: calc(var(--d) * 0.12s); }
.api-json i { font-style: normal; }
.api-json .k { color: var(--t-f); } .api-json .s { color: var(--t-s); } .api-json .n { color: var(--t-n); } .api-json .b { color: var(--t-k); }
.api-spark { width: 100%; height: 34px; }
.sp-line { fill: none; stroke: var(--accent-3); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.sp-area { fill: rgba(91, 140, 255, 0.12); }
.api-foot { display: flex; justify-content: space-between; color: var(--text-3); font-size: 10.5px; }
@keyframes api-in { 0%, 8% { opacity: 0.3; } 18%, 100% { opacity: 1; } }
@keyframes api-line { 0%, 12% { opacity: 0; transform: translateX(-4px); } 24%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.mock-ai { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.ai-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #0d131c; border: 1px solid var(--line); }
.ai-chip { justify-self: start; padding: 2px 8px; border-radius: 6px; font-size: 11px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); }
.ai-chip-hot { color: var(--accent-2); background: rgba(57, 208, 255, 0.12); }
.ai-wave { display: flex; align-items: center; gap: 2px; height: 26px; direction: ltr; }
.ai-wave span { flex: 1; height: 100%; border-radius: 2px; background: var(--accent-3); opacity: 0.8; transform: scaleY(0.25); animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.083s); }
.ai-wave span:nth-child(3n) { animation-duration: 1.4s; } .ai-wave span:nth-child(4n+1) { animation-duration: 0.9s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.ai-dur { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.ai-text { grid-column: span 2; font-size: 0.86rem; color: var(--text); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: type-rtl 7s steps(32) infinite; }
@keyframes type-rtl { 0% { clip-path: inset(0 0 0 100%); } 34%, 94% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.ai-tags { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-tags span { padding: 3px 9px; border-radius: 999px; font-size: 11px; color: var(--text-2); border: 1px solid var(--line-2); }
.ai-tags span:last-child { color: var(--ok); border-color: rgba(95, 211, 154, 0.35); animation: tag-glow 7s ease infinite; }
@keyframes tag-glow { 0%, 40% { box-shadow: none; } 48% { box-shadow: 0 0 0 4px rgba(95, 211, 154, 0.18); } 60%, 100% { box-shadow: none; } }
@keyframes tag-in { 0%, 36% { opacity: 0; transform: translateY(4px); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.mock-phone { width: 100%; height: 100%; display: grid; place-items: end center; }
.phone {
  position: relative; width: 168px; height: 300px; margin-bottom: -96px;
  border-radius: 30px; padding: 10px; background: #0b1017;
  border: 1px solid var(--line-3);
  box-shadow: inset 0 0 0 4px #121925, 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.phone-island { position: absolute; top: 12px; left: 50%; width: 52px; height: 15px; border-radius: 10px; background: #000; transform: translateX(-50%); z-index: 3; }
.phone-status { display: flex; justify-content: space-between; padding: 4px 10px 0; font-size: 9px; color: var(--text-2); }
.phone-status .ps { display: flex; gap: 3px; } .phone-status .ps i { width: 9px; height: 6px; border-radius: 2px; background: var(--text-3); }
.push {
  position: absolute; top: 34px; left: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 13px;
  background: rgba(30, 38, 52, 0.92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: push 5s var(--ease) infinite;
}
.push-ic { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; background: linear-gradient(135deg, #86adff, #3a63f0); }
.push b { display: block; font-size: 10px; line-height: 1.25; }
.push small { display: block; font-size: 8.5px; color: var(--text-3); }
@keyframes push { 0%, 10% { transform: translateY(-120%); opacity: 0; } 18%, 72% { transform: none; opacity: 1; } 82%, 100% { transform: translateY(-120%); opacity: 0; } }
.app { padding: 26px 8px 0; display: grid; gap: 9px; }
.app-hi { font-size: 12px; font-weight: 600; }
.app-hero { padding: 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(91, 140, 255, 0.35), rgba(57, 208, 255, 0.15)); border: 1px solid rgba(91, 140, 255, 0.35); display: grid; }
.app-hero small { font-size: 8.5px; color: var(--text-2); }
.app-hero b { font-size: 15px; text-align: right; }
.app-spark { height: 14px; margin-top: 4px; border-bottom: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 0 0 40% 10%; }
.app-list { display: grid; gap: 6px; }
.app-list span { height: 20px; border-radius: 7px; background: #141c28; border: 1px solid var(--line); }
.app-tabs { display: flex; justify-content: space-around; padding-top: 6px; }
.app-tabs i { width: 16px; height: 4px; border-radius: 2px; background: #273042; }
.app-tabs i.on { background: var(--accent); }

.mock-window { width: 100%; max-width: 330px; border-radius: 12px; overflow: hidden; background: #0c1119; border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.mw-bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 12px; background: #101722; border-bottom: 1px solid var(--line); }
.mw-title { font-size: 11px; color: var(--text-2); }
.mw-ctrl { display: flex; gap: 10px; } .mw-ctrl i { width: 9px; height: 1.5px; background: var(--text-3); }
.mw-body { padding: 14px; display: grid; gap: 11px; }
.mw-file { display: flex; align-items: center; gap: 10px; }
.mw-ficon { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 6px; background: rgba(255, 213, 128, 0.12); color: var(--c-data); font-family: var(--mono); font-size: 9px; border: 1px solid rgba(255, 213, 128, 0.25); }
.mw-file b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-align: right; }
.mw-file small { display: block; font-size: 10px; color: var(--text-3); }
.mw-progress { height: 7px; border-radius: 4px; background: #182030; overflow: hidden; }
.mw-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: right; animation: fill 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.mw-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.mw-speed { color: var(--ok); }
.mw-lanes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; height: 26px; align-items: end; }
.mw-lanes span { height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--accent-3), rgba(91, 140, 255, 0.25)); transform-origin: bottom; animation: lane 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.2s); }
@keyframes lane { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.mock-flow { position: relative; width: 100%; max-width: 460px; aspect-ratio: 360 / 170; }
.flow-svg { width: 100%; height: 100%; overflow: visible; }
.flow-path { fill: none; stroke: rgba(143, 176, 255, 0.28); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow-dot { fill: var(--accent-2); filter: drop-shadow(0 0 4px rgba(57, 208, 255, 0.9)); }
.flow-dot-b { fill: var(--accent-3); }
.flow-node {
  position: absolute; transform: translate(50%, -50%);
  padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 0.78rem; color: var(--text); background: #0e141e; border: 1px solid var(--line-2);
}
[dir="rtl"] .flow-node { transform: translate(-50%, -50%); }
.flow-node { right: auto; }
.flow-hub { background: linear-gradient(135deg, rgba(91, 140, 255, 0.3), rgba(57, 208, 255, 0.14)); border-color: rgba(91, 140, 255, 0.5); font-weight: 600; box-shadow: 0 0 30px -6px rgba(91, 140, 255, 0.6); }

.mock-ext .mb-bar { position: relative; }
.ext-btn { display: inline-flex; align-items: center; gap: 4px; }
.ext-btn i { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #86adff, #3a63f0); }
.ext-btn b { font-family: var(--mono); font-size: 9px; padding: 0 5px; border-radius: 6px; background: var(--err); color: #fff; }
.ext-body { display: grid; grid-template-columns: minmax(0, 1fr) 120px; min-height: 150px; direction: ltr; }
.ext-mail { display: grid; gap: 8px; padding: 14px; align-content: start; }
.ext-mail span { height: 10px; border-radius: 4px; background: #182030; }
.ext-mail span:nth-child(odd) { width: 86%; }
.ext-panel { border-left: 1px solid var(--line-2); background: #0f1622; padding: 12px; display: grid; gap: 8px; align-content: start; animation: panel-in 5s var(--ease) infinite; direction: rtl; }
@keyframes panel-in { 0%, 12% { transform: translateX(100%); } 26%, 84% { transform: none; } 100% { transform: translateX(100%); } }
.ext-title { font-size: 10px; font-weight: 600; }
.ext-item { height: 18px; border-radius: 6px; background: #19222f; }
.ext-item.short { width: 70%; }
.ext-cta { justify-self: start; font-size: 9.5px; padding: 3px 9px; border-radius: 6px; background: var(--accent); color: #fff; }

.mock-cloud { width: 100%; max-width: 340px; border-radius: 12px; background: #0c1119; border: 1px solid var(--line-2); padding: 14px; display: grid; gap: 10px; }
.cl-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); }
.cl-ok { color: var(--ok); }
.cl-list { display: grid; gap: 6px; }
.cl-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; background: #101722; border: 1px solid var(--line); }
.cl-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 211, 154, 0.15); }
.cl-list .deploy i { background: var(--accent-2); animation: blink 0.9s steps(1) infinite; }
.cl-list .svc { font-family: var(--mono); font-size: 11px; text-align: right; }
.cl-list .up { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.cl-list .deploy .up { color: var(--accent-2); }
.cl-log { display: flex; gap: 14px; font-family: var(--mono); font-size: 10px; color: var(--ok); }

.mock-sec { width: 100%; max-width: 360px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.sec-lock { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(95, 211, 154, 0.1); border: 1px solid rgba(95, 211, 154, 0.3); color: var(--ok); }
.sec-ic { width: 32px; height: 32px; }
.sec-rows { display: grid; gap: 7px; font-family: var(--mono); font-size: 11px; }
.sec-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 7px 10px; border-radius: 8px; background: #0d131c; border: 1px solid var(--line); }
.sec-k { color: var(--text-3); }
.sec-v { color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: clip; }
.sec-cipher { color: var(--accent-3); }
.sec-ok { color: var(--ok); }

.mock-ivr { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.ivr-log { padding: 10px 12px; border-radius: 10px; background: #0a0f16; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; line-height: 1.75; color: var(--text-2); }
.ivr-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tline-loop 6s ease infinite; }
.ivr-log div:nth-child(2) { animation-delay: 0.4s; } .ivr-log div:nth-child(3) { animation-delay: 0.8s; } .ivr-log div:nth-child(4) { animation-delay: 1.2s; }
@keyframes tline-loop { 0% { opacity: 0; } 8%, 90% { opacity: 1; } 100% { opacity: 0; } }
.ivr-log b { font-weight: 500; }
.ivr-log .in { color: var(--accent-2); } .ivr-log .out { color: var(--warn); } .ivr-log .ok { color: var(--ok); }
.ivr-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.ivr-keys span { display: grid; place-items: center; height: 26px; border-radius: 7px; background: #111823; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.ivr-keys span:nth-child(1) { animation: key 6s steps(1) infinite 2.2s; }
@keyframes key { 0%, 6% { background: var(--accent); color: #fff; border-color: var(--accent); } 7%, 100% { background: #111823; color: var(--text-3); border-color: var(--line); } }

.mock-hex { width: 100%; max-width: 380px; padding: 12px 14px; border-radius: 10px; background: #0a0f16; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; line-height: 1.9; }
.mock-hex > div:not(.hex-decode) { display: grid; grid-template-columns: 42px minmax(0, 1fr) 84px; gap: 10px; white-space: nowrap; }
.mock-hex .ad { color: var(--text-4); }
.mock-hex .hx { color: var(--text-2); }
.mock-hex .hx b { color: #06080c; background: var(--warn); border-radius: 3px; padding: 0 2px; font-weight: 500; animation: blink-soft 2.4s ease-in-out infinite; }
.mock-hex .as { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.hex-decode { display: flex; gap: 16px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-2); color: var(--text-3); }
.hex-decode b { color: var(--ok); font-weight: 500; }
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ---------- story: from idea to production ---------- */
.story-sec { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.story-steps { display: grid; }
.story-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px;
  min-height: 46vh; padding-block: 28px; align-content: center;
  opacity: 0.35; transition: opacity 0.5s ease;
}
.story-step.is-active { opacity: 1; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--mono); font-size: 0.86rem; color: var(--text-3);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.story-step.is-active .step-num { color: #fff; border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 24px -6px rgba(91, 140, 255, 0.6); }
.story-step h3 { font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem); letter-spacing: -0.015em; margin-bottom: 8px; }
.story-step p { color: var(--text-2); max-width: 30em; }
.story-stage { position: sticky; top: calc(var(--header-h) + 48px); }
.stage {
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, #0f1520, #0a0e15);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 100px -40px rgba(91, 140, 255, 0.45);
}
.stage-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: #0c1119; border-bottom: 1px solid var(--line); direction: ltr; }
.stage-dots { display: flex; gap: 6px; } .stage-dots i { width: 10px; height: 10px; border-radius: 50%; background: #262f3d; }
.stage-title { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.stage-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.stage-body { position: relative; height: 400px; }
.stage-progress { height: 2px; background: var(--line); }
.stage-progress span { display: block; height: 100%; width: calc(var(--p, 0.2) * 100%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s var(--ease); }
.scene {
  position: absolute; inset: 0; padding: 28px;
  opacity: 0; transform: translateY(14px) scale(0.985); visibility: hidden;
  transition: opacity 0.55s ease, transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.scene.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 0.55s ease, transform 0.6s var(--ease), visibility 0s; }

.spec { display: grid; gap: 14px; max-width: 460px; margin-inline: auto; padding: 24px; border-radius: 16px; background: #f4f6fa; color: #121722; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); }
.spec-kicker { font-size: 0.78rem; color: #5b6576; }
.spec h4 { font-size: 1.25rem; letter-spacing: -0.01em; }
.spec-lines { display: grid; gap: 6px; }
.spec-lines span { height: 7px; border-radius: 4px; background: #dfe4ec; }
.spec-lines span.s { width: 60%; }
.spec-list { display: grid; gap: 8px; }
.spec-list li { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.spec-list i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c6cdd8; color: transparent; }
.spec-list i .ic { width: 14px; height: 14px; }
.spec-list em { margin-inline-start: auto; font-style: normal; font-size: 0.74rem; padding: 1px 8px; border-radius: 999px; background: #e8ecf3; color: #5b6576; }
.scene.is-active .spec-list li.done i { animation: tick 0.4s var(--ease) both; animation-delay: calc(var(--d) * 0.35s + 0.3s); }
@keyframes tick { to { background: #3a63f0; border-color: #3a63f0; color: #fff; } }
.spec-stamp { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #127a48; background: #dcf5e8; opacity: 0; }
.spec-stamp .ic { width: 15px; height: 15px; }
.scene.is-active .spec-stamp { animation: stamp 0.5s var(--ease) 1.6s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.3) rotate(-4deg); } to { opacity: 1; transform: none; } }

.arch-area { position: absolute; inset: 40px 56px; }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch-svg line { stroke: rgba(143, 176, 255, 0.45); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene-arch.is-active .arch-svg line { animation: draw 0.7s var(--ease) both; animation-delay: calc(var(--d) * 0.16s + 0.35s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scene-arch .an {
  position: absolute; transform: translate(-50%, -50%); margin-inline: 0;
  padding: 10px 16px; border-radius: 12px; white-space: nowrap; font-size: 0.86rem;
  background: #111824; border: 1px solid var(--line-2); color: var(--text);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.8);
  opacity: 0;
}
.scene-arch.is-active .an { animation: pop 0.5s var(--ease) both; animation-delay: calc(var(--d) * 0.12s); }
.scene-arch .an.hub { font-family: var(--mono); font-weight: 600; padding: 14px 26px; background: linear-gradient(135deg, rgba(91, 140, 255, 0.35), rgba(57, 208, 255, 0.15)); border-color: rgba(91, 140, 255, 0.55); box-shadow: 0 0 40px -10px rgba(91, 140, 255, 0.8); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -40%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%); } }

.code-lines { font-family: var(--mono); font-size: 13px; line-height: 26px; padding: 6px 0; }
.code-lines .cl { display: grid; grid-template-columns: 34px minmax(0, 1fr); white-space: pre; opacity: 0; }
.code-lines .ln { color: #3b4556; text-align: right; padding-right: 14px; }
.code-lines .cx { color: var(--t-v); overflow: hidden; }
.scene-code.is-active .cl { animation: line-type 0.45s steps(18) both; animation-delay: calc(var(--d) * 0.22s + 0.2s); }
@keyframes line-type { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.t-k { color: var(--t-k); } .t-f { color: var(--t-f); } .t-s { color: var(--t-s); } .t-t { color: var(--t-t); } .t-c { color: var(--t-c); }

.term { font-family: var(--mono); font-size: 13px; line-height: 2; color: var(--text-2); }
.term .tl { opacity: 0; white-space: nowrap; }
.scene.is-active .term .tl, .nf-term .tl { animation: tline 0.35s var(--ease) both; animation-delay: calc(var(--d, 0) * 0.32s + 0.2s); }
.term .p { color: var(--accent-3); }
.term .ok b { color: var(--ok); font-weight: 500; }
.term .d { color: var(--text-3); }
.term .t { float: right; color: var(--text-3); }
.term .sum { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); color: var(--text); }
.term .sum b { color: var(--ok); }
.term .err { color: var(--err); }
.test-bar { height: 6px; margin-top: 16px; border-radius: 4px; background: #172030; overflow: hidden; }
.test-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #9cf0c4); }
.scene-tests.is-active .test-bar span { animation: grow 1.8s var(--ease) 0.3s both; }
@keyframes grow { to { width: 100%; } }

.scene-deploy { display: grid; gap: 18px; align-content: start; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pipeline li { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 12px; background: #101722; border: 1px solid var(--line); font-size: 0.8rem; color: var(--text-2); text-align: center; }
.pipeline i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-3); color: transparent; }
.pipeline i .ic { width: 15px; height: 15px; }
.scene-deploy.is-active .pipeline i { animation: tick-ok 0.4s var(--ease) both; animation-delay: calc(var(--d) * 0.28s + 0.3s); }
@keyframes tick-ok { to { background: rgba(95, 211, 154, 0.16); border-color: var(--ok); color: var(--ok); } }
.uptime { padding: 14px 16px; border-radius: 12px; background: #0d131c; border: 1px solid var(--line); }
.uptime-head { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-2); margin-bottom: 10px; }
.uptime-head .ok { color: var(--ok); }
.uptime-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 30px; direction: ltr; }
.uptime-bars span { border-radius: 2px; background: var(--ok); opacity: 0.75; transform-origin: bottom; transform: scaleY(0.2); }
.scene-deploy.is-active .uptime-bars span { animation: up-in 0.4s var(--ease) both; animation-delay: calc(var(--i) * 0.03s + 0.9s); }
@keyframes up-in { to { transform: none; } }
.deploy-log { font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--ok); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 26px;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.stat-value { display: flex; align-items: baseline; gap: 4px; font-size: clamp(2.8rem, 2rem + 2vw, 3.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; white-space: nowrap; }
.stat-value[dir="ltr"] { justify-content: flex-end; }
.sv-unit { font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.sv-num { background: linear-gradient(180deg, #fff, #b9c9ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat h3 { font-size: 1.08rem; font-weight: 600; }
.stat-text { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }
.stat-bars { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; }
.sb-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 54px; gap: 10px; align-items: center; }
.sb-label { font-size: 0.78rem; color: var(--text-3); }
.sb-track { position: relative; height: 8px; background: rgba(255, 255, 255, 0.05); }
.sb-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); min-width: 3px; border-start-end-radius: 4px; border-end-end-radius: 4px; transition: width 1.2s var(--ease); }
.sb-before { background: #3a475a; }
.sb-after { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.sb-val { font-family: var(--mono); font-size: 0.74rem; color: var(--text-2); text-align: left; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: 0 var(--section); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px; border: 1px solid rgba(91, 140, 255, 0.28);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(91, 140, 255, 0.28), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(57, 208, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0f1626, #0a0e17);
}
.cta-art { position: absolute; z-index: -1; left: clamp(20px, 4vw, 56px); top: clamp(24px, 4vw, 48px); opacity: 0.3; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.cta-art pre { font-family: var(--mono); font-size: 13.5px; line-height: 2; color: var(--text-2); }
.cta-content { display: grid; gap: 14px; }
.cta-content h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.03em; }
.cta-content p { color: var(--text-2); font-size: 1.08rem; max-width: 30em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-glow.g1 { width: 640px; height: 420px; inset-inline-end: 4%; top: -10%; }
.page-hero-inner { display: grid; gap: 18px; justify-items: start; }
.page-hero + .section { padding-top: clamp(56px, 7vw, 96px); }
.page-hero-inner > * { animation: rise 0.8s var(--ease) both; }
.page-hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.page-hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.page-hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--text-2); }
.page-title { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.035em; }
.page-sub { max-width: 36em; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); color: var(--text-2); }
.page-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.page-stats li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 0.92rem; }
.page-stats b { color: var(--text); font-size: 1.05rem; }

/* ---------- services explorer ---------- */
.explorer-sec { padding-top: clamp(48px, 6vw, 80px); }
.explorer { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ex-tabs { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 8px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.ex-tab {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; color: var(--text-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ex-tab:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.ex-tab-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: all 0.25s ease; }
.ex-tab-ic .ic { width: 18px; height: 18px; }
.ex-tab-text b { display: block; font-size: 0.95rem; font-weight: 500; line-height: 1.35; }
.ex-tab-text small { display: block; font-size: 0.78rem; color: var(--text-3); }
.ex-tab[aria-selected="true"] { background: rgba(91, 140, 255, 0.1); color: var(--text); }
.ex-tab[aria-selected="true"] .ex-tab-ic { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 140, 255, 0.8); }
.ex-panels { min-width: 0; }
.ex-panel { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.ex-panel:last-child { border-bottom: 0; margin-bottom: 0; }
.js .explorer.is-ready .ex-panel { display: none; padding-bottom: 0; margin-bottom: 0; border: 0; }
.js .explorer.is-ready .ex-panel.is-active { display: block; animation: panel-show 0.5s var(--ease) both; }
@keyframes panel-show { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ex-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 44px; }
.ex-kicker { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-3); margin-bottom: 10px; }
.ex-title { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 14px; }
.ex-lede { color: var(--text-2); font-size: 1.1rem; max-width: 34em; }
.ex-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.ex-meta { font-size: 0.9rem; color: var(--text-3); }
.ex-meta b { color: var(--text); font-weight: 600; }
.ex-viz {
  display: grid; place-items: center; min-height: 300px; padding: 28px; border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(91, 140, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.ex-viz .mock-phone { height: 260px; }
.ex-viz .phone { margin-bottom: -60px; }
.ex-sub { font-size: 0.95rem; font-weight: 500; color: var(--text-3); margin-bottom: 14px; }
.ex-list { columns: 2; column-gap: 36px; border-top: 1px solid var(--line); }
.ex-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.6; break-inside: avoid; }
.ex-list .ic { width: 20px; height: 20px; margin-top: 3px; padding: 3px; border-radius: 6px; color: var(--ok); background: rgba(95, 211, 154, 0.12); }
.ex-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; margin-top: 34px; }
.ex-tech { display: grid; gap: 12px; }
.ex-tech-label { font-size: 0.86rem; color: var(--text-3); }
.ex-tech ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-tech li { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); }
.ex-next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; min-width: 240px;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); color: var(--text-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ex-next small { grid-column: 1; font-size: 0.78rem; color: var(--text-3); }
.ex-next b { grid-column: 1; font-weight: 500; color: var(--text); }
.ex-next .ic { grid-column: 2; grid-row: 1 / 3; width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.ex-next:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.025); }
.ex-next:hover .ic { transform: translateX(-4px); }

/* ---------- technologies ---------- */
.tech-sec { padding-top: clamp(40px, 5vw, 64px); }
.tech-filter { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 calc(var(--gutter) * -1) 18px; padding: 12px var(--gutter); background: rgba(7, 9, 13, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tf-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem; color: var(--text-2); transition: all 0.2s ease;
}
.tf-btn span { font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.tf-btn:hover { color: var(--text); border-color: var(--line-3); }
.tf-btn[aria-pressed="true"] { background: #fff; border-color: #fff; color: #06080c; }
.tf-btn[aria-pressed="true"] span { color: #06080c; background: rgba(0, 0, 0, 0.08); }
.tech-count { font-size: 0.88rem; color: var(--text-3); margin-bottom: 24px; }
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 14px; align-items: start;
  padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s ease, transform 0.35s var(--ease), opacity 0.3s ease;
}
.tcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tcard[hidden] { display: none; }
.tcard.is-entering { animation: card-in 0.45s var(--ease) both; animation-delay: calc(var(--k, 0) * 18ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.tc-mono { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 11px; font-size: 13px; }
.tc-text b { display: block; font-size: 1rem; font-weight: 600; text-align: right; }
.tc-text p { font-size: 0.86rem; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.tc-cat { grid-column: 2; justify-self: start; margin-top: 6px; font-size: 0.72rem; color: var(--text-3); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pr { padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.pr-ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--accent-3); background: var(--accent-soft); margin-bottom: 18px; }
.pr h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.pr p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- process ---------- */
.timeline { position: relative; display: grid; gap: 18px; max-width: 900px; margin-inline: auto; padding-inline-start: 84px; }
.timeline::before, .timeline::after { content: ""; position: absolute; inset-inline-start: 27px; top: 28px; width: 2px; }
.timeline::before { bottom: 28px; background: var(--line-2); }
.timeline::after { height: calc((100% - 56px) * var(--p, 0)); background: linear-gradient(180deg, var(--accent-2), var(--accent)); transition: height 0.2s linear; }
.tl-step { position: relative; }
.tl-node {
  position: absolute; inset-inline-start: -84px; top: 14px; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  font-family: var(--mono); font-size: 0.95rem; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--line-2);
  transition: all 0.4s ease;
}
.tl-step.is-in .tl-node { color: #fff; background: #111a2b; border-color: var(--accent-line); box-shadow: 0 0 30px -8px rgba(91, 140, 255, 0.7); }
.tl-card { padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.tl-card h3 { font-size: 1.35rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.tl-card p { color: var(--text-2); }
.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.std { padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.std-ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--accent-3); background: var(--accent-soft); margin-bottom: 18px; }
.std h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.std p { color: var(--text-2); font-size: 0.97rem; }
.deliver-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.deliver-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.deliverables { display: grid; border-top: 1px solid var(--line); }
.deliverables li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.deliverables .ic { width: 28px; height: 28px; padding: 5px; border-radius: 8px; color: var(--ok); background: rgba(95, 211, 154, 0.12); }
.deliverables b { display: block; font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.deliverables p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- contact ---------- */
.contact-sec { padding-top: clamp(40px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form {
  display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.form-head h2 { font-size: 1.5rem; letter-spacing: -0.015em; }
.form-head p { color: var(--text-3); font-size: 0.9rem; }
.form-row { min-width: 0; }
.form-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field label, .chips legend { font-size: 0.94rem; font-weight: 500; }
.req { color: var(--accent-3); }
.opt { font-weight: 400; color: var(--text-3); font-size: 0.86rem; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  background: rgba(5, 8, 12, 0.6); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.input::placeholder { color: var(--text-4); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.18); background: rgba(5, 8, 12, 0.85); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input[dir="ltr"] { text-align: left; }
.textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.field-error { font-size: 0.86rem; color: var(--err); }
.field-error[hidden] { display: none; }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--text-2); transition: all 0.2s ease; user-select: none; }
.chip:hover span { border-color: var(--line-3); color: var(--text); }
.chip input:checked + span { background: rgba(91, 140, 255, 0.14); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.form-note { font-size: 0.86rem; color: var(--text-3); }
.form button[disabled] { opacity: 0.7; cursor: progress; }
.form-status { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: 0.98rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(95, 211, 154, 0.1); border: 1px solid rgba(95, 211, 154, 0.35); }
.form-status.err { background: rgba(255, 127, 122, 0.08); border: 1px solid rgba(255, 127, 122, 0.35); }
.form-status .ic { width: 22px; height: 22px; margin-top: 2px; }
.form-status.ok .ic { color: var(--ok); }
.form-status.err .ic { color: var(--err); }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.next-steps { display: grid; gap: 16px; }
.next-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.ns-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--accent-3); background: var(--accent-soft); }
.next-steps b { display: block; font-weight: 600; }
.next-steps p { color: var(--text-2); font-size: 0.92rem; }
.channels { display: grid; gap: 8px; }
.channels a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); transition: all 0.2s ease; }
.channels a:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.03); }
.channels .ic { width: 18px; height: 18px; color: var(--accent-3); }
.ch-label { color: var(--text-2); font-size: 0.92rem; }
.ch-value { justify-self: end; font-family: var(--mono); font-size: 0.9rem; }

/* ---------- 404 ---------- */
.nf { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.nf-inner { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(80px, 12vw, 160px); }
.nf-code { font-family: var(--mono); font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff, rgba(143, 176, 255, 0.3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-term { text-align: left; padding: 16px 20px; border-radius: 14px; background: #0a0e15; border: 1px solid var(--line-2); min-width: min(100%, 420px); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- scroll-driven reveals (pure CSS, no JS needed) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .tile, .stat, .tcard:not(.is-entering), .pr, .std, .tl-card, .deliverables li, .cta-card, .aside-card, .ex-panel .ex-list li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sb-bar { animation: bar-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes bar-grow { from { width: 0; } to { width: var(--w); } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- page transitions between pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tile-web, .tile-backend { grid-column: span 6; }
  .tile { grid-column: span 6; }
  .tile-ai { grid-column: span 12; }
  .tile-automation, .tile-list { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-1 { right: -2%; } .fc-2 { left: -3%; }
  .explorer { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-content { max-width: 720px; }
  .hero-visual { max-width: 760px; width: 100%; margin-inline: auto; }
  .ide-wrap { --ry: 0deg !important; --rx: 0deg !important; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-stage { position: relative; top: auto; order: -1; }
  .story-step { min-height: auto; opacity: 1; padding-block: 20px; }
  .story-steps { gap: 4px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-tabs {
    position: sticky; top: var(--header-h); z-index: 20;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
    border-radius: 0; border-inline: 0; background: rgba(7, 9, 13, 0.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .ex-tabs::-webkit-scrollbar { display: none; }
  .ex-tab { flex-shrink: 0; grid-template-columns: auto auto; padding: 6px 12px 6px 8px; border: 1px solid var(--line); }
  .ex-tab-ic { width: 28px; height: 28px; border-radius: 8px; }
  .ex-tab-text small { display: none; }
  .ex-tab-text b { white-space: nowrap; font-size: 0.88rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .deliver-grid { grid-template-columns: minmax(0, 1fr); }
  .deliver-grid .section-head { position: static; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .cta-art { display: none; }
}
@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .tile, .tile-web, .tile-backend, .tile-ai, .tile-automation, .tile-list { grid-column: span 12; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .standards { grid-template-columns: minmax(0, 1fr); }
  .ex-top { grid-template-columns: minmax(0, 1fr); }
  .ex-list { columns: 1; }
  .ex-bottom { grid-template-columns: minmax(0, 1fr); }
  .fcard { display: none; }
  .fc-1 { display: flex; top: auto; bottom: -18px; right: 12px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 12px 26px; }
  .hero-facts dd { font-size: 1.45rem; }
  .ide { --lh: 20px; }
  .ide-body { grid-template-columns: minmax(0, 1fr); }
  .ide-activity { display: none; }
  .ide-pre { font-size: 11.5px; padding-inline-end: 12px; }
  .ide-gutter { font-size: 10.5px; min-width: 2.6em; padding: 0 8px; }
  .ide-code { height: calc(var(--lh) * 13 + 24px); }
  .ide-term-body { height: 112px; font-size: 11px; }
  .ide-status span:nth-child(5), .ide-status span:nth-child(2) { display: none; }
  .tile-viz { height: 210px; padding: 16px; }
  .mb-kpis small { font-size: 8.5px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
  .form-split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .pipeline li { font-size: 0.66rem; padding: 10px 2px; }
  .stage-body { height: 380px; }
  .scene { padding: 18px; }
  .code-lines { font-size: 11px; line-height: 22px; }
  .term { font-size: 11.5px; }
  .timeline { padding-inline-start: 64px; }
  .timeline::before, .timeline::after { inset-inline-start: 21px; }
  .tl-node { inset-inline-start: -64px; width: 44px; height: 44px; border-radius: 12px; font-size: 0.82rem; }
  .tl-card { padding: 20px; }
  .ex-viz { min-height: 260px; padding: 18px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .mock-hex > div:not(.hex-decode) { grid-template-columns: 36px minmax(0, 1fr); }
  .mock-hex .as { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .marquee-track { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media (forced-colors: active) {
  .btn-primary { border: 1px solid ButtonText; }
  .hero-em, .sv-num, .nf-code { color: CanvasText; background: none; }
}

/* ---------- quick search (Ctrl+K) ---------- */
.pal-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px;
  border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); font-size: 0.9rem; transition: all 0.2s ease;
}
.pal-btn:hover { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, 0.06); }
.pal-btn .ic { width: 16px; height: 16px; }
.pal-btn kbd, .pal kbd {
  font-family: var(--mono); font-size: 0.7rem; line-height: 1; color: var(--text-3);
  padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  direction: ltr;
}
.pal[hidden] { display: none; }
.pal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.pal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 8, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pal-fade 0.2s ease both; }
.pal-box {
  position: relative; width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #111723, #0c1018);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(91, 140, 255, 0.08), 0 0 80px -30px rgba(91, 140, 255, 0.5);
  animation: pal-in 0.28s var(--ease) both;
}
@keyframes pal-fade { from { opacity: 0; } }
@keyframes pal-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.pal-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-ic { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }
.pal-input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: transparent; color: var(--text); font-size: 1.05rem; }
.pal-input::placeholder { color: var(--text-4); }
.pal-list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.pal-group { padding: 10px 10px 6px; font-size: 0.76rem; font-weight: 500; color: var(--text-3); }
.pal-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 11px; cursor: pointer; color: var(--text-2);
}
.pal-item[aria-selected="true"] { background: rgba(91, 140, 255, 0.12); color: var(--text); }
.pal-item:hover { background: rgba(255, 255, 255, 0.04); }
.pal-item[aria-selected="true"]:hover { background: rgba(91, 140, 255, 0.14); }
.pal-badge {
  display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px;
  font-size: 0.72rem; font-family: var(--mono); border: 1px solid var(--line-2); color: var(--text-3); background: rgba(255, 255, 255, 0.03);
}
.pal-badge.pal-page { font-family: var(--font); color: var(--accent-3); border-color: rgba(91, 140, 255, 0.3); }
.pal-badge.pal-service { font-family: var(--font); color: var(--ok); border-color: rgba(95, 211, 154, 0.3); }
.pal-text b { display: block; font-size: 0.96rem; font-weight: 500; color: inherit; text-align: right; }
.pal-text small { display: block; font-size: 0.8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-go { width: 16px; height: 16px; color: var(--text-4); opacity: 0; transition: opacity 0.15s ease; }
.pal-item[aria-selected="true"] .pal-go { opacity: 1; color: var(--accent-3); }
.pal-empty { padding: 28px 12px; text-align: center; color: var(--text-3); }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-3); }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pal-foot kbd { padding: 3px 5px; }
html.pal-open { overflow: hidden; }

@media (max-width: 1180px) { .pal-btn-label { display: none; } }
@media (max-width: 860px) {
  .pal-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; }
  .pal-btn kbd { display: none; }
  .pal-btn .ic { width: 20px; height: 20px; }
  .pal { padding-top: 76px; }
  .pal-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pal-box, .pal-backdrop { animation: none; } }

/* ---------- engineering grid: page-wide column lines + section crosses ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  --cw: min(var(--container), calc(100vw - var(--gutter) * 2));
  background:
    linear-gradient(rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045)) calc(50% - var(--cw) / 2) 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045)) calc(50% + var(--cw) / 2) 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025)) 50% 0 / 1px 100% no-repeat;
}
.section, .manifesto, .logos, .page-hero + .section { position: relative; }
.section::after, .manifesto::after {
  content: "";
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: min(calc(var(--container) + 11px), calc(100% - var(--gutter) * 2 + 11px)); height: 11px;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11'><path d='M5.5 0v11M0 5.5h11' stroke='%236c7686' stroke-width='1'/></svg>") left center / 11px 11px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11'><path d='M5.5 0v11M0 5.5h11' stroke='%236c7686' stroke-width='1'/></svg>") right center / 11px 11px no-repeat;
  opacity: 0.7;
}

/* ---------- manifesto ---------- */
.manifesto { padding-block: clamp(80px, 11vw, 150px) clamp(20px, 3vw, 40px); }
.manifesto-text {
  max-width: 1080px;
  font-size: clamp(1.7rem, 1.05rem + 2.25vw, 3.15rem);
  line-height: 1.28; letter-spacing: -0.025em; font-weight: 600;
  color: var(--text);
  text-wrap: pretty;
}
.manifesto-lead { color: var(--text); }
.manifesto-lead::after { content: ""; }
.mw { transition: color 0.35s ease, opacity 0.35s ease; }
.js .mw { color: var(--text-4); }
.js .mw.on { color: var(--text-2); }
.js .mw.on:nth-last-child(-n+7) { color: var(--text); }

/* ---------- terminal section ---------- */
.term-sec { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.term-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.term-copy { display: grid; gap: 18px; justify-items: start; }
.term-copy .section-title { margin: 0; }
.term-copy code, .faq-a code { font-family: var(--mono); font-size: 0.9em; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--accent-3); }
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.term-chip {
  height: 36px; padding: 0 12px; border-radius: 9px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--text-2);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}
.term-chip:hover { color: #fff; border-color: var(--accent-line); background: var(--accent-soft); }
.cli {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0d121b, #090d13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 100px -40px rgba(91, 140, 255, 0.5);
}
.cli-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; background: #0c1119; border-bottom: 1px solid var(--line); }
.cli-bar .ide-dots { position: absolute; left: 14px; }
.cli-title { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.cli-body {
  height: 420px; overflow-y: auto; padding: 16px 18px 20px; cursor: text;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--t-v);
  overscroll-behavior: contain;
}
.cli-body:focus { outline: none; }
.cl-line { white-space: pre-wrap; word-break: break-word; }
.cl-line bdi { font-family: var(--font); font-size: 0.98em; }
.c-dim { color: var(--text-3); }
.c-hi { color: #fff; font-weight: 500; }
.c-ok { color: var(--ok); }
.c-err { color: var(--err); }
.c-cmd { color: var(--accent-3); }
.c-num { color: var(--t-n); }
.c-user { color: var(--ok); }
.c-path { color: var(--accent-3); }
.c-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.c-echo { margin-top: 8px; }
.cli-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cli-prompt { white-space: nowrap; color: var(--text-2); }
.cli-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: var(--mono); font-size: 13.5px; color: #fff; caret-color: var(--accent-3);
  direction: ltr; text-align: left; padding: 0;
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 16px; justify-items: start; }
.faq-head .section-title { margin: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-size: 1.12rem; font-weight: 600; color: var(--text);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-3); }
.faq-ic { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.6px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-ic { border-color: var(--accent-line); color: var(--accent-3); }
.faq-a { padding: 0 2px 24px; max-width: 46em; }
.faq-a p { color: var(--text-2); font-size: 1.02rem; line-height: 1.8; }
.faq-a a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.faq-item[open] .faq-a { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- marquee pause ---------- */
.logos-head { position: relative; }
.mq-pause {
  position: absolute; inset-inline-start: var(--gutter); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line); font-size: 0.78rem; color: var(--text-3);
  transition: all 0.2s ease;
}
.mq-pause:hover { color: var(--text); border-color: var(--line-3); }
.mq-p-ic { width: 9px; height: 10px; border-inline: 3px solid currentColor; }
.mq-pause[aria-pressed="true"] .mq-p-ic { border: 0; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-inline-end: 8px solid currentColor; }
.logos.is-paused .marquee-track { animation-play-state: paused; }

/* ---------- giant footer wordmark ---------- */
.footer-word {
  overflow: hidden; text-align: center; line-height: 0.8; user-select: none;
  padding-top: 8px; margin-bottom: -0.06em;
}
.footer-word span {
  display: inline-block;
  font-size: clamp(3.6rem, -0.5rem + 16vw, 15.5rem); font-weight: 700; letter-spacing: -0.055em;
  background: linear-gradient(180deg, rgba(143, 176, 255, 0.34) 0%, rgba(143, 176, 255, 0.06) 70%, transparent 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(14%);
}
.footer-word b { font-weight: 400; }

@media (max-width: 1024px) {
  .term-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}
@media (max-width: 640px) {
  .cli-body { height: 360px; font-size: 12px; padding: 14px; }
  .cli-input { font-size: 16px; }
  .cli-prompt .c-user { display: none; }
  .mq-pause { position: static; transform: none; margin: 0 auto 12px; }
  .logos-head { display: grid; justify-items: center; }
  .faq-item summary { font-size: 1.02rem; }
  body::after { display: none; }
}

/* ---------- hero grid that lights up around the cursor ---------- */
.hero-grid::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(143, 176, 255, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 176, 255, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), #000, transparent 70%);
  mask-image: radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), #000, transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.hero.is-lit .hero-grid::after { opacity: 1; }
