:root {
  --bg: #07111f;
  --panel: rgba(13, 28, 48, 0.86);
  --panel-strong: #11243c;
  --line: rgba(166, 200, 230, 0.16);
  --text: #ecf6ff;
  --muted: #9db0c4;
  --cyan: #4ed8da;
  --blue: #7aa8ff;
  --green: #76e0a6;
  --yellow: #f6ca6a;
  --red: #ff7d91;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(78, 216, 218, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(122, 168, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #091726 52%, #07111f 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: "SFMono-Regular", Consolas, monospace; }

.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(5, 14, 26, 0.82);
  backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #06111c; font-weight: 900;
  box-shadow: 0 12px 34px rgba(78, 216, 218, 0.22);
}
.brand strong { display: block; font-size: 14px; letter-spacing: .04em; }
.brand span { color: var(--muted); font-size: 12px; }
.nav a {
  display: block; padding: 9px 12px; margin: 3px 0; border-radius: 10px;
  color: var(--muted); font-size: 13px;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(122,168,255,.1); text-decoration: none; }
.sidebar-note { position: absolute; bottom: 24px; left: 22px; right: 22px; color: #71869a; font-size: 11px; }

.content { min-width: 0; }
.hero { padding: 78px 6vw 58px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--cyan); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
h1 { margin: 12px 0 18px; max-width: 980px; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -.045em; }
.lead { max-width: 900px; color: #b8cadb; font-size: clamp(16px, 1.7vw, 21px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); font-weight: 700; font-size: 13px;
}
.button.primary { color: #06111c; background: linear-gradient(135deg, var(--cyan), #8ef0d4); border: none; }
.button:hover { transform: translateY(-1px); text-decoration: none; }

.section { padding: 68px 6vw; border-bottom: 1px solid var(--line); }
.section-head { max-width: 880px; margin-bottom: 30px; }
.section h2 { margin: 0 0 10px; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.03em; }
.section h3 { margin: 0 0 10px; font-size: 19px; }
.section p { color: #b6c7d7; }
.caption { color: var(--muted); font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric, .card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow);
}
.metric { padding: 22px; min-height: 155px; }
.metric .value { font-size: clamp(34px, 4vw, 54px); line-height: 1; font-weight: 850; letter-spacing: -.05em; }
.metric .label { margin-top: 10px; color: var(--muted); font-size: 13px; }
.metric .delta { margin-top: 14px; color: var(--green); font-size: 12px; }

.callout { margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--cyan); border-radius: 0 14px 14px 0; background: rgba(78,216,218,.07); }
.callout.warn { border-color: var(--yellow); background: rgba(246,202,106,.07); }
.callout.danger { border-color: var(--red); background: rgba(255,125,145,.07); }

.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: stretch; }
.step { position: relative; padding: 18px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14,31,52,.82); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 43%; z-index: 2; color: var(--cyan); font-weight: 900; }
.step .num { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.step strong { display: block; margin: 6px 0; font-size: 14px; }
.step p { margin: 0; font-size: 12px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.card { padding: 24px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; margin: 13px 0; font-size: 12px; }
.bar-track { height: 12px; background: rgba(255,255,255,.055); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.bar-fill.green { background: linear-gradient(90deg, #42ba80, var(--green)); }
.bar-fill.yellow { background: linear-gradient(90deg, #c89232, var(--yellow)); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(8,21,36,.58); }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
th { color: #d8e9f6; background: rgba(255,255,255,.035); }
td { color: #afc1d1; }
tr:last-child td { border-bottom: 0; }

.status { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.good { color: var(--green); background: rgba(118,224,166,.1); }
.status.mid { color: var(--yellow); background: rgba(246,202,106,.1); }
.status.gap { color: var(--red); background: rgba(255,125,145,.1); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter {
  cursor: pointer; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: rgba(255,255,255,.025); font: inherit; font-size: 12px;
}
.filter.active { color: #06111c; border-color: transparent; background: var(--cyan); font-weight: 800; }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.example { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,28,48,.9); box-shadow: var(--shadow); }
.example-head { padding: 18px 20px 14px; }
.example-title { display: flex; justify-content: space-between; gap: 14px; }
.example h3 { margin: 3px 0; font-size: 17px; }
.tag { color: var(--cyan); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.risk { white-space: nowrap; color: var(--yellow); font: 12px "SFMono-Regular", monospace; }
.quote { margin: 10px 0 0; color: #d5e2ed; font-size: 13px; }
.media-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; background: var(--line); }
.media-cell { min-height: 210px; background: #030914; }
.media-cell label { display: block; padding: 7px 10px; color: #8ea4b8; background: #091421; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.media-cell img, .media-cell video { display: block; width: 100%; height: 240px; object-fit: contain; background: #030914; }
.example-body { padding: 16px 20px 20px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; font-size: 12px; }
.fact span { color: #7890a5; display: block; }
.fact strong { color: #cdddea; font-weight: 650; }
.decision { margin-top: 14px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); color: #aebfd0; font-size: 12px; }

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.source-link { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.source-link strong { display: block; color: var(--text); font-size: 13px; }
.source-link span { color: var(--muted); font-size: 11px; }

.footer { padding: 36px 6vw 54px; color: #71869a; font-size: 12px; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; flex-wrap: wrap; }
  .sidebar-note { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
}

@media (max-width: 760px) {
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .metric-grid, .two-col, .examples, .source-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .media-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 105px 1fr 55px; }
}

@media print {
  body { background: white; color: #17212b; }
  .shell { display: block; }
  .sidebar, .hero-actions, .filters, video { display: none !important; }
  .section, .hero { padding: 28px 0; border-color: #ddd; }
  .metric, .card, .example { box-shadow: none; background: white; border-color: #ddd; break-inside: avoid; }
  p, td, .caption, .metric .label { color: #45515c !important; }
}
