:root {
  color-scheme: light dark;
  --page: #f5f5f1;
  --surface: #ffffff;
  --surface-2: #ecece6;
  --ink: #11120f;
  --muted: #66675f;
  --line: #d9d9d1;
  --accent: #d9381e;
  --accent-ink: #ffffff;
  --trust: #1d5c49;
  --shadow: 0 22px 70px rgba(30, 31, 26, 0.10);
  --content: 760px;
  --wide: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --page: #11120f;
  --surface: #181a16;
  --surface-2: #22251f;
  --ink: #f1f1ea;
  --muted: #aaa99f;
  --line: #34372f;
  --accent: #ff674d;
  --accent-ink: #11120f;
  --trust: #7bd6b3;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #11120f;
    --surface: #181a16;
    --surface-2: #22251f;
    --ink: #f1f1ea;
    --muted: #aaa99f;
    --line: #34372f;
    --accent: #ff674d;
    --accent-ink: #11120f;
    --trust: #7bd6b3;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
button { font: inherit; }

.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  background: color-mix(in srgb, var(--surface), transparent 5%);
  backdrop-filter: blur(18px);
}

.sp-topbar__inner,
.sp-proofbar__inner {
  width: min(calc(100% - 32px), var(--wide));
  margin: 0 auto;
}

.sp-topbar__inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.sp-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 780; letter-spacing: -0.025em; }
.sp-brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--page); font-size: 0.78rem; letter-spacing: 0.04em; }
.sp-nav { display: flex; gap: 22px; justify-content: center; }
.sp-nav a { text-decoration: none; font-size: 0.93rem; color: var(--muted); }
.sp-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.sp-theme { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.sp-theme__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 78%); }

.sp-main { min-height: 62vh; }
.sp-wrap { width: min(calc(100% - 32px), var(--wide)); margin: 0 auto; }
.sp-reading { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; }

.sp-hero { padding: clamp(72px, 12vw, 150px) 0 70px; }
.sp-kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 800; color: var(--accent); }
.sp-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.sp-hero h1 { max-width: 930px; margin: 18px 0 20px; font-size: clamp(3.1rem, 8.8vw, 7.8rem); line-height: 0.93; letter-spacing: -0.065em; }
.sp-hero__dek { max-width: 760px; margin: 0; font-size: clamp(1.18rem, 2.6vw, 1.7rem); line-height: 1.45; color: var(--muted); }
.sp-status { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 0.78rem; color: var(--muted); background: var(--surface); }
.sp-status strong { color: var(--ink); }

.sp-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sp-value { padding: 34px 30px 38px 0; }
.sp-value + .sp-value { padding-left: 30px; border-left: 1px solid var(--line); }
.sp-value__number { color: var(--accent); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.14em; }
.sp-value h2 { margin: 8px 0 8px; font-size: 1.3rem; }
.sp-value p { margin: 0; color: var(--muted); }

.sp-section { padding: 86px 0; }
.sp-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.sp-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.045em; }
.sp-section__head p { max-width: 470px; margin: 0; color: var(--muted); }

.sp-feature { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.18fr 0.82fr; min-height: 470px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.sp-feature__body { padding: clamp(34px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.sp-feature__body h3 { margin: 14px 0 14px; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 0.98; letter-spacing: -0.055em; }
.sp-feature__body p { color: var(--muted); font-size: 1.08rem; }
.sp-feature__link { margin-top: 22px; align-self: flex-start; display: inline-flex; text-decoration: none; border-radius: 999px; padding: 12px 17px; background: var(--ink); color: var(--page); font-weight: 750; }
.sp-feature__link:hover { color: var(--accent-ink); background: var(--accent); }
.sp-feature__visual { min-height: 320px; padding: 34px; background: var(--ink); color: var(--page); display: grid; align-content: space-between; }
.sp-feature__visual small { text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.62; }
.sp-orbit { position: relative; aspect-ratio: 1; width: min(100%, 330px); margin: auto; border: 1px solid color-mix(in srgb, var(--page), transparent 68%); border-radius: 50%; display: grid; place-items: center; }
.sp-orbit::before, .sp-orbit::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--page), transparent 78%); border-radius: 50%; }
.sp-orbit::before { inset: 16%; }
.sp-orbit::after { inset: 32%; }
.sp-orbit__core { width: 33%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 900; letter-spacing: -0.04em; z-index: 2; }
.sp-orbit__node { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--page); }
.sp-orbit__node:nth-child(2) { top: 6%; left: 48%; }
.sp-orbit__node:nth-child(3) { bottom: 19%; right: 5%; }
.sp-orbit__node:nth-child(4) { bottom: 11%; left: 18%; }

.sp-article-header { padding: clamp(70px, 11vw, 130px) 0 56px; border-bottom: 1px solid var(--line); }
.sp-article-header h1 { margin: 16px 0 18px; font-size: clamp(3rem, 8vw, 6.7rem); line-height: 0.95; letter-spacing: -0.06em; }
.sp-article-header__subtitle { font-size: clamp(1.18rem, 2.8vw, 1.62rem); color: var(--muted); max-width: 760px; }
.sp-article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; color: var(--muted); font-size: 0.88rem; }
.sp-article-meta strong { color: var(--ink); }
.sp-article { padding: 72px 0 96px; }
.sp-provisional + section { margin-top: 52px; }
.sp-article section + section { margin-top: 68px; }
.sp-article h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.045em; margin: 0 0 24px; }
.sp-article p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.14rem, 2vw, 1.34rem); line-height: 1.78; margin: 0 0 1.2em; }
.sp-article section:first-of-type p:first-of-type::first-letter { font-size: 3.5em; line-height: 0.8; float: left; padding: 0.12em 0.10em 0 0; font-family: Inter, sans-serif; font-weight: 850; color: var(--accent); }

.sp-proofbar { border-top: 1px solid var(--line); background: var(--surface); }
.sp-proofbar__inner { padding: 38px 0 44px; }
.sp-proofbar__top { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.sp-proofbar__brand { max-width: 400px; }
.sp-proofbar__brand h2 { font-size: 1.1rem; margin: 0 0 8px; }
.sp-proofbar__brand p { color: var(--muted); margin: 0; font-size: 0.91rem; }
.sp-proofbar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.sp-proof { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.sp-proof span { display: block; text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.64rem; color: var(--muted); }
.sp-proof strong, .sp-proof a { display: block; margin-top: 5px; font-size: 0.87rem; overflow-wrap: anywhere; }
.sp-relations { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.sp-relations h3 { margin: 0 0 12px; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em; }
.sp-relations ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-relations li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-size: 0.8rem; background: var(--page); }

.sp-system-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sp-metric { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); }
.sp-metric span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.65rem; }
.sp-metric strong { display: block; font-size: 2.1rem; margin-top: 7px; }
.sp-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 28px; }
.sp-panel h3 { margin-top: 0; }
.sp-panel table { border-collapse: collapse; width: 100%; }
.sp-panel th, .sp-panel td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 8px; font-size: 0.9rem; }
.sp-panel th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.sp-severity { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 0.72rem; font-weight: 760; }
.sp-severity--critical { background: color-mix(in srgb, var(--accent), transparent 84%); color: var(--accent); }
.sp-severity--warning { background: color-mix(in srgb, #d49a17, transparent 82%); color: #9a6900; }
.sp-severity--info { background: color-mix(in srgb, var(--trust), transparent 84%); color: var(--trust); }

.sp-provisional { border-left: 3px solid var(--accent); padding: 14px 16px; color: var(--muted); background: color-mix(in srgb, var(--accent), transparent 95%); border-radius: 0 10px 10px 0; }
.sp-provisional strong { color: var(--ink); }

@media (max-width: 820px) {
  .sp-topbar__inner { grid-template-columns: 1fr auto; gap: 14px; }
  .sp-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; padding-bottom: 13px; overflow-x: auto; }
  .sp-value-grid, .sp-feature, .sp-system-grid { grid-template-columns: 1fr; }
  .sp-value { padding: 24px 0; }
  .sp-value + .sp-value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sp-feature__visual { min-height: 360px; }
  .sp-section__head, .sp-proofbar__top { display: block; }
  .sp-section__head p { margin-top: 14px; }
  .sp-proofbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .sp-brand__name { display: none; }
  .sp-hero { padding-top: 58px; }
  .sp-hero h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .sp-provisional + section { margin-top: 38px; }
  .sp-proofbar__grid { grid-template-columns: 1fr; }
  .sp-proofbar__top { gap: 16px; }
  .sp-panel { overflow-x: auto; padding: 20px; }
}
