/* =========================================================
   NDigLabs · ndiglabs.com · vanilla CSS
   ========================================================= */
:root {
  --bg: #050816;
  --bg-2: #0a1024;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9eef8;
  --muted: #93a0b8;
  --cyan: #36e2ff;
  --violet: #7b61ff;
  --amber: #ffb347;
  --green: #34e0a1;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #050816; box-shadow: 0 8px 30px -8px rgba(54, 226, 255, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(123, 97, 255, .6); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: rgba(54, 226, 255, .5); background: var(--surface-2); }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip--live { color: var(--green); border-color: rgba(52, 224, 161, .35); background: rgba(52, 224, 161, .08); }
.chip--next { color: var(--cyan); border-color: rgba(54, 226, 255, .35); background: rgba(54, 226, 255, .08); }
.chip--design { color: #b3a4ff; border-color: rgba(123, 97, 255, .4); background: rgba(123, 97, 255, .1); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5, 8, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--font-head); letter-spacing: -0.01em; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__mark { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 40%, rgba(123, 97, 255, .18), transparent 70%),
    radial-gradient(500px 400px at 15% 20%, rgba(54, 226, 255, .12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  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 center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); margin: 24px 0 22px; }
#rotator { display: inline-block; min-height: 1.15em; }
#rotator.typing::after {
  content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 6px; vertical-align: -.05em;
  background: var(--cyan); animation: blink 1s steps(1) infinite;
}
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__disc { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* AI core hub */
.hub { width: 100%; max-width: 500px; margin: 0 auto; overflow: visible; }
.ring { fill: none; stroke: rgba(54, 226, 255, .35); transform-box: fill-box; transform-origin: center; }
.ring--a { stroke-dasharray: 4 10; animation: spin 40s linear infinite; }
.ring--b { stroke: rgba(123, 97, 255, .35); stroke-dasharray: 1 7; stroke-width: 2; animation: spin 60s linear infinite reverse; }
.links line { stroke: rgba(54, 226, 255, .55); stroke-width: 1.5; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
.core text { text-anchor: middle; fill: var(--text); }
.core__t1 { font: 700 24px var(--font-head); }
.core .core__t2 { font: 600 10px var(--font-body); letter-spacing: .2em; fill: var(--cyan); }
.core circle { filter: drop-shadow(0 0 18px rgba(54, 226, 255, .45)); }
.sat rect { fill: rgba(10, 16, 36, .92); stroke: var(--line); }
.sat text { text-anchor: middle; fill: var(--text); font: 600 14px var(--font-head); }
.sat .sat__sub { fill: var(--muted); font: 400 10.5px var(--font-body); }
.sat { animation: float 6s ease-in-out infinite; }
.sat:nth-of-type(2n) { animation-delay: -3s; }
.hub__label { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font: 700 clamp(34px, 4vw, 48px) var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.head { max-width: 760px; margin-bottom: 56px; }
.head--center { margin-inline: auto; text-align: center; }
.eyebrow { color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.head h2 { font-size: clamp(30px, 4vw, 48px); }
.lead { color: var(--muted); font-size: 18px; margin-top: 18px; }
.subhead { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card, .svc, .tool, .proof, .biz {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s, border-color .3s, background .3s;
}
.card:hover, .svc:hover, .tool:hover, .proof:hover { transform: translateY(-4px); border-color: rgba(54, 226, 255, .35); }
.card h3, .svc h3, .tool h3, .proof h3 { font-size: 19px; margin-bottom: 10px; }
.card p, .svc p, .tool p, .proof p { color: var(--muted); font-size: 15px; }
.card__no { display: block; font: 700 14px var(--font-head); color: var(--cyan); margin-bottom: 18px; }
.card__icon { display: block; color: var(--cyan); margin-bottom: 14px; }
.card--sm h3 { font-size: 17px; }

/* About: business lines */
.biz { padding: 36px; overflow: hidden; }
.biz::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.biz--alt::before { background: linear-gradient(120deg, var(--violet), var(--cyan)); }
.biz__tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.biz--alt .biz__tag { color: #a898ff; }
.biz h3 { font-size: 24px; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) scale(.75);
}

/* Services with spotlight hover */
.svc { overflow: hidden; }
.svc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(54, 226, 255, .12), transparent 60%);
}
.svc:hover::after { opacity: 1; }
.svc__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(54, 226, 255, .15), rgba(123, 97, 255, .15)); border: 1px solid var(--line);
}
.svc__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: #a898ff; letter-spacing: .06em; }

/* Department coverage */
.depts { margin-top: 40px; padding: 28px; border: 1px dashed rgba(255, 255, 255, .14); border-radius: var(--radius); }
.depts__title { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.depts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.depts__list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.depts__list b { font: 600 11px ui-monospace, Consolas, monospace; color: var(--cyan); background: rgba(54, 226, 255, .1); padding: 2px 6px; border-radius: 6px; }

/* Digital products (gradient border) */
.product {
  position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(150deg, rgba(54, 226, 255, .55), rgba(123, 97, 255, .2) 45%, rgba(255, 255, 255, .06)) border-box;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px rgba(54, 226, 255, .35); }
.product__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.product__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); }
.product__icon svg { width: 26px; height: 26px; fill: none; stroke: #050816; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: 22px; margin-bottom: 10px; }
.product > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.product .ticks { gap: 10px; font-size: 14.5px; }

/* Platform steps & connectors */
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; padding: 24px 20px 0 0; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--grad); transition: width 1.2s ease; }
.step.is-visible::before { width: 100%; }
.step__no { font: 700 13px var(--font-head); color: var(--cyan); }
.step h3 { font-size: 20px; margin: 8px 0; }
.step p { color: var(--muted); font-size: 14.5px; }
.tool__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tool__top h3 { margin: 0; font-size: 21px; }
.tool .tool__role { color: var(--cyan); font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* Standards marquee */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0;
  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: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee__track span { font: 600 17px var(--font-head); color: var(--muted); white-space: nowrap; }
.marquee__track span::before { content: "◆"; color: var(--violet); font-size: 10px; margin-right: 48px; vertical-align: middle; }

/* Interactive demo */
.demo { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo__path { flex: 1; color: var(--muted); font: 13px ui-monospace, Consolas, monospace; }
.demo__stage { padding: 20px; }
#demoSvg { width: 100%; height: auto; }
#demoSvg .edge { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; transition: stroke .4s; }
#demoSvg .edge.is-hot { stroke: var(--amber); stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
#demoSvg .node { cursor: pointer; }
#demoSvg .node rect { fill: #0d1430; stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; transition: fill .4s, stroke .4s, opacity .4s; }
#demoSvg .node text { fill: var(--text); font: 600 13px var(--font-body); text-anchor: middle; pointer-events: none; }
#demoSvg .node .sub { fill: var(--muted); font-weight: 400; font-size: 11px; }
#demoSvg .node:hover rect, #demoSvg .node:focus-visible rect { stroke: var(--cyan); }
#demoSvg .node:focus { outline: none; }
#demoSvg .node.is-changed rect { fill: #143955; stroke: var(--cyan); }
#demoSvg .node.is-flagged rect { fill: #2f2a33; stroke: var(--amber); }
#demoSvg .node.is-ok rect { stroke: rgba(255, 255, 255, .07); }
#demoSvg .node.is-ok text { fill-opacity: .45; }
.demo__out { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font: 14px/1.6 ui-monospace, Consolas, monospace; min-height: 52px; }
.demo__out b { color: var(--cyan); margin-right: 6px; }
.legend { list-style: none; margin: 0; padding: 0 20px 18px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid; }
.lg--chg { border-color: var(--cyan); background: rgba(54, 226, 255, .2); }
.lg--flag { border-color: var(--amber); background: rgba(255, 179, 71, .2); }
.lg--ok { border-color: rgba(255, 255, 255, .2); }

/* Traction */
.proof__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.proof__code { font: 600 13px var(--font-head); color: var(--cyan); }
.meter { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 22px 0 10px; }
.meter span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.proof.is-visible .meter span { width: 100%; }
.proof .proof__num { font-size: 14px; }
.proof__num b { color: var(--text); font: 700 18px var(--font-head); }
.strip { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.strip p { color: var(--muted); }
.strip b { color: var(--text); }

/* Market */
.industries { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.industries span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.why { margin-top: 56px; padding: 36px; border-radius: var(--radius); border: 1px solid rgba(123, 97, 255, .3); background: linear-gradient(135deg, rgba(54, 226, 255, .06), rgba(123, 97, 255, .08)); }
.why h3 { font-size: 24px; margin-bottom: 22px; }
.why__grid p { color: var(--muted); font-size: 15px; }
.why__grid b { display: block; color: var(--text); font-family: var(--font-head); font-size: 17px; margin-bottom: 6px; }

/* Status board */
.board { display: grid; gap: 12px; }
.board__row {
  display: grid; grid-template-columns: 1.4fr 1fr 110px; align-items: center; gap: 28px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.board__row h3 { font-size: 18px; margin-bottom: 4px; }
.board__row p { color: var(--muted); font-size: 14.5px; }
.board__row .chip { justify-self: end; }
.board__bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.board__bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.board__row.is-visible .board__bar span { width: var(--p); }

/* Investors */
.funds { margin: 48px 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.funds h3 { font-size: 22px; margin-bottom: 20px; }
.funds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.funds li { padding-left: 16px; border-left: 2px solid var(--violet); }
.funds b { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.funds span { color: var(--muted); font-size: 14px; }

.contact {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; padding: 40px; border-radius: 24px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(54, 226, 255, .07), rgba(123, 97, 255, .07) 60%, transparent);
}
.contact__intro h3 { font-size: 30px; margin-bottom: 12px; }
.contact__intro > p { color: var(--muted); margin-bottom: 20px; }
.contact__mail { display: inline-block; font: 600 20px var(--font-head); margin-bottom: 26px; border-bottom: 1px solid rgba(54, 226, 255, .5); overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--cyan); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 6px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(5, 8, 22, .7); color: var(--text); font: 15px var(--font-body); resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(54, 226, 255, .15); }
.field small { display: none; color: #ff7b8a; font-size: 13px; }
.field.has-error input { border-color: #ff7b8a; }
.field.has-error small { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; transition: all .2s; }
.choices input:checked + span { border-color: var(--cyan); background: rgba(54, 226, 255, .12); color: var(--cyan); }
.choices input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form__status { min-height: 22px; font-size: 14px; color: var(--green); }
.form__status.is-error { color: #ff7b8a; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.footer__tag { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 14px; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { color: #7c879e; font-size: 12.5px; max-width: 900px; margin-bottom: 18px; }
.footer__copy { color: var(--muted); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease var(--d, 0ms), transform .8s ease var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 224, 161, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 224, 161, 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid4, .funds ul { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: rgba(5, 8, 22, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; }
  .nav.menu-open { background: rgba(5, 8, 22, .97); }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .board__row { grid-template-columns: 1fr auto; gap: 12px 20px; }
  .board__bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid3, .grid4, .funds ul, .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 14px; }
  .biz, .contact, .why, .funds, .depts { padding: 24px 20px; }
  .hero__cta .btn { width: 100%; }
  .demo__stage { padding: 10px; }
  .strip { flex-direction: column; align-items: flex-start; }
  .board__row { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
