:root {
  --paper: #f7f4ef;
  --paper-soft: #ffffff;
  --ink: #1e1e20;
  --ink-soft: #2a2929;
  --muted: #5b5b5e;
  --line: #ddd6cf;
  --burgundy: #9d2235;
  --burgundy-dark: #681624;
  --pearl: #adaeb0;
  --cream: #f1d9bd;
  --olive: #59614c;
  --steel: #3f5961;
  --gold: #c39a57;
  --blue: #6aa1b8;
  --shadow: 0 22px 60px rgba(30, 30, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--burgundy);
  text-underline-offset: 3px;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  min-height: 44px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 5vw, 68px);
  border-bottom: 1px solid rgba(157, 34, 53, 0.2);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(128px, 16vw, 184px);
  height: 42px;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-nav-minimal a {
  font-weight: 800;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  padding: 9px 15px;
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
  font-size: 0.9rem;
}

.button {
  padding: 12px 18px;
}

.button.primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}

.button.secondary {
  color: #fff;
}

.hero {
  min-height: calc(100svh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 68px) clamp(44px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(30, 30, 32, 0.98), rgba(30, 30, 32, 0.78) 48%, rgba(30, 30, 32, 0.36)),
    image-set(
      url("../assets/estrategia-hero.webp") type("image/webp"),
      url("../assets/estrategia-hero.png") type("image/png")
    ) center right / cover no-repeat;
  color: #fff;
}

.hero-copy {
  width: min(980px, 100%);
}

.eyebrow,
.section-kicker,
.panel-label,
.result-label {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .panel-label {
  color: var(--cream);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem, 7.7vw, 7.4rem);
  line-height: 0.93;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.22rem, 2.2vw, 1.7rem);
  line-height: 1.12;
}

.hero-lede {
  max-width: 790px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.16rem, 2.1vw, 1.75rem);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--burgundy-dark);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  padding: 24px;
  border-left: 5px solid var(--cream);
  background: rgba(30, 30, 32, 0.66);
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.03rem;
}

.section {
  padding: clamp(58px, 9vw, 116px) clamp(18px, 5vw, 68px);
}

.section-heading {
  width: min(1080px, 100%);
  margin: 0 auto clamp(28px, 5vw, 56px);
}

.section-heading p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.editorial-lead,
.prompt-section,
.power-section,
.future-section,
.subscribe-section,
.editorial-control {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.model-cards,
.paradigm-grid,
.flashcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.future-list {
  display: grid;
  gap: 14px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.future-list article {
  display: grid;
  grid-template-columns: 68px minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 30, 32, 0.08);
}

.future-list article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.future-label {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.future-list article > p {
  margin: 0;
  color: var(--muted);
}

.future-principle {
  width: min(920px, 100%);
  margin: 18px auto 0;
  padding: 26px;
  border-color: var(--line);
  background: rgba(30, 30, 32, 0.92);
  color: #fff;
}

.future-principle p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.subscribe-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.subscribe-copy {
  max-width: 680px;
}

.subscribe-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.subscribe-copy .button {
  margin-top: 12px;
}

.substack-embed-wrap {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 30, 32, 0.08);
}

.substack-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #fff;
}

.model-cards article,
.pillar-card,
.flow-step,
.prompt-builder,
.hallucination-game,
.risk-meter,
.checklist,
.flashcard {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 30, 32, 0.08);
}

.model-cards article,
.pillar-card {
  padding: 24px;
}

.model-cards span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.model-cards p,
.pillar-card p {
  color: var(--muted);
}

.dark-section,
.checklist-section,
.hallucination-section {
  background: var(--ink);
  color: #fff;
}

.dark-section .section-heading p,
.checklist-section .section-heading p,
.hallucination-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.autocomplete-lab,
.agent-demo,
.prompt-builder,
.hallucination-game,
.risk-tool,
.checklist {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.autocomplete-lab {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(300px, 1fr);
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.lab-copy p,
.flow-caption,
.hallucination-feedback {
  color: rgba(255, 255, 255, 0.76);
}

.lab-copy select {
  width: 100%;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.probability-panel {
  padding: 22px;
  background: rgba(30, 30, 32, 0.56);
}

.prompt-fragment {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.6rem);
  line-height: 1.06;
}

.probability-list {
  display: grid;
  gap: 12px;
}

.prob-row {
  display: grid;
  grid-template-columns: minmax(95px, 0.4fr) minmax(120px, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.prob-track {
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
}

.prob-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 260ms ease;
}

.paradigm-section {
  background: var(--paper);
}

.pillar-card span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--burgundy);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-demo {
  margin-top: 18px;
  padding: 24px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.demo-tabs,
.builder-bank,
.risk-options,
.claim-list,
.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-tabs button,
.builder-bank button,
.risk-options button,
.claim-list button,
.scenario-tabs button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 9px 12px;
}

.demo-tabs button.is-active,
.builder-bank button.is-active,
.risk-options button.is-active,
.claim-list button.is-active,
.scenario-tabs button.is-active {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}

.flow-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.flow-step {
  min-height: 126px;
  padding: 18px;
}

.flow-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.flow-caption {
  margin: 18px 0 0;
  color: var(--muted);
}

.prompt-before-after {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 920px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 30, 32, 0.08);
}

.prompt-before-after article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.prompt-before-after span {
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-before-after p {
  margin: 8px 0 0;
  color: var(--ink);
}

.prompt-builder {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1fr);
  gap: 22px;
  padding: 24px;
}

.builder-bank {
  align-content: start;
}

.builder-output {
  display: grid;
  gap: 14px;
}

.prompt-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-score span {
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.assembled-prompt {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.builder-output p {
  margin: 0;
  color: var(--muted);
}

.block-explainer {
  min-height: 48px;
  color: var(--burgundy);
  font-weight: 900;
}

.hallucination-game {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(260px, 0.72fr);
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.scenario-tabs {
  grid-column: 1 / -1;
}

.generated-note {
  padding: 22px;
  border-left: 5px solid var(--cream);
  background: rgba(255, 255, 255, 0.09);
}

.generated-note span {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generated-note p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
}

.claim-list {
  align-content: start;
}

.claim-list button {
  width: 100%;
  text-align: left;
}

.hallucination-feedback {
  grid-column: 1 / -1;
  margin: 0;
}

.risk-tool {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: 22px;
}

.risk-options {
  align-content: start;
}

.risk-options button {
  width: 100%;
}

.risk-meter {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 24px;
}

.meter-track {
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eee8df;
}

.meter-track span {
  display: block;
  width: 28%;
  height: 100%;
  background: var(--olive);
  transition: width 180ms ease, background 180ms ease;
}

.risk-meter strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  line-height: 1;
}

.risk-meter p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.risk-meter ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.glossary-section {
  background: var(--paper);
}

.flashcard {
  min-height: 206px;
  padding: 22px;
  border-radius: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.flashcard:hover,
.flashcard.is-active {
  border-color: var(--burgundy);
  transform: translateY(-2px);
}

.flashcard span {
  display: block;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flashcard strong {
  display: block;
  margin-top: 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.flashcard p {
  margin: 12px 0 0;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.flashcard:hover p,
.flashcard.is-active p {
  opacity: 1;
  transform: translateY(0);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.checklist label {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--burgundy);
}

.checklist-progress {
  grid-column: 1 / -1;
  padding-top: 8px;
  color: var(--cream);
  font-weight: 900;
}

.editorial-mark {
  color: var(--burgundy-dark);
  font-weight: 900;
}

.dark-section .editorial-mark,
.hallucination-section .editorial-mark,
.checklist-section .editorial-mark {
  color: var(--cream);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 68px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 1060px) {
  .flow-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .autocomplete-lab,
  .prompt-builder,
  .hallucination-game,
  .risk-tool,
  .subscribe-section {
    grid-template-columns: 1fr;
  }

  .future-list article {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .future-list article > p {
    grid-column: 2;
  }

  .model-cards,
  .paradigm-grid,
  .flashcards,
  .prompt-before-after,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 138px;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero {
    min-height: auto;
  }

  .model-cards,
  .paradigm-grid,
  .flashcards,
  .prompt-before-after,
  .checklist,
  .flow-visual,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .prob-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .future-list article {
    grid-template-columns: 1fr;
  }

  .future-list article > p {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
  }
}
