:root {
  --navy: #0d264f;
  --navy-deep: #081a38;
  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --ink: #16213a;
  --ink-soft: #4b5670;
  --line: #d8d3c7;
  --accent: #0b5fff;
  --warn: #c2410c;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --gutter: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; margin: 0; line-height: 1.05; }
p { margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 120px; height: auto; }
.links { display: flex; align-items: center; gap: 22px; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.links a { text-decoration: none; color: var(--navy); }
.links .btn { color: #fff; }
.links a:not(.btn) { display: none; }
@media (min-width: 720px) { .links a:not(.btn) { display: inline; } .brand img { width: 140px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px;
  text-decoration: none; border: 1.5px solid var(--navy);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy) radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  min-height: 560px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 72% 50%, rgba(11,95,255,.22), transparent 55%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; }
.hero .eyebrow { color: rgba(255,255,255,.62); }
h1 { font-size: clamp(40px, 7.5vw, 76px); text-transform: uppercase; color: #fff; max-width: 11ch; }
h1 em { font-style: normal; font-weight: 300; color: #9ec1ff; }
.lede { margin-top: 24px; font-size: 19px; max-width: 54ch; color: rgba(255,255,255,.76); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn:hover { background: #e6edff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* mesh as the hero background */
.mesh-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.18) 0, rgba(0,0,0,.18) 48%, #000 62%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.18) 0, rgba(0,0,0,.18) 48%, #000 62%); }
.mesh-bg svg { display: block; overflow: visible; }
.edge { stroke: rgba(255,255,255,.2); stroke-width: 1.2; }
.node .ring { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1; transition: stroke .3s; }
.node .core { fill: #1e3a6b; stroke: rgba(255,255,255,.75); stroke-width: 1.2; transition: fill .25s, stroke .25s; }
.node .label { fill: rgba(255,255,255,.85); font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-anchor: middle; }
.node .verb { fill: #86efac; font-family: var(--body); font-style: italic; font-size: 13px; text-anchor: middle; opacity: 0; transition: opacity .25s; }
.node.hub .core { fill: var(--accent); stroke: #fff; }
.node.hub .label { fill: #fff; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.node.hub .ring { stroke: rgba(120,170,255,.8); animation: hubring 3s ease-in-out infinite; }
@keyframes hubring { 0%,100% { r: 28; opacity: 1; } 50% { r: 36; opacity: .3; } }
.node.tx .core { stroke: #fff; fill: #2d4f8a; }
.node.on .core { fill: #4ade80; stroke: #fff; }
.node.on .ring { stroke: #4ade80; animation: nodering 1.5s ease-out; }
.node.on .verb { opacity: 1; }
.node.warn .core { fill: #fbbf24; stroke: #fff; }
.node.warn .ring { stroke: #fbbf24; animation: nodering 1.5s ease-out; }
.node.warn .verb { opacity: 1; fill: #fbbf24; }
@keyframes nodering { 0% { r: 9; opacity: 1; } 100% { r: 26; opacity: 0; } }
.pulse { fill: #4ade80; filter: drop-shadow(0 0 4px rgba(74,222,128,.95)); }
.pulse.warn { fill: #fbbf24; filter: drop-shadow(0 0 4px rgba(251,191,36,.95)); }

.live-strip {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: rgba(255,255,255,.75);
}
.live-strip .live-word { color: #fff; }
.live-strip .muted { font-variant-numeric: tabular-nums; opacity: .6; }
.live-strip .stat { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.25); }
.live-strip b { font-weight: 500; font-size: 18px; color: #fff; margin-right: 5px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.18);} 50% { box-shadow: 0 0 0 7px rgba(74,222,128,.05);} }

@media (max-width: 859px) {
  .hero-copy { padding-bottom: 400px; }
  .live-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(180deg, transparent, rgba(13,38,79,.92) 45%); }
}
@media (min-width: 860px) {
  .hero { min-height: 680px; }
  .hero-copy { padding: 96px var(--gutter) 0; }
  .lede { max-width: 46ch; }
  .mesh-bg {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0, rgba(0,0,0,.12) 38%, #000 56%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0, rgba(0,0,0,.12) 38%, #000 56%);
  }
  .live-strip { position: absolute; left: 0; right: 0; bottom: 0; }
}

/* ---------- sections ---------- */
.section-title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; color: var(--navy);
  margin-bottom: 36px;
}
.num { font-weight: 300; font-size: .6em; color: var(--accent); letter-spacing: .1em; }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); }
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell { background: #fff; padding: 28px 24px; transition: background .2s; }
.cell:hover { background: var(--paper); }
.cell h3 { font-size: 22px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.cell p { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } .cell { padding: 36px 32px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: 1fr 1fr 1fr; } .cell { padding: 32px 28px; } }

.how { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { position: relative; padding: 24px 0 0; border-top: 2px solid var(--navy); }
.step-n { font-family: var(--display); font-weight: 300; font-size: 56px; line-height: 1; color: var(--navy); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 22px; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.steps p { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.sectors { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 72px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; padding: 10px 16px; border: 1.5px solid var(--navy); color: var(--navy); }
.note { margin-top: 22px; color: var(--ink-soft); max-width: 62ch; font-size: 16px; }

.demo { background: var(--navy); color: #fff; }
.demo-inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter); display: grid; gap: 28px; align-items: center; }
.demo h2 { font-size: clamp(30px, 4.5vw, 44px); text-transform: uppercase; margin-bottom: 12px; }
.demo p { color: rgba(255,255,255,.78); max-width: 52ch; }
@media (min-width: 860px) { .demo-inner { grid-template-columns: 1fr auto; } }

.contact { max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter) 72px; }
.contact-lede { font-size: 20px; max-width: 48ch; }
.big-link {
  display: inline-block; margin-top: 24px;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(26px, 6vw, 56px); color: var(--navy); text-decoration: none;
  border-bottom: 3px solid var(--accent); line-height: 1.1; word-break: break-all;
}
.big-link:hover { color: var(--accent); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  font-size: 14px; color: var(--ink-soft);
}
.foot-logo { width: 100px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--navy); text-decoration: underline; }
.foot p { margin-left: auto; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .dot, .node .ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.legal h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 8px; }
.legal .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; text-transform: uppercase; color: var(--navy); margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal ul { padding-left: 20px; }

/* ---------- contact form ---------- */
.contact-form { margin-top: 36px; max-width: 640px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--navy); }
.contact-form .opt { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-family: var(--body); font-weight: 400; }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: var(--body); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { margin: 0; color: var(--ink-soft); font-size: 15px; }
.sectors .contact-lede { margin: 0 0 22px; }
