:root {
  --ink: #20242a;
  --ink-soft: #343a42;
  --yellow: #ffca28;
  --yellow-dark: #7a6200;
  --cream: #fff9e8;
  --paper: #ffffff;
  --muted: #626970;
  --line: #ded8ca;
  --shadow: 0 24px 70px rgba(32, 36, 42, 0.14);
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 202, 40, 0.4) 0 10rem, transparent 10.1rem),
    linear-gradient(145deg, #fffdf7 0%, var(--cream) 58%, #f4efdf 100%);
  color: var(--ink);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 4rem;
  text-align: center;
}

.hero-copy {
  max-width: 1040px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--yellow-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.7rem;
  height: 0.7rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.hero .eyebrow {
  justify-content: center;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 850;
}

.hero h1 {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 0.96;
}

.lede {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
}

.hero .lede {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.inline-source-link {
  color: inherit;
  font-weight: inherit;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.inline-source-link:hover {
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero .cta-row {
  justify-content: center;
}

.button,
.button-secondary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.button {
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 var(--ink);
}

.button-secondary {
  background: transparent;
}

.status-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  width: min(100%, 1080px);
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
}

.hero-visual::before {
  content: none;
}

.demo-prompt {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1rem;
}

.demo-prompt strong {
  color: var(--ink);
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 1.6rem;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--yellow);
}

.section {
  padding: 6rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  min-height: 240px;
  padding: 1.7rem;
  border: 2px solid var(--ink);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 7px 7px 0 var(--yellow);
}

.card-number {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 850;
}

.card h3 {
  margin: 1.4rem 0 0.7rem;
  font-size: 1.35rem;
}

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

.source-diagram {
  margin: 0;
}

.source-diagram img {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 1.7rem;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--yellow);
}

.source-diagram figcaption {
  max-width: 820px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.feature-band {
  padding: 3rem;
  border-radius: 1.8rem;
  background: var(--ink);
  color: white;
}

.feature-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #e8e4da;
}

.feature-list li::before {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.note-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.6rem;
  border: 2px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
}

#source-definition {
  scroll-margin-top: 2rem;
}

.note-mark {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.note-panel h2 {
  margin: 0;
  font-size: 1.3rem;
}

.note-panel p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.page-hero {
  max-width: 800px;
  padding: 6rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 4rem;
  align-items: start;
  padding-bottom: 6rem;
}

.prose {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 2px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 2.7rem 0 0.8rem;
  font-size: 1.7rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.3rem;
}

.prose code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: #f0ead8;
  color: var(--ink);
  font-size: 0.9em;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #f8f3e7;
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.side-card {
  position: sticky;
  top: 1.25rem;
  padding: 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 1.2rem;
  background: var(--yellow);
}

.side-card img {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
}

.side-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.side-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.contact-card p {
  max-width: 680px;
  color: var(--ink-soft);
}

.contact-card .button-secondary {
  background: var(--paper);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 880px) {
  .hero-visual {
    width: calc(100% - 1rem);
  }

  .demo-prompt {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }

  .cards,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .side-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 1rem 0;
  }

  .nav {
    align-items: center;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .section {
    padding: 4rem 0;
  }

  .feature-band {
    padding: 2rem 1.4rem;
  }

  .note-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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