:root {
  --ink: #06142d;
  --muted: #5f6f86;
  --line: #dce7f5;
  --soft: #f5f8fd;
  --panel: #ffffff;
  --navy: #071226;
  --blue: #145dff;
  --blue2: #0b3b91;
  --green: #0aa66a;
  --amber: #f59e0b;
  --red: #e23d4f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7faff;
  overflow-x: hidden;
}
a { color: #075fd7; font-weight: 850; }
.sao-fr-shell { max-width: 1230px; margin: 0 auto; padding: 22px; }
.sao-fr-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 66px; padding: 0 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 34px rgba(16,32,64,.07);
}
.sao-fr-brand { display: flex; align-items: center; gap: 10px; font-weight: 950; font-size: 18px; text-decoration: none; color: var(--ink); }
.sao-fr-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 950; }
.sao-fr-lab { display: inline-flex; margin-left: 5px; padding: 3px 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.sao-fr-nav { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 850; }
.sao-fr-nav a { text-decoration: none; color: #203654; }
.sao-fr-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c9d6ea; border-radius: 999px; padding: 10px 14px; background: #fff; color: #203654; font-weight: 900; text-decoration: none; }
.hero {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: 22px;
  align-items: stretch; margin-top: 22px;
}
.hero-copy {
  min-height: 520px; padding: 38px 30px; border-radius: 22px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 16px 42px rgba(16,32,64,.08);
}
.eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #e9f2ff; color: #0b4ab8; font-weight: 950; font-size: 13px; }
h1 { margin: 18px 0 16px; font-size: clamp(42px, 6vw, 72px); line-height: .95; letter-spacing: 0; }
.lead { font-size: 20px; line-height: 1.55; color: #31425d; max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); font-weight: 950; text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.secondary { background: #fff; color: var(--ink); }
.pulse {
  border-radius: 22px; overflow: hidden; border: 1px solid #214a8d; min-height: 520px;
  background:
    linear-gradient(135deg,#0c2a64,#0b7b78);
  color: #fff; padding: 24px; display: grid; align-content: space-between;
}
.pulse-visual { margin: 14px 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background:#071226; box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.pulse-visual img { display:block; width:100%; height:auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pulse-card { max-width: 360px; padding: 18px; border-radius: 16px; background: rgba(7,18,38,.78); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.pulse-card h2 { margin: 0 0 8px; font-size: 22px; }
.pulse-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.pulse-mini { padding: 12px; border-radius: 14px; background: rgba(7,18,38,.78); border: 1px solid rgba(255,255,255,.14); }
.pulse-mini b { display:block; font-size: 18px; color:#fff; }
.section { margin-top: 22px; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(16,32,64,.05); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { color: #3f5068; line-height: 1.55; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 22px; }
.article-layout > *, .hero > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.article { min-width: 0; background:#fff; border:1px solid var(--line); border-radius:18px; padding: 30px; box-shadow: 0 12px 32px rgba(16,32,64,.05); }
.article-hero { width:100%; margin: 18px 0 24px; border-radius: 18px; overflow:hidden; border:1px solid var(--line); background:#071226; }
.article-hero img { display:block; width:100%; height:auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article h1 { font-size: clamp(38px,5vw,62px); line-height: 1; }
.article h2 { margin-top: 40px; font-size: 32px; line-height: 1.15; }
.article h3 { margin-top: 26px; font-size: 24px; }
.article p, .article li { font-size: 18px; line-height: 1.72; color: #1d2b41; }
.meta { color: var(--muted); font-weight: 750; }
.note { border-left: 5px solid var(--green); background: #effcf6; padding: 16px 18px; border-radius: 12px; }
.warn { border-left-color: var(--amber); background: #fff8ea; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border:1px solid var(--line); border-radius:14px; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { width:100%; min-width: 680px; border-collapse: collapse; background: #fff; }
th,td { padding: 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#071226; color:#fff; font-size:15px; }
.widget { border: 1px solid #bdd1f0; border-radius: 16px; padding: 18px; background: linear-gradient(180deg,#f8fbff,#eef5ff); margin: 22px 0; }
.widget label { display:block; margin:12px 0 6px; font-weight: 900; }
.widget select, .widget input { width:100%; min-height:44px; border:1px solid #c9d6ea; border-radius:10px; padding: 0 12px; font-size:16px; }
.widget-output { margin-top: 14px; padding: 14px; border-radius:12px; background:#fff; border:1px solid var(--line); line-height:1.6; }
.widget.colorful { background: linear-gradient(135deg,#06142d,#0b3b91 48%,#0aa66a); color:#fff; border-color:#2f73ff; box-shadow: 0 18px 38px rgba(20,93,255,.18); }
.widget.colorful h2, .widget.colorful label { color:#fff; }
.widget.colorful select, .widget.colorful input { background:#fff; color:var(--ink); border-color:rgba(255,255,255,.55); }
.widget.colorful .widget-output { background: rgba(255,255,255,.96); color:var(--ink); border:0; }
.diagnostic-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; }
.diagnostic-chip { padding:12px; border-radius:14px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); }
.diagnostic-chip b { display:block; color:#fff; font-size:18px; }
.diagnostic-chip span { display:block; color:#dcecff; font-size:14px; margin-top:4px; }
.score-meter { margin-top:14px; height:16px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.22); }
.score-meter span { display:block; height:100%; width:50%; border-radius:999px; background:linear-gradient(90deg,#26d07c,#ffcf33,#e23d4f); transition:width .2s ease; }
.bars { display:grid; gap: 12px; margin: 18px 0; }
.bar { display:grid; grid-template-columns: 150px 1fr 54px; align-items:center; gap:10px; font-weight:850; }
.track { height:12px; border-radius:999px; background:#dbe7f6; overflow:hidden; }
.fill { height:100%; border-radius:999px; background: linear-gradient(90deg,var(--blue),var(--green)); }
.side { position: sticky; top: 14px; display:grid; gap: 14px; }
.side .card { background:#071226; color:#fff; border-color:#1f3358; }
.side .card p, .side .card a { color:#d9e6fb; }
.footer { margin-top: 26px; padding: 22px; color:#526176; display:flex; flex-wrap:wrap; gap:12px; justify-content:center; border-top:1px solid var(--line); }
.author-box { display:flex; gap:16px; align-items:center; border:1px solid var(--line); border-radius:14px; padding:16px; background:#f8fbff; margin-top:30px; }
.author-box img { width:74px; height:74px; border-radius:50%; object-fit:cover; background:#dbe7f6; }
@media (max-width: 900px) {
  .sao-fr-shell { padding: 12px; }
  .sao-fr-top { align-items:flex-start; flex-direction:column; padding:14px; }
  .sao-fr-nav { flex-wrap:wrap; gap: 12px; }
  .hero, .article-layout, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-copy, .pulse { min-height: auto; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .pulse-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article { padding: 22px 16px; }
  table { min-width: 620px; }
  .bar { grid-template-columns: 1fr; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}
