:root {
  color-scheme: dark;
  --ink: #07100f;
  --ink-soft: #0d1716;
  --panel: #121e1c;
  --line: rgba(220, 239, 234, 0.16);
  --text: #f3f8f6;
  --muted: #9dada9;
  --green: #8ee3a8;
  --cyan: #63d9e7;
  --amber: #ffbd70;
  --content: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: var(--content);
  height: 82px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 750; font-size: 18px; }
.brand-mark { position: relative; display: inline-block; width: 27px; height: 27px; }
.brand-mark i { position: absolute; display: block; width: 12px; height: 12px; background: var(--green); }
.brand-mark i:nth-child(1) { left: 0; top: 8px; }
.brand-mark i:nth-child(2) { right: 0; top: 0; background: var(--cyan); }
.brand-mark i:nth-child(3) { right: 0; bottom: 0; background: var(--amber); }
nav { display: flex; align-items: center; gap: 34px; color: rgba(255,255,255,.76); font-size: 14px; }
nav a, .header-cta { transition: color .2s ease; }
nav a:hover, .header-cta:hover { color: #fff; }
.header-cta { justify-self: end; font-size: 14px; font-weight: 650; }

.hero {
  position: relative;
  min-height: clamp(720px, 94vh, 940px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 108px max(24px, calc((100vw - 1180px) / 2)) 116px;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,10,10,.96) 0%, rgba(3,10,10,.78) 34%, rgba(3,10,10,.13) 68%, rgba(3,10,10,.08) 100%), linear-gradient(0deg, rgba(7,16,15,.72), transparent 35%);
}
.hero-content { position: relative; z-index: 2; width: min(650px, 58vw); }
.eyebrow, .section-kicker { text-transform: uppercase; font-size: 12px; font-weight: 750; letter-spacing: .16em; color: var(--green); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
h1 { margin: 20px 0 8px; font-size: clamp(76px, 9vw, 142px); line-height: .88; font-weight: 820; letter-spacing: 0; }
.hero-lead { margin: 25px 0 20px; font-size: clamp(26px, 3vw, 44px); line-height: 1.08; font-weight: 650; }
.hero-copy { max-width: 570px; margin: 0; color: #c0cdca; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; font-size: 14px; font-weight: 720; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); border-color: var(--green); color: #06100d; }
.button-primary:hover { background: #a8edbb; }
.button-quiet { background: rgba(3,10,10,.35); backdrop-filter: blur(10px); }
.hero-meta { position: absolute; z-index: 2; bottom: 0; left: 50%; width: var(--content); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.hero-meta div { padding: 24px 24px 25px 0; display: grid; gap: 5px; }
.hero-meta div + div { border-left: 1px solid rgba(255,255,255,.2); padding-left: 24px; }
.hero-meta strong { font-size: 14px; }
.hero-meta span { color: #a9b7b3; font-size: 13px; }

.manifesto { width: var(--content); margin: 0 auto; padding: 110px 0 90px; }
.manifesto-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; margin-top: 28px; align-items: start; }
h2 { margin: 0; max-width: 800px; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.03; font-weight: 720; letter-spacing: 0; }
.manifesto-grid p, .architecture-copy p { margin: 5px 0 22px; color: #d6dfdd; font-size: 18px; line-height: 1.7; }
.manifesto-grid .muted { color: var(--muted); }

.capabilities { width: var(--content); margin: 0 auto 120px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability { position: relative; min-height: 330px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.capability.featured { grid-column: span 3; min-height: 290px; display: grid; grid-template-columns: 100px minmax(300px, 620px) 1fr; align-items: center; gap: 24px; background: #0b1715; }
.capability-index { color: var(--green); font-family: ui-monospace, monospace; font-size: 12px; }
.capability h3 { margin: 52px 0 16px; font-size: 25px; font-weight: 680; }
.capability.featured h3 { margin: 0 0 14px; font-size: 34px; }
.capability p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.capability-tag { position: absolute; bottom: 28px; left: 30px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; color: #c0cdca; font: 11px ui-monospace, monospace; text-transform: uppercase; }
.signal-lines { height: 120px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 9px; }
.signal-lines i { width: 11%; max-width: 28px; background: var(--cyan); opacity: .75; }
.signal-lines i:nth-child(1) { height: 35%; background: var(--green); }
.signal-lines i:nth-child(2) { height: 70%; }
.signal-lines i:nth-child(3) { height: 48%; background: var(--amber); }
.signal-lines i:nth-child(4) { height: 94%; }

.architecture { padding: 120px max(24px, calc((100vw - 1180px) / 2)); background: #edf3f0; color: #0a1513; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.architecture .section-kicker { color: #247958; }
.architecture h2 { margin-top: 24px; font-size: clamp(40px, 4.4vw, 66px); }
.architecture-copy p { color: #50615d; margin-top: 28px; }
.architecture-map { position: relative; padding: 22px; border: 1px solid #bdcbc6; background-image: linear-gradient(#dbe5e1 1px, transparent 1px), linear-gradient(90deg, #dbe5e1 1px, transparent 1px); background-size: 30px 30px; }
.map-node { padding: 18px 20px; background: #fff; border: 1px solid #b8c8c2; box-shadow: 4px 4px 0 #ccdad5; display: flex; flex-direction: column; gap: 5px; }
.map-node span { color: #64746f; font: 11px ui-monospace, monospace; text-transform: uppercase; }
.map-node strong { font-size: 20px; }
.map-node small { margin-top: 3px; color: #64746f; }
.map-control { width: 54%; margin: 0 auto; border-color: #56a77d; }
.map-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.map-agent { width: 62%; margin: 0 auto; border-color: #5bb9c4; }
.map-rail { height: 64px; display: flex; justify-content: center; gap: 21%; }
.map-rail i { width: 1px; height: 100%; background: #86a69b; }

.live-status { width: var(--content); margin: 0 auto; padding: 120px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.live-status h2 { margin-top: 22px; font-size: clamp(40px, 4.5vw, 64px); }
.status-panel { border-top: 1px solid var(--line); }
.status-summary { display: flex; gap: 15px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.status-summary div { display: grid; gap: 4px; }
.status-summary span:last-child { color: var(--muted); font-size: 13px; }
.status-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255,189,112,.12); }
.status-dot[data-state="operational"] { background: var(--green); box-shadow: 0 0 0 5px rgba(142,227,168,.12); }
.status-dot[data-state="unavailable"] { background: #ff776f; }
.component-list div { min-height: 54px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #c8d3d0; }
.component-list b { color: var(--green); font-size: 12px; font-weight: 650; }
.component-list b[data-state="unavailable"] { color: #ff8c84; }
.component-list b[data-state="degraded"] { color: var(--amber); }

.closing { min-height: 570px; padding: 120px max(24px, calc((100vw - 1180px) / 2)); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: #111d1b; border-top: 1px solid var(--line); }
.closing h2 { margin: 22px 0 40px; }
footer { width: var(--content); min-height: 130px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
footer > span { justify-self: end; }

@media (max-width: 850px) {
  :root { --content: min(100% - 32px, 680px); }
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: 800px; padding-left: 16px; padding-right: 16px; align-items: flex-start; padding-top: 150px; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,10,10,.93), rgba(3,10,10,.42)), linear-gradient(0deg, rgba(7,16,15,.88), transparent 55%); }
  .hero-content { width: 100%; }
  h1 { font-size: clamp(54px, 16vw, 82px); }
  .hero-lead { font-size: 29px; }
  .hero-copy { font-size: 16px; max-width: 520px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { display: none; }
  .hero-meta div:first-child { display: grid; padding-left: 0; }
  .manifesto { padding: 84px 0 64px; }
  .manifesto-grid, .architecture, .live-status { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-grid { margin-top: 24px; }
  .capabilities { grid-template-columns: 1fr; margin-bottom: 80px; }
  .capability, .capability.featured { grid-column: auto; min-height: 280px; display: block; }
  .capability.featured h3 { margin-top: 50px; }
  .signal-lines { position: absolute; right: 28px; bottom: 28px; width: 150px; height: 70px; opacity: .45; }
  .architecture { padding: 84px 16px; }
  .map-services { grid-template-columns: 1fr; }
  .map-rail { height: 42px; }
  .map-control, .map-agent { width: 82%; }
  .live-status { padding: 84px 0; }
  .closing { min-height: 500px; padding: 84px 16px; }
  footer { grid-template-columns: 1fr; padding: 32px 0; }
  footer > span { justify-self: start; }
}

@media (max-width: 480px) {
  .site-header { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .hero { min-height: 780px; padding-top: 132px; }
  .hero-lead { font-size: 27px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 270px); }
  .button { width: 100%; }
  .hero-meta div:first-child { padding-top: 20px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: reveal .75s ease-out both; }
  .hero-image { animation: settle 1.4s ease-out both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes settle { from { transform: scale(1.035); } to { transform: scale(1); } }
}
