/* NeuronCDC marketing site — design system */
:root {
  --bg: #050d0c;
  --bg-2: #081513;
  --surface: #0c1d1a;
  --surface-2: #112824;
  --line: rgba(127, 214, 180, 0.12);
  --line-strong: rgba(127, 214, 180, 0.28);
  --text: #e8f3ef;
  --muted: #9db3ab;
  --faint: #6c8480;
  --teal: #2f9c80;
  --teal-2: #3fbf9c;
  --mint: #8fe3c3;
  --deep: #0f3b36;
  --amber: #ffb85c;
  --coral: #ff7a6b;
  --violet: #8f8cff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --grad: linear-gradient(110deg, #3fbf9c 0%, #8fe3c3 45%, #ffb85c 100%);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--teal); color: #fff; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: linear-gradient(120deg, var(--teal), var(--teal-2)); color: #03110e; box-shadow: 0 10px 30px -10px rgba(63, 191, 156, .7); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(63, 191, 156, .85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--mint); background: rgba(143, 227, 195, .08); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 600; }
.link-arrow::after { content: "→"; transition: transform .25s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--deep), #123f2f 50%, var(--deep));
  font-size: .86rem; text-align: center; padding: 9px 16px; color: var(--mint);
  border-bottom: 1px solid var(--line);
}
.announce a { color: #fff; font-weight: 600; margin-left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 13, 12, .78); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font-size: .95rem; color: var(--muted); transition: color .2s ease, background .2s ease;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li.open > button { color: var(--text); background: rgba(255,255,255,.04); }
.chev { width: 10px; height: 10px; transition: transform .25s ease; }
.nav-links > li:hover .chev, .nav-links > li.open .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: .92rem; }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(640px, 90vw);
  transform: translate(-50%, 10px); opacity: 0; visibility: hidden;
  background: rgba(10, 24, 21, .96); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
  padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-links > li:hover .mega, .nav-links > li.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 14px; padding: 12px; border-radius: 12px; transition: background .2s ease; }
.mega a:hover { background: rgba(143, 227, 195, .07); }
.mega .ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(63,191,156,.25), rgba(63,191,156,.05)); border: 1px solid var(--line-strong); color: var(--mint);
}
.mega .ico svg { width: 18px; height: 18px; }
.mega strong { display: block; font-size: .95rem; color: var(--text); }
.mega span { font-size: .84rem; color: var(--faint); line-height: 1.4; }
.mega-foot { grid-column: 1 / -1; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(143,227,195,.05); display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); gap: 12px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; transition: transform .3s ease, opacity .3s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 90px 110px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .75; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; animation: orbFloat 18s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: rgba(47, 156, 128, .38); top: -160px; left: -140px; }
.orb-2 { width: 460px; height: 460px; background: rgba(255, 184, 92, .16); bottom: -200px; right: -80px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: rgba(143, 140, 255, .14); top: 30%; right: 30%; animation-delay: -11s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, 40px) scale(1.08); } 66% { transform: translate(-40px, 20px) scale(.95); } }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-block: 22px 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; color: var(--faint); font-size: .88rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--teal-2); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(12, 29, 26, .7); font-size: .86rem; color: var(--muted);
}
.pill b { background: var(--grad); color: #03110e; padding: 3px 10px; border-radius: 999px; font-size: .74rem; letter-spacing: .04em; }

/* Live stream card */
.stream-card {
  position: relative; border-radius: 22px; padding: 1px;
  background: linear-gradient(140deg, rgba(143,227,195,.5), rgba(143,227,195,.05) 40%, rgba(255,184,92,.35));
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .6s ease;
}
.stream-card:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.stream-inner { border-radius: 21px; background: rgba(8, 21, 19, .94); overflow: hidden; }
.stream-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a37; }
.dots i:nth-child(1) { background: #ff6b5e; } .dots i:nth-child(2) { background: #ffbd4a; } .dots i:nth-child(3) { background: #3fbf9c; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); color: var(--mint); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 0 rgba(63,191,156,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63,191,156,0); } 100% { box-shadow: 0 0 0 0 rgba(63,191,156,0); } }
.stream-route { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.stream-route .node { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.stream-route .wire { flex: 1; height: 2px; position: relative; background: var(--line-strong); overflow: hidden; border-radius: 2px; }
.stream-route .wire::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: wire 1.6s linear infinite; }
@keyframes wire { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.stream-list { list-style: none; margin: 0; padding: 4px 10px 12px; height: 322px; overflow: hidden; }
.stream-list li {
  display: grid; grid-template-columns: 62px 70px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 8px; border-radius: 10px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted);
  animation: rowIn .5s ease both;
}
.stream-list li:first-child { background: rgba(143,227,195,.06); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.op { font-weight: 700; font-size: .68rem; letter-spacing: .06em; padding: 3px 0; border-radius: 6px; text-align: center; }
.op-ins { color: #3fbf9c; background: rgba(63,191,156,.12); }
.op-upd { color: var(--amber); background: rgba(255,184,92,.12); }
.op-del { color: var(--coral); background: rgba(255,122,107,.12); }
.op-ddl { color: var(--violet); background: rgba(143,140,255,.14); }
.stream-list .tbl { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-list .ok { color: var(--teal-2); }
.stream-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stream-foot div { padding: 14px 18px; }
.stream-foot div + div { border-left: 1px solid var(--line); }
.stream-foot small { display: block; color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.stream-foot strong { font-family: var(--font-display); font-size: 1.3rem; }

/* ---------- Marquee ---------- */
.marquee-wrap { border-block: 1px solid var(--line); padding-block: 30px; background: var(--bg-2); }
.marquee-title { text-align: center; color: var(--faint); font-size: .85rem; margin-bottom: 20px; letter-spacing: .06em; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 600; color: var(--muted); white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); }
.chip.tgt i { background: var(--amber); }
.chip img { width: 20px; height: 20px; opacity: .85; }
.chip .mono, .mono-ico {
  display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  color: var(--mint);
}
.chip .mono { min-width: 26px; height: 20px; padding-inline: 4px; border-radius: 6px; font-size: .62rem; border: 1px solid var(--line-strong); }
.marquee + .marquee { margin-top: 14px; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 44s; }
.matrix .conn .mono-ico { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--mint); font-size: .78rem; }
.matrix .conn .mono-ico img { width: 22px; height: 22px; }
.matrix .conn:hover .mono-ico { border-color: var(--mint); }
.conn-group { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }
.conn-group[hidden] { display: none !important; }
.logo-note { margin-top: 18px; font-size: .8rem; color: var(--faint); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: 120px; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-block: 18px 20px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 40px 30px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; margin-bottom: 12px; }
.stat p { color: var(--muted); font-size: .95rem; }

/* Problem cards */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.pain .num { font-family: var(--font-mono); color: var(--coral); font-size: .85rem; margin-bottom: 18px; display: block; }
.pain h3 { margin-bottom: 12px; }
.pain p { color: var(--muted); font-size: .95rem; }

/* Tabs */
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 110px; }
.tab-btn {
  text-align: left; padding: 18px 20px; border-radius: 14px; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: background .25s ease, border-color .25s ease;
}
.tab-btn strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--muted); transition: color .25s ease; }
.tab-btn span { display: block; font-size: .86rem; color: var(--faint); margin-top: 4px; }
.tab-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.tab-btn.active { background: var(--surface); border-color: var(--line-strong); }
.tab-btn.active strong { color: var(--text); }
.tab-btn.active::after { animation: tabProgress 7s linear forwards; }
@keyframes tabProgress { to { width: 100%; } }
.tab-panel { display: none; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg-2) 70%); padding: 40px; min-height: 460px; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; animation: panelIn .5s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 1.7rem; margin-bottom: 16px; }
.tab-panel p { color: var(--muted); margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text); font-size: .95rem; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
  background: rgba(63,191,156,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238fe3c3' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.viz { position: relative; border-radius: 16px; background: rgba(5,13,12,.6); border: 1px solid var(--line); padding: 22px; overflow: hidden; min-height: 340px; }
.viz-label { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }

/* viz: bars */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; margin-top: 10px; }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--teal-2), rgba(47,156,128,.2)); height: 10%; transition: height 1.2s cubic-bezier(.2,.8,.2,1); }
.bars span:nth-child(3n) { background: linear-gradient(180deg, var(--amber), rgba(255,184,92,.15)); }
/* viz: load progress */
.load-row { margin-bottom: 16px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.load-row .meta { display: flex; justify-content: space-between; margin-bottom: 7px; }
.load-row .track { height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.load-row .fill { height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 2.4s cubic-bezier(.2,.8,.2,1); }
/* viz: heal */
.heal-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.heal-grid i { aspect-ratio: 1; border-radius: 4px; background: rgba(63,191,156,.28); transition: background .5s ease, transform .5s ease; }
.heal-grid i.bad { background: var(--coral); transform: scale(.8); }
.heal-grid i.fixed { background: var(--mint); }
.heal-legend { display: flex; gap: 18px; margin-top: 18px; font-size: .8rem; color: var(--muted); }
.heal-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
/* viz: ha */
.ha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ha-node { border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; background: var(--surface); transition: border-color .5s ease, box-shadow .5s ease, opacity .5s ease; }
.ha-node small { font-family: var(--font-mono); color: var(--faint); font-size: .72rem; }
.ha-node strong { display: block; font-family: var(--font-display); margin: 6px 0 12px; }
.ha-node .state { display: inline-block; font-family: var(--font-mono); font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); }
.ha-node.active { border-color: var(--teal-2); box-shadow: 0 0 40px -10px rgba(63,191,156,.6); }
.ha-node.active .state { background: rgba(63,191,156,.16); color: var(--mint); }
.ha-node.down { opacity: .45; }
.ha-node.down .state { background: rgba(255,122,107,.14); color: var(--coral); }
.ha-lease { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px; }
.ha-lease b { color: var(--amber); }

/* ---------- Architecture diagram ---------- */
.diagram-wrap { border-radius: 26px; border: 1px solid var(--line-strong); background: radial-gradient(ellipse at 50% 0%, rgba(47,156,128,.16), transparent 60%), var(--bg-2); padding: 30px; overflow-x: auto; }
.diagram { min-width: 820px; width: 100%; height: auto; display: block; }
.diagram .node rect { fill: #0c1d1a; stroke: rgba(127,214,180,.3); stroke-width: 1; transition: stroke .3s ease, fill .3s ease; }
.diagram .node:hover rect { stroke: #8fe3c3; fill: #112824; }
.diagram .node text { fill: #e8f3ef; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.diagram .node .sub { fill: #6c8480; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; }
.diagram .wire { fill: none; stroke: rgba(127,214,180,.22); stroke-width: 1.5; }
.diagram .flow { fill: none; stroke: url(#flowGrad); stroke-width: 2; stroke-dasharray: 6 10; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.diagram .core { fill: url(#coreGrad); stroke: rgba(143,227,195,.55); }
.diagram .stage rect { fill: rgba(5,13,12,.75); stroke: rgba(127,214,180,.25); }
.diagram .stage text { fill: #e8f3ef; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.diagram .stage .sub { fill: #9db3ab; font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
.diagram .col-label { fill: #6c8480; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; }
.diagram .ring { fill: none; stroke: rgba(143,227,195,.35); animation: ring 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ring { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.18); opacity: 0; } }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-top: 22px; font-size: .86rem; color: var(--muted); }
.diagram-legend span { display: inline-flex; align-items: center; gap: 8px; }
.diagram-legend i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Feature cards (spotlight) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden; transition: transform .35s ease, border-color .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(143,227,195,.13), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px; color: var(--mint); background: linear-gradient(140deg, rgba(63,191,156,.28), rgba(63,191,156,.04)); border: 1px solid var(--line-strong); }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tag { display: inline-block; margin-top: 18px; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.card.wide { grid-column: span 2; }

/* ---------- Steps (scroll timeline) ---------- */
.steps { position: relative; display: grid; gap: 28px; padding-left: 56px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps-progress { position: absolute; left: 19px; top: 8px; width: 2px; height: 0; background: var(--grad); transition: height .15s linear; }
.step { position: relative; padding: 26px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .4s ease, background .4s ease; }
.step .dot { position: absolute; left: -48px; top: 28px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; font-family: var(--font-mono); font-size: .7rem; color: var(--faint); transition: all .4s ease; }
.step.lit { border-color: var(--line-strong); background: var(--surface); }
.step.lit .dot { border-color: var(--teal-2); background: var(--teal-2); color: #03110e; box-shadow: 0 0 0 6px rgba(63,191,156,.15); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.step code { font-family: var(--font-mono); font-size: .82rem; color: var(--mint); background: rgba(143,227,195,.07); padding: 2px 6px; border-radius: 6px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.split .sticky { position: sticky; top: 120px; }

/* ---------- Console mock ---------- */
.console { border-radius: 22px; border: 1px solid var(--line-strong); background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.console-top { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-top .url { flex: 1; font-family: var(--font-mono); font-size: .78rem; color: var(--faint); background: var(--surface); padding: 6px 12px; border-radius: 8px; }
.console-body { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
.console-side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; align-content: start; gap: 4px; }
.console-side span { padding: 9px 12px; border-radius: 9px; font-size: .86rem; color: var(--muted); }
.console-side span.on { background: rgba(143,227,195,.08); color: var(--text); }
.console-main { padding: 22px; display: grid; gap: 16px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.kpi small { color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-top: 4px; }
.kpi em { font-style: normal; font-size: .76rem; color: var(--teal-2); }
.chart { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
.chart svg { width: 100%; height: 140px; display: block; }
.chart .line { fill: none; stroke: var(--teal-2); stroke-width: 2.2; stroke-dasharray: 900; stroke-dashoffset: 900; }
.chart .area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.2s ease .8s; }
.console.in .chart .line { animation: draw 2.4s ease forwards; }
.console.in .chart .area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.agents { display: grid; gap: 8px; }
.agent-row { display: grid; grid-template-columns: 1fr 90px 90px 70px; gap: 10px; align-items: center; font-size: .82rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.agent-row .mono { font-family: var(--font-mono); color: var(--muted); }
.badge { justify-self: start; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(63,191,156,.14); color: var(--mint); }
.badge.warn { background: rgba(255,184,92,.14); color: var(--amber); }

/* ---------- Use cases ---------- */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.use { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 28px 24px 26px; min-height: 300px; display: flex; flex-direction: column; transition: transform .35s ease; }
.use:hover { transform: translateY(-6px); }
.use .art { height: 110px; margin: -28px -24px 22px; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--deep), var(--bg-2)); border-bottom: 1px solid var(--line); }
.use .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.use h3 { margin-bottom: 10px; font-size: 1.15rem; }
.use p { color: var(--muted); font-size: .92rem; flex: 1; }

/* ---------- Connector matrix ---------- */
.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.conn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.conn:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.conn .mono-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #03110e; background: var(--grad); }
.conn strong { display: block; font-size: .95rem; }
.conn span { font-size: .78rem; color: var(--faint); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-bar button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: .9rem; transition: all .2s ease; }
.filter-bar button.on, .filter-bar button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.conn[hidden] { display: none !important; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--bg-2); }
td { color: var(--muted); }
td strong { color: var(--text); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(143,227,195,.03); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--mint); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: 30px; overflow: hidden; padding: 80px 60px; text-align: center; border: 1px solid var(--line-strong); background: linear-gradient(135deg, #0f3b36 0%, #0a1f1c 55%, #2b2413 100%); }
.cta::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(143,227,195,.18), transparent 30%, rgba(255,184,92,.12), transparent 60%); animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta > * { position: relative; }
.cta h2 { max-width: 780px; margin: 18px auto 20px; }
.cta .lead { margin: 0 auto 34px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; padding-block: 110px 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-block: 20px 22px; max-width: 900px; }
.crumbs { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.crumbs a:hover { color: var(--mint); }

/* ---------- Forms ---------- */
.form-card { border-radius: 24px; border: 1px solid var(--line-strong); background: var(--surface); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2);
  color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(63,191,156,.15); }
.form-note { font-size: .8rem; color: var(--faint); margin-top: 16px; }
.form-done { display: none; text-align: center; padding: 40px 10px; }
.form-card.sent form { display: none; }
.form-card.sent .form-done { display: block; }
.contact-list { display: grid; gap: 18px; margin-top: 36px; }
.contact-list div { display: flex; gap: 16px; }
.contact-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(63,191,156,.12); border: 1px solid var(--line-strong); color: var(--mint); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; }
.contact-list span { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 80px 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 18px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--muted); font-size: .93rem; transition: color .2s ease; }
.foot-grid ul a:hover { color: var(--mint); }
.foot-brand img { height: 34px; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: .93rem; max-width: 320px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); }
.newsletter { display: flex; gap: 8px; margin-top: 22px; max-width: 360px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; }
.newsletter button { padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-inner > *, .split > *, .tabs > *, .tab-panel > * { min-width: 0; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .card-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .stream-route { gap: 6px; padding: 14px; font-size: .7rem; }
  .stream-route .node { padding: 5px 7px; white-space: nowrap; }
  .stream-head { font-size: .72rem; }
}
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: all .3s ease; }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stream-card { transform: none; max-width: 620px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab-btn { flex: none; min-width: 220px; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .sticky { position: static; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(5,13,12,.98); border-bottom: 1px solid var(--line); padding: 12px 16px 24px; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .menu-open .nav-links > li > a, .menu-open .nav-links > li > button { width: 100%; justify-content: space-between; padding: 14px; font-size: 1rem; }
  .mega { position: static; transform: none; width: 100%; display: none; opacity: 1; visibility: visible; grid-template-columns: 1fr; box-shadow: none; margin-top: 6px; }
  .nav-links > li:hover .mega { transform: none; }
  .nav-links > li.open .mega { display: grid; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pain-grid, .card-grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { display: none; }
}
@media (max-width: 640px) {
  .section { padding-block: 80px; }
  .hero { padding-block: 60px 80px; }
  .uses { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .agent-row { grid-template-columns: 1fr 80px; }
  .agent-row > :nth-child(3), .agent-row > :nth-child(4) { display: none; }
  .stream-list li { grid-template-columns: 56px 62px 1fr; }
  .stream-list li > :last-child { display: none; }
  .tab-panel { padding: 24px; }
  .cta { padding: 56px 22px; }
  .form-card { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
