:root {
  --bg: #07090d;
  --bg-soft: #0b0e14;
  --surface: rgba(255,255,255,.035);
  --surface-hover: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f5f7fb;
  --muted: #9ca3b4;
  --muted-2: #6f7789;
  --accent: #aab0ff;
  --accent-strong: #7c86ff;
  --glow: rgba(105, 118, 255, .18);
  --max: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(79, 89, 180, .14), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(124,134,255,.32); color: white; }

.page-shell { overflow: hidden; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 27px;
  height: 27px;
  fill: var(--text);
  stroke: rgba(255,255,255,.56);
  stroke-width: 1;
}
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav > a {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s ease;
}
.nav nav > a:hover { color: white; }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 13px;
  background: rgba(255,255,255,.035);
}
.nav .nav-cta:hover { background: rgba(255,255,255,.075); }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 30px;
  padding-block: 88px 72px;
}
.eyebrow, .section-kicker {
  margin: 0 0 24px;
  color: #b7becd;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(151,159,255,.9);
}
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 6.1vw, 88px);
  line-height: .99;
  letter-spacing: -.064em;
  font-weight: 620;
}
.hero h1 span, h2 span { color: #8b93a5; }
.hero-lede {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  letter-spacing: -.015em;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 620;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #0b0d11;
  background: #f6f7fb;
  border-color: #f6f7fb;
}
.button-primary:hover { background: white; }
.button-secondary { color: #d7dbe4; background: rgba(255,255,255,.025); }
.button-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }

.mesh-stage {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 1;
  margin-left: auto;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
}
.mesh-stage::before, .mesh-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.055);
  inset: 12%;
}
.mesh-stage::after { inset: 26%; border-color: rgba(255,255,255,.04); }
.mesh-glow {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(55px);
  z-index: -1;
}
.mesh-lines { width: 100%; height: 100%; overflow: visible; }
.connections path {
  stroke-width: 1.15;
  stroke-dasharray: 4 8;
  animation: dash 15s linear infinite;
}
.nodes circle:not(.core-ring) { fill: #b3b9ff; filter: drop-shadow(0 0 10px rgba(131,142,255,.65)); }
.nodes .core-ring { opacity: .48; animation: breathe 4.8s ease-in-out infinite; }
.nodes .core { fill: #eef0ff; filter: drop-shadow(0 0 18px rgba(157,165,255,.95)); }
.mesh-label {
  position: absolute;
  min-width: 118px;
  padding: 10px 12px;
  background: rgba(9,12,18,.76);
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.mesh-label span { display: block; font-size: 11px; font-weight: 650; color: #dfe2eb; }
.mesh-label small { display: block; margin-top: 4px; font-size: 9px; color: #737c90; }
.label-1 { left: 7%; top: 18%; }
.label-2 { right: 2%; top: 12%; }
.label-3 { right: -1%; top: 54%; }
.label-4 { right: 12%; bottom: 4%; }
.label-5 { left: 10%; bottom: 8%; }
.label-6 { left: 0; top: 47%; }
.core-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  pointer-events: none;
}
.core-label span { display: block; color: #7f879a; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.core-label strong { display: block; margin-top: 4px; font-size: 11px; letter-spacing: -.01em; }

.section { padding-block: 128px; }
.statement { border-top: 1px solid var(--line); }
.statement h2, .section-heading h2, .closing h2, .proof h2 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.07;
  letter-spacing: -.052em;
  font-weight: 570;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars article {
  min-height: 280px;
  padding: 28px 24px 34px 0;
  border-right: 1px solid var(--line);
}
.pillars article:not(:first-child) { padding-left: 24px; }
.pillars article:last-child { border-right: 0; }
.pillar-index, .step-number, .focus-tag { color: var(--muted-2); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.pillars h3 { margin: 105px 0 12px; font-size: 18px; letter-spacing: -.025em; }
.pillars p, .process-step p, .focus-card p, .proof-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.section-heading { display: flex; flex-direction: column; gap: 0; margin-bottom: 68px; }

.process { border-bottom: 1px solid var(--line); }
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.process-line {
  position: absolute;
  left: 0; right: 0; top: 28px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.process-line span {
  display: block; height: 100%; width: 28%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 7s ease-in-out infinite;
}
.process-step { position: relative; padding-top: 54px; }
.process-step::before {
  content: "";
  position: absolute;
  top: 24px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #777f93;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.process-step h3 { margin: 15px 0 12px; font-size: 17px; letter-spacing: -.025em; }

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.focus-card {
  min-height: 230px;
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.018), transparent 62%);
  transition: background .25s ease;
}
.focus-card:hover { background: linear-gradient(135deg, rgba(124,134,255,.075), rgba(255,255,255,.018) 62%); }
.focus-card h3 { margin: 0 0 16px; font-size: 23px; letter-spacing: -.035em; }
.focus-card p { max-width: 440px; }
.card-arrow { justify-self: end; color: #596174; transition: transform .25s var(--ease), color .25s ease; }
.focus-card:hover .card-arrow { transform: translate(3px,-3px); color: var(--accent); }

.proof-frame {
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 10%, rgba(97,108,232,.1), transparent 31rem),
    rgba(255,255,255,.018);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
}
.proof h2 { font-size: clamp(36px, 4vw, 54px); }
.proof-copy > p { max-width: 520px; margin-bottom: 36px; font-size: 16px; }
.proof-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: #a5adbd;
  font-size: 13px;
}
.proof-row strong { color: #e2e5ec; font-weight: 570; }

.closing {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-top: 1px solid var(--line);
}
.closing p:not(.section-kicker) { margin: 30px 0 26px; color: var(--muted); font-size: 17px; }
.contact-note {
  display: block;
  margin-top: 14px;
  color: #565e70;
  font-size: 10px;
}

.footer {
  min-height: 120px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #697184;
  font-size: 11px;
}
.brand-small { color: #adb4c2; font-size: 12px; }
.brand-small .brand-mark { width: 22px; height: 22px; }
.footer p { margin: 0; text-align: center; }
.footer > span { justify-self: end; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes dash { to { stroke-dashoffset: -72; } }
@keyframes breathe {
  0%,100% { transform: scale(.94); transform-origin: 310px 310px; opacity: .36; }
  50% { transform: scale(1.08); transform-origin: 310px 310px; opacity: .58; }
}
@keyframes scan {
  0% { transform: translateX(-120%); }
  50%,100% { transform: translateX(460%); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 84px; }
  .hero-copy { position: relative; z-index: 2; }
  .mesh-stage { margin: 0 auto; width: min(100%, 570px); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars article:nth-child(2) { border-right: 0; }
  .pillars article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 52px; }
  .process-line { display: none; }
  .process-step::before { display: none; }
  .process-step { padding-top: 0; }
  .proof-frame { grid-template-columns: 1fr; gap: 48px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer p { display: none; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { height: 68px; }
  .nav nav > a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding-block: 68px 54px; }
  .hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-lede { font-size: 16px; margin-top: 26px; }
  .mesh-stage { width: 112%; margin-left: -6%; }
  .mesh-label { transform: scale(.9); }
  .section { padding-block: 92px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article,
  .pillars article:not(:first-child) { min-height: 205px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars article:last-child { border-bottom: 0; }
  .pillars h3 { margin-top: 62px; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: 210px; padding: 23px 20px; grid-template-columns: 34px 1fr 18px; }
  .proof-frame { padding: 30px 22px; }
  .proof-row { font-size: 12px; }
  .closing { min-height: 520px; }
  .footer { min-height: 100px; }
}

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