:root {
  --bg: #0a0604;
  --bg-elevated: #120a06;
  --bg-card: rgba(12, 8, 6, 0.72);
  --border: rgba(255, 160, 90, 0.08);
  --border-bright: rgba(255, 180, 100, 0.18);
  --text: #f5ebe0;
  --text-muted: #a89080;
  --accent: #e87830;
  --accent-glow: rgba(232, 120, 48, 0.4);
  --cyan: #ffb347;
  --cyan-glow: rgba(255, 179, 71, 0.3);
  --amber: #ff6b1a;
  --amber-glow: rgba(255, 107, 26, 0.35);
  --danger: #ff5544;
  --warn: #ff8c42;
  --eye-orange: #c44e12;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Eye portal background */
.eye-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.eye-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(140vw, 1200px);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.95;
  filter: saturate(1.1) brightness(0.9);
  will-change: transform;
}

.eye-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 0%, rgba(10, 6, 4, 0.55) 55%, rgba(10, 6, 4, 0.92) 100%),
    linear-gradient(180deg, rgba(10, 6, 4, 0.7) 0%, transparent 25%, transparent 75%, rgba(10, 6, 4, 0.85) 100%);
}

.eye-bg-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 40vmin;
  height: 24vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 120, 40, 0.18) 0%, transparent 70%);
  animation: eye-pulse 6s ease-in-out infinite;
}

@keyframes eye-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: screen;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 6, 4, 0.55);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-ring {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse-ring 3s ease-in-out infinite;
}

.logo-ring.small {
  width: 20px;
  height: 20px;
}

.logo-ring.small::after {
  inset: 4px;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ca-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 120, 40, 0.1);
  border: 1px solid rgba(255, 140, 60, 0.35);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ca-copy:hover,
.ca-copy.copied {
  border-color: var(--amber);
  box-shadow: 0 0 20px var(--amber-glow);
}

.ca-label {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ca-addr {
  color: var(--text-muted);
}

.ca-copy-icon {
  opacity: 0.6;
  font-size: 0.85rem;
}

.hero-ca {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-ca-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.hero-ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(10, 6, 4, 0.65);
  border: 1px solid rgba(255, 140, 60, 0.35);
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
  max-width: min(100%, 520px);
}

.hero-ca-btn:hover,
.hero-ca-btn.copied {
  border-color: var(--amber);
  box-shadow: 0 0 30px var(--amber-glow);
  transform: translateY(-1px);
}

.hero-ca-addr {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2vw, 0.78rem);
  color: var(--text);
  word-break: break-all;
  text-align: left;
}

.hero-ca-action {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-ca-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 140, 60, 0.3);
  transition: color 0.2s;
}

.hero-ca-link:hover {
  color: var(--amber);
}

.footer-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 120, 40, 0.06);
  border: 1px solid rgba(255, 140, 60, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.2s;
}

.footer-ca code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
}

.footer-ca .ca-copied-msg {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.2s;
}

.footer-ca.copied .ca-copied-msg {
  opacity: 1;
}

.footer-ca.copied code {
  color: var(--amber);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 100px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(167, 139, 250, 0.2);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 42%, transparent 0%, rgba(10, 6, 4, 0.4) 100%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(10, 6, 4, 0.9), 0 0 80px rgba(10, 6, 4, 0.6);
  position: relative;
  z-index: 1;
}

.hero-line {
  display: block;
}

.hero-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #ff8c42 0%, #ffb347 45%, #ff6b1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 120, 40, 0.3));
}

.hero-sub {
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  text-shadow: 0 1px 20px rgba(10, 6, 4, 0.9);
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll:hover {
  color: var(--accent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 4, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

.section.discovery::before,
.section.experiments::before,
.section.safety::before {
  background: rgba(10, 6, 4, 0.68);
}

.section .container {
  position: relative;
}

/* Glass cards */
.property-card,
.lens-panel,
.experiment-stage,
.diffing-stage,
.safety-card,
.playground-input-panel,
.playground-readout-panel,
.intervention-lab,
.philosophy-card,
.ocean-viz,
.hero-stats,
.hero-workspace,
#workspace-orb,
.reflection-block {
  backdrop-filter: blur(16px) saturate(1.15);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* Discovery */
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.discovery-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.discovery-text h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cyan);
}

.discovery-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.discovery-text strong {
  color: var(--text);
}

.pull-quote {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.5;
}

.ocean-viz {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
}

.ocean-surface {
  height: 80px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.15) 0%, transparent 100%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  position: relative;
}

.ocean-surface::after {
  content: 'Accessible thought';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.ocean-depth {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.depth-layer {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.depth-layer[data-depth="automatic"] {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.6;
}

.depth-layer[data-depth="workspace"] {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 40px var(--accent-glow);
}

.depth-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.depth-layer[data-depth="automatic"] .depth-tag { color: var(--text-muted); }
.depth-layer[data-depth="workspace"] .depth-tag { color: var(--accent); }

.depth-words {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.depth-layer[data-depth="workspace"] .depth-words {
  color: var(--text);
}

.ocean-caption {
  padding: 1rem 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Lens Demo */
.lens-demo {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
}

.lens-prompts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prompt-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.prompt-btn:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.prompt-btn.active {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--text);
}

.prompt-icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.lens-panel {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 400px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.panel-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.prompt-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.lens-processor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.layer-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  transition: all 0.3s;
}

.layer-bar.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.lens-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
  animation: scan-beam 2s ease-in-out infinite;
}

@keyframes scan-beam {
  0%, 100% { transform: translateY(-20%); opacity: 0.2; }
  50% { transform: translateY(20%); opacity: 0.6; }
}

.layer-indicator {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.readout-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.readout-list .readout-item {
  display: grid;
  grid-template-columns: 28px 72px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(10px);
  animation: readout-in 0.4s ease forwards;
}

@keyframes readout-in {
  to { opacity: 1; transform: translateX(0); }
}

.readout-rank {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 20px;
}

.readout-word {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.readout-score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.readout-item:nth-child(1) .readout-word { color: var(--cyan); }
.readout-item:nth-child(2) .readout-word { color: var(--accent); }
.readout-item:nth-child(3) .readout-word { color: var(--amber); }

.readout-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.08);
  border-left: 2px solid var(--amber);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 0 8px 8px 0;
}

/* Properties */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s;
}

.property-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.property-card.wide {
  grid-column: 1 / -1;
}

.property-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.property-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.property-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.property-demo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.demo-before, .demo-after {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.demo-after {
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.demo-arrow {
  color: var(--accent);
}

.demo-tag {
  padding: 0.35rem 0.75rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 6px;
  color: var(--accent);
}

.selectivity-bar {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bar-segment.automatic {
  flex: 92;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.bar-segment.workspace {
  flex: 8;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Experiments */
.experiment-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.exp-tab {
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.exp-tab:hover { color: var(--text); }
.exp-tab.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
}

.experiment-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 320px;
}

.exp-panel {
  display: none;
}

.exp-panel.active {
  display: block;
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.exp-prompt {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.exp-node {
  text-align: center;
}

.node-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.swap-control {
  display: flex;
  gap: 0.5rem;
}

.swap-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.swap-btn.active {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow);
}

.exp-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.exp-result {
  text-align: center;
}

.result-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 500;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
}

.exp-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.country-swap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.country-btn {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.country-btn.active {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

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

.country-answer {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.country-answer .question {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.country-answer .answer {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cyan);
  transition: all 0.3s;
}

.language-tasks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.language-task .task-name {
  font-size: 0.9rem;
}

.language-task .task-result {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.language-task .task-result.affected {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.language-task .task-result.unchanged {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

/* Diffing */
.diffing-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.model-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.model-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  transition: all 0.25s;
}

.model-btn:hover {
  border-color: var(--border-bright);
}

.model-btn.active {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.06);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.08);
}

.model-btn[data-model="assistant"].active {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.08);
}

.model-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.model-btn.active .model-icon {
  color: var(--accent);
}

.model-btn[data-model="assistant"].active .model-icon {
  color: var(--cyan);
}

.model-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.model-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.diff-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.diff-btn {
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.diff-btn:hover { color: var(--text); }

.diff-btn.active {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--amber);
}

.diffing-stage {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.diff-prompt-panel {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.diff-prompt-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.diff-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.diff-column {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.diff-column.highlight {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 30px var(--accent-glow);
}

.diff-column.highlight-assistant {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.diff-col-header {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
}

.diff-col-header.base {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.diff-col-header.assistant {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.diff-readout {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.diff-word {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  animation: diff-word-in 0.35s ease forwards;
}

@keyframes diff-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.diff-word .word-text {
  font-weight: 500;
}

.diff-word .word-score {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.diff-word.new {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.diff-word.new .word-text {
  color: var(--cyan);
}

.diff-word.absent {
  opacity: 0.35;
  text-decoration: line-through;
}

.diff-word.meta {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.diff-word.meta .word-text {
  color: var(--accent);
}

.diff-word.fail {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.diff-word.fail .word-text {
  color: var(--danger);
}

.diff-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.diff-arrow {
  font-size: 1.5rem;
  color: var(--amber);
  animation: diff-pulse 2s ease-in-out infinite;
}

@keyframes diff-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.diff-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.diff-insight {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.reflection-block {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06) 0%, rgba(167, 139, 250, 0.06) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
}

.reflection-header {
  margin-bottom: 1rem;
}

.reflection-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.reflection-header h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.reflection-header h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cyan);
}

.reflection-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 720px;
}

.reflection-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.reflection-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 50%;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.word.planted {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  color: var(--cyan);
  animation: word-glow 2s ease-in-out infinite;
}

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.safety-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.safety-card:hover {
  border-color: rgba(248, 113, 113, 0.3);
}

.safety-scenario {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.safety-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-item .time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 80px;
  padding-top: 0.25rem;
}

.silent-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.silent-words .word {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  animation: word-glow 2s ease-in-out infinite;
}

.silent-words .word.flagged {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.silent-words .word.warn {
  background: rgba(251, 146, 60, 0.15);
  color: var(--warn);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.silent-words .word.danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

@keyframes word-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.safety-insight {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Philosophy */
.philosophy {
  padding-bottom: 4rem;
}

.philosophy-card {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(34, 211, 238, 0.05) 100%);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
}

.philosophy-card h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.philosophy-card p {
  max-width: 600px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.philosophy-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .philosophy-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.link-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-credit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Custom cursor */
.lens-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.05s linear;
}

.lens-cursor-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0.7;
  animation: cursor-spin 4s linear infinite;
}

.lens-cursor.hover .lens-cursor-ring {
  border-color: var(--cyan);
  transform: scale(1.4);
  opacity: 1;
}

.lens-cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

.cursor-label {
  position: fixed;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
}

@keyframes cursor-spin {
  to { transform: rotate(360deg); }
}

/* Hero workspace orb */
.hero-workspace {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem 0;
}

#workspace-orb {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  background: rgba(10, 6, 4, 0.35);
  border: 1px solid var(--border);
  cursor: none;
}

.workspace-hud {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 8, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 1.25rem;
  backdrop-filter: blur(10px);
  min-width: 200px;
}

.hud-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.workspace-words .ws-word {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
}

.workspace-words .ws-word.idle {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.workspace-words .ws-word.active {
  animation: ws-pop 0.4s ease;
}

@keyframes ws-pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.workspace-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Ocean interactive */
.ocean-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.ocean-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--accent), var(--bg));
  border-radius: 2px;
  outline: none;
}

.ocean-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--cyan-glow);
  cursor: grab;
}

.ocean-depth-marker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  min-width: 140px;
  text-align: right;
}

.ocean-viewport {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.depth-word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cloud-word {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  animation: cloud-float 3s ease-in-out infinite;
}

@keyframes cloud-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.ocean-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -10px;
  width: 6px;
  height: 6px;
  background: rgba(34, 211, 238, 0.4);
  border-radius: 50%;
  animation: bubble-rise 3s ease-in infinite;
}

@keyframes bubble-rise {
  to { transform: translateY(-350px); opacity: 0; }
}

/* Lens controls & heatmap */
.lens-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.lens-transport {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transport-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.transport-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.transport-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.layer-scrubber-wrap {
  flex: 1;
  min-width: 200px;
}

.scrubber-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.layer-scrubber {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.layer-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: grab;
}

.layer-heatmap {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 10px;
  cursor: crosshair;
  background: rgba(0, 0, 0, 0.3);
}

.heatmap-legend {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.lens-processor {
  position: relative;
}

.readout-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin: 0 0.5rem;
  overflow: hidden;
}

.readout-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Playground */
.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.playground-input-panel,
.playground-readout-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}

.playground-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.playground-textarea:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.08);
}

.playground-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chip-btn {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.playground-readout {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 160px;
}

.pg-word {
  display: grid;
  grid-template-columns: 28px 80px 1fr 40px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  animation: readout-in 0.3s ease forwards;
  opacity: 0;
}

.pg-rank {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.pg-text {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--cyan);
}

.pg-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.pg-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.pg-score {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
}

.readout-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-left: auto;
}

.readout-pulse.active {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 0.4s ease;
}

.playground-output {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(34, 211, 238, 0.06);
  border-radius: 8px;
  border-left: 2px solid var(--cyan);
}

.output-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.output-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

.output-text.flash {
  animation: ws-pop 0.3s ease;
}

/* Intervention lab */
.intervention-lab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.lab-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lab-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}

.lab-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lab-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .lab-stage {
    grid-template-columns: 1.2fr auto 1fr auto auto;
  }
}

.concept-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.concept-chip {
  padding: 0.5rem 1rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
}

.concept-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.concept-chip.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.lab-prompt {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.workspace-slot {
  position: relative;
  padding: 1.25rem;
  background: rgba(167, 139, 250, 0.08);
  border: 2px dashed rgba(167, 139, 250, 0.4);
  border-radius: 14px;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s;
}

.workspace-slot.drag-over {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  transform: scale(1.05);
}

.workspace-slot.pulse {
  animation: slot-pulse 0.4s ease;
}

@keyframes slot-pulse {
  50% { box-shadow: 0 0 40px var(--accent-glow); }
}

.slot-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.slot-content {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cyan);
}

.slot-glow {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.lab-result-val {
  font-size: 2.5rem !important;
}

.lab-scenarios {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.lab-scenario {
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lab-scenario.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

/* Property interactions */
.demo-swap-btn {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-swap-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.prop-result {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
}

.prop-swap-demo {
  width: 100%;
}

.ablation-control {
  margin-bottom: 1rem;
}

.ablation-control label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.ablation-control input {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.ablation-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--danger);
  border-radius: 50%;
  cursor: grab;
}

.ablation-results {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.abil-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.abil-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.abil-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 4px;
  transition: width 0.4s ease, background 0.3s;
}

/* Diff blend */
.diff-blend-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
}

.diff-blend-wrap label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.diff-blend-wrap input {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--text-muted), var(--cyan));
  border-radius: 3px;
}

.diff-blend-wrap input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--amber);
  border-radius: 50%;
  cursor: grab;
}

.diff-column {
  transition: opacity 0.3s, transform 0.3s;
}

/* Safety scrubber */
.safety-scrubber {
  width: 100%;
  margin-bottom: 1rem;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.safety-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--warn);
  border-radius: 50%;
  cursor: grab;
}

.timeline-item {
  transition: opacity 0.3s, transform 0.3s;
}

.timeline-item.future {
  opacity: 0.2;
  transform: translateX(-8px);
}

.timeline-item.active {
  opacity: 1;
}

/* Reflection steps */
.reflection-step {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 0.25s;
}

.reflection-step:hover {
  border-color: var(--border-bright);
}

.reflection-step.active {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.reflection-preview {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.reflection-preview.flash {
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow);
}

.preview-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.reflection-preview p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .discovery-grid,
  .properties-grid,
  .safety-grid,
  .philosophy-links,
  .diff-comparison,
  .reflection-flow,
  .model-toggle,
  .playground-grid {
    grid-template-columns: 1fr;
  }

  .diff-divider {
    flex-direction: row;
    padding: 1rem 0;
  }

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

  .property-card.wide {
    grid-column: 1;
  }

  .lens-demo {
    grid-template-columns: 1fr;
  }

  .lens-prompts {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .lens-processor {
    flex-direction: row;
    height: 60px;
  }

  .layer-stack {
    flex-direction: row;
    height: 100%;
  }

  .layer-bar {
    width: auto;
    flex: 1;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .ca-addr { display: none; }
  .hero-ca-addr { font-size: 0.58rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 60px; height: 1px; }
  .country-answers { grid-template-columns: 1fr; }
  .exp-flow { flex-direction: column; }
}