
:root {
  color-scheme: dark;
  --ink: #f7faf8;
  --muted: #b7c5c3;
  --paper: #f9fbf8;
  --dark: #07110f;
  --line: rgba(255,255,255,.18);
  --panel: rgba(10,18,17,.78);
  --panel-strong: rgba(6,12,11,.92);
  --focus: #f7cd55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #07110f;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, #07110f 0%, #12211e 36%, #17212a 64%, #0b1017 100%);
  background-size: 92px 92px, 92px 92px, auto;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(5,12,11,.86), rgba(5,12,11,.48));
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 190px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.55);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.22)),
    linear-gradient(45deg, var(--accent), #f6d76b);
  clip-path: polygon(50% 0, 98% 26%, 98% 74%, 50% 100%, 2% 74%, 2% 26%);
}
.brand b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.site-header nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(247,250,248,.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-header nav a:hover, .site-header nav a:focus-visible {
  color: #fff;
  border-color: var(--accent);
  outline: 0;
}
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 110px clamp(20px, 5vw, 72px) 46px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: .76;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,10,10,.96) 0%, rgba(5,10,10,.76) 38%, rgba(5,10,10,.28) 68%, rgba(5,10,10,.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.82));
}
.hero-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .72fr);
  gap: 28px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--accent) 74%, white 26%);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3 {
  letter-spacing: 0;
}
h1 {
  margin: 0;
  max-width: 970px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 9vh, 92px);
  line-height: .94;
  font-weight: 700;
}
.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: rgba(247,250,248,.88);
  font-size: 21px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.08);
}
.button.primary {
  background: var(--accent);
  color: #06110f;
  border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
  font-weight: 850;
}
.button:hover, .button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hero-ledger {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 10px;
}
.stat-tile {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(5,12,11,.62);
  padding: 15px;
  backdrop-filter: blur(10px);
}
.stat-tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}
.stat-tile span {
  color: var(--muted);
  font-size: 13px;
}
.scroll-cue {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.page-band {
  padding: 76px clamp(20px, 5vw, 72px);
}
.band-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(280px, .4fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vh, 56px);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.film-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
  gap: 18px;
  align-items: stretch;
}
.film-frame {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
  background: #050a09;
}
.film-frame video {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}
.film-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(5,12,11,.72);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.film-overlay strong {
  font-size: 22px;
}
.film-overlay p {
  margin: 0;
  color: rgba(247,250,248,.82);
}
.film-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.film-steps li {
  min-height: 60px;
  display: grid;
  align-items: center;
  padding: 0 14px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.07);
  color: rgba(247,250,248,.9);
}
.tool-panel {
  background: var(--paper);
  color: #14201e;
}
.instrument {
  display: grid;
  gap: 16px;
  border-top: 1px solid rgba(20,32,30,.18);
  padding-top: 20px;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.cost-grid label, .token-tool label, .command-tabs button, .compare-tool label {
  display: grid;
  gap: 7px;
  font-weight: 750;
  font-size: 13px;
}
input, textarea, button {
  border-radius: 0;
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(20,32,30,.24);
  background: #fff;
  color: #14201e;
  padding: 10px;
}
textarea { resize: vertical; }
output, .command-output {
  display: block;
  border: 1px solid rgba(20,32,30,.2);
  background: #10201d;
  color: #f7faf8;
  padding: 16px;
  font-weight: 800;
}
.token-bar {
  height: 16px;
  background: #dfe7e3;
  overflow: hidden;
}
.token-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f2a93b, #ef5777);
}
.command-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.command-tabs button {
  min-height: 40px;
  border: 1px solid rgba(20,32,30,.24);
  background: #fff;
  padding: 0 14px;
  cursor: pointer;
}
.command-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: #06110f;
}
.compare-tool {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.compare-side {
  display: grid;
  gap: 10px;
}
.story-grid {
  display: grid;
  gap: 22px;
}
.story-block {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, .58fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.story-block h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vh, 46px);
  line-height: 1;
}
.story-block p {
  margin: 0;
  color: rgba(247,250,248,.84);
  font-size: 18px;
}
.visual-panel {
  min-height: 260px;
  border: 1px solid rgba(255,255,255,.2);
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), transparent 34%),
    rgba(255,255,255,.055);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.visual-panel svg {
  width: 100%;
  height: auto;
}
.visual-caption {
  color: var(--muted);
  font-size: 13px;
}
.sources-grid, .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.source-card, .related-card {
  min-height: 220px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 18px;
  background: rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.source-card h3, .related-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}
.source-card p, .related-card p {
  margin: 0;
  color: rgba(247,250,248,.78);
}
.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.source-meta span {
  border: 1px solid rgba(255,255,255,.2);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 12px;
}
.source-card a {
  margin-top: 14px;
  color: color-mix(in srgb, var(--accent) 70%, white 30%);
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 16px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}
.faq-list p {
  color: rgba(247,250,248,.78);
}
footer {
  padding: 36px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
}
footer a { color: #fff; }
@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }
  .site-header nav {
    display: none;
  }
  .hero {
    padding-top: 104px;
  }
  .hero-inner,
  .section-head,
  .film-wrap,
  .story-block,
  .compare-tool {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 50px;
  }
  .lead {
    font-size: 18px;
  }
  .hero-ledger,
  .cost-grid,
  .sources-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .film-frame, .film-frame video {
    min-height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
