/* ============================================================
   TURINGO — GitHub Pages Showcase
   Design system: dark flamingo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:         #0d0d0d;
  --surface:    #131318;
  --surface-2:  #1a1a24;
  --border:     #2a2a3a;
  --pink:       #FF5CA8;
  --cyan:       #4da6ff;
  --yellow:     #e6a619;
  --green:      #26d973;
  --purple:     #a640ff;
  --orange:     #ff591a;
  --text:       #e8e8f0;
  --text-muted: #6b6b88;
  --radius:     12px;
  --radius-lg:  20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink) 0%, #ff8fd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ============================================================
   NAV
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--pink) 0%, #ff8fd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 13px !important;
  transition: border-color 0.2s, background 0.2s !important;
  text-decoration: none;
}
.nav-github:hover {
  border-color: var(--pink) !important;
  background: rgba(255, 92, 168, 0.08) !important;
}

#lang-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
#lang-toggle:hover {
  border-color: var(--pink);
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,168,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-muted);
  margin-bottom: 40px;
  font-style: italic;
}

.hero-tagline em {
  color: var(--pink);
  font-style: normal;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--pink);
  color: #0d0d0d;
}
.btn-primary:hover {
  background: #ff7fbf;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,92,168,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--pink);
  background: rgba(255,92,168,0.06);
  transform: translateY(-2px);
}

.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   TURINGO CANVAS WIDGET
   ============================================================ */

.turingo-canvas {
  display: block;
  /* Canvas has transparent pixels outside the rounded body drawn by JS.
     The border-radius here clips the browser's default canvas background
     so there is no white flash before the first rAF frame. */
  border-radius: 22px;
}

.hero-widget-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

/* ============================================================
   MOOD SYSTEM SECTION
   ============================================================ */

#mood {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.mood-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mood-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
}

.mood-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mood-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mood-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mood-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PAD bars */
.mood-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.mood-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  width: 72px;
  flex-shrink: 0;
  text-align: right;
}

.mood-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.mood-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.mood-bar-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* Plutchik pills */
.mood-emotions-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mood-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--pill-color, #444);
  color: var(--pill-color, #aaa);
}

/* Trust bar */
.mood-trust-bar {
  margin-top: 4px;
}

.mood-trust-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.mood-trust-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--green);
}

.mood-trust-sessions {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Circadian */
.mood-circadian {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  flex-shrink: 0;
}

.mood-circ-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mood-circ-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  width: 36px;
  flex-shrink: 0;
}

.mood-circ-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.mood-circ-bar > div {
  height: 100%;
  border-radius: 3px;
}

.mood-circ-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .mood-grid {
    grid-template-columns: 1fr;
  }
  .mood-card--wide {
    flex-direction: column;
  }
  .mood-circadian {
    min-width: unset;
    width: 100%;
  }
}

/* ============================================================
   EMOTIONS DEMO SECTION
   ============================================================ */

#emotions {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.emotions-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 136px));
  justify-content: center;
  gap: 40px 16px;
  margin-top: 48px;
}

.emotion-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 0 8px;
}

.emotion-cell .turingo-canvas {
  transition: transform 0.2s;
}

.emotion-cell .turingo-canvas:hover {
  transform: scale(1.08);
}

.emotion-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 900px) {
  .emotions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .emotions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 4px;
    padding: 0 8px;
  }
  .emotion-cell {
    padding: 0 2px;
  }
  .emotion-cell .turingo-canvas {
    width: 88px !important;
    height: 57px !important;
  }
}

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(255, 92, 168, 0.1);
  border: 1px solid rgba(255, 92, 168, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   WHAT IS IT
   ============================================================ */

#about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

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

.quote-block {
  border-left: 3px solid var(--pink);
  padding: 16px 20px;
  background: rgba(255,92,168,0.05);
  border-radius: 0 8px 8px 0;
  margin-top: 32px;
  font-style: italic;
  color: var(--text);
  font-size: 15px;
}

/* Menu bar mockup */
.menubar-mockup {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.menubar-top {
  height: 28px;
  background: #1a1a24;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.menubar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.menubar-dot.red { background: #ff5f56; }
.menubar-dot.yellow { background: #ffbd2e; }
.menubar-dot.green { background: #27c93f; }

.menubar-notch {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menubar-notch-pill {
  width: 100px;
  height: 18px;
  background: #0d0d0d;
  border-radius: 0 0 10px 10px;
  margin-top: -1px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.menubar-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.menubar-widget-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.widget-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.menubar-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS — PIPELINE
   ============================================================ */

#pipeline {
  background: var(--bg);
}

.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 40px 0;
}

.pipeline-node {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
}

.node-icon {
  width: 56px;
  height: 56px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s;
}

.node-icon:hover {
  border-color: var(--pink);
}

.node-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.node-desc {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 100px;
  line-height: 1.4;
}

.pipeline-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--pink));
  position: relative;
  overflow: hidden;
}

.pipeline-arrow::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,92,168,0.8), transparent);
  animation: data-flow 2s linear infinite;
}

.pipeline-arrow .arrow-head {
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--pink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

@keyframes data-flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */

#features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255,92,168,0.4);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TECH STACK
   ============================================================ */

#stack {
  background: var(--bg);
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.stack-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stack-table-header {
  padding: 16px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.stack-row:last-child { border-bottom: none; }

.stack-key { color: var(--text-muted); }
.stack-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
}

.ai-models {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-models-header {
  padding: 16px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.model-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.model-cell {
  padding: 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.model-cell:last-child { border-right: none; }

.model-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pink);
  margin-bottom: 6px;
}

.model-role {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

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

/* ============================================================
   QUICK START
   ============================================================ */

#quickstart {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.code-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s;
}

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

.copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
}

pre {
  padding: 20px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.c-comment { color: var(--text-muted); }
.c-keyword { color: var(--pink); }
.c-string { color: var(--green); }
.c-cmd { color: var(--cyan); }
.c-flag { color: var(--yellow); }
.c-path { color: #ff9f6a; }

/* ============================================================
   FOOTER
   ============================================================ */

/* Soon badge on feature cards */
.soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(166,64,255,0.15);
  border: 1px solid rgba(166,64,255,0.4);
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 20px;
}

/* CTA section */
#cta {
  padding: 80px 0;
  text-align: center;
}

.cta-block {
  max-width: 520px;
  margin: 0 auto;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cta-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.cta-input:focus {
  border-color: var(--pink);
}

.cta-note {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-etymology {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-grid,
  .stack-grid,
  .quickstart-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pipeline-arrow {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--border), var(--pink));
    margin-left: 27px;
  }

  .pipeline-arrow::after {
    background: linear-gradient(180deg, transparent, rgba(255,92,168,0.8), transparent);
    animation: data-flow-v 2s linear infinite;
    width: 100%;
    left: 0;
    top: -100%;
    height: 100%;
  }

  .pipeline-arrow .arrow-head {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--pink);
    border-bottom: none;
  }

  @keyframes data-flow-v {
    0% { top: -100%; }
    100% { top: 100%; }
  }

  .pipeline-node {
    flex-direction: row;
    text-align: left;
    min-width: unset;
    width: 100%;
    gap: 16px;
  }

  .node-desc { max-width: 200px; }

  .model-row { grid-template-columns: 1fr; }
  .model-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .model-cell:last-child { border-bottom: none; }

  .nav-links { display: none; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 48px; }
  .turingo-canvas[data-hero="true"] {
    width: 260px !important;
    height: 169px !important;
  }
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */

#demo { background: var(--bg); }

.video-player-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.video-lang-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.lang-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.lang-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,92,168,0.08);
}

.video-container video {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.7) 100%);
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 20px;
}

.video-overlay.hidden { opacity: 0; pointer-events: none; }

.play-btn-big {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(255,92,168,0.5));
  transition: transform 0.2s;
}

.video-overlay:hover .play-btn-big { transform: scale(1.1); }

.video-overlay-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.video-overlay-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
