:root {
  --ink: #f4f7fb;
  --muted: #a3adbb;
  --muted-strong: #c8d0db;
  --bg: #090b0e;
  --panel: #121720;
  --panel-deep: #0d1219;
  --panel-soft: #171d27;
  --line: #293545;
  --line-bright: #3a4a5f;
  --orange: #ff7a1a;
  --orange-soft: rgba(255, 122, 26, 0.13);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --green: #45d483;
  --yellow: #f6c453;
  --red: #ff6574;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --display: "Oxanium", "Bahnschrift", sans-serif;
  --body: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  --mono: "Share Tech Mono", "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 12% 4%, rgba(45, 212, 191, 0.13), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 122, 26, 0.14), transparent 31%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: var(--body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #84f4e5; }
img, svg { max-width: 100%; }
button, select { font: inherit; }
.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.reading-wrap { width: min(900px, 100%); }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #101216;
  background: var(--teal);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(58, 74, 95, 0.72);
  background: rgba(9, 11, 14, 0.86);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
}
.brand a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 122, 26, 0.65);
  border-radius: 9px;
  color: var(--orange);
  background: var(--orange-soft);
  font-family: var(--mono);
  font-size: 13px;
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--ink); }
.btn.primary { border-color: var(--orange); color: #1b0e04; background: linear-gradient(135deg, var(--orange), #ffad62); }
.btn.primary:hover { color: #1b0e04; box-shadow: 0 10px 28px rgba(255, 122, 26, 0.2); }

.breadcrumb { padding-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 9px; color: #5f6b7b; }
.breadcrumb a { color: var(--muted); text-decoration: none; }

main { padding: 24px 0 86px; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, 0.86fr);
  gap: 36px;
  align-items: stretch;
  padding: 42px 0 38px;
}
.hero::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 58px;
  width: 2px;
  height: 180px;
  background: linear-gradient(var(--teal), var(--orange), transparent);
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.14; }
h1 { max-width: 780px; margin: 0 0 18px; font-size: clamp(2.45rem, 5.6vw, 5rem); letter-spacing: -0.035em; }
h2 { margin: 0 0 16px; font-size: clamp(1.65rem, 3vw, 2.55rem); letter-spacing: -0.025em; }
h3 { margin: 0 0 10px; font-size: 1.09rem; }
p { margin: 0 0 17px; }
.hero-copy { max-width: 780px; color: var(--muted-strong); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 11px;
}

.hero-console, .panel, .section-card, .source-box, .advisor, .cta-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.97), rgba(12, 17, 24, 0.97));
  box-shadow: var(--shadow);
}
.hero-console { position: relative; overflow: hidden; padding: 23px; }
.hero-console::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 22px solid rgba(45, 212, 191, 0.055);
  border-radius: 50%;
}
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.console-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-family: var(--mono); font-size: 11px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; }
.console-answer { position: relative; z-index: 1; padding: 22px 0 17px; color: var(--muted-strong); }
.console-answer strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--display); font-size: 1.45rem; line-height: 1.25; }
.console-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.console-grid div { padding: 12px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); }
.console-grid span { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.console-grid b { display: block; margin-top: 4px; font-family: var(--display); font-size: 1rem; }

.jump-rail {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: rgba(13, 18, 25, 0.82);
}
.jump-rail strong { margin-right: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.jump-rail a { padding: 3px 9px; border-radius: 999px; color: var(--muted-strong); background: rgba(255,255,255,.035); font-size: 12px; text-decoration: none; }
.jump-rail a:hover { color: var(--ink); background: var(--teal-soft); }

.quick-answer {
  margin-bottom: 28px;
  padding: 24px 26px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, var(--teal-soft), rgba(18, 23, 32, 0.94) 45%);
  font-size: 1.02rem;
}
.quick-answer strong { color: #dffffa; }

.content-section { margin-top: 28px; padding: 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 17, 24, 0.86); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-no { color: var(--orange); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.lede { max-width: 760px; color: var(--muted-strong); }
.note { color: var(--muted); font-size: 0.9rem; }

.data-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); background: var(--panel-deep); }
.data-table th, .data-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); background: #151b25; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table strong { color: var(--ink); }
.tag { display: inline-flex; padding: 3px 8px; border: 1px solid rgba(45,212,191,.32); border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.tag.orange { border-color: rgba(255,122,26,.38); color: #ffb37e; background: var(--orange-soft); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-card { padding: 22px; box-shadow: none; }
.section-card .card-kicker { margin-bottom: 9px; color: var(--orange); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.section-card p { color: var(--muted); font-size: .92rem; }
.section-card p:last-child { margin-bottom: 0; }
.section-card ul { margin: 12px 0 0; padding-left: 19px; color: var(--muted-strong); }
.section-card li + li { margin-top: 7px; }

.steps { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  min-height: 62px;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-deep);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 17px;
  top: 16px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 13px;
}
.steps strong { color: var(--ink); }
.steps span { color: var(--muted-strong); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; }
.callout {
  padding: 21px;
  border: 1px solid rgba(246, 196, 83, 0.36);
  border-radius: 8px;
  background: rgba(246, 196, 83, 0.07);
  color: #e9dfc4;
}
.callout strong { display: block; margin-bottom: 7px; color: var(--yellow); font-family: var(--display); }
.callout.danger { border-color: rgba(255, 101, 116, .34); background: rgba(255, 101, 116, .07); }
.callout.danger strong { color: #ff9aa4; }
.callout.good { border-color: rgba(69, 212, 131, .34); background: rgba(69, 212, 131, .07); }
.callout.good strong { color: var(--green); }

.decision-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.decision-flow div { position: relative; padding: 18px 15px; border: 1px solid var(--line); border-top: 3px solid var(--teal); background: var(--panel-deep); }
.decision-flow div:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -18px; z-index: 2; color: var(--orange); font-family: var(--mono); }
.decision-flow span { display: block; margin-bottom: 7px; color: var(--teal); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.decision-flow strong { font-family: var(--display); font-size: .94rem; }

.interval-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.interval-strip div { position: relative; overflow: hidden; padding: 17px 11px; border: 1px solid var(--line); background: var(--panel-deep); }
.interval-strip div::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--fill, 50%); height: 3px; background: linear-gradient(90deg, var(--orange), var(--teal)); }
.interval-strip b { display: block; font-family: var(--display); font-size: 1.1rem; }
.interval-strip span { color: var(--muted); font-family: var(--mono); font-size: 10px; }

.advisor { padding: 26px; box-shadow: none; }
.advisor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  color: var(--ink);
  background: #0b1017;
}
.advisor-result { margin-top: 16px; padding: 18px; border: 1px solid rgba(45,212,191,.34); border-radius: 8px; background: var(--teal-soft); }
.advisor-result span { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.advisor-result strong { display: block; margin: 5px 0; color: #dffffa; font-family: var(--display); font-size: 1.35rem; }
.advisor-result p { margin: 0; color: var(--muted-strong); }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-deep); }
.faq summary { padding: 17px 19px; color: var(--ink); font-family: var(--display); font-weight: 700; cursor: pointer; }
.faq details p { padding: 0 19px 18px; margin: 0; color: var(--muted-strong); }

.source-box { margin-top: 28px; padding: 24px; box-shadow: none; }
.source-box h2 { font-size: 1.25rem; }
.source-list { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.source-list a { display: inline-flex; align-items: baseline; gap: 8px; }
.source-list a::before { content: "↗"; color: var(--orange); font-family: var(--mono); }
.method-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.cta-panel { margin-top: 30px; padding: 34px; background: linear-gradient(135deg, rgba(255,122,26,.14), rgba(45,212,191,.1), rgba(12,17,24,.98)); }
.cta-panel p { max-width: 760px; color: var(--muted-strong); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.related-link { padding: 17px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.025); text-decoration: none; }
.related-link span { display: block; margin-bottom: 5px; color: var(--teal); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.related-link:hover { border-color: var(--teal); color: var(--ink); }

footer { border-top: 1px solid var(--line); background: #07090c; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 28px; padding: 42px 0 52px; }
.footer-brand { color: var(--muted); font-size: 13px; }
.footer-brand strong { display: block; margin-bottom: 10px; color: var(--ink); font-family: var(--display); }
.footer-col-title { display: block; margin-bottom: 10px; color: var(--ink); font-family: var(--display); font-size: 13px; }
.footer-links { display: grid; gap: 7px; font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }

@media (max-width: 920px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .card-grid.three { grid-template-columns: 1fr 1fr; }
  .decision-flow { grid-template-columns: 1fr 1fr; }
  .decision-flow div::after { display: none; }
  .advisor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .wrap { width: min(1160px, calc(100% - 24px)); }
  main { padding-bottom: 58px; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .content-section { padding: 24px 18px; }
  .section-head { display: block; }
  .section-no { display: block; margin-bottom: 10px; }
  .card-grid, .card-grid.three, .related-grid { grid-template-columns: 1fr; }
  .console-grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
  .interval-strip { grid-template-columns: 1fr 1fr; }
  .decision-flow { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { padding-bottom: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
