:root {
  --paper: #fbfaf6;
  --ink: #252525;
  --muted: #64615b;
  --line: #d8d2c6;
  --orange: #ff5a00;
  --orange-deep: #c93d00;
  --teal: #0a9e9a;
  --graphite: #2f3133;
  --charcoal: #151617;
  --shadow: 0 24px 80px rgba(37, 37, 37, 0.14);
  --content-max: 1120px;
  --text-max: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 37, 37, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(37, 37, 37, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family: Avenir Next, Trebuchet MS, Verdana, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 68px);
  border-bottom: 1px solid rgba(37, 37, 37, 0.1);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(255, 90, 0, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--orange);
}

.hero {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 7vw, 76px) clamp(20px, 5vw, 64px) clamp(28px, 5vw, 54px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--text-max);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--orange-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(5.2rem, 18vw, 14.5rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 700px;
  margin: clamp(22px, 4vw, 34px) auto 0;
  color: #3f3d39;
  font-size: clamp(1.12rem, 2vw, 1.46rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--orange);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button:hover {
  transform: translate(-2px, -2px);
}

.hero-art {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: min(48vw, 560px);
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(100%, 680px);
  aspect-ratio: 1;
  border: 2px dashed rgba(47, 49, 51, 0.32);
  border-radius: 50%;
  animation: orbit 44s linear infinite;
}

.hero-art img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 32px 46px rgba(37, 37, 37, 0.18));
  animation: lift 900ms ease-out both;
}

.command-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px clamp(18px, 3vw, 28px);
  color: #f6f1e9;
  background: var(--charcoal);
  border-left: 8px solid var(--orange);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.prompt {
  color: var(--teal);
  font-weight: 900;
}

.command-strip code {
  white-space: nowrap;
}

.intro-grid,
.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: min(var(--content-max), calc(100% - 40px));
  margin: clamp(36px, 6vw, 68px) auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-grid article,
.level-grid article {
  min-height: 230px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(251, 250, 246, 0.94);
}

.metric {
  color: var(--teal);
  font-weight: 900;
}

.intro-grid h2,
.level-grid h3 {
  margin: 24px 0 12px;
  font-size: clamp(1.36rem, 2.5vw, 2rem);
  line-height: 1.02;
}

.intro-grid p,
.level-grid p,
.reason-list p,
.terminal-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.workflow-section,
.image-levels,
.split-section,
.terminal-section {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.workflow-section h2,
.image-levels h2,
.split-section h2,
.terminal-copy h2 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.workflow {
  display: grid;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 58px);
}

.step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.step span {
  color: var(--orange-deep);
  font-weight: 900;
  text-transform: uppercase;
}

.step code {
  overflow-wrap: anywhere;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 76px);
  background: var(--graphite);
  color: #fff;
}

.split-section .section-kicker {
  color: #ffb17d;
}

.reason-list p {
  color: #ded8ce;
  margin: 0 0 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.image-levels {
  background: #f3efe6;
}

.level-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: 0;
  margin-bottom: 0;
}

.level-grid article {
  min-height: 210px;
}

.level-grid h3 {
  color: var(--orange-deep);
  font-family: Georgia, Times New Roman, serif;
}

.terminal-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
}

.terminal-window {
  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  background: #111;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
}

.terminal-bar span:nth-child(2) {
  background: #f1bd42;
}

.terminal-bar span:nth-child(3) {
  background: var(--teal);
}

.terminal-window pre {
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  overflow-x: auto;
  color: #f7f2e8;
  font-size: clamp(0.84rem, 1.4vw, 1rem);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a:hover {
  color: var(--orange-deep);
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
  }

  .split-section,
  .terminal-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    inset: 50% auto auto 50%;
    width: min(78vw, 420px);
    transform: translate(-50%, -50%);
  }

  .hero-art::before,
  .hero-art img {
    width: 100%;
  }

  .intro-grid,
  .level-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .nav-links,
  .hero-actions {
    align-items: flex-start;
  }

  .site-header,
  .nav-links {
    flex-direction: column;
  }

  .nav-links {
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(4rem, 28vw, 6.4rem);
  }

  .intro-grid,
  .level-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
