:root {
  --ink: #08080a;
  --paper: #fbf7ef;
  --paper-2: #fff1e7;
  --line: rgba(8, 8, 10, .14);
  --muted: #5f5751;
  --accent: #f46300;
  --accent-dark: #c2410c;
  --white: #fffaf4;
  --panel: rgba(255, 250, 244, .82);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #08080a 0, #08080a 520px, var(--paper) 520px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(8, 8, 10, .94);
  border-bottom: 1px solid rgba(255, 250, 244, .12);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 188px;
  max-width: 44vw;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .92rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 250, 244, .9);
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(72vw, 1120px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .58;
  filter: saturate(1.04) contrast(1.08);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .64;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 10, .92), rgba(8, 8, 10, .74) 36%, rgba(8, 8, 10, .22));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 94px);
  padding: 72px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 6.5vw, 6.2rem);
  font-weight: 950;
}

h2 {
  max-width: 880px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  font-weight: 920;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 880;
}

.lead {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 250, 244, .86);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 250, 244, .16);
  border-radius: 999px;
  background: rgba(255, 250, 244, .07);
  color: rgba(255, 250, 244, .82);
  font-size: .84rem;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 250, 244, .28);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #150803;
}

.button.ghost {
  background: rgba(255, 250, 244, .06);
  color: var(--white);
}

.answer-strip {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 36px));
  margin: -38px auto 0;
}

.answer-strip div {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(244, 99, 0, .38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 99, 0, .18), rgba(255, 250, 244, .08)),
    #171717;
  color: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.answer-strip strong {
  color: var(--accent);
}

.answer-strip span {
  color: rgba(255, 250, 244, .88);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 10vw, 120px) 0;
}

.premium-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.premium-figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #171717;
  box-shadow: 0 34px 100px rgba(8, 8, 10, .18);
}

.premium-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.paper-chapter {
  border-top: 1px solid var(--line);
}

.tech-atlas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.tech-atlas article {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffaf4, #fff1e7);
  box-shadow: 0 18px 60px rgba(8, 8, 10, .08);
  overflow: hidden;
}

.tech-atlas article::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(244, 99, 0, .28);
  border-radius: 50%;
}

.tech-atlas span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.tech-atlas h3 {
  max-width: 92%;
}

.tech-atlas p,
.tech-atlas li {
  color: #2d2925;
  font-size: .98rem;
}

.tech-atlas ul {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding-left: 19px;
}

.section-lead,
.section > p,
.split p,
.stack-card p,
.tech-atlas p,
.final p,
.sources p {
  max-width: 900px;
  color: #2d2925;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.intro {
  padding-top: clamp(54px, 7vw, 90px);
}

.claim,
.cta-panel,
.method-panel {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 70px rgba(8, 8, 10, .1);
}

.claim {
  max-width: 980px;
  padding: clamp(20px, 3vw, 34px);
  font-size: clamp(1.04rem, 1.3vw, 1.24rem);
}

.claim span {
  color: var(--accent-dark);
  font-weight: 900;
}

.table-wrap {
  width: 100%;
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 70px rgba(8, 8, 10, .08);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: .94rem;
}

th,
td {
  padding: 16px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #16110e;
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: var(--paper-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.method-panel {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, .96), rgba(255, 241, 231, .82));
}

.bar {
  margin-top: 16px;
  background: rgba(8, 8, 10, .08);
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  width: var(--w);
  min-width: 150px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f7b267);
  color: #180904;
  font-size: .84rem;
  font-weight: 900;
  white-space: nowrap;
}

.note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .92rem;
}

.architecture {
  width: 100%;
  padding-left: clamp(18px, 4vw, 58px);
  padding-right: clamp(18px, 4vw, 58px);
  background: #120d0a;
  color: var(--white);
}

.architecture .section-lead {
  color: rgba(255, 250, 244, .78);
}

.architecture-svg {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 36px auto 0;
}

.layer rect {
  fill: rgba(255, 250, 244, .07);
  stroke: rgba(255, 250, 244, .35);
  stroke-width: 1.5;
}

.layer.strong rect {
  fill: rgba(244, 99, 0, .16);
  stroke: rgba(244, 99, 0, .7);
}

.layer text {
  fill: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.layer text + text,
.layer text + text + text {
  fill: rgba(255, 250, 244, .68);
  font-size: 16px;
  font-weight: 650;
}

.connector,
.flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  marker-end: url(#arrow);
  stroke-dasharray: 8 12;
  animation: dash 3.2s linear infinite;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.diagram-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffaf4, #fff1e7);
  box-shadow: 0 18px 60px rgba(8, 8, 10, .08);
}

.diagram-panel p,
.diagram-panel li {
  color: #2d2925;
  font-size: .98rem;
}

.diagram-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.mini-architecture {
  display: block;
  width: 100%;
  margin: 20px 0;
  overflow: visible;
}

.mini-bg {
  fill: #171717;
}

.mini-node rect {
  fill: rgba(255, 250, 244, .08);
  stroke: rgba(255, 250, 244, .34);
  stroke-width: 1.6;
}

.mini-node.strong rect {
  fill: rgba(244, 99, 0, .16);
  stroke: rgba(244, 99, 0, .72);
}

.mini-node text {
  fill: var(--white);
  font-size: 22px;
  font-weight: 850;
}

.mini-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
  animation: dash 2.7s linear infinite;
}

.mini-flow.slow {
  animation-duration: 4.2s;
  opacity: .78;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.stack-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffaf4, #fff7ef);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(8, 8, 10, .1);
}

.stack-card p {
  margin: 13px 0 0;
  font-size: .98rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.decision-grid div {
  min-height: 150px;
  padding: 24px;
  border-top: 4px solid var(--accent);
  background:
    linear-gradient(180deg, #fffaf4, #fff1e7);
  border-radius: 8px;
}

.decision-grid strong,
.decision-grid span {
  display: block;
}

.decision-grid span {
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.decision-tool {
  border-top: 1px solid var(--line);
}

.decision-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.decision-steps article {
  position: relative;
  min-height: 270px;
  padding: 24px;
  border-radius: 8px;
  background: #171717;
  color: var(--white);
  overflow: hidden;
}

.decision-steps article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(244, 99, 0, .42);
  border-radius: 50%;
  animation: pulse-small 4s ease-in-out infinite;
}

.decision-steps span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #180904;
  font-weight: 950;
}

.decision-steps p {
  color: rgba(255, 250, 244, .78);
  font-size: .98rem;
}

.table-wrap.compact table {
  min-width: 780px;
}

.score-rule {
  margin-top: 30px;
  padding: clamp(22px, 3vw, 34px);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: var(--paper-2);
}

.score-rule p {
  max-width: 930px;
}

.stack-finder {
  width: 100%;
  padding-left: clamp(18px, 4vw, 58px);
  padding-right: clamp(18px, 4vw, 58px);
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 99, 0, .2), transparent 34%),
    #120d0a;
  color: var(--white);
}

.stack-finder .section-lead {
  color: rgba(255, 250, 244, .78);
}

.finder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(20px, 4vw, 52px);
  max-width: 1180px;
  margin: 36px auto 0;
}

.finder-form {
  display: grid;
  gap: 18px;
}

.finder-step {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 250, 244, .14);
  border-radius: 8px;
  background: rgba(255, 250, 244, .06);
}

.finder-step legend {
  padding: 0 8px;
  color: var(--white);
  font-weight: 920;
}

.finder-step label {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 250, 244, .12);
  border-radius: 8px;
  color: rgba(255, 250, 244, .82);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.finder-step label:hover {
  transform: translateX(3px);
  border-color: rgba(244, 99, 0, .52);
  background: rgba(244, 99, 0, .09);
}

.finder-step label:has(input:checked) {
  border-color: rgba(244, 99, 0, .82);
  background: rgba(244, 99, 0, .16);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(244, 99, 0, .18);
}

.finder-step input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.finder-button,
.finder-reset {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.finder-reset {
  background: rgba(255, 250, 244, .08);
  color: var(--white);
  border: 1px solid rgba(255, 250, 244, .2);
}

.finder-result {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(244, 99, 0, .36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 99, 0, .26), transparent 38%),
    rgba(255, 250, 244, .08);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.finder-result::before {
  content: "";
  position: absolute;
  inset: auto -30% -28% auto;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(244, 99, 0, .38);
  border-radius: 50%;
  animation: pulse-small 4.8s ease-in-out infinite;
}

.result-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finder-result h3 {
  position: relative;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
}

.result-text,
.result-confidence,
.result-reasons,
.result-runnerup {
  position: relative;
  color: rgba(255, 250, 244, .8);
}

.result-meter {
  position: relative;
  height: 12px;
  margin: 24px 0 8px;
  border-radius: 999px;
  background: rgba(255, 250, 244, .12);
  overflow: hidden;
}

.result-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f7b267);
  transition: width .45s ease;
}

.result-reasons ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.result-runnerup {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 250, 244, .16);
}

.result-runnerup span {
  color: var(--white);
  font-weight: 900;
}

.final {
  border-top: 1px solid var(--line);
}

.cta-panel {
  max-width: 840px;
  padding: 28px;
  background: #171717;
  color: var(--white);
}

.cta-panel p {
  color: rgba(255, 250, 244, .84);
}

.sources {
  padding-top: 30px;
  color: #2d2925;
}

.sources ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.sources a {
  color: var(--accent-dark);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.topbar[data-reveal],
.hero-copy[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-line {
  stroke: rgba(255, 250, 244, .08);
  stroke-width: 1;
}

.pulse {
  animation: pulse 4s ease-in-out infinite;
}

.orbit {
  transform-origin: 600px 390px;
  animation: rotate 24s linear infinite;
}

.node {
  fill: rgba(255, 250, 244, .1);
  stroke: rgba(255, 250, 244, .38);
}

.n2,
.n3 {
  stroke: rgba(244, 99, 0, .72);
}

.hero-text text {
  fill: rgba(255, 250, 244, .9);
  font-size: 23px;
  font-weight: 850;
}

.hero-text text:nth-child(even) {
  fill: rgba(255, 250, 244, .62);
  font-size: 16px;
  font-weight: 650;
}

@keyframes dash {
  to {
    stroke-dashoffset: -80;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: .45;
    transform: scale(1);
    transform-origin: 600px 390px;
  }
  50% {
    opacity: .75;
    transform: scale(1.06);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-small {
  0%,
  100% {
    transform: scale(.92);
    opacity: .35;
  }
  50% {
    transform: scale(1.08);
    opacity: .72;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 16px;
    font-size: .88rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 116px);
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(8, 8, 10, .94), rgba(8, 8, 10, .72));
  }

  .hero-image {
    width: 100%;
    opacity: .28;
  }

  .split,
  .premium-split,
  .stack-grid,
  .tech-atlas,
  .decision-grid,
  .diagram-grid,
  .decision-steps,
  .finder-shell {
    grid-template-columns: 1fr;
  }

  .finder-result {
    position: static;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .hero-copy {
    margin-left: 18px;
    padding: 54px 0;
  }

  .button {
    width: 100%;
  }

  th,
  td {
    padding: 13px 12px;
  }

  .stack-card,
  .decision-grid div {
    padding: 20px;
  }
}
