/* jev-superpowers landing — TypeSafe Innocent DNA, original pink/magenta palette */
:root {
  --pink: #f386a1;
  --magenta: #d45bb6;
  --magenta-deep: #a2278f; /* AA compliant small-text accent (6.5:1 on white) */
  --ink: #120e11;       /* Deep rose-charcoal obsidian, tinted toward anchor hue */
  --substrate: #fdfbfc; /* Warm paper, tinted toward anchor hue */
  --grey-1: #1e1e1e;
  --grey-2: #dedede;
  --grey-3: #c4c4c4;
  --grey-4: #abbab9;
  --bg: var(--substrate);
  --fg: var(--ink);
  --space-5: 20px;
  --space-8: 40px;
  --display: "LisaTerminal Paper 2X3Y Medium", "Book Antiqua", Georgia, serif;
  --body: "Die Grotesk C Regular", Candara, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 4px;
  --shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  --space: 5px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--substrate);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }

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

/* header & navigation */
.site-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px 100px;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--grey-2);
  z-index: 50;
}

.logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo sup {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--magenta-deep);
  margin-left: 4px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-1);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--pink);
}

.nav-links {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 200ms var(--ease), opacity 150ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 50ms var(--ease), box-shadow 200ms var(--ease);
}

.btn-primary {
  background: var(--pink);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--grey-4);
  box-shadow: var(--shadow);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 100px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--magenta-deep);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-family: var(--display);
  font-size: 68px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 25px;
}

.lead {
  font-size: 20px;
  color: var(--grey-1);
  margin-bottom: 35px;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.hero-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-1);
}

.hero-note a {
  color: var(--magenta-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-note a:hover {
  color: var(--ink);
}

.verdict {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-top: 20px;
  flex-wrap: wrap;
}

.judge {
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  background: var(--pink);
  padding: 2px 10px;
  border-radius: var(--radius);
}

.judge-dim {
  color: var(--grey-1);
}

.judge-line {
  color: var(--grey-1);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 13px;
}

.lead-link {
  color: var(--magenta-deep);
  text-underline-offset: 3px;
}

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

/* terminal */
.terminal {
  background: var(--ink);
  color: var(--substrate);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--grey-1);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grey-3);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius);
  background: var(--pink);
}

.terminal pre {
  padding: 22px;
  overflow-x: auto;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.terminal code {
  color: var(--substrate);
}

/* sections */
section {
  padding: 100px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 20px;
  color: var(--grey-1);
  max-width: 64ch;
}

/* why section */
.why {
  border-top: 1px solid var(--grey-2);
}

.reason-list {
  list-style: none;
  margin-top: 45px;
  border-top: 1px solid var(--grey-2);
}

.reason-list li {
  padding: 25px 0;
  border-bottom: 1px solid var(--grey-2);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
}

.reason-list strong {
  font-weight: 500;
  font-size: 18px;
}

.reason-list strong a {
  color: var(--ink);
}

/* skills / presets */
.presets {
  border-top: 1px solid var(--grey-2);
}

.preset-row {
  display: grid;
  grid-template-columns: 240px 1fr 90px;
  gap: 40px;
  align-items: baseline;
  padding: 25px 0;
  border-bottom: 1px solid var(--grey-2);
}

.preset-row h3 {
  font-weight: 500;
  font-size: 18px;
}

.preset-row h3 code {
  background: var(--grey-4);
  padding: 3px 6px;
  border-radius: var(--radius);
}

.preset-row p {
  color: var(--grey-1);
}

.check {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--magenta-deep);
  text-align: right;
  font-weight: 600;
}

/* quickstart */
.quickstart {
  border-top: 1px solid var(--grey-2);
}

.code-block {
  position: relative;
  background: var(--ink);
  color: var(--substrate);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 30px 0 25px;
}

.code-block code {
  color: var(--substrate);
}

.code-block pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 1px solid var(--grey-1);
  color: var(--grey-3);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  line-height: 1;
}

.copy-btn:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.quickstart .section-lead code {
  background: var(--grey-4);
  padding: 2px 5px;
  border-radius: var(--radius);
}

.steps-heading {
  margin: 32px 0 16px;
  font-size: 24px;
  font-weight: 500;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  position: relative;
  padding: 12px 16px 12px 54px;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.5;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--magenta-deep);
  color: var(--substrate);
  font-family: var(--mono);
  font-size: 14px;
}

.steps li span {
  font-weight: 700;
  color: var(--fg);
}

.flag-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.flag-table th {
  text-align: left;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-1);
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
}

.flag-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-2);
  font-size: 16px;
}

.flag-table td code {
  background: var(--grey-4);
  padding: 2px 5px;
  border-radius: var(--radius);
}

/* cost & metrics band */
.cost {
  border-top: 1px solid var(--grey-2);
  background: var(--grey-4);
  max-width: none;
  padding-left: clamp(24px, 8vw, calc((100% - 1200px) / 2 + 100px));
  padding-right: clamp(24px, 8vw, calc((100% - 1200px) / 2 + 100px));
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 45px 0 25px;
}

.stat-num {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--grey-1);
  font-size: 15px;
}

.cost-src {
  font-size: 14px;
  color: var(--grey-1);
  border-top: 1px solid var(--grey-2);
  padding-top: 18px;
}

.cost-src a {
  text-decoration: underline;
}

/* cta */
.cta {
  border-top: 1px solid var(--grey-2);
  text-align: left;
}

.cta h2 {
  font-size: 48px;
}

.cta-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* author slab */
.author-slab {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
  align-items: center;
  border-top: 1px solid var(--grey-3);
  padding-top: var(--space-8);
}

.author-slab h2 {
  margin: 0 0 8px;
}

.author-slab .section-lead {
  margin-bottom: 0;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-links a {
  border: 1px solid var(--grey-3);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-height: 44px;
  font-size: 14px;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.author-links a:hover {
  border-color: var(--pink);
  color: var(--magenta-deep);
}

/* footer */
.footer {
  background: var(--ink);
  color: var(--substrate);
  padding: 60px 100px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-3);
  margin-bottom: 15px;
}

.footer a {
  display: block;
  color: var(--substrate);
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}

.footer a:hover {
  color: var(--pink);
}

.footer-tag {
  color: var(--grey-3);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  margin-top: 50px;
}

/* spoke pages: breadcrumb, bench-table, glossary */
.breadcrumb {
  padding: 20px 100px 0;
  font-size: 14px;
  font-family: var(--mono);
  color: var(--grey-1);
}

.breadcrumb a {
  color: var(--grey-1);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--magenta-deep);
}

.breadcrumb span {
  color: var(--grey-3);
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bench-table th,
.bench-table td {
  border: 1px solid var(--grey-3);
  padding: 10px 14px;
  text-align: left;
}

.bench-table thead th {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--pink) 6%, transparent);
}

.bench-table td:first-child {
  font-weight: 700;
}

.bench-table tr:nth-child(even) td {
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}

.glossary-terms {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.glossary-terms dt {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--grey-3);
  padding-bottom: 4px;
}

.glossary-terms dd {
  margin: 6px 0 0;
  line-height: 1.6;
  color: var(--grey-1);
  max-width: 72ch;
}

.glossary-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.glossary-list li {
  border-left: 3px solid var(--pink);
  padding: 6px 0 6px 14px;
  line-height: 1.55;
  color: var(--grey-1);
  max-width: 72ch;
}

.inline-term {
  background: var(--ink);
  color: var(--substrate);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 14px;
  margin: 18px 0;
  overflow-x: auto;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

/* responsive queries */
#mobile-nav {
  display: none !important;
}

@media (max-width: 1100px) {
  .site-header { padding: 16px 40px; }
  .hero { padding: 80px 40px; }
  section { padding: 80px 40px; }
  .cost { padding: 80px 40px; }
  .breadcrumb { padding: 20px 40px 0; }
  .footer { padding: 60px 40px 40px; }
  .reason-list li { grid-template-columns: minmax(160px, 200px) 1fr; gap: 30px; }
}

/* Platform Badge Strip */
.platform-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.platform-strip span.label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-3);
  margin-right: 4px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--grey-4);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}

/* 6-Stage Golden Loop Pipeline */
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 32px 0 24px;
}

/* Apple-grade View Transitions & Fluid Response */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 90ms cubic-bezier(0.16, 1, 0.3, 1) both fade-out;
}
::view-transition-new(root) {
  animation: 160ms cubic-bezier(0.16, 1, 0.3, 1) both fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pipeline-step {
  background: var(--substrate);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  padding: 16px 12px;
  position: relative;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.pipeline-step:hover,
.pipeline-step.active {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: 0 4px 12px rgba(243, 134, 161, 0.25), var(--shadow);
}

.pipeline-step.active .step-idx {
  color: var(--pink);
}

.pipeline-step .step-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--magenta-deep);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.pipeline-step .step-title {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.pipeline-step .step-oracle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey-1);
  background: var(--grey-4);
  padding: 2px 5px;
  border-radius: 2px;
  display: inline-block;
}

/* Skills Deck Grid */
.skills-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.skill-box {
  background: radial-gradient(350px circle at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(243, 134, 161, 0.15), transparent 80%), var(--substrate);
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease, border-color 160ms ease;
}

.skill-box:hover {
  transform: translate(-1px, -2px);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.45);
  border-color: var(--pink);
}

.skill-box-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-2);
}

.skill-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.skill-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius);
  background: var(--pink);
  color: var(--ink);
  font-weight: 600;
}

.skill-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-1);
  margin-bottom: 16px;
}

.skill-meta {
  background: var(--grey-4);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.skill-meta .meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skill-meta .meta-row:last-child {
  margin-bottom: 0;
}

.meta-label { color: var(--magenta-deep); font-weight: 600; }
.meta-val { color: var(--ink); }

/* Terminal Tab Switcher */
.terminal-tabs {
  display: flex;
  background: var(--grey-1);
  border-bottom: 1px solid #2a2228;
  padding: 6px 12px 0;
  gap: 8px;
}

.terminal-tab-btn {
  background: transparent;
  border: none;
  color: var(--grey-3);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}

.terminal-tab-btn.active {
  color: var(--pink);
  border-bottom: 2px solid var(--pink);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  min-height: 240px;
}

.t-line {
  margin-bottom: 6px;
  overflow-wrap: break-word;
}

.t-prompt {
  color: var(--pink);
  font-weight: 600;
  margin-right: 6px;
}

.t-out {
  color: #c4beb5;
}

.t-flag {
  color: #ff8585;
  font-weight: 500;
}

/* Simulator Bar */
.sim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #181517;
  border-bottom: 1px solid #2d262a;
  flex-wrap: wrap;
}

.sim-label {
  font-family: var(--mono);
  font-size: 11px;
  color: #8c858a;
  margin-right: 4px;
}

.sim-btn {
  background: #252024;
  border: 1px solid #3d343a;
  color: #e5e5e5;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), border-color 120ms ease, color 120ms ease;
}

.sim-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.sim-btn:active {
  transform: scale(0.97);
}

.sim-btn.danger {
  border-color: rgba(255, 133, 133, 0.4);
}

.sim-btn.danger:hover {
  border-color: #ff8585;
  color: #ff8585;
}

/* Lifecycle Hook Comparison Blocks */
.hook-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.hook-card {
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  background: var(--substrate);
}

.hook-card.failure {
  border-left: 4px solid var(--grey-3);
}

.hook-card.success {
  border-left: 4px solid var(--pink);
}

.hook-card h3 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 10px;
}

.hook-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-1);
  margin-bottom: 12px;
}

.hook-code-snippet {
  background: #0f0b0e;
  color: #fdfbfc;
  padding: 12px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Interactive Failure Mode Switcher (ui-ux-pro-max) */
.mode-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 20px;
}

.mode-toggle-group {
  display: inline-flex;
  background: var(--grey-4);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--grey-2);
  gap: 4px;
}

.mode-tab-btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--grey-1);
  border-radius: 3px;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), background-color 150ms ease, color 150ms ease;
}

.mode-tab-btn:hover {
  color: var(--ink);
}

.mode-tab-btn:active {
  transform: scale(0.97);
}

.mode-tab-btn.active {
  background: var(--substrate);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mode-display-card {
  border: 1px solid var(--grey-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  background: var(--substrate);
  margin-bottom: 24px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--grey-2);
}

.mode-metric-pill {
  background: var(--grey-4);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: var(--mono);
}

.mode-metric-pill .lbl {
  font-size: 11px;
  color: var(--grey-1);
  display: block;
  margin-bottom: 4px;
}

.mode-metric-pill .val {
  font-size: 14px;
  font-weight: 600;
}

.val-bad { color: #d63031; }
.val-warn { color: #e67e22; }
.val-good { color: #27ae60; }

@media (max-width: 960px) {
  .pipeline-flow { grid-template-columns: repeat(2, 1fr); }
  .skills-deck { grid-template-columns: 1fr; }
  .hook-split { grid-template-columns: 1fr; }
  .mode-metric-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-header { padding: 14px 24px; flex-wrap: wrap; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--grey-2);
    padding: 12px 0;
  }
  #mobile-nav.open { display: flex !important; }
  .nav-links a {
    padding: 10px 0;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--grey-1);
  }
  .nav-links a:hover {
    color: var(--magenta-deep);
  }
  .nav-cta { display: none; }
  .breadcrumb { padding: 14px 24px 0; }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
    gap: 36px;
  }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  section { padding: 60px 24px; }
  .cost { padding: 60px 24px; }

  .reason-list li { grid-template-columns: 1fr; gap: 8px; }
  .preset-row { grid-template-columns: 1fr; gap: 8px; }
  .preset-row .check { text-align: left; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer { padding: 48px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .author-slab { grid-template-columns: 1fr; gap: var(--space-5); }
  .sim-bar { padding: 8px 10px; gap: 6px; }
  .sim-btn { min-height: 36px; padding: 6px 10px; }
  .terminal-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .terminal-tab-btn { min-height: 38px; white-space: nowrap; }
}

@media (max-width: 560px) {
  .pipeline-flow { grid-template-columns: 1fr; gap: 10px; }
  .mode-toggle-group { flex-direction: column; width: 100%; }
  .mode-tab-btn { width: 100%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(26px, 9vw, 36px); }
  .stat-num { font-size: 36px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta h2 { font-size: 32px; }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-actions { flex-direction: column; gap: 10px; width: 100%; }
  .cta-actions .btn { width: 100%; text-align: center; }
  .mode-metric-row { grid-template-columns: 1fr; gap: 10px; }
  .mode-card { padding: 16px; }
  .author-links { width: 100%; }
  .author-links a { width: 100%; justify-content: center; }
  .verdict { font-size: 13px; gap: 8px; }
  .judge { font-size: 16px; }
  .sim-bar { padding: 8px; gap: 6px; }
  .sim-btn { flex: 1 1 calc(50% - 6px); text-align: center; font-size: 11px; padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
