/* ==================================================================
   VNVIA — Design System v6 (DARK — active)
   Direction: cortex.io-style dark SaaS — near-black canvas, soft
   glow blooms, centered hero, console panel, quiet 1px borders.
   Brand: signal green → circuit cyan. Small logo, calm chrome.
   ================================================================== */

:root {
  --bg: #05070c;
  --bg-2: #070a11;
  --panel: #0b0f18;
  --panel-2: #0f141f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --green: #52e252;
  --teal: #2fc9a8;
  --cyan: #22a7f0;
  --grad: linear-gradient(96deg, #52e252, #2fc9a8 48%, #22a7f0);
  --text: #f0f4fa;
  --mut: #9aa5b5;
  --dim: #5d6879;
  --r: 14px;
  --maxw: 1140px;
  --fd: "Space Grotesk", ui-sans-serif, sans-serif;
  --fb: "Inter", ui-sans-serif, system-ui, sans-serif;
  --fm: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(82, 226, 82, 0.25); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- System text ---------- */
.eyebrow {
  font-family: var(--fm);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 16px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--mut); font-size: 18px; max-width: 62ch; }

/* Badge pill (hero) */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: 12px; letter-spacing: 0.08em;
  color: var(--mut);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 28px;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(82, 226, 82, 0.9);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--mut);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #04130a !important;
  background: var(--grad);
  padding: 9px 18px;
  border-radius: 9px;
  box-shadow: 0 0 20px rgba(63, 214, 152, 0.22);
  transition: box-shadow 0.25s, transform 0.25s;
}
.nav-cta:hover { box-shadow: 0 0 30px rgba(63, 214, 152, 0.4); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 210; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4.5px 0; border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--fb); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 11px; cursor: pointer; border: 0;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s, background 0.22s;
}
.btn-primary {
  background: var(--grad);
  color: #04130a;
  box-shadow: 0 0 28px rgba(63, 214, 152, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(63, 214, 152, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (centered, cortex-style) ---------- */
.hero {
  position: relative;
  padding: 172px 0 88px;
  text-align: center;
  overflow: hidden;
}
/* glow bloom behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -320px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 780px;
  background:
    radial-gradient(42% 46% at 42% 46%, rgba(82, 226, 82, 0.13), transparent 68%),
    radial-gradient(42% 46% at 58% 54%, rgba(34, 167, 240, 0.15), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
/* faint horizon line under the bloom */
.hero::after {
  content: "";
  position: absolute;
  top: 430px; left: 50%;
  transform: translateX(-50%);
  width: min(920px, 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82, 226, 82, 0.35) 30%, rgba(34, 167, 240, 0.35) 70%, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero .lede { margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Console panel (the "product shot") ---------- */
.console {
  position: relative;
  max-width: 880px;
  margin: 72px auto 0;
  text-align: left;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(47, 201, 168, 0.10);
  overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.console-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.console-bar span {
  margin-left: 10px;
  font-family: var(--fm); font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--dim);
}
.console-body { padding: 10px 0; }
.console-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px; align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.console-row:last-child { border-bottom: 0; }
.console-row:hover { background: rgba(255, 255, 255, 0.02); }
.console-row .tag {
  font-family: var(--fm); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--dim);
}
.console-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.console-row p { font-size: 13px; color: var(--mut); line-height: 1.5; }
.console-row .status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fm); font-size: 11px; letter-spacing: 0.1em;
  color: var(--green);
  white-space: nowrap;
}
.console-row .status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(82, 226, 82, 0.9);
}

/* ---------- Stat strip ---------- */
.stats {
  max-width: 880px;
  margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--fd); font-weight: 600;
  font-size: 30px; letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 8px;
}
.stat span { font-size: 12.5px; color: var(--dim); line-height: 1.45; display: block; }

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--mut); font-size: 17.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* seamless dark flow — soft glow instead of hard bands */
.section-alt {
  background:
    radial-gradient(760px 340px at 50% 0%, rgba(34, 167, 240, 0.05), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 28px 26px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 36px rgba(47, 201, 168, 0.07);
}
.card-icon {
  font-family: var(--fm); font-size: 11px;
  letter-spacing: 0.18em; color: var(--teal);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--mut); }
.card ul { margin-top: 14px; }
.card ul li {
  font-size: 13.5px; color: var(--mut);
  padding: 4.5px 0 4.5px 18px; position: relative;
}
.card ul li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
}
.card .card-link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--green);
}

/* ---------- Flywheel ---------- */
.flywheel {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
}
.fly-step {
  padding: 24px 18px 24px 22px;
  border-left: 1px solid var(--line);
  position: relative;
  transition: background 0.2s;
}
.fly-step:first-child { border-left: 0; }
.fly-step:hover { background: rgba(255, 255, 255, 0.02); }
.fly-step .k {
  font-family: var(--fm); font-size: 11px; letter-spacing: 0.16em;
  color: var(--teal); margin-bottom: 10px;
}
.fly-step h4 { font-size: 15px; margin-bottom: 6px; }
.fly-step p { font-size: 12.5px; color: var(--mut); line-height: 1.5; }
.fly-step::after {
  content: "→";
  position: absolute; right: -6px; top: 24px;
  color: var(--dim); font-size: 13px; z-index: 2;
  background: var(--panel);
}
.fly-step:last-child::after { content: "↺"; right: 14px; color: var(--green); }

/* ---------- Blueprint diagrams ---------- */
.blueprint {
  font-family: var(--fm); font-size: 12.5px; line-height: 1.55;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 30px;
  overflow-x: auto;
  position: relative;
}
.blueprint::before {
  content: attr(data-label);
  position: absolute; top: 0; right: 0;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); padding: 9px 14px;
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 var(--r) 0 8px;
}
.bp-node {
  display: inline-block; padding: 7px 14px; margin: 3px 0;
  border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.bp-node.hot { border-color: rgba(82, 226, 82, 0.45); color: var(--green); box-shadow: 0 0 14px rgba(82, 226, 82, 0.08); }
.bp-node.cool { border-color: rgba(34, 167, 240, 0.45); color: var(--cyan); box-shadow: 0 0 14px rgba(34, 167, 240, 0.08); }
.bp-flow { color: var(--dim); padding: 2px 0 2px 24px; }
.bp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bp-comment { color: var(--dim); }

/* ---------- Radar ---------- */
.radar-band {
  border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 18px; overflow: hidden;
  background: var(--panel);
}
.radar-band .band-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.radar-band h3 { font-size: 15px; font-family: var(--fm); font-weight: 500; letter-spacing: 0.14em; }
.radar-band .band-tag { font-family: var(--fm); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }
.radar-items { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 26px; }
.radar-chip {
  font-family: var(--fm); font-size: 12.5px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.band-adopt h3 { color: var(--green); }
.band-evaluate h3 { color: var(--cyan); }
.band-emerging h3 { color: #b48cff; }

/* ---------- Pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  font-family: var(--fm); font-size: 12px; color: var(--mut);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(560px 260px at 50% -30%, rgba(47, 201, 168, 0.12), transparent 72%),
    var(--panel);
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--mut); font-size: 16.5px; max-width: 56ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid .f-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-grid p { font-size: 13.5px; color: var(--mut); max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--dim);
  cursor: default;
  transition: color 0.2s, border-color 0.2s;
}
.soc[href] { cursor: pointer; }
.soc[href]:hover { color: var(--text); border-color: var(--line-2); }
.footer-col h4 {
  font-family: var(--fm); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 16px; font-weight: 500;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--mut); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--dim);
}
.footer-tagline {
  font-family: var(--fm); font-size: 11.5px; letter-spacing: 0.2em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Interior page hero ---------- */
.page-hero {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(46% 46% at 50% 50%, rgba(34, 167, 240, 0.09), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 18px; max-width: 22ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; }
.contact-info .item { margin-bottom: 28px; }
.contact-info .k {
  font-family: var(--fm); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 7px;
}
.contact-info a, .contact-info .v { font-size: 18px; font-family: var(--fd); font-weight: 500; }
.contact-info a:hover { color: var(--green); }

form .field { margin-bottom: 18px; }
form label {
  display: block; font-family: var(--fm); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 7px;
}
form input, form textarea, form select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--fb); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: rgba(82, 226, 82, 0.55);
  box-shadow: 0 0 0 3px rgba(82, 226, 82, 0.09);
}
.form-note { font-size: 12.5px; color: var(--dim); margin-top: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flywheel { grid-template-columns: repeat(3, 1fr); }
  .fly-step { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flywheel { grid-template-columns: 1fr; }
  .fly-step { border-left: 0; }
  .fly-step::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -9px; }
  .fly-step:last-child::after { content: "↺"; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  section { padding: 68px 0; }
  .hero { padding: 132px 0 60px; }
  .hero::after { top: 380px; }
  .page-hero { padding: 122px 0 44px; }
  .cta-band { padding: 48px 24px; }
  .console { margin-top: 52px; }
  .console-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .console-row .tag { order: -1; }
  .stats { margin-top: 44px; }

  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 4px;
    background: rgba(5, 7, 12, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; padding: 12px 18px !important; }
  .nav-toggle { display: block; }
}

/* ==================================================================
   Motion layer — living hero (circuit pulses, float, scan, entrance)
   All CSS animations are disabled by the global reduced-motion rule;
   SMIL dot motion is paused in main.js for reduced-motion users.
   ================================================================== */

/* Circuit traces behind the hero */
.circuit {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
}
.circuit .traces path { opacity: 0.32; }
.circuit .cnodes circle { animation: nodepulse 3.2s ease-in-out infinite; }
.circuit .cnodes circle:nth-child(2n) { animation-delay: 1.1s; }
.circuit .cnodes circle:nth-child(3n) { animation-delay: 2s; }
.circuit .cdots circle { filter: drop-shadow(0 0 5px rgba(120, 235, 170, 0.9)); }
@keyframes nodepulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

/* Drifting glow orbs */
.orb {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb.o1 { top: 6%; left: -90px; background: rgba(82, 226, 82, 0.10); animation: drift1 20s ease-in-out infinite; }
.orb.o2 { top: 26%; right: -110px; background: rgba(34, 167, 240, 0.12); animation: drift2 26s ease-in-out infinite; }
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(70px, 40px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-80px, -35px); }
}

/* Hero content entrance */
.hero-inner > * { animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.25, 1) backwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.28s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

/* Console: gentle float (delayed so the reveal transition finishes first) */
.console { animation: float 10s ease-in-out 2.6s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Console: periodic scan sweep */
.console::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -90px; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(82, 226, 82, 0.06), transparent);
  animation: scan 7s linear 2s infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: -90px; }
  100% { top: 110%; }
}

/* Console rows: staggered arrival + live status pulse */
.console-row { animation: rise 0.6s cubic-bezier(0.2, 0.6, 0.25, 1) backwards; }
.console-row:nth-child(1) { animation-delay: 0.55s; }
.console-row:nth-child(2) { animation-delay: 0.72s; }
.console-row:nth-child(3) { animation-delay: 0.89s; }
.console-row .status::before { animation: statpulse 2.4s ease-in-out infinite; }
.console-row:nth-child(2) .status::before { animation-delay: 0.8s; }
.console-row:nth-child(3) .status::before { animation-delay: 1.6s; }
@keyframes statpulse {
  0%, 100% { box-shadow: 0 0 6px rgba(82, 226, 82, 0.7); }
  50% { box-shadow: 0 0 14px rgba(82, 226, 82, 1), 0 0 26px rgba(82, 226, 82, 0.45); }
}

@media (max-width: 720px) {
  .circuit { opacity: 0.35; }
  .orb { width: 220px; height: 220px; }
}

/* ==================================================================
   Motion layer 2 — flywheel sequencer, pipeline execution, ticker,
   shimmer, rotating CTA ring, scroll progress, spotlight cards, tilt
   ================================================================== */

/* Hero gradient shimmer */
.hero .grad-text {
  background: linear-gradient(96deg, #52e252, #2fc9a8 30%, #22a7f0 55%, #2fc9a8 80%, #52e252);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* Flywheel: steps light up in sequence — the wheel "spins" */
.fly-step { animation: flycycle 9s ease-in-out infinite; }
.fly-step:nth-child(1) { animation-delay: 0s; }
.fly-step:nth-child(2) { animation-delay: 1.5s; }
.fly-step:nth-child(3) { animation-delay: 3s; }
.fly-step:nth-child(4) { animation-delay: 4.5s; }
.fly-step:nth-child(5) { animation-delay: 6s; }
.fly-step:nth-child(6) { animation-delay: 7.5s; }
@keyframes flycycle {
  0%, 13% { background: rgba(82, 226, 82, 0.055); box-shadow: inset 0 2px 0 -1px rgba(82, 226, 82, 0.5); }
  18%, 100% { background: transparent; box-shadow: none; }
}

/* Blueprint: pipeline stages execute left → right */
.blueprint .bp-node { animation: bpexec 8s ease-in-out infinite; }
.blueprint .bp-node:nth-of-type(1) { animation-delay: 0.2s; }
.blueprint .bp-node:nth-of-type(2) { animation-delay: 0.9s; }
.blueprint .bp-node:nth-of-type(3) { animation-delay: 1.6s; }
.blueprint .bp-node:nth-of-type(4) { animation-delay: 2.3s; }
.blueprint .bp-node:nth-of-type(5) { animation-delay: 3s; }
.blueprint .bp-node:nth-of-type(6) { animation-delay: 3.7s; }
@keyframes bpexec {
  0%, 6% { border-color: rgba(82, 226, 82, 0.8); box-shadow: 0 0 16px rgba(82, 226, 82, 0.25); }
  12%, 100% { }
}

/* Console terminal ticker */
.console-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--fm); font-size: 12px;
  min-height: 44px;
}
.tick-prompt { color: #5d6879; white-space: nowrap; }
#console-tick { color: #9aa5b5; }
.tick-cursor {
  width: 7px; height: 14px;
  background: #52e252;
  display: inline-block;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* CTA band: slowly rotating gradient ring */
@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle),
    rgba(82, 226, 82, 0.55), rgba(34, 167, 240, 0.15),
    rgba(34, 167, 240, 0.55), rgba(82, 226, 82, 0.15),
    rgba(82, 226, 82, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ctaspin 9s linear infinite;
  pointer-events: none;
}
@keyframes ctaspin { to { --cta-angle: 360deg; } }

/* Scroll progress bar (element injected by main.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 300;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* Cursor-spotlight cards — glow follows the mouse */
.card { --mx: 50%; --my: 50%; }
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(82, 226, 82, 0.07), rgba(34, 167, 240, 0.05) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* Console 3D tilt (transform set by main.js on pointer move) */
.console { transform-style: preserve-3d; will-change: transform; }

@media (max-width: 720px) {
  .console-foot { padding: 12px 20px; }
}

/* Float redefined to compose with JS-driven tilt (--rx/--ry) */
@keyframes float {
  0%, 100% { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0); }
  50% { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
}

/* ==================================================================
   Motion layer 3 — living platform hero:
   aurora canvas + orbital capability system around the brand core
   ================================================================== */

/* Aurora canvas owns the hero atmosphere */
#aurora {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  filter: blur(34px) saturate(1.25);
  opacity: 0.75;
  pointer-events: none;
}
.hero::before, .hero::after { display: none; }
.hero .wrap { position: relative; z-index: 1; }

/* ---------- Orbital system ---------- */
.orbital {
  position: relative;
  width: min(640px, 92vw);
  height: min(640px, 92vw);
  margin: 56px auto 0;
  --ra: 31.5%;   /* inner ring radius (of container) */
  --rb: 48%;     /* outer ring radius */
}
.orbital .halo {
  position: absolute; top: 50%; left: 50%;
  width: 58%; height: 58%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 201, 168, 0.18), rgba(34, 167, 240, 0.07) 45%, transparent 68%);
  border-radius: 50%;
  animation: halopulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halopulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* rings */
.ring {
  position: absolute;
  border: 1px dashed rgba(160, 190, 230, 0.16);
  border-radius: 50%;
}
.ring-a { inset: 18.5%; animation: spin 70s linear infinite; }
.ring-b { inset: 2%; animation: spinrev 110s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinrev { to { transform: rotate(-360deg); } }

/* capability nodes ride the rings, counter-rotating to stay upright */
.onode {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
}
.ring-a .onode { transform: rotate(var(--a)) translateY(calc(min(640px, 92vw) * -0.315)); }
.ring-b .onode { transform: rotate(var(--a)) translateY(calc(min(640px, 92vw) * -0.48)); }
.unspin { display: block; }
.ring-a .unspin { animation: counterspin-a 70s linear infinite; }
.ring-b .unspin { animation: counterspin-b 110s linear infinite; }
@keyframes counterspin-a {
  from { transform: rotate(calc(var(--a) * -1)); }
  to   { transform: rotate(calc(var(--a) * -1 - 360deg)); }
}
@keyframes counterspin-b {
  from { transform: rotate(calc(var(--a) * -1)); }
  to   { transform: rotate(calc(var(--a) * -1 + 360deg)); }
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  transform: translate(-50%, -50%);
  font-family: var(--fm); font-size: 10.5px; letter-spacing: 0.16em;
  white-space: nowrap;
  color: #c9d6e8;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(160, 190, 230, 0.28);
  border-radius: 100px;
  padding: 8px 15px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(47, 201, 168, 0.10);
  backdrop-filter: blur(4px);
}
.chip::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 8px rgba(82, 226, 82, 0.8);
}

/* data beams: pulses stream from nodes into the core */
.beam {
  position: absolute; top: 50%; left: 50%;
  width: 1px;
  transform-origin: top center;
  transform: rotate(calc(var(--a) + 180deg));
  background: linear-gradient(180deg, transparent 12%, rgba(160, 190, 230, 0.13));
  pointer-events: none;
}
.ring-a .beam { height: calc(min(640px, 92vw) * 0.315); }
.ring-b .beam { height: calc(min(640px, 92vw) * 0.48); }
.beam b {
  position: absolute; left: -2.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #7df29b;
  box-shadow: 0 0 10px rgba(82, 226, 82, 0.9);
  animation: beamdot 4.2s ease-in infinite;
  animation-delay: var(--d, 0s);
}
.ring-b .beam b { background: #57c9f5; box-shadow: 0 0 10px rgba(34, 167, 240, 0.9); }
@keyframes beamdot {
  0%   { top: calc(100% - 6px); opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 4%; opacity: 0; }
}

/* the brand core */
.core {
  position: absolute; top: 50%; left: 50%;
  width: 24%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.core img {
  width: 100%;
  filter: drop-shadow(0 0 24px rgba(63, 214, 152, 0.45));
  animation: corepulse 5.5s ease-in-out infinite;
}
@keyframes corepulse {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(63, 214, 152, 0.35)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 34px rgba(63, 214, 152, 0.65)); transform: scale(1.03); }
}

/* console relocated out of hero */
.console { margin: 4px auto 52px; }

@media (max-width: 720px) {
  .orbital { margin-top: 40px; }
  .chip { font-size: 9px; padding: 6px 11px; letter-spacing: 0.12em; }
  .core { width: 27%; }
  #aurora { filter: blur(26px) saturate(1.25); }
}

/* ---------- Credentials strip ---------- */
.creds {
  max-width: 880px;
  margin: 44px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.creds-label {
  font-family: var(--fm); font-size: 10.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--dim);
}
.creds-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cred {
  font-family: var(--fm); font-size: 12px;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, color 0.2s;
}
.cred:hover { border-color: rgba(82, 226, 82, 0.4); color: var(--text); }

/* ==================================================================
   v6 additions — ported from the light-azure iteration, restyled
   for the dark canvas. Base above is Design System v4 (DARK).
   ================================================================== */

/* ---------- Header brand lockup — mark + live-text name ---------- */
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo .brand-mark { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.brand-name {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1;
  color: var(--text);
}
.brand-tag {
  font-family: var(--fm);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.295em;
  line-height: 1;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .nav-logo .brand-mark { height: 38px; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 8px; }
}
@media (max-width: 360px) {
  .brand-tag { display: none; }
}

/* ==================================================================
   Orbital stage v2 — concentric circular disc with a slowly
   rotating gradient rim (circles within circles, like the mark),
   lifted just above the near-black canvas
   ================================================================== */
.orbital { margin-top: 72px; }
.orbital::before {
  content: "";
  position: absolute;
  inset: -48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 201, 168, 0.12), transparent 62%),
    radial-gradient(circle at 62% 30%, rgba(34, 167, 240, 0.09), transparent 58%),
    radial-gradient(circle, #0b1220 62%, #060910 100%);
  border: 0;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(47, 201, 168, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@property --orb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.orbital::after {
  content: "";
  position: absolute;
  inset: -48px;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(from var(--orb-angle),
    rgba(82, 226, 82, 0.55),
    rgba(34, 167, 240, 0.10) 30%,
    rgba(34, 167, 240, 0.55) 50%,
    rgba(82, 226, 82, 0.10) 70%,
    rgba(82, 226, 82, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: orbrim 26s linear infinite;
  pointer-events: none;
}
@keyframes orbrim { to { --orb-angle: 360deg; } }

@media (max-width: 1100px) {
  .orbital::before, .orbital::after { inset: -40px; }
}
@media (max-width: 760px) {
  .orbital::before, .orbital::after { inset: -16px; }
}

/* ==================================================================
   Social tiles — orbit-style chips, dark-native
   ================================================================== */
.soc {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0d1524, #070b13);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #93a7c0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.soc[href]:hover {
  color: #52e252;
  border-color: rgba(82, 226, 82, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(82, 226, 82, 0.18);
}
