:root {
  color-scheme: dark;
  --black: #090909;
  --panel: #111111;
  --panel-2: #171717;
  --bone: #f2eee7;
  --muted: #aaa39a;
  --line: #302d29;
  --red: #f13d1e;
  --red-dark: #9f210c;
  --brass: #b99959;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
}
.progress span { display: block; width: 0; height: 100%; background: var(--red); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 4vw;
  background: rgba(9, 9, 9, .92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 850; letter-spacing: .08em; font-size: .82rem; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; background: var(--red); color: white; border-radius: 4px; letter-spacing: -.06em; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: .82rem; }
.site-header nav a, .text-button { color: var(--muted); background: none; border: 0; text-decoration: none; font: inherit; cursor: pointer; }
.site-header nav a:hover, .text-button:hover { color: var(--bone); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) max(5vw, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
}
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, #000, transparent 82%); }
.signal { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(120px); opacity: .18; background: var(--red); }
.signal-one { top: -160px; right: 4vw; }
.signal-two { bottom: -260px; left: 20vw; }
.hero-copy, .hero-panel { position: relative; z-index: 2; }
.eyebrow, .section-number { color: var(--red); font-size: .72rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Impact, "Arial Black", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: .94; }
h1 { margin-bottom: 30px; font-size: clamp(4.5rem, 10vw, 9.5rem); }
h1 span { color: var(--red); }
.lede { max-width: 750px; color: #d6d1ca; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--red); color: white; border-color: #ff5738; }
.button.primary:hover { background: #ff4b2b; }
.button.secondary { background: #0d0d0d; color: var(--bone); border-color: #49433d; }
.button.secondary:hover { border-color: var(--bone); }

.hero-panel { min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; background: rgba(16,16,16,.78); border: 1px solid #39342f; border-radius: 8px; box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.hero-panel dl { margin: 0; }
.hero-panel dl div { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.hero-panel dt { color: var(--red); font: 900 2.4rem/1 Impact, sans-serif; }
.hero-panel dd { margin: 0; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.helix { position: relative; height: 210px; margin: 5px 20px 35px; }
.helix:before, .helix:after { content: ""; position: absolute; inset: 0 28%; border: 2px solid var(--red); border-top: 0; border-bottom: 0; border-radius: 50%; transform: rotate(22deg); }
.helix:after { transform: rotate(-22deg); border-color: var(--bone); opacity: .62; }
.helix span { position: absolute; left: 30%; width: 40%; height: 1px; background: linear-gradient(90deg, var(--red), var(--bone)); transform-origin: center; }
.helix span:nth-child(1){top:12%;transform:rotate(18deg)} .helix span:nth-child(2){top:27%;transform:rotate(-12deg)} .helix span:nth-child(3){top:42%;transform:rotate(14deg)} .helix span:nth-child(4){top:57%;transform:rotate(-18deg)} .helix span:nth-child(5){top:72%;transform:rotate(12deg)} .helix span:nth-child(6){top:87%;transform:rotate(-15deg)}

.section-shell { width: min(var(--max), 90vw); margin: 0 auto; padding: clamp(90px, 11vw, 150px) 0; }
.core-shift { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; border-bottom: 1px solid var(--line); }
.core-shift h2, .section-heading h2, .definition h2, .final-cta h2, .prompt-wrap h2 { font-size: clamp(2.8rem, 6vw, 6rem); }
.core-copy p { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #d7d2ca; }
.core-copy p:last-child { color: var(--red); font-weight: 850; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin: 16px 0 52px; }
.section-heading.wide h2 { max-width: 820px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 390px; color: var(--muted); }

.foundation { border-bottom: 1px solid var(--line); }
.foundation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foundation-grid article { min-height: 280px; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.folder { display: inline-block; margin-bottom: 62px; color: var(--red); font: 800 1rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.foundation-grid h3 { font-size: 1.35rem; }
.foundation-grid p { color: var(--muted); }

.upgrades { width: min(1380px, 94vw); }
.upgrade-list { counter-reset: item; border-top: 1px solid var(--line); }
.upgrade { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(280px, .75fr); gap: 24px; align-items: stretch; border-bottom: 1px solid var(--line); }
.upgrade > b { padding-top: 30px; color: #67615a; font: 800 .78rem ui-monospace, monospace; }
.upgrade > div { padding: 28px 20px 28px 0; }
.upgrade h3 { margin-bottom: 8px; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.upgrade > div p { margin-bottom: 0; color: var(--muted); }
.upgrade aside { padding: 28px; background: #17100f; border-left: 1px solid #4d231b; }
.upgrade aside span { color: var(--red); font-size: .64rem; font-weight: 850; letter-spacing: .16em; }
.upgrade aside p { margin: 8px 0 0; color: #e7ddd5; }
.upgrade:hover aside { background: #211210; }

.installation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li { display: grid; grid-template-columns: 90px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.stage-list li > span { color: var(--red); font: 900 2.6rem/1 Impact, sans-serif; }
.stage-list h3 { margin-bottom: 6px; font-size: 1.45rem; }
.stage-list p { margin-bottom: 0; color: var(--muted); }

.prompt-wrap { display: grid; grid-template-columns: .72fr 1.28fr; gap: 6vw; align-items: start; }
.prompt-wrap > div > p { color: var(--muted); font-size: 1.05rem; }
pre { max-height: 640px; overflow: auto; margin: 0; padding: 30px; white-space: pre-wrap; background: #0e0e0e; border: 1px solid var(--line); border-radius: 7px; color: #ddd7ce; font: .88rem/1.72 ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-status { min-height: 24px; margin-top: 12px; color: var(--red) !important; }

.definition { border-top: 1px solid var(--line); }
.definition h2 { max-width: 950px; }
.definition ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 45px; margin: 48px 0; padding: 0; list-style: none; }
.definition li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); color: #d8d2ca; }
.definition li:before { content: ""; position: absolute; left: 0; top: 26px; width: 9px; height: 9px; background: var(--red); }
.closing { max-width: 900px; color: var(--red); font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 850; }

.final-cta { padding: clamp(90px, 12vw, 160px) 5vw; text-align: center; background: var(--red); color: white; }
.final-cta .eyebrow { color: #250702; }
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { font-size: 1.15rem; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .primary { background: white; color: #1a0906; border-color: white; }
.final-cta .secondary { border-color: white; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 38px 5vw; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
footer a { color: var(--bone); text-decoration: none; }

@media (max-width: 850px) {
  .site-header nav a { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { min-height: 390px; }
  .core-shift, .prompt-wrap { grid-template-columns: 1fr; }
  .foundation-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .upgrade { grid-template-columns: 44px 1fr; }
  .upgrade aside { grid-column: 1 / -1; margin-left: 44px; border-left: 3px solid var(--red); }
  .definition ul { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { min-height: 62px; }
  .brand { font-size: .7rem; }
  .site-header nav { gap: 8px; }
  h1 { font-size: 3.9rem; }
  .hero { padding-top: 76px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-panel { padding: 24px; }
  .section-shell { width: 88vw; }
  .upgrade { gap: 10px; }
  .upgrade aside { margin-left: 0; }
  .stage-list li { grid-template-columns: 60px 1fr; }
  footer { flex-direction: column; }
}

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

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; }
  .progress, .site-header, .hero-grid, .signal, .hero-panel, .hero-actions, .copy-status, footer { display: none !important; }
  .hero { min-height: auto; display: block; padding: 32px 0 50px; border-bottom: 2px solid #111; }
  .hero-copy, .section-shell { width: 100%; max-width: none; }
  h1 { font-size: 54pt; }
  h1 span, .eyebrow, .section-number, .core-copy p:last-child, .stage-list li > span, .closing { color: #a51f0a; }
  .core-shift, .prompt-wrap { grid-template-columns: 1fr 1.4fr; }
  .foundation-grid { grid-template-columns: repeat(3, 1fr); }
  .foundation-grid article, pre { background: #f5f2ec; color: #111; }
  .upgrade { grid-template-columns: 40px 1fr 1fr; break-inside: avoid; }
  .upgrade aside { background: #f4e8e4; color: #111; }
  .upgrade > div p, .stage-list p, .prompt-wrap > div > p { color: #444; }
  .installation, .prompt-section, .definition { break-before: page; }
}
