/* ============================================================
   AdaOr Blog Post — Decart Style (Light / Editorial)
   ============================================================ */

/* --- Monitor (titles) --- */
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Medium-Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monitor';
  src: url('fonts/Monitor-Bold-Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* --- Roobert (body) --- */
@font-face {
  font-family: 'Roobert';
  src: url('fonts/Roobert-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('fonts/Roobert-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('fonts/Roobert-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('fonts/Roobert-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('fonts/Roobert-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f1;
  --bg-white: #ffffff;
  --bg-card: #eaeae6;
  --bg-surface: #e8e8e4;
  --border: #d4d4cf;
  --border-light: #e0e0dc;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --blue: #3d4cf5;
  --blue-light: #5b68f7;
  --blue-dim: rgba(61, 76, 245, 0.08);
  --blue-border: rgba(61, 76, 245, 0.2);
  --serif: 'Monitor', Georgia, 'Times New Roman', serif;
  --sans: 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-w: 780px;
  --max-w-wide: 1040px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(244, 244, 241, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-links a.nav-cta {
  border: 1px solid var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  transition: all 0.2s;
}

.nav-links a.nav-cta:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---- Hero ---- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 11rem 2rem 5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-tag {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-date {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-title em {
  font-style: italic;
  color: var(--blue);
}

.hero-subtitle {
  font-size: 1.05rem;
  font-style: normal;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-subtitle em {
  font-style: normal;
  font-weight: 500;
  color: var(--text);
}

.hero-authors {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Hero Demo (below title) ---- */
.hero-demo {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.hero-demo .section-inner {
  max-width: var(--max-w-wide);
}

/* ---- Sections ---- */
.section {
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;
}

.section-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-inner h2 em {
  font-style: italic;
  color: var(--blue);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ---- Prose ---- */
.prose p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--blue-border);
  transition: border-color 0.2s;
}

.prose a:hover {
  border-color: var(--blue);
}

.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); font-style: italic; }

.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  color: var(--blue);
  border: 1px solid var(--border-light);
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

/* ---- Diagram Block ---- */
.diagram-block {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 3rem;
}

.diagram-card {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
}

.diagram-card-highlight {
  border-color: var(--blue);
  background: var(--blue-dim);
}

.diagram-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--text-muted);
}

.diagram-card-highlight .diagram-icon {
  color: var(--blue);
}

.diagram-card h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.diagram-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.diagram-card p em { color: var(--text); }

.diagram-arrow {
  display: none;
}

/* ---- Comparison Block (CFG vs AdaOr) ---- */
.comparison-block {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-row {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
}

.comparison-row-highlight {
  border-color: var(--blue-border);
  background: var(--blue-dim);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.comparison-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.comparison-icon-ours {
  color: var(--blue);
}

.comparison-header h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
}

.comparison-strip {
  display: flex;
  gap: 5px;
}

.comparison-strip img {
  flex: 1;
  width: 0;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.comparison-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filmstrip-arrow {
  color: var(--border);
}

.comparison-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comparison-caption em {
  color: var(--text);
  font-style: italic;
}

/* ---- Equation Block ---- */
.equation-block {
  margin: 2.5rem 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  text-align: center;
}

.equation-block-wide {
  max-width: var(--max-w-wide);
}

.equation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.eq-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.eq-content {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
  padding: 0.5rem 0;
}

.equation-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.eq-highlight-origin {
  color: var(--blue);
}

.eq-highlight-cond {
  color: #d97706;
}

.eq-highlight-id {
  color: #059669;
}

.equation-annotations {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.eq-annotation {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.eq-annotation strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
}

.eq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.eq-dot-origin { background: var(--blue); }
.eq-dot-cond { background: #d97706; }
.eq-dot-w { background: var(--text); }

/* ============================================================
   No-Knob Demo (Section /01)
   ============================================================ */

.no-knob-demo {
  margin: 2.5rem 0 2.5rem;
}

.no-knob-strip {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.no-knob-item {
  flex: 1;
  min-width: 0;
}

.no-knob-input {
  flex: 0 0 auto;
  width: 22%;
}

.no-knob-edited-group {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.no-knob-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.no-knob-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.no-knob-label {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

.no-knob-input .no-knob-label {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
}

.no-knob-label em {
  font-style: italic;
  color: #059669;
  font-weight: 600;
}

.no-knob-arrow-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
}

.no-knob-arrow-line {
  flex: 1;
  height: 2px;
  background: var(--text);
}

.no-knob-arrow-head {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--text);
}

.no-knob-message {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

.no-knob-x {
  color: #dc2626;
  font-weight: 700;
  margin-right: 0.3rem;
}

@media (max-width: 768px) {
  .no-knob-strip {
    flex-direction: column;
    gap: 1rem;
  }

  .no-knob-input {
    width: 60%;
    margin: 0 auto;
  }

  .no-knob-edited-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .no-knob-label {
    font-size: 0.7rem;
  }
}

/* ============================================================
   VISUAL 1 — Hero Slider Demo
   ============================================================ */

.section-interactive .section-inner {
  max-width: var(--max-w-wide);
}

.demo-slider-container {
  max-width: 720px;
  margin: 0 auto;
}

.demo-prompt-bar,
.surface-prompt-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
}

.prompt-icon {
  font-size: 1rem;
  color: var(--blue);
}

.prompt-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.video-slider-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  overflow: hidden;
}

.video-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.hero-video-layer.active {
  opacity: 1;
}

.video-alpha-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.placeholder-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
}

.placeholder-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.placeholder-sublabel {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  opacity: 0.6;
}

/* Slider styling */
.slider-control {
  padding: 0 0.5rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.slider-track-wrapper,
.example-slider-wrapper {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.styled-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 1px var(--blue), 0 2px 6px rgba(61, 76, 245, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.styled-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--blue), 0 4px 12px rgba(61, 76, 245, 0.35);
}

.styled-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--blue);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 1px var(--blue), 0 2px 6px rgba(61, 76, 245, 0.25);
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: var(--blue);
  border-radius: 0;
  pointer-events: none;
  z-index: 1;
  width: 0%;
}

.slider-value-display {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.slider-value-display strong {
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 500;
}

/* ============================================================
   VISUAL 2 — 2D Surface (Apple Grid)
   ============================================================ */

.surface-container {
  max-width: var(--max-w-wide);
  margin: 3rem auto 0;
}

.surface-layout {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.surface-grid-side {
  flex: 1;
  min-width: 0;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.surface-y-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-weight: 500;
}

.surface-main {
  flex: 1;
}

.surface-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: visible;
  cursor: crosshair;
}

.surface-axis-label {
  position: absolute;
  right: calc(100% + 0.5rem);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  z-index: 4;
}

.surface-axis-label-top {
  top: 4%;
}

.surface-axis-label-bottom {
  bottom: 4%;
}

.surface-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.path-cfg {
  stroke: var(--text);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.path-adaor {
  stroke: var(--blue);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.surface-apple {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.surface-apple-shared {
  border-color: var(--blue-border);
  box-shadow: 0 1px 4px rgba(61, 76, 245, 0.2);
}

.surface-path-tag {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
}

.surface-path-tag-cfg {
  top: 16%;
  left: 48%;
  color: var(--text-muted);
}

.surface-path-tag-adaor {
  top: 62%;
  left: 52%;
  color: var(--blue);
}

.surface-knob {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: grab;
  pointer-events: auto;
  left: 50%;
  top: 50%;
}

.surface-knob:active { cursor: grabbing; }

.knob-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--blue), 0 2px 10px rgba(61, 76, 245, 0.4);
  transition: transform 0.1s;
}

.surface-knob:active .knob-inner {
  transform: scale(1.15);
}

.surface-x-axis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0 0;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
}

.surface-x-axis sub {
  font-size: 0.5rem;
}

.axis-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Preview side */
.surface-preview-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.surface-preview-pair {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.surface-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.surface-preview-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: block;
}

.surface-preview-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.surface-readout {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  width: 100%;
}

.readout-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.readout-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.readout-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue);
}

.surface-insight {
  margin-top: 2rem;
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.insight-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  align-items: flex-start;
}

.insight-marker {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.insight-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.insight-card p strong { color: var(--text); }

/* ============================================================
   VISUAL 3 — Example Grid
   ============================================================ */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.example-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.example-card:hover {
  border-color: var(--blue-border);
}

.example-prompt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
  min-height: 2.5em;
}

.example-video-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-light);
}

.example-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.example-video-layer.active {
  opacity: 1;
}

.example-alpha-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  z-index: 5;
}

.example-slider-wrapper {
  height: 28px;
}

.example-slider-wrapper .styled-slider {
  height: 2px;
}

.example-slider-wrapper .styled-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* ---- Tech Cards ---- */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.tech-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem;
}

.tech-card-num {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tech-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Results Table ---- */
.results-table-wrapper {
  margin: 2rem 0;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.results-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.results-table td:first-child {
  font-family: var(--sans);
  color: var(--text);
  font-weight: 500;
}

.results-ours {
  background: var(--blue-dim);
}

.results-ours td {
  color: var(--blue);
  font-weight: 600;
}

.results-ours td:first-child {
  color: var(--blue);
}

.results-table strong {
  color: var(--blue);
}

/* ---- CTA ---- */
.cta-row {
  display: flex;
  gap: 1rem;
  margin: 3rem 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.cta-button:first-child {
  background: var(--text);
  color: #fff;
}

.cta-button:first-child:hover {
  background: var(--blue);
}

.cta-button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.cta-button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---- Citation ---- */
.citation-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.citation-block h4 {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.citation-block pre {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
  overflow-x: auto;
}

.citation-block code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 18px;
  width: auto;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 8rem 1.5rem 3rem; }
  .section { padding: 4rem 1.5rem; }
  .nav { padding: 1rem 1.5rem; }

  .diagram-block {
    flex-direction: column;
  }

  .diagram-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .tech-cards {
    grid-template-columns: 1fr;
  }

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

  .insight-row {
    grid-template-columns: 1fr;
  }

  .surface-layout {
    flex-direction: column;
  }

  .surface-grid-side {
    flex-direction: column;
  }

  .surface-y-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .surface-preview-side {
    flex: none;
    margin: 0 auto;
  }

  .surface-grid-side {
    max-width: none;
  }

  .surface-preview-img {
    width: 120px;
    height: 120px;
  }

  .cta-row {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links { gap: 1rem; }
  .nav-links a.nav-cta { display: none; }
}
