/* ─── Reset & Variables ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:       #07100a;
  --bg2:      #0d1b10;
  --surface:  rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.09);
  --text:     #e6ede8;
  --muted:    rgba(230,237,232,0.52);
  --accent:   #d4884c;
  --accent2:  #b06030;
  --green:    #50d47a;
  --max:      1160px;
  --nav-h:    72px;
  --r:        14px;
  --shadow:   0 24px 64px rgba(0,0,0,0.5);
}

/* ─── Base ────────────────────────────────────────────── */
body {
  font-family: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Layout ──────────────────────────────────────────── */
.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ─── Typography ──────────────────────────────────────── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
h2, h3 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212,136,76,0.3);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.22); }

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7,16,10,0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}
.nav-logo img { height: 28px; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: 0.5rem;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface2);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.active,
.lang-toggle button:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 65% 55% at 15% 45%, rgba(212,136,76,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 55%, rgba(80,212,122,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.3;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 0.6rem; }
.hero-powered {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
}
.hero-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #e8f0ea 15%, rgba(212,136,76,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}
.hero-backronym {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.hero-backronym span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 720px;
  margin-bottom: 1.25rem;
}
.hero h1 .hl { color: var(--accent); }
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.78;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll .ln {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(230,237,232,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.25; transform: scaleY(0.5); }
  50%      { opacity: 1;    transform: scaleY(1); }
}

/* ─── Marquee Strip ───────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--bg2);
}
.strip-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.strip-track span {
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section ─────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-head { max-width: 700px; margin-bottom: 3.5rem; }

/* ─── Network ─────────────────────────────────────────── */
.net { background: var(--bg2); }
.net-stage { position: relative; margin-top: 1rem; }
.net-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.net-grid {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  align-items: center;
  gap: 2rem;
}
.net-col { display: flex; flex-direction: column; gap: 1rem; }
.net-coltitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.net-node {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.25s;
}
.net-node:hover { border-color: rgba(255,255,255,0.22); }
.dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-top: 0.35rem;
}
.net-col.right .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.nn-t {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}
.nn-s { font-size: 0.78rem; color: var(--muted); margin-top: 0.18rem; }
.net-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(212,136,76,0.16), rgba(80,212,122,0.08));
  border: 1px solid rgba(212,136,76,0.28);
  border-radius: 50%;
  min-width: 130px;
  min-height: 130px;
  box-shadow: 0 0 48px rgba(212,136,76,0.1), inset 0 0 40px rgba(212,136,76,0.04);
}
.hub-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.hub-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ─── Automation ──────────────────────────────────────── */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.auto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}
.auto-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.auto-card.span2 { grid-column: span 2; }
.auto-card.span3 { grid-column: span 3; }
.auto-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.auto-ic {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.auto-ic svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.auto-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.auto-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.68; }

/* ─── Commercial Pills ────────────────────────────────── */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  transition: border-color 0.25s;
}
.pill:hover { border-color: rgba(255,255,255,0.2); }
.pill-no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.pill h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1.1rem; }
.pill ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.pill li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.pill li svg {
  flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px;
  fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── Compare ─────────────────────────────────────────── */
.cmp { background: var(--bg2); }
.cmp-switch { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.cmp-switch button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.48rem 1.2rem;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cmp-switch button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmp-table {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1.8fr;
  border-bottom: 1px solid var(--border);
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row.head { background: var(--surface2); }
.cmp-cell {
  padding: 1.2rem 1.5rem;
  font-size: 0.9rem;
  border-right: 1px solid var(--border);
}
.cmp-cell:last-child { border-right: none; }
.cmp-cell.dim {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.cmp-cell.base { color: var(--muted); }
.cmp-head-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-bottom: 0.4rem; }
.cmp-head-label.muted { color: var(--muted); }
.cmp-head-tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
}
.cmp-head-tag.b { background: var(--surface2); color: var(--muted); }
.cmp-head-tag.a { background: rgba(212,136,76,0.18); color: var(--accent); }
.tick { display: flex; align-items: flex-start; gap: 0.5rem; }
.tick svg {
  flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px;
  fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.cmp-mobile-only { display: none; }
.cmp-mcard {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1rem;
}
.mdim {
  padding: 0.75rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.cmp-mrow {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.cmp-mrow:last-child { border-bottom: none; }
.cmp-mrow.b { color: var(--muted); }
.cmp-mrow.a .ml { color: var(--accent); }
.ml { font-weight: 600; font-size: 0.8rem; margin-bottom: 0.25rem; }

/* ─── Stats ───────────────────────────────────────────── */
.stats { background: var(--bg2); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
}
.num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.u { font-size: 0.65em; color: var(--accent); }
.lab { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem; }
.sub { font-size: 0.8rem; color: var(--muted); }

/* ─── Partners ────────────────────────────────────────── */
.partners-block { margin-bottom: 2.5rem; }
.partners-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.logo-wall { display: flex; flex-wrap: wrap; gap: 1rem; }
.logo-slot {
  flex: 1 1 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 1.25rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.logo-slot:hover { border-color: rgba(255,255,255,0.2); }
.logo-slot img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

/* ─── Final CTA ───────────────────────────────────────── */
.final {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  text-align: center;
  background: var(--bg2);
}
.final-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(212,136,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.final .wrap { position: relative; }
.final h2 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.final h2 .l1 { display: block; color: var(--text); }
.final h2 .l2 { display: block; color: var(--muted); }
.final h2 .l3 { display: block; color: var(--accent); }
.final-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.final-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.contact-rows { display: flex; flex-direction: column; }
.contact-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.contact-rows .contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row .k { color: var(--muted); flex: 0 0 78px; }
.contact-row .v a:hover { color: var(--accent); }

/* ─── Form ────────────────────────────────────────────── */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.72rem 1rem;
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field.hp { display: none; }
.form .btn-primary { align-self: flex-start; width: 100%; justify-content: center; }
.form-status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.form-status.success { background: rgba(80,212,122,0.1); color: var(--green); }
.form-status.error   { background: rgba(220,60,60,0.1);  color: #f87171; }
.form-note { font-size: 0.76rem; color: var(--muted); }

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo img { height: 22px; opacity: 0.65; }
.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.sep { opacity: 0.4; }

/* ─── Reveal Animation ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .auto-grid { grid-template-columns: repeat(4, 1fr); }
  .auto-card.span2 { grid-column: span 2; }
  .auto-card.span3 { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }

  .net-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .net-hub {
    flex-direction: row;
    justify-content: flex-start;
    aspect-ratio: auto;
    min-height: auto;
    padding: 1rem 1.5rem;
    border-radius: var(--r);
    gap: 0.75rem;
  }
  .net-svg { display: none; }

  .pill-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cmp-table.desktop { display: none; }
  .cmp-mobile-only { display: block; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .auto-grid { grid-template-columns: 1fr; }
  .auto-card.span2,
  .auto-card.span3 { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
  .hero-backronym { gap: 1rem; }
  .final { padding: 5rem 0; }
}
