:root{
  --bg:#0d1117;
  --panel:#151b23;
  --panel-2:#1b2430;
  --line:#2d3744;
  --text:#edf2f7;
  --muted:#aeb8c4;
  --accent:#f0a22e;
  --accent-2:#ffd17a;
  --ok:#73d39c;
  --danger:#ff8b8b;
  --shadow:0 18px 55px rgba(0,0,0,.28);
  --radius:14px;
  --max:1920px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(240,162,46,.08), transparent 30%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit}
img{max-width:100%}
.container{width:calc(100% - 32px); max-width:var(--max); margin-inline:auto}
.site-header{
  position:sticky; top:0; z-index:100;
  backdrop-filter:blur(14px);
  background:rgba(13,17,23,.88);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.nav{
  min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{
  text-decoration:none; display:flex; align-items:center; gap:11px; font-weight:800; letter-spacing:.02em;
}
.brand-mark{
  width:34px; height:34px; border:2px solid var(--accent); border-radius:9px;
  display:grid; place-items:center; font-size:14px; color:var(--accent-2);
  box-shadow:inset 0 0 16px rgba(240,162,46,.08);
}
.nav-links{display:flex; gap:20px; align-items:center}
.nav-links a{color:var(--muted); text-decoration:none; font-size:.94rem}
.nav-links a:hover,.nav-links a:focus{color:var(--text)}
.hero{padding:84px 0 54px}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--accent-2); font-size:.8rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase;
}
.hero h1{
  font-size:clamp(2.6rem, 7vw, 5.6rem);
  line-height:.98; letter-spacing:-.055em; margin:18px 0 20px; max-width:920px;
}
.hero p{font-size:1.16rem; color:var(--muted); max-width:760px; margin:0 0 28px}
.actions{display:flex; gap:12px; flex-wrap:wrap}
.hero-layout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);
  gap:34px;
  align-items:center;
}
.hero-copy{min-width:0}
.hero-copy .hero-metrics{max-width:980px}
.hero-visual{min-width:0}
.hero-spotlight{
  position:relative;
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  background:
    radial-gradient(circle at top right, rgba(240,162,46,.12), transparent 34%),
    linear-gradient(180deg, rgba(18,28,38,.96), rgba(14,22,30,.98));
  box-shadow:0 18px 50px rgba(0,0,0,.24);
  overflow:hidden;
}
.hero-spotlight::before{
  content:"";
  position:absolute;
  inset:auto -80px -80px auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle, rgba(240,162,46,.18), rgba(240,162,46,0));
  pointer-events:none;
}
.hero-spotlight-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:18px;
}
.hero-category-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.hero-category-card{
  display:block;
  text-decoration:none;
  color:var(--text);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:16px 16px 14px;
  background:rgba(255,255,255,.02);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.hero-category-card:hover{
  transform:translateY(-2px);
  border-color:rgba(240,162,46,.45);
  background:rgba(255,255,255,.04);
}
.hero-category-kicker{
  display:inline-block;
  color:var(--accent-2);
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.hero-category-card strong{
  display:block;
  font-size:1.24rem;
  margin-bottom:6px;
}
.hero-category-card p{
  margin:0;
  max-width:none;
  font-size:.98rem;
  line-height:1.5;
}
.hero-pill-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.hero-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:#d5dee7;
  font-size:.88rem;
  font-weight:650;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px;
  border:1px solid var(--line); border-radius:10px; text-decoration:none; font-weight:750;
  background:var(--panel); color:var(--text); cursor:pointer;
}
.btn.primary{
  background:var(--accent); border-color:var(--accent); color:#16100a;
}
.btn:hover{transform:translateY(-1px)}
.section{padding:28px 0 62px}
.section-title{display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:20px}
.section-title h2{font-size:clamp(1.7rem, 3vw, 2.4rem); margin:0; letter-spacing:-.03em}
.section-title p{margin:0; color:var(--muted); max-width:620px}
.grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)), var(--panel);
  border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow);
}
.card h3{margin:7px 0 8px; font-size:1.18rem}
.card p{margin:0; color:var(--muted)}
.kicker{font-size:.75rem; text-transform:uppercase; letter-spacing:.12em; color:var(--accent-2); font-weight:800}
.card-link{text-decoration:none; display:block}
.card-link:hover{border-color:#4a596a}
.status{
  display:inline-flex; margin-top:16px; padding:4px 9px; border-radius:999px; font-size:.76rem; font-weight:800;
  border:1px solid var(--line); color:var(--muted);
}
.status.live{color:#baf2cf; border-color:rgba(115,211,156,.35); background:rgba(115,211,156,.08)}
.ad-placeholder{
  border:1px dashed #46515f; color:#788493; background:rgba(255,255,255,.015);
  min-height:100px; display:grid; place-items:center; text-align:center; padding:20px; border-radius:12px;
  font-size:.8rem; letter-spacing:.08em; text-transform:uppercase;
}
.tool-shell{padding:46px 0 66px}
.breadcrumbs{font-size:.88rem; color:var(--muted); margin-bottom:18px}
.breadcrumbs a{color:var(--muted)}
.tool-heading h1{font-size:clamp(2.2rem,5vw,4rem); line-height:1; letter-spacing:-.045em; margin:0 0 14px}
.tool-heading p{color:var(--muted); max-width:760px; margin:0}
.calculator-wrap{
  display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:22px; margin-top:30px;
}
.calculator-panel,.result-panel{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow);
}
.mode-switch{
  display:grid; grid-template-columns:1fr 1fr; gap:8px; background:#0f141b; border:1px solid var(--line);
  padding:6px; border-radius:11px; margin-bottom:22px;
}
.mode-switch button{
  border:0; border-radius:8px; padding:11px 12px; color:var(--muted); background:transparent;
  font:inherit; font-weight:750; cursor:pointer;
}
.mode-switch button.active{background:var(--panel-2); color:var(--text); box-shadow:0 3px 12px rgba(0,0,0,.2)}
.field-group{margin-bottom:18px}
.field-group label{display:block; font-weight:750; margin-bottom:7px}
.field-row{display:grid; grid-template-columns:minmax(0,1fr) 140px; gap:10px}
input,select{
  width:100%; min-height:50px; border:1px solid #3b4755; border-radius:9px; padding:0 13px;
  background:#0e141b; color:var(--text); font:inherit; font-size:1rem;
}
input:focus,select:focus{outline:2px solid rgba(240,162,46,.34); border-color:var(--accent)}
.helper{font-size:.84rem; color:var(--muted); margin-top:7px}
.error{color:var(--danger); min-height:24px; font-size:.88rem; margin-top:8px}
.result-label{font-size:.78rem; color:var(--accent-2); font-weight:850; letter-spacing:.12em; text-transform:uppercase}
.big-result{
  margin:9px 0 16px; padding:18px; border:1px solid rgba(240,162,46,.35); border-radius:10px;
  background:#0f141a; font-variant-numeric:tabular-nums;
}
.big-result strong{display:block; font-size:clamp(2rem,5vw,3.4rem); letter-spacing:-.05em; line-height:1}
.big-result span{display:block; color:var(--muted); margin-top:5px}
.result-table{width:100%; border-collapse:collapse; margin-top:10px}
.result-table td{padding:10px 0; border-bottom:1px solid rgba(255,255,255,.075)}
.result-table td:last-child{text-align:right; font-variant-numeric:tabular-nums; font-weight:700}
.note{color:var(--muted); font-size:.87rem; margin-top:16px}
.content-layout{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; margin-top:28px}
.prose{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:28px;
}
.prose h2{margin-top:0; letter-spacing:-.025em}
.prose h3{margin-top:28px}
.prose p,.prose li{color:#c7d0da; max-width:90ch}
.formula{
  padding:16px 18px; border-left:3px solid var(--accent); background:#0f141b; margin:18px 0;
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; overflow:auto; max-width:1100px;
}
.example{
  border:1px solid var(--line); border-radius:10px; background:#10161d; padding:16px 18px; margin:16px 0; max-width:1100px;
}


.methodology-intro{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.5fr);
  gap:22px;
  align-items:stretch;
  margin-bottom:20px;
}
.methodology-intro-copy,
.methodology-principle{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  padding:26px 28px;
}
.methodology-intro-copy h1{
  margin-top:0;
}
.methodology-intro-copy p{
  max-width:110ch;
}
.methodology-principle{
  background:
    radial-gradient(circle at top right, rgba(240,162,46,.10), transparent 40%),
    linear-gradient(180deg,#121b24,#0f161e);
  border-left:3px solid var(--accent);
}
.methodology-principle p{
  color:var(--muted);
  line-height:1.65;
  margin-bottom:0;
  max-width:none;
}

.methodology-chip-nav{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:0 0 22px;
}
.methodology-chip-nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  text-decoration:none;
  color:#d8e0e8;
  background:#111922;
  font-size:.9rem;
  font-weight:650;
}
.methodology-chip-nav a:hover{
  border-color:rgba(240,162,46,.55);
  background:#151f29;
}

.methodology-card-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.methodology-card{
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
  padding:22px 24px;
  min-width:0;
}
.methodology-card h3{
  margin:0 0 13px;
  scroll-margin-top:90px;
  font-size:1.12rem;
}
.methodology-card p{
  margin:0;
  max-width:none;
  color:#c7d0da;
  line-height:1.65;
}

@media (min-width:1800px){
  .methodology-card-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:1100px){
  .methodology-intro{grid-template-columns:1fr}
  .methodology-card-grid{grid-template-columns:1fr}
}

.footer{
  border-top:1px solid rgba(255,255,255,.08); padding:34px 0 42px; color:var(--muted); font-size:.88rem;
}
.footer-row{display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap}
.footer-links{display:flex; gap:16px; flex-wrap:wrap}
.footer a{color:var(--muted)}
.simple-page{padding:58px 0 76px}
.simple-page .prose{max-width:860px}
.muted{color:var(--muted)}

@media (min-width:1450px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}


@media (max-width:1100px){
  .hero-layout{grid-template-columns:1fr}
  .hero-visual{max-width:980px}
}

@media (max-width:900px){
  .grid{grid-template-columns:1fr 1fr}
  .calculator-wrap,.content-layout{grid-template-columns:1fr}
  .sidebar-ad{display:none}
}
@media (max-width:680px){
  .nav{min-height:62px}
  .nav-links a:not(:last-child){display:none}
  .hero{padding-top:58px}
  .grid{grid-template-columns:1fr}
  .field-row{grid-template-columns:minmax(0,1fr) 115px}
  .section-title{align-items:start; flex-direction:column}
  .calculator-panel,.result-panel,.prose{padding:20px}
}

.hidden{display:none !important}
.viz-panel{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f141b;
  padding:14px;
}
.viz-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.viz-head strong{font-size:.96rem}
.viz-badge{
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 9px;
}
.viz-svg{
  width:100%;
  height:255px;
  display:block;
  border:1px solid rgba(255,255,255,.05);
  border-radius:10px;
  background:linear-gradient(180deg,#0c131b,#101822);
}
.viz-meta{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  font-size:.9rem;
  color:#d3dbe3;
}
.viz-meta div{
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:8px;
}
.result-subsection{margin-top:18px}
.result-subsection .result-label{display:block;margin-bottom:8px}
.match-note{color:var(--muted);font-size:.84rem;margin-top:10px}
@media (max-width:680px){
  .viz-svg{height:220px}
  .viz-meta{grid-template-columns:1fr}
}

.match-diagram-panel{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f141b;
  padding:12px;
}
.match-diagram-svg{
  width:100%;
  height:220px;
  display:block;
  border:1px solid rgba(255,255,255,.05);
  border-radius:10px;
  background:linear-gradient(180deg,#0c131b,#101822);
}
.match-diagram-note{
  margin-top:8px;
  color:var(--muted);
  font-size:.83rem;
}
@media (max-width:680px){
  .match-diagram-svg{height:210px}
}

.match-builder-panel{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f141b;
  padding:14px;
}
.match-builder-svg{
  width:100%;
  height:330px;
  display:block;
  border:1px solid rgba(255,255,255,.05);
  border-radius:10px;
  background:linear-gradient(180deg,#0c131b,#101822);
}
.match-builder-note{
  margin-top:10px;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.5;
}
@media (max-width:680px){
  .match-builder-svg{height:300px}
}


.match-builder-section{
  margin-top:24px;
}
.match-builder-panel{
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f141b;
  padding:14px;
}
.match-builder-svg{
  width:100%;
  height:380px;
  display:block;
  border:1px solid rgba(255,255,255,.05);
  border-radius:10px;
  background:linear-gradient(180deg,#0c131b,#101822);
}
.match-builder-note{
  margin-top:10px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.55;
}
@media (max-width:980px){
  .match-builder-svg{height:340px}
}
@media (max-width:680px){
  .match-builder-svg{height:310px}
}


.system-flow-section{
  margin-top:24px;
}
.system-flow-panel{
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f141b;
  padding:14px;
}
.system-flow-svg{
  width:100%;
  height:330px;
  display:block;
  border:1px solid rgba(255,255,255,.05);
  border-radius:10px;
  background:linear-gradient(180deg,#0c131b,#101822);
}
.system-flow-note{
  margin-top:10px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.55;
}
@media (max-width:980px){
  .system-flow-svg{height:310px}
}
@media (max-width:680px){
  .system-flow-svg{height:290px}
}

.swr-flow-section{
  margin-top:24px;
}
.swr-flow-panel{
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f141b;
  padding:14px;
}
.swr-flow-svg{
  width:100%;
  height:330px;
  display:block;
  border:1px solid rgba(255,255,255,.05);
  border-radius:10px;
  background:linear-gradient(180deg,#0c131b,#101822);
}
.swr-flow-note{
  margin-top:10px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.55;
}
@media (max-width:980px){
  .swr-flow-svg{height:310px}
}
@media (max-width:680px){
  .swr-flow-svg{height:290px}
}

.fspl-flow-section{margin-top:24px}
.fspl-flow-panel{border:1px solid var(--line);border-radius:12px;background:#0f141b;padding:14px}
.fspl-flow-svg{width:100%;height:330px;display:block;border:1px solid rgba(255,255,255,.05);border-radius:10px;background:linear-gradient(180deg,#0c131b,#101822)}
.fspl-flow-note{margin-top:10px;color:var(--muted);font-size:.9rem;line-height:1.55}
@media (max-width:980px){.fspl-flow-svg{height:310px}}
@media (max-width:680px){.fspl-flow-svg{height:290px}}

.link-budget-flow-section{margin-top:24px}
.link-budget-flow-panel{border:1px solid var(--line);border-radius:12px;background:#0f141b;padding:14px}
.link-budget-flow-svg{width:100%;height:360px;display:block;border:1px solid rgba(255,255,255,.05);border-radius:10px;background:linear-gradient(180deg,#0c131b,#101822)}
.link-budget-flow-note{margin-top:10px;color:var(--muted);font-size:.9rem;line-height:1.55}
@media (max-width:980px){.link-budget-flow-svg{height:335px}}
@media (max-width:680px){.link-budget-flow-svg{height:310px}}


.signal-flow-section{margin-top:24px}
.signal-flow-panel{border:1px solid var(--line);border-radius:12px;background:#0f141b;padding:14px}
.signal-flow-svg{width:100%;height:320px;display:block;border:1px solid rgba(255,255,255,.05);border-radius:10px;background:linear-gradient(180deg,#0c131b,#101822)}
.signal-flow-note{margin-top:10px;color:var(--muted);font-size:.9rem;line-height:1.55}
.metric-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.metric-box{border:1px solid var(--line);border-radius:10px;padding:12px;background:#101922}
.metric-box strong{display:block;font-size:1.25rem;margin-top:3px}
.metric-box span{color:var(--muted);font-size:.82rem}
@media (max-width:760px){.metric-strip{grid-template-columns:1fr}.signal-flow-svg{height:290px}}
