:root {
  --bg: #07080d;
  --surface: #101117;
  --surface-2: #151720;
  --text: #f4f2ed;
  --muted: #9b9da5;
  --gold: #f0a928;
  --blue: #415dff;
  --line: rgba(255, 255, 255, 0.13);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header {
  width: min(calc(100% - 48px), var(--max));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--gold); color: #0a0a0d; font-weight: 800; }
.back-link { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.back-link:hover { color: var(--gold); }

.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: min(760px, calc(100vh - 84px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding: 72px 0 80px;
}
.eyebrow, .section-index { margin: 0 0 22px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 20px var(--blue); }
h1 { margin: 0; font-size: clamp(76px, 10vw, 150px); line-height: .86; letter-spacing: -.065em; font-weight: 800; }
.lede { max-width: 580px; margin: 34px 0 0; color: #c8c8cc; font-size: clamp(18px, 2vw, 23px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; color: #0a0a0d; background: var(--gold); font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.primary-action:hover { transform: translateY(-2px); background: #ffc14d; }
.text-action { padding: 10px 0; color: var(--text); background: none; border: 0; cursor: pointer; font-size: 14px; }
.text-action span { margin-left: 8px; color: var(--blue); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 64px 0 0; border-top: 1px solid var(--line); }
.signal-grid div { padding: 17px 12px 0 0; }
.signal-grid dt { color: var(--muted); font-size: 12px; }
.signal-grid dd { margin: 3px 0 0; font-size: 15px; font-weight: 700; }
.hero-visual { position: relative; margin: 0; min-height: 470px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.hero-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(7, 8, 13, .4); pointer-events: none; }
.hero-visual img { display: block; width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.hero-visual figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 17px 20px; border-top: 1px solid var(--line); background: rgba(7, 8, 13, .76); backdrop-filter: blur(12px); color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.hero-visual figcaption span { color: var(--gold); }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0c12; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 24px; padding: 13px 0; animation: ticker 28s linear infinite; color: #787a82; font-size: 11px; letter-spacing: .12em; }
.marquee-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: .55fr 1.2fr .9fr; gap: 38px; align-items: start; }
.section-heading h2, .reliability-copy h2, .closing h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p:last-child, .reliability-copy > p { margin: 7px 0 0; color: var(--muted); }
.mode-switch { display: inline-flex; margin-top: 70px; padding: 4px; border: 1px solid var(--line); background: var(--surface); }
.mode-button { min-width: 132px; padding: 11px 18px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.mode-button.is-active { background: var(--blue); color: #fff; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pipeline-step { min-height: 230px; padding: 28px 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.035), transparent 55%); }
.pipeline-step span { color: var(--gold); font-size: 11px; }
.pipeline-step strong { display: block; margin-top: 68px; font-size: 19px; }
.pipeline-step p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.system { border-top: 1px solid var(--line); }
.operations { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.operation-group { position: relative; min-height: 290px; padding: 35px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.operation-group.featured { background: var(--text); color: #090a0f; }
.group-no { color: var(--gold); font-size: 12px; font-weight: 800; }
.operation-group h3 { margin: 58px 0 12px; font-size: 28px; }
.operation-group p { max-width: 480px; margin: 0; color: var(--muted); }
.operation-group.featured p { color: #505159; }
.meter { position: absolute; left: 35px; right: 35px; bottom: 30px; height: 2px; background: rgba(127,127,127,.28); }
.meter b { display: block; width: var(--level); height: 100%; background: var(--blue); transform-origin: left; animation: meter-in 1.4s ease both; }
@keyframes meter-in { from { transform: scaleX(0); } }

.reliability { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 140px); align-items: center; border-top: 1px solid var(--line); }
.reliability-visual { position: relative; aspect-ratio: 1; max-width: 540px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { inset: 12%; animation: orbit 22s linear infinite; }
.orbit-two { inset: 27%; border-color: rgba(65,93,255,.5); animation: orbit 14s linear infinite reverse; }
.orbit::before { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(240,169,40,.7); }
@keyframes orbit { to { transform: rotate(360deg); } }
.core { width: 132px; height: 132px; display: grid; place-content: center; text-align: center; border: 1px solid var(--gold); background: #0c0d13; box-shadow: 0 0 50px rgba(240,169,40,.08); }
.core span { color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.core strong { margin-top: 4px; font-size: 18px; letter-spacing: .04em; }
.node { position: absolute; padding: 5px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.node-a { top: 18%; left: 13%; }.node-b { right: 7%; top: 43%; }.node-c { left: 25%; bottom: 7%; }
.reliability-copy > p { margin-top: 28px; font-size: 17px; }
.check-list { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.check-list span { color: var(--gold); font-size: 11px; }
.closing { display: flex; align-items: end; justify-content: space-between; gap: 40px; border-top: 1px solid var(--line); }
.closing h2 { max-width: 780px; }
footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 28px 0 36px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #666872; font-size: 11px; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 62px; }
  .hero-visual { min-height: 390px; }
  .hero-visual img { min-height: 390px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .reliability { grid-template-columns: 1fr; }
  .reliability-visual { width: min(100%, 520px); margin: 0 auto; }
}

@media (max-width: 600px) {
  .site-header, .hero, .section-shell, footer { width: min(calc(100% - 30px), var(--max)); }
  .site-header { height: 70px; }
  .brand span:last-child { display: none; }
  .hero { padding: 54px 0 62px; gap: 42px; }
  h1 { font-size: clamp(70px, 25vw, 100px); }
  .lede { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .signal-grid { margin-top: 42px; }
  .signal-grid dd { font-size: 13px; }
  .hero-visual, .hero-visual img { min-height: 320px; }
  .section-shell { padding: 88px 0; }
  .mode-switch { width: 100%; margin-top: 42px; }
  .mode-button { flex: 1; min-width: 0; }
  .pipeline, .operations { grid-template-columns: 1fr; }
  .pipeline-step { min-height: 190px; }
  .pipeline-step strong { margin-top: 42px; }
  .operation-group { min-height: 265px; padding: 28px; }
  .meter { left: 28px; right: 28px; }
  .closing { align-items: stretch; flex-direction: column; }
  footer { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .orbit, .meter b { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
