:root {
  --paper: #f0ede6;
  --paper-bright: #faf8f2;
  --ink: #121319;
  --muted: #5b5b5f;
  --line: rgba(18, 19, 25, 0.2);
  --cobalt: #244bd6;
  --cobalt-dark: #1736a7;
  --white: #fffefa;
  --signal: #bdf46f;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

code {
  padding: 0.08em 0.3em;
  background: rgba(36, 75, 214, 0.08);
}

::selection {
  background: var(--cobalt);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(390px, 43fr);
  grid-template-rows: auto 1fr auto;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.site-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--ink);
  background: rgba(240, 237, 230, 0.94);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}

.wordmark,
.header-meta,
.site-header nav,
.eyebrow,
.step-status,
.step-link,
.system-kicker,
.system-output,
.file-bar,
.file-preview ol > li > span,
.automation-rules,
.prompt-header,
.sources,
footer {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  width: fit-content;
  text-decoration: none;
}

.wordmark span {
  display: inline-grid;
  width: 31px;
  height: 31px;
  margin-right: 10px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a {
  position: relative;
  text-decoration: none;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  right: 0;
}

.header-meta {
  justify-self: end;
}

.hero-copy {
  align-self: center;
  padding: clamp(48px, 7vh, 88px) clamp(28px, 6vw, 96px) 48px 32px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cobalt);
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 6.25vw, 108px);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.88;
}

.hero h1 span {
  display: block;
  color: var(--cobalt);
  font-style: italic;
}

.hero-intro {
  max-width: 650px;
  margin: 32px 0 0;
  font-size: clamp(18px, 1.55vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.38;
}

.hero-actions,
.final-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.hero-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cobalt);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.text-link {
  font-size: 13px;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.hero-system {
  grid-column: 2;
  grid-row: 2;
  min-height: 610px;
  padding: 42px 34px 34px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.system-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 88%);
}

.system-kicker,
.system-stack,
.system-output {
  position: relative;
  z-index: 1;
}

.system-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.system-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-layer {
  min-height: clamp(112px, 16vh, 160px);
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: end;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(18, 19, 25, 0.8);
  color: inherit;
  text-decoration: none;
  transform-origin: left center;
  animation: system-in 700ms cubic-bezier(0.2, 0.85, 0.3, 1) both;
  transition: transform 180ms ease, border-color 180ms ease;
}

.system-layer:hover {
  transform: translateX(-8px);
  border-color: var(--white);
}

.layer-teach {
  margin-left: 8%;
  background: var(--cobalt);
  border-color: var(--cobalt);
  animation-delay: 180ms;
}

.layer-automate {
  margin-left: 16%;
  animation-delay: 360ms;
}

.system-layer > span,
.step-number,
.voice-track article > span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.system-layer strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.system-layer small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.system-output {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(189, 244, 111, 0.6);
  animation: pulse 2s infinite;
}

.output-arrow {
  font-size: 20px;
  transition: transform 180ms ease;
}

.hero-system:hover .output-arrow {
  transform: translateX(8px);
}

.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 640ms cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}

.hero h1.hero-reveal {
  animation-delay: 100ms;
}

.hero-intro.hero-reveal {
  animation-delay: 200ms;
}

.hero-actions.hero-reveal {
  animation-delay: 300ms;
}

.statement,
.setup,
.teach,
.faq {
  padding: clamp(80px, 11vw, 176px) 32px;
}

.statement {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-content: center;
  column-gap: 40px;
  border-bottom: 1px solid var(--line);
}

.statement h2 {
  max-width: 1160px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 8.6vw, 148px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.statement > div > p {
  max-width: 760px;
  margin: 42px 0 0;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 74px;
}

.section-heading h2,
.handoff h2,
.automation h2,
.boundaries h2,
.final-cta h2 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 108px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.setup-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.setup-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, color 180ms ease;
}

.setup-list li:hover {
  padding-left: 12px;
}

.setup-list h3,
.voice-track h3,
.guardrail h3 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.setup-list p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.step-link,
.step-status {
  align-self: start;
  margin-top: 5px;
  white-space: nowrap;
  text-decoration: none;
}

.step-link {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--cobalt);
}

.copy-prompt {
  width: min(100%, 700px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  text-align: left;
  cursor: pointer;
}

.copy-prompt span {
  font-family: var(--mono);
  font-size: 13px;
}

.copy-prompt strong {
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.handoff {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 100vh;
  background: var(--cobalt);
  color: var(--white);
}

.handoff-copy {
  align-self: center;
  padding: clamp(80px, 9vw, 144px) clamp(32px, 6vw, 96px) clamp(80px, 9vw, 144px)
    32px;
}

.handoff-copy .eyebrow,
.automation .eyebrow,
.boundaries .eyebrow,
.final-cta .eyebrow {
  color: currentColor;
  opacity: 0.7;
}

.handoff-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 1.65vw, 24px);
}

.handoff-copy .button {
  margin-top: 32px;
}

.file-preview {
  align-self: center;
  margin: 48px 32px 48px 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 22px 22px 0 rgba(18, 19, 25, 0.28);
}

.file-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink);
}

.file-preview ol {
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.file-preview ol li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.file-preview strong {
  display: block;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.file-preview p {
  margin: 7px 0 0;
  color: var(--muted);
}

.file-rule {
  margin: 24px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.teach-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 64px;
}

.voice-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.voice-track article {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background 180ms ease, color 180ms ease;
}

.voice-track article:hover {
  background: var(--ink);
  color: var(--white);
}

.voice-track article > span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 60px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.voice-track p {
  margin: 16px 0 0;
  color: var(--muted);
}

.voice-track article:hover p {
  color: rgba(255, 255, 255, 0.72);
}

.guardrail {
  align-self: start;
  position: sticky;
  top: 28px;
  padding: 32px;
  background: var(--ink);
  color: var(--white);
}

.guardrail ol {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: guardrails;
}

.guardrail li {
  counter-increment: guardrails;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.guardrail li::before {
  content: "0" counter(guardrails);
  font-family: var(--mono);
  font-size: 10px;
}

.guardrail > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.automation {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  background: var(--ink);
  color: var(--white);
}

.automation-copy {
  align-self: center;
  padding: clamp(80px, 9vw, 144px) clamp(32px, 6vw, 96px) clamp(80px, 9vw, 144px)
    32px;
}

.automation-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(18px, 1.65vw, 24px);
}

.automation-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.automation-rules span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.prompt-sheet {
  align-self: center;
  margin: 48px 32px 48px 0;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 22px 22px 0 var(--cobalt);
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink);
}

.prompt-header button {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.prompt-sheet pre {
  margin: 0;
  padding: 30px;
  white-space: pre-wrap;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.65;
}

.prompt-sheet > p {
  margin: 0;
  padding: 20px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.boundaries {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
  padding: clamp(80px, 10vw, 160px) 32px;
  background: var(--cobalt);
  color: var(--white);
}

.boundaries > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 1.8vw, 26px);
}

.faq {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
}

.faq .section-heading {
  display: block;
  margin: 0;
}

.faq .section-heading h2 {
  font-size: clamp(48px, 6vw, 94px);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 26px 40px 26px 0;
  font-size: clamp(19px, 1.8vw, 27px);
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 24px;
  font-family: var(--mono);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 700px;
  margin: 0;
  padding: 0 44px 30px 0;
  color: var(--muted);
}

.final-cta {
  min-height: 82vh;
  display: grid;
  align-content: center;
  padding: clamp(80px, 12vw, 190px) 32px;
  background: var(--cobalt);
  color: var(--white);
}

.final-cta h2 {
  max-width: 1120px;
  font-size: clamp(58px, 8vw, 136px);
}

.light-link {
  color: var(--white);
}

.sources {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--ink);
}

.sources p {
  margin: 0;
}

.sources div {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--white);
}

.section-reveal {
  animation: section-in linear both;
  animation-timeline: view();
  animation-range: entry 8% cover 24%;
}

.copy-prompt.is-copied,
.prompt-header button.is-copied {
  background: var(--signal);
  color: var(--ink);
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes system-in {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(189, 244, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(189, 244, 111, 0);
  }
}

@keyframes section-in {
  from {
    opacity: 0.38;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .teach-grid {
    grid-template-columns: 1fr;
  }

  .guardrail {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .site-header {
    grid-column: 1;
  }

  .hero-copy {
    min-height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 24px;
  }

  .hero-system {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-foot {
    grid-column: 1;
  }

  .statement,
  .section-heading,
  .handoff,
  .automation,
  .boundaries,
  .faq {
    grid-template-columns: 1fr;
  }

  .statement {
    gap: 28px;
  }

  .statement > div > p {
    margin-top: 28px;
  }

  .section-heading {
    gap: 16px;
  }

  .file-preview,
  .prompt-sheet {
    margin: 0 24px 64px;
  }

  .handoff-copy,
  .automation-copy {
    padding: 80px 24px 56px;
  }

  .voice-track {
    grid-template-columns: 1fr 1fr;
  }

  .boundaries {
    align-items: start;
    gap: 32px;
  }

  .faq {
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .wordmark {
    font-size: 9px;
  }

  .wordmark span {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }

  .header-meta {
    font-size: 9px;
  }

  .hero-copy {
    min-height: calc(100svh - 62px);
    padding: 50px 18px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 74px);
  }

  .hero-intro {
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-system {
    min-height: 590px;
    padding: 30px 18px;
  }

  .system-layer {
    min-height: 118px;
    padding: 18px;
  }

  .layer-teach {
    margin-left: 5%;
  }

  .layer-automate {
    margin-left: 10%;
  }

  .hero-foot {
    padding: 13px 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .statement,
  .setup,
  .teach,
  .faq {
    padding: 78px 18px;
  }

  .statement {
    min-height: auto;
  }

  .statement h2 {
    font-size: 53px;
  }

  .statement > div > p {
    font-size: 19px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2,
  .handoff h2,
  .automation h2,
  .boundaries h2 {
    font-size: 50px;
  }

  .setup-list li {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .setup-list .step-link,
  .setup-list .step-status {
    grid-column: 2;
    justify-self: start;
  }

  .copy-prompt {
    grid-template-columns: 1fr;
  }

  .file-preview,
  .prompt-sheet {
    margin: 0 14px 56px;
    box-shadow: 10px 10px 0 rgba(18, 19, 25, 0.28);
  }

  .prompt-sheet {
    box-shadow: 10px 10px 0 var(--cobalt);
  }

  .file-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .voice-track {
    grid-template-columns: 1fr;
  }

  .voice-track article {
    min-height: 260px;
  }

  .voice-track article > span {
    margin-bottom: 44px;
  }

  .guardrail {
    padding: 26px 22px;
  }

  .automation-copy {
    padding-bottom: 42px;
  }

  .prompt-sheet pre {
    padding: 24px 20px;
    font-size: 12px;
  }

  .boundaries {
    padding: 78px 18px;
  }

  .final-cta {
    min-height: 74vh;
    padding: 84px 18px;
  }

  .final-cta h2 {
    font-size: 57px;
  }

  .final-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .sources,
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
