/* ============ AiButtons — Ethereal Glass ============ */
:root {
  --bg: #05090f;
  --bg-2: #071019;
  --panel: rgba(13, 27, 41, 0.55);
  --panel-solid: #0c1a28;
  --brand: #193648;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --text: #eaf3fa;
  --muted: #8ba3b8;
  --faint: #5f7488;
  --accent: #38dfff;
  --accent-2: #4f8cff;
  --accent-ink: #06131a;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-xl: 2rem;
  --r-inner: calc(2rem - 0.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.display { font-family: "Clash Display", "Plus Jakarta Sans", sans-serif; }
.mono { font-family: "JetBrains Mono", monospace; }

/* grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 60; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 3D canvas */
#bg3d {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}
@media (max-width: 768px) { #bg3d { opacity: 0.45; } }

/* mesh orbs */
.mesh {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  filter: hue-rotate(var(--hue, 0deg));
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(56, 223, 255, 0.10), transparent 65%),
    radial-gradient(800px 700px at -10% 25%, rgba(79, 140, 255, 0.09), transparent 60%),
    radial-gradient(700px 600px at 60% 110%, rgba(25, 54, 72, 0.55), transparent 70%),
    var(--bg);
}
.mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 7.5rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4.5rem 0; } }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

h1, h2 { font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.grad-text {
  background: linear-gradient(100deg, #ffffff 20%, var(--accent) 60%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head p { color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }
.file-tag { color: var(--accent); font-size: 11px; letter-spacing: 0.2em; display: block; margin-bottom: 1rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding-top: 1.4rem; pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.6rem;
  background: rgba(9, 18, 28, 0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.55rem 0.65rem 0.55rem 1.1rem;
  box-shadow: 0 8px 40px -12px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.95rem; }
.nav-logo img { width: 30px; height: 30px; border-radius: 999px; box-shadow: 0 0 0 1px var(--hairline-2); }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: color 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 0.5rem 1.1rem;
  font-size: 0.83rem; font-weight: 700; text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 8px 30px -10px rgba(56, 223, 255, 0.55);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(56,223,255,0.75); }
.nav-cta:active { transform: scale(0.98); }

.burger {
  display: none; pointer-events: auto;
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hairline-2);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.6px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 9, 15, 0.85);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }
.overlay a {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 600;
  color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(3rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.overlay.open a { opacity: 1; transform: translateY(0); }
.overlay.open a:nth-child(1) { transition-delay: 0.08s; }
.overlay.open a:nth-child(2) { transition-delay: 0.14s; }
.overlay.open a:nth-child(3) { transition-delay: 0.2s; }
.overlay.open a:nth-child(4) { transition-delay: 0.26s; }
.overlay.open a:nth-child(5) { transition-delay: 0.32s; }
.overlay.open a:nth-child(6) { transition-delay: 0.38s; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border-radius: 999px; padding: 0.9rem 0.6rem 0.9rem 1.6rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  border: none; cursor: pointer; font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn .ico {
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.5s var(--ease);
}
.btn:hover .ico { transform: translate(3px, -1px) scale(1.05); }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 16px 44px -14px rgba(56, 223, 255, 0.6), inset 0 1px 1px rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 54px -14px rgba(56,223,255,0.8), inset 0 1px 1px rgba(255,255,255,0.4); }
.btn-primary .ico { background: rgba(0, 0, 0, 0.14); color: var(--accent-ink); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--hairline-2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.btn-ghost .ico { background: rgba(255,255,255,0.08); color: var(--text); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(2.2rem); filter: blur(6px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), filter 0.55s var(--ease); }
.rv.in { opacity: 1; transform: translateY(0); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  * { animation-duration: 0.01ms !important; }
}

/* ---------- bezel (double-shell) ---------- */
.shell {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 0.5rem;
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.shell:hover {
  border-color: rgba(56, 223, 255, 0.22);
  box-shadow: 0 24px 60px -30px rgba(56, 223, 255, 0.25);
}
.core {
  background: linear-gradient(160deg, rgba(17, 34, 51, 0.85), rgba(9, 19, 30, 0.9));
  border: 1px solid var(--hairline);
  border-radius: var(--r-inner);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  height: 100%;
  position: relative;
}
.core::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0;
  transition: opacity 0.6s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 223, 255, 0.09), transparent 65%);
}
.core:hover::after { opacity: 1; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding: 1.1rem 0;
  margin-top: 3.5rem;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  font-size: 11px; letter-spacing: 0.22em; color: var(--muted);
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee-track span:nth-child(even) { color: rgba(56, 223, 255, 0.5); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- growth engine ---------- */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 3rem; }
.flow-node {
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--muted); background: rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}
.flow-node.hl {
  color: var(--accent); border-color: rgba(56, 223, 255, 0.4);
  background: rgba(56, 223, 255, 0.06);
  box-shadow: 0 0 24px -6px rgba(56, 223, 255, 0.35), inset 0 1px 1px rgba(255,255,255,0.08);
}
.flow-node.loop { color: #ffd166; border-color: rgba(255, 209, 102, 0.35); background: rgba(255, 209, 102, 0.05); }
.flow-arrow { color: rgba(56, 223, 255, 0.6); font-size: 0.95rem; }
.gw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
@media (max-width: 900px) { .gw-grid { grid-template-columns: 1fr; } }
.gw { padding: 2.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.gw .code { font-size: 10px; letter-spacing: 0.2em; color: var(--accent); }
.gw h3 { font-family: "Clash Display", sans-serif; font-size: 1.35rem; font-weight: 600; }
.gw p { color: var(--muted); font-size: 0.93rem; }
.gw-list { list-style: none; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.gw-list li { color: var(--muted); font-size: 0.88rem; display: flex; gap: 0.6rem; }
.gw-list li::before { content: "▸"; color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 11.5rem 0 7rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 1.4rem 0 1.5rem; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 33rem; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-status { margin-top: 2.6rem; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.hero-status .dot { width: 7px; height: 7px; border-radius: 999px; background: #3ef58f; box-shadow: 0 0 10px #3ef58f; animation: pulse 2s infinite; }

/* terminal */
.term-core { padding: 0; overflow: hidden; }
.term-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--hairline);
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted);
}
.term-bar .lights { display: flex; gap: 6px; }
.term-bar .lights i { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.term-body { padding: 1.3rem 1.4rem; font-size: 12.5px; line-height: 2.1; min-height: 300px; color: #b7cddd; }
.term-body .ln { display: block; opacity: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.term-body .ln.on { opacity: 1; transform: none; }
.term-body .ok { color: #3ef58f; }
.term-body .ac { color: var(--accent); }
.term-body .dim { color: #5b7488; }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-left: 6px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 0.9s var(--ease) infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; } .eq i:nth-child(3) { animation-delay: 0.3s; } .eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 12px; } }

/* ---------- stats ---------- */
.stats { padding: 0 0 1rem; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
@media (max-width: 860px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1.6rem 1.5rem; text-align: left; }
.stat b { font-family: "Clash Display", sans-serif; font-size: 2.1rem; font-weight: 600; display: block; color: var(--text); }
.stat span { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---------- signals ---------- */
.sig-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.9rem; }
.sig-grid > .shell { grid-column: span 4; }
.sig-grid > .shell:nth-child(1), .sig-grid > .shell:nth-child(2) { grid-column: span 6; }
.sig { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; min-height: 205px; transition: transform 0.6s var(--ease); }
.sig:hover { transform: translateY(-4px); }
@media (max-width: 900px) { .sig-grid > .shell, .sig-grid > .shell:nth-child(1), .sig-grid > .shell:nth-child(2) { grid-column: span 12; } .sig { min-height: 0; } }
.sig .tag { font-size: 10px; letter-spacing: 0.2em; color: #ff9d66; }
.sig p { font-size: 1.18rem; font-weight: 600; line-height: 1.4; flex: 1; font-family: "Clash Display", sans-serif; }
.sig .fix { font-size: 10.5px; letter-spacing: 0.18em; color: var(--accent); }
.sig .fix::before { content: "→ "; }

.rule-band { text-align: center; padding: 4.5rem 0 0; }
.rule-band p { font-family: "Clash Display", sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; color: var(--muted); max-width: 46rem; margin: 0 auto; }
.rule-band b { color: var(--text); font-weight: 600; }

/* ---------- calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: stretch; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-pane { padding: 2.2rem; }
.calc-pane label { display: block; font-size: 0.86rem; color: var(--muted); margin: 1.6rem 0 0.7rem; font-weight: 600; }
.calc-pane label:first-child { margin-top: 0; }
.calc-pane output { float: right; color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 0.86rem; }
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), rgba(255,255,255,0.1) var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff; border: 5px solid var(--accent);
  box-shadow: 0 0 16px rgba(56,223,255,0.6); cursor: pointer;
  transition: transform 0.3s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-out { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 2.4rem; }
.calc-out .lbl { font-size: 10.5px; letter-spacing: 0.22em; color: #ff9d66; }
.calc-out b { font-family: "Clash Display", sans-serif; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; margin: 0.7rem 0 0.3rem; display: block; }
.calc-out .sub { color: var(--muted); font-size: 0.9rem; }
.calc-out .note { margin-top: 1.8rem; font-size: 0.85rem; color: var(--accent); }

/* ---------- flagship ---------- */
.flag-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
@media (max-width: 960px) { .flag-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.flag-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.flag-list li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.flag-list li b { color: var(--text); font-weight: 600; }
.flag-list .bullet {
  flex: none; width: 26px; height: 26px; border-radius: 999px; margin-top: 2px;
  background: rgba(56,223,255,0.1); border: 1px solid rgba(56,223,255,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 12px;
}

/* ---------- services bento ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.9rem; }
.svc-grid > .shell { grid-column: span 4; }
.svc-grid > .shell:nth-child(1), .svc-grid > .shell:nth-child(6) { grid-column: span 8; }
.svc { padding: 1.9rem; display: flex; flex-direction: column; gap: 0.8rem; transition: transform 0.6s var(--ease); position: relative; overflow: hidden; height: 100%; }
.svc:hover { transform: translateY(-4px); }
@media (max-width: 900px) { .svc-grid > .shell, .svc-grid > .shell:nth-child(1), .svc-grid > .shell:nth-child(6) { grid-column: span 12; } }
.svc .code { font-size: 10px; letter-spacing: 0.2em; color: var(--accent); }
.svc h3 { font-family: "Clash Display", sans-serif; font-size: 1.35rem; font-weight: 600; }
.svc p { color: var(--muted); font-size: 0.92rem; }
.svc.hot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 90% -20%, rgba(56,223,255,0.12), transparent 70%);
}

/* ---------- open source ---------- */
.oss-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.oss-grid > .shell { grid-column: span 2; text-decoration: none; }
.oss-grid > .shell:nth-child(1), .oss-grid > .shell:nth-child(2) { grid-column: span 3; }
@media (max-width: 960px) { .oss-grid > .shell, .oss-grid > .shell:nth-child(1), .oss-grid > .shell:nth-child(2) { grid-column: span 3; } }
@media (max-width: 600px) { .oss-grid > .shell, .oss-grid > .shell:nth-child(1), .oss-grid > .shell:nth-child(2) { grid-column: span 6; } }
.oss { padding: 1.7rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.7rem; transition: transform 0.6s var(--ease); }
.oss:hover { transform: translateY(-4px); }
.oss .star { color: #ffd166; font-size: 0.8rem; letter-spacing: 0.08em; }
.oss h3 { color: var(--text); font-size: 1.02rem; font-weight: 700; }
.oss p { color: var(--muted); font-size: 0.84rem; flex: 1; }
.oss .lang { font-size: 10px; letter-spacing: 0.16em; color: var(--accent); }

/* ---------- process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; counter-reset: step; }
@media (max-width: 900px) { .proc-grid { grid-template-columns: 1fr; } }
.proc { padding: 2.1rem; }
.proc .num {
  font-family: "Clash Display", sans-serif; font-size: 3rem; font-weight: 600;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proc h3 { font-family: "Clash Display", sans-serif; font-size: 1.3rem; margin: 0.8rem 0 0.6rem; font-weight: 600; }
.proc p { color: var(--muted); font-size: 0.93rem; }

/* ---------- industries ---------- */
.ind-wrap { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 880px; }
.chip {
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 0.55rem 1.2rem; font-size: 0.86rem; color: var(--muted);
  background: rgba(255,255,255,0.03);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(56,223,255,0.5); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 0.8rem; }
.faq { overflow: hidden; }
.faq button {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 1.6rem; color: var(--text); font-family: "Clash Display", sans-serif;
  font-size: 1.08rem; font-weight: 600; text-align: left;
}
.faq .plus {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hairline-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 400; color: var(--accent);
  transition: transform 0.5s var(--ease);
}
.faq.open .plus { transform: rotate(45deg); }
.faq .ans {
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.faq .ans p { padding: 0 1.6rem 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .core { padding: 5rem 2rem; position: relative; overflow: hidden; }
.cta-band .core::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 120%, rgba(56,223,255,0.16), transparent 70%);
}
.cta-band h2 { max-width: 34rem; margin: 1.2rem auto 1rem; }
.cta-band p { color: var(--muted); max-width: 30rem; margin: 0 auto 2.2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.form-core { padding: 2.4rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .f-row { grid-template-columns: 1fr; } }
.f-group { margin-bottom: 1.15rem; }
.f-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.45rem; letter-spacing: 0.03em; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline-2); border-radius: 0.9rem;
  padding: 0.85rem 1.05rem; color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  outline: none; transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.04);
}
.f-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ba3b8' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.f-group select option { background: var(--panel-solid); color: var(--text); }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  border-color: rgba(56,223,255,0.6);
  box-shadow: 0 0 0 4px rgba(56,223,255,0.12);
}
.f-group textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { margin-top: 1rem; font-size: 0.9rem; display: none; }
.form-msg.ok { display: block; color: #3ef58f; }
.form-msg.err { display: block; color: #ff7a7a; }
.contact-side h2 { margin: 1.2rem 0 1rem; }
.contact-side p { color: var(--muted); }
.contact-side .pts { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-side .pts li { display: flex; gap: 0.8rem; color: var(--muted); font-size: 0.93rem; }
.contact-side .pts li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 4rem 0 3rem; margin-top: 4rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .nav-logo { margin-bottom: 1rem; }
.foot-brand p { color: var(--muted); font-size: 0.88rem; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.88rem; padding: 0.25rem 0; transition: color 0.4s var(--ease); }
.foot-col a:hover { color: var(--text); }
.foot-base { margin-top: 3.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: #5b7488; font-size: 0.78rem; }

/* ============ POINTER CURSOR FX ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 999px; will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(56,223,255,0.5);
}
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(56, 223, 255, 0.45);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-ring.hot {
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-color: rgba(56, 223, 255, 0.9);
  background: rgba(56, 223, 255, 0.08);
}
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- x-ray lens ---- */
.xray-lens {
  position: fixed; top: 0; left: 0; z-index: 240;
  width: 190px; height: 190px; margin: -95px 0 0 -95px;
  border-radius: 999px; pointer-events: none;
  backdrop-filter: invert(0.92) hue-rotate(195deg) contrast(1.15) saturate(1.3);
  -webkit-backdrop-filter: invert(0.92) hue-rotate(195deg) contrast(1.15) saturate(1.3);
  border: 1px solid rgba(56, 223, 255, 0.7);
  box-shadow: 0 0 30px -6px rgba(56, 223, 255, 0.6), inset 0 0 40px rgba(56, 223, 255, 0.12);
  background-image:
    linear-gradient(rgba(56,223,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,223,255,0.08) 1px, transparent 1px);
  background-size: 19px 19px;
  will-change: transform;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.xray-lens.on { opacity: 1; }
.xray-lens::before, .xray-lens::after {
  content: ""; position: absolute; background: rgba(56, 223, 255, 0.5);
}
.xray-lens::before { left: 50%; top: -7px; bottom: -7px; width: 1px; }
.xray-lens::after { top: 50%; left: -7px; right: -7px; height: 1px; }
.xray-coords {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 0.14em; color: var(--accent);
  text-shadow: 0 0 8px rgba(56,223,255,0.8); white-space: nowrap;
}
.xray-toggle {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 260;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--accent); background: rgba(9, 18, 28, 0.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 223, 255, 0.4); border-radius: 999px;
  padding: 0.5rem 1rem; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.xray-toggle.off { color: var(--muted); border-color: var(--hairline-2); }
@media (hover: none), (pointer: coarse) { .xray-lens, .xray-toggle { display: none; } }

/* ============ PREMIUM POLISH ============ */
::selection { background: rgba(56, 223, 255, 0.28); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #16293b; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 223, 255, 0.4); }

.grad-text {
  background-size: 220% 100%;
  animation: gradShift 7s var(--ease) infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::before { animation: shine 0.9s var(--ease); }
@keyframes shine { to { left: 140%; } }

[data-tilt] { transition: transform 0.22s var(--ease); will-change: transform; }

/* scanlines on terminals */
.term-body { position: relative; }
.term-body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}

/* ============ REEL RACK ============ */
.rack-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted);
  margin-bottom: 1.4rem;
}
.rack-label .dot { width: 6px; height: 6px; border-radius: 999px; background: #3ef58f; box-shadow: 0 0 10px #3ef58f; animation: pulse 2s infinite; }
.reel-rack {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  margin-bottom: 3.2rem; padding: 0.5rem 0 1.4rem;
}
@media (max-width: 900px) {
  .reel-rack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .reel-rack .reel { flex: 0 0 62%; scroll-snap-align: center; --rz: 0deg !important; --ty: 0px !important; }
}
.reel {
  aspect-ratio: 9 / 16; max-height: 420px;
  border-radius: 1.6rem; overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: #08131e;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.08);
  transform: rotate(var(--rz, 0deg)) translateY(var(--ty, 0px));
  position: relative;
}
.reel.dim { opacity: 0.55; }
.reel-top {
  display: flex; justify-content: space-between;
  padding: 0.7rem 1rem; font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.reel-vid { flex: 1; position: relative; display: flex; align-items: flex-end; padding: 1.1rem; overflow: hidden; }
.reel-vid.v1 {
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(56,223,255,0.4), transparent 60%),
    radial-gradient(80% 60% at 80% 80%, rgba(79,140,255,0.35), transparent 60%),
    linear-gradient(160deg, #0c2438, #091a2c);
  background-size: 180% 180%;
  animation: vidpan 9s var(--ease) infinite alternate;
}
.reel-vid.v2 {
  background:
    radial-gradient(90% 70% at 70% 30%, rgba(79,140,255,0.45), transparent 60%),
    radial-gradient(70% 60% at 20% 85%, rgba(56,223,255,0.3), transparent 60%),
    linear-gradient(200deg, #0d2036, #0a1526);
  background-size: 180% 180%;
  animation: vidpan 11s var(--ease) infinite alternate-reverse;
}
.reel-vid.v3 {
  background:
    radial-gradient(90% 70% at 40% 25%, rgba(255,209,102,0.32), transparent 60%),
    radial-gradient(80% 60% at 75% 80%, rgba(56,223,255,0.28), transparent 60%),
    linear-gradient(170deg, #12233a, #0a1626);
  background-size: 180% 180%;
  animation: vidpan 10s var(--ease) infinite alternate;
}
.reel-vid.v4 { background: linear-gradient(170deg, #0a1826, #07111c); }
@keyframes vidpan { to { background-position: 100% 100%; } }
.reel-hook {
  font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.reel-scan {
  position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(56,223,255,0.14), transparent);
  animation: scan 2.6s var(--ease) infinite;
}
@keyframes scan { 0% { top: -35%; } 100% { top: 105%; } }
.reel-scan { animation-duration: 1.5s; }
.reel-queue { color: var(--muted); font-size: 11px; letter-spacing: 0.2em; margin: auto; }
.qdots i { animation: blink 1.2s steps(1) infinite; }
.qdots i:nth-child(2) { animation-delay: 0.35s; }
.qdots i:nth-child(3) { animation-delay: 0.7s; }
.reel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 1rem; font-size: 9.5px; letter-spacing: 0.16em;
  border-top: 1px solid var(--hairline);
}
.reel-foot .ok { color: #3ef58f; }
.reel-foot .ac { color: var(--accent); }
.reel-foot .dim2 { color: #4d6478; }
.reel-prog { height: 3px; background: rgba(255,255,255,0.08); }
.reel-prog i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(56,223,255,0.7);
  transform-origin: left; transform: scaleX(0);
}

/* ============ ORCHESTRATOR CONSOLE ============ */
.orch { padding: 0; overflow: hidden; }
.orch-body {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  align-items: stretch;
}
@media (max-width: 760px) { .orch-body { grid-template-columns: 1fr; } .orch-radar { margin: 1.4rem auto 0; } }
.orch-radar {
  position: relative; width: 170px; height: 170px; margin: 1.6rem auto;
  border-radius: 999px; border: 1px solid rgba(56,223,255,0.25);
  background: radial-gradient(circle, rgba(56,223,255,0.06), transparent 70%);
  overflow: hidden; flex: none;
}
.orch-radar .ring { position: absolute; border-radius: 999px; border: 1px solid rgba(56,223,255,0.14); }
.orch-radar .r1 { inset: 22%; }
.orch-radar .r2 { inset: 40%; }
.orch-radar .sweep {
  position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(56,223,255,0.35), transparent 22%);
  animation: sweep 2.1s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.orch-radar .blip {
  position: absolute; width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: blipPulse 2.8s var(--ease) infinite;
}
@keyframes blipPulse { 0%, 100% { opacity: 0.15; } 40% { opacity: 1; } }
.orch-rows { display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.6rem; }
.orow {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; font-size: 11px; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--hairline);
}
.orow:last-child { border-bottom: none; }
.orow .ch { color: var(--text); font-weight: 600; }
.orow .st.ok { color: #3ef58f; }
.orow .st.ac { color: var(--accent); }
.orow .st.wn { color: #ffd166; }
@media (max-width: 560px) { .orow { flex-direction: column; gap: 0.15rem; } }
.orch-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-top: 1px solid var(--hairline);
  font-size: 10px; letter-spacing: 0.18em; color: var(--muted);
}

/* ============ 3D VIEWER ============ */
.viewer-core { padding: 0; overflow: hidden; position: relative; }
#viewer3d {
  display: block; width: 100%; height: 480px;
  touch-action: none; cursor: grab;
}
#viewer3d:active { cursor: grabbing; }
@media (max-width: 768px) { #viewer3d { height: 340px; } }
.viewer-hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  pointer-events: none;
}
.viewer-hud > * { pointer-events: auto; }
.vh-models { display: flex; gap: 0.5rem; }
.vbtn {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--muted); background: rgba(9, 18, 28, 0.7);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 0.45rem 1rem; cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.vbtn:hover { color: var(--text); }
.vbtn.active {
  color: var(--accent); border-color: rgba(56,223,255,0.6);
  background: rgba(56,223,255,0.08);
  box-shadow: 0 0 18px -4px rgba(56,223,255,0.5);
}
.vh-clip {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted);
  background: rgba(9, 18, 28, 0.7); border: 1px solid var(--hairline-2);
  border-radius: 999px; padding: 0.45rem 1rem;
}
.vh-clip input[type="range"] { width: 130px; }
.viewer-stats {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding: 0.8rem 1.2rem; border-top: 1px solid var(--hairline);
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted);
}
.viewer-stats .ac { color: var(--accent); }

/* perf: skip offscreen rendering work for below-fold sections */
#growth, #services, #oss, #process, #industries, #faq, #contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ============ REEL IMAGES ============ */
.reel-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(1.1) contrast(1.05);
}
.reel-vid::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(4, 9, 15, 0.85));
  pointer-events: none; z-index: 1;
}
.reel-hook { position: relative; z-index: 2; }
.reel-scan { z-index: 2; }

/* ============ ASSET FOUNDRY — tilted sliding planes ============ */
.foundry { overflow: hidden; padding-bottom: 2rem; }
.strip-stage { perspective: 1400px; perspective-origin: 50% 30%; }
.strip-plane {
  transform: rotateX(16deg) rotateZ(-2.5deg) scale(1.08);
  transform-style: preserve-3d;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.strip-track {
  display: flex; gap: 1.1rem; width: max-content;
  animation: stripL 42s linear infinite;
  will-change: transform;
}
.strip-track.rev { animation: stripR 48s linear infinite; }
@keyframes stripL { to { transform: translateX(-50%); } }
@keyframes stripR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.foundry:hover .strip-track { animation-play-state: paused; }
.strip-tile {
  position: relative; flex: none;
  width: 300px; aspect-ratio: 4 / 3;
  border-radius: 1.1rem; overflow: hidden;
  border: 1px solid var(--hairline-2);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.85), inset 0 1px 1px rgba(255,255,255,0.08);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.strip-tile:hover { transform: translateY(-8px) scale(1.03); border-color: rgba(56,223,255,0.45); z-index: 2; }
.strip-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.1);
}
.strip-tile span {
  position: absolute; left: 0.9rem; bottom: 0.7rem; z-index: 2;
  font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.strip-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(4,9,15,0.75));
}
/* procedural fallbacks so tiles never render blank */
.strip-tile.f1 { background: radial-gradient(80% 90% at 30% 25%, rgba(56,223,255,0.5), transparent 60%), radial-gradient(70% 70% at 80% 80%, rgba(79,140,255,0.4), transparent 60%), conic-gradient(from 200deg at 60% 40%, #0d2a44, #091827, #123350, #091827); }
.strip-tile.f2 { background: radial-gradient(circle at 50% 42%, rgba(159,239,255,0.6), rgba(56,223,255,0.25) 32%, transparent 60%), linear-gradient(170deg, #0c2136, #081422); }
.strip-tile.f3 { background: repeating-linear-gradient(90deg, rgba(79,140,255,0.22) 0 3px, transparent 3px 26px), linear-gradient(180deg, #0d1f38 20%, #14284a 60%, #0a1526); }
.strip-tile.f4 { background: radial-gradient(60% 80% at 65% 35%, rgba(150,120,255,0.4), transparent 65%), radial-gradient(50% 60% at 25% 75%, rgba(56,223,255,0.35), transparent 60%), linear-gradient(200deg, #101c38, #0a1424); }
.strip-tile.f5 { background: radial-gradient(90% 55% at 50% 68%, rgba(56,223,255,0.45), transparent 62%), radial-gradient(40% 40% at 68% 30%, rgba(255,209,102,0.25), transparent 65%), linear-gradient(160deg, #0b2033, #081220); }
.strip-tile.f6 { background: linear-gradient(180deg, transparent 58%, rgba(56,223,255,0.18) 60%, transparent 62%), radial-gradient(70% 70% at 50% 30%, rgba(79,140,255,0.4), transparent 65%), linear-gradient(180deg, #0e2440, #091625); }
@media (max-width: 768px) {
  .strip-plane { transform: rotateX(10deg) scale(1.04); }
  .strip-tile { width: 210px; }
}
