/* --------------------------------------------------------
   zigttp.website - product page
   -------------------------------------------------------- */

/* --- Reset & base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:           #161619;
  --bg-elevated:  #242428;
  --bg-card:      #2a2a2f;
  --bg-code:      #1e1e22;
  --border:       #27272a;
  --border-light: #3f3f46;
  --text:         #fafafa;
  --text-muted:   #a1a1aa;
  --text-dim:     #71717a;
  --accent:       #f7a41d;
  --accent-dim:   #d48b0f;
  --green:        #4ade80;
  --red:          #f87171;
  --blue:         #60a5fa;
  --teal:         #2DD4BF;
  --font-mono:    "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, monospace;

  /* syntax colors */
  --syn-keyword:  #c084fc;
  --syn-string:   #4ade80;
  --syn-fn:       #60a5fa;
  --syn-number:   #fb923c;
  --syn-tag:      #f87171;
  --syn-attr:     #fbbf24;
  --syn-param:    #a1a1aa;
  --syn-comment:  #52525b;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section-sub strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.logo-zig {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-ttp {
  color: var(--text);
}

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-gh {
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8125rem !important;
}

.nav-gh:hover {
  border-color: var(--text-dim);
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

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

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- Stats --- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- Terminal --- */
.terminal {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  background: var(--bg-code);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 20px 24px;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-body code {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.terminal-sm {
  max-width: none;
}

.t-prompt { color: var(--accent); font-weight: 700; }
.t-string { color: var(--syn-string); }
.t-output { color: var(--text-dim); }
.t-comment { color: var(--syn-comment); }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-light);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(247, 164, 29, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-card code {
  color: var(--accent);
  background: rgba(247, 164, 29, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.8125em;
}

/* --- Code Tabs --- */
.code-tabs {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-code);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  overflow-x: auto;
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text-muted);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tabs-body {
  padding: 24px 28px;
  overflow-x: auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel pre {
  margin: 0;
  line-height: 1.7;
}

.tab-panel code {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Syntax highlighting classes */
.c-keyword { color: var(--syn-keyword); }
.c-string  { color: var(--syn-string); }
.c-fn      { color: var(--syn-fn); }
.c-number  { color: var(--syn-number); }
.c-tag     { color: var(--syn-tag); }
.c-attr    { color: var(--syn-attr); }
.c-param   { color: var(--syn-param); font-style: italic; }
.c-comment { color: var(--syn-comment); }

/* --- Performance / Benchmarks --- */
.perf-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
}

.bench-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
}

.bench-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 16px;
}

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

.bench-bar-wrap {
  height: 28px;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bench-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bench-bar.animated {
  width: var(--pct);
}

.bench-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  white-space: nowrap;
}

.bench-ops {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Cold Start --- */
.cold-start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.cold-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cold-runtime {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cold-time {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cold-slower {
  color: var(--text-dim);
}

.cold-note {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.perf-footnote {
  font-size: 0.8125rem;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.6;
}

/* --- Architecture --- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.arch-card {
  padding: 32px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.arch-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.arch-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 8px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.arch-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Flow */
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.flow-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-arrow {
  width: 24px;
  height: 2px;
  background: var(--border-light);
}

/* --- Modules --- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-import {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(247, 164, 29, 0.08);
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-block;
  align-self: flex-start;
}

.module-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.module-exports {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-code);
  padding: 6px 10px;
  border-radius: 5px;
  line-height: 1.5;
  word-break: break-word;
}

/* --- Get Started --- */
.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.start-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* --- Comparison Table --- */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 600px;
}

.compare-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.compare-table th:first-child {
  width: 180px;
}

.compare-table td {
  padding: 12px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table tbody tr:hover {
  background: rgba(247, 164, 29, 0.04);
}

.compare-label {
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.compare-highlight {
  color: var(--accent);
  font-weight: 600;
}

/* --- Subset --- */
.subset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.subset-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.subset-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
}

.subset-yes {
  background: rgba(74, 222, 128, 0.04);
  border-color: rgba(74, 222, 128, 0.15);
}

.subset-yes h3 {
  color: var(--green);
}

.subset-no {
  background: rgba(248, 113, 113, 0.04);
  border-color: rgba(248, 113, 113, 0.15);
}

.subset-no h3 {
  color: var(--red);
}

.subset-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subset-card li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.subset-yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.subset-no li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

.subset-no code {
  color: var(--text);
  background: rgba(248, 113, 113, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.8125em;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  display: inline-block;
  width: 24px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

details[open] .faq-question::before {
  content: "\2212";
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px 24px;
  font-size: 0.9375rem;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* --- Slide Deck --- */
.deck-page {
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

.deck {
  max-width: 1100px;
  height: calc(100vh - 56px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}

.deck-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.deck-slide {
  display: none;
  flex-direction: column;
  height: 100%;
  position: absolute;
  inset: 0;
}

.deck-slide.active {
  display: flex;
  animation: deckSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes deckSlideIn {
  from { opacity: 0; transform: translateX(calc(var(--slide-dir, 1) * 40px)); }
  to   { opacity: 1; transform: translateX(0); }
}

/* SlideLayout pattern */
.deck-slide-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 4%, 48px) clamp(16px, 4%, 8%) clamp(12px, 3%, 32px);
  overflow-y: auto;
}

.deck-tag {
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.9vw, 11px);
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.deck-slide-title {
  font-size: clamp(22px, 3.2vw, 42px);
  color: var(--text);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.15;
}

.deck-slide-subtitle {
  font-size: clamp(12px, 1.3vw, 16px);
  color: var(--text-muted);
  margin: 8px 0 0;
  font-style: italic;
  max-width: 92%;
}

/* Card */
.deck-card {
  background: var(--bg-card);
  padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* Title slide (0) and Closing slide (9) */
.deck-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.deck-title-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(16px, 4%, 8%);
}

.deck-hero-title {
  font-family: var(--font-mono);
  font-size: clamp(48px, 8vw, 96px);
  color: var(--accent);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.deck-hero-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text);
  margin: 16px 0 0;
  font-weight: 400;
}

.deck-hero-caption {
  font-size: clamp(12px, 1.4vw, 16px);
  color: var(--text-muted);
  margin: 12px 0 0;
  letter-spacing: 0.02em;
}

.deck-stats-bar {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  height: 22%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4%, 8%);
  gap: 5%;
}

.deck-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.5vw, 42px);
  color: var(--accent);
  font-weight: 700;
  display: block;
}

.deck-stat-label {
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* Columns */
.deck-columns {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 24px);
}

.deck-columns > * {
  flex: 1;
}

/* Slide 1: The Problem */
.deck-warning-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.deck-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.deck-warning-icon {
  color: var(--red);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.deck-warning-title {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--accent);
  font-weight: 600;
}

.deck-warning-desc {
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--text-muted);
  flex: 1;
}

/* Slide 2: Pipeline diagram */
.deck-insight-text {
  margin-top: 16px;
}

.deck-insight-highlight {
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}

.deck-insight-desc {
  font-size: clamp(12px, 1.3vw, 16px);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 90%;
}

.deck-pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(24px, 4vh, 48px);
  justify-content: center;
}

.deck-pipeline-group {
  display: flex;
  align-items: center;
}

.deck-pipeline-step {
  width: clamp(70px, 20vw, 180px);
  height: clamp(50px, 10vh, 100px);
  background: var(--bg-elevated);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.deck-pipeline-step span {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 15px);
  color: var(--text);
  text-align: center;
  white-space: pre-line;
  line-height: 1.4;
}

.deck-pipeline-arrow {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 24px);
  color: var(--accent);
  padding: 0 clamp(6px, 1vw, 16px);
}

/* Slide 3: Language Design */
.deck-subset-header {
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.deck-subset-header-removed { color: var(--red); }
.deck-subset-header-kept { color: var(--green); }

.deck-subset-item {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 14px);
  padding: 5px 0;
}

.deck-subset-removed { color: var(--text-dim); }
.deck-subset-kept { color: var(--text); }

.deck-footnote {
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--text-dim);
  font-style: italic;
  margin-top: 16px;
}

.deck-footnote--pushed {
  margin-top: auto;
}

.deck-item-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.deck-item-row--tight {
  gap: 12px;
}

.deck-card--col {
  display: flex;
  flex-direction: column;
}

.deck-card--contract {
  flex: 0 0 45%;
}

.deck-card--mt {
  margin-top: 24px;
}

.deck-card--mt-sm {
  margin-top: clamp(12px, 2vh, 24px);
}

.deck-card-body--flush {
  margin-bottom: 0;
}

.deck-columns--mt {
  margin-top: 24px;
}

.deck-columns--fill {
  flex: 1;
}

/* Slide 4: Verification */
.deck-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.deck-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.deck-check-icon {
  color: var(--green);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.deck-check-title {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--teal);
  font-weight: 600;
}

.deck-check-desc {
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--text-muted);
}

.deck-command-bar {
  margin-top: auto;
  background: var(--bg-card);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.deck-command-input {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--accent);
}

.deck-command-output {
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--green);
}

/* Slide 5: Security */
.deck-security-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 32px);
  margin-top: 20px;
  flex: 1;
}

.deck-contract-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}

.deck-contract-code {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 13px);
  color: var(--text-dim);
  margin: 0;
  line-height: 1.8;
  white-space: pre;
}

.deck-shield-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.deck-shield-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-shield-icon {
  color: var(--teal);
  font-size: 14px;
  flex-shrink: 0;
}

.deck-shield-text {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--text);
}

/* Slide 6: Concurrency */
.deck-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.deck-card-header-icon {
  font-size: 18px;
}

.deck-card-header-title {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--accent);
  font-weight: 600;
}

.deck-card-bold {
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
}

.deck-card-body {
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.deck-card-highlight {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--teal);
  font-weight: 600;
  margin: 0;
}

.deck-card-code {
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--teal);
  font-weight: 600;
}

/* Slide 7: Evolution */
.deck-evo-title {
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.deck-evo-body {
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.deck-cmd-tag {
  margin-top: 16px;
  background: var(--bg-elevated);
  padding: 8px 12px;
  text-align: center;
}

.deck-cmd-tag code {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--teal);
}

/* Slide 8: Composition */
.deck-guard-code {
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--teal);
  display: block;
  margin: 8px 0;
}

.deck-modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
}

.deck-module-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.deck-module-name {
  font-size: clamp(10px, 1.1vw, 13px);
  color: var(--text);
}

.deck-module-desc {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--text-dim);
}

/* Slide 9: Closing */
.deck-closing-title {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.1;
}

.deck-closing-tagline {
  font-size: clamp(16px, 2.2vw, 26px);
  color: var(--text);
  margin: 0 0 clamp(24px, 4vh, 48px);
}

.deck-summary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deck-summary-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 4px 0;
}

.deck-summary-label {
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--accent);
  min-width: 120px;
}

.deck-summary-value {
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--text-muted);
}

/* Navigation */
.deck-nav {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(22, 22, 25, 0.9);
  border-top: 1px solid var(--bg-elevated);
  flex-shrink: 0;
}

.deck-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.deck-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: var(--bg-elevated);
  transition: all 0.3s ease;
  padding: 0;
}

.deck-dot.active {
  width: 24px;
  background: var(--accent);
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.deck-prev,
.deck-next {
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
}

.deck-prev {
  background: none;
  border: 1px solid var(--text-dim);
  color: var(--text-muted);
}

.deck-prev:disabled {
  border-color: var(--bg-elevated);
  color: var(--bg-elevated);
  cursor: default;
}

.deck-next {
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-weight: 600;
}

.deck-next:disabled {
  background: none;
  border: 1px solid var(--bg-elevated);
  color: var(--bg-elevated);
  cursor: default;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .features-grid,
  .arch-grid,
  .subset-grid {
    grid-template-columns: 1fr;
  }

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

  .start-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cold-start-grid {
    grid-template-columns: 1fr;
  }

  .bench-row {
    grid-template-columns: 100px 1fr 80px;
    gap: 8px;
  }

  .bench-label {
    font-size: 0.75rem;
  }


  .arch-flow {
    flex-direction: column;
  }

  .flow-arrow {
    width: 2px;
    height: 16px;
  }

  .terminal-body {
    padding: 16px;
  }

  .terminal-body code,
  .tab-panel code {
    font-size: 0.75rem;
  }

  .tabs-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 16px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .bench-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bench-bar-wrap {
    order: 3;
  }

  .bench-ops {
    text-align: left;
    font-size: 0.75rem;
  }
}

/* Tablet enhancements */
@media (min-width: 481px) {
  .deck-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop enhancements */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
  }

  .nav-burger {
    display: none;
  }

  .deck-columns {
    flex-direction: row;
  }

  .deck-security-layout {
    flex-direction: row;
  }

  .deck-modules-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .deck-command-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 0;
  }

  .deck-warning-title {
    min-width: 180px;
  }

  .deck-check-title {
    min-width: 200px;
  }

  .deck-pipeline {
    flex-wrap: nowrap;
    gap: 0;
  }

  .deck-stats-bar {
    gap: 10%;
  }

  .deck-summary-label {
    min-width: clamp(160px, 22vw, 260px);
  }
}
