:root{
  --bg: #0B0E13;
  --surface: #12161D;
  --surface-2: #171D26;
  --border: #232B36;
  --border-soft: #1C222C;
  --text: #E7ECF2;
  --text-muted: #8C99A8;
  --text-faint: #59636F;
  --teal: #4FD8C4;
  --coral: #FF7A5C;
  --blue: #5B8DEF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before{
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

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

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,122,92,0.15);
}

/* ---------- NAV ---------- */
header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark{
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark span{
  position: absolute;
  border-radius: 50%;
}
.logo-mark .n-core{ width:6px; height:6px; background: var(--teal); top:8px; left:8px; }
.logo-mark .n1{ width:4px; height:4px; background: var(--coral); top:0; left:9px; }
.logo-mark .n2{ width:4px; height:4px; background: var(--blue); top:9px; left:18px; }
.logo-mark .n3{ width:4px; height:4px; background: var(--coral); top:18px; left:9px; }
.logo-mark .n4{ width:4px; height:4px; background: var(--blue); top:9px; left:0; }

.nav-links{
  display: flex; gap: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a{ transition: color 0.2s ease; position: relative; }
.nav-links a:hover, .nav-links a:focus-visible{ color: var(--text); }
.nav-cta{
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover, .nav-cta:focus-visible{ border-color: var(--teal); background: rgba(79,216,196,0.06); }

.nav-toggle{ display: none; }

/* ---------- HERO ---------- */
.hero{
  padding: 96px 0 60px;
  position: relative;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  margin: 18px 0 22px;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent{ color: var(--teal); }
.hero-copy p.lede{
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.cta-row{ display: flex; gap: 14px; flex-wrap: wrap; }
.btn{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary{
  background: var(--teal);
  color: #06110F;
  border: 1px solid var(--teal);
}
.btn-primary:hover, .btn-primary:focus-visible{
  box-shadow: 0 0 0 4px rgba(79,216,196,0.16);
  transform: translateY(-1px);
}
.btn-ghost{
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible{ border-color: var(--text-muted); }

/* topology diagram */
.topo{
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.topo svg{ width: 100%; height: 100%; overflow: visible; }
.topo-label{
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--text-muted);
  letter-spacing: 0.04em;
}
.topo-line{
  stroke: var(--border);
  stroke-width: 1.4;
  fill: none;
}
.topo-pulse{
  stroke-dasharray: 4 10;
  stroke-linecap: round;
  animation: dash 3.2s linear infinite;
}
@keyframes dash{ to{ stroke-dashoffset: -140; } }
.node-core{ fill: var(--surface-2); stroke: var(--teal); stroke-width: 1.6; }
.node{ fill: var(--surface); stroke: var(--border); stroke-width: 1.2; transition: stroke 0.2s ease; }
.node-dot{ animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.35; }
}

/* ---------- APPROACH / PIPELINE ---------- */
.section{ padding: 90px 0; }
.section-head{ margin-bottom: 44px; max-width: 640px; }
.section-head h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.section-head p{ color: var(--text-muted); margin-top: 12px; font-size: 15.5px; }

.pipeline{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}
.pipe-step{
  padding: 26px 20px;
  border-right: 1px solid var(--border-soft);
  position: relative;
  background: var(--surface);
  transition: background 0.2s ease;
}
.pipe-step:last-child{ border-right: none; }
.pipe-step:hover{ background: var(--surface-2); }
.pipe-step .idx{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
}
.pipe-step h3{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 10px 0 8px;
}
.pipe-step p{
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.pipe-step::after{
  content: "→";
  position: absolute;
  right: -11px; top: 26px;
  color: var(--text-faint);
  font-size: 14px;
  z-index: 2;
}
.pipe-step:last-child::after{ content: ""; }

/* ---------- DIVISIONS ---------- */
.div-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.div-card{
  background: var(--surface);
  padding: 36px 34px;
  transition: background 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.div-card:hover{ background: var(--surface-2); }
.div-top{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.div-tag{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 3px;
}
.div-icon{
  width: 34px; height: 34px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border: 1px solid var(--border);
}
.div-card h3{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}
.div-card .div-line{
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.div-card p.desc{
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.div-list{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.div-list li{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 5px 10px;
  border-radius: 4px;
}

/* ---------- ADVANTAGE ---------- */
.adv-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv-card{
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 26px 22px;
  position: relative;
}
.adv-card .bar{
  width: 28px; height: 3px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.adv-card h4{
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 8px;
}
.adv-card p{ font-size: 13.5px; color: var(--text-muted); }

.closing-line{
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--text);
  max-width: 760px;
  margin-left: auto; margin-right: auto;
  line-height: 1.4;
}
.closing-line .accent{ color: var(--coral); }

/* ---------- FOOTER / CONTACT ---------- */
footer{
  border-top: 1px solid var(--border-soft);
  padding: 70px 0 40px;
  margin-top: 20px;
}
.foot-cta{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 30px;
}
.foot-cta h2{
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  flex: 1;
  line-height: 1.15;
}
.foot-bottom{
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.foot-links{ display:flex; gap: 22px; }
.foot-links a{ color: var(--text-muted); transition: color 0.2s ease; }
.foot-links a:hover, .foot-links a:focus-visible{ color: var(--teal); }

:focus-visible{ outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 880px){
  .hero-inner{ grid-template-columns: 1fr; }
  .topo{ order: -1; max-width: 320px; }
  .nav-links{ display: none; }
  .pipeline{ grid-template-columns: 1fr; }
  .pipe-step{ border-right: none; border-bottom: 1px solid var(--border-soft); }
  .pipe-step::after{ content: "↓"; right: auto; left: 20px; top: auto; bottom: -11px; }
  .pipe-step:last-child{ border-bottom: none; }
  .div-grid{ grid-template-columns: 1fr; }
  .adv-grid{ grid-template-columns: repeat(2, 1fr); }
  .foot-cta{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  .topo-pulse{ animation: none; }
  .node-dot{ animation: none; }
  html{ scroll-behavior: auto; }
}
