/* ==========================================================================
   Open Coding Partner — SOTA Marketing Stylesheet
   Modern Glassmorphic Dark/Light Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Tokens & Themes --- */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090e;
  --bg-subtle: #0d111a;
  --surface: rgba(17, 24, 39, 0.72);
  --surface-hover: rgba(26, 36, 56, 0.85);
  --surface-solid: #111827;
  --surface-elevated: rgba(22, 31, 50, 0.9);

  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-glow: rgba(0, 229, 255, 0.25);

  --accent: #00e5ff;
  --accent-secondary: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --accent-glow: rgba(0, 229, 255, 0.15);
  --violet-glow: rgba(139, 92, 246, 0.15);

  --header-bg: rgba(7, 9, 14, 0.78);
  --code-bg: #090c13;
  --code-border: rgba(255, 255, 255, 0.08);

  --diff-add-bg: rgba(16, 185, 129, 0.12);
  --diff-add-border: rgba(16, 185, 129, 0.28);
  --diff-add-text: #34d399;
  --diff-del-bg: rgba(244, 63, 94, 0.12);
  --diff-del-border: rgba(244, 63, 94, 0.28);
  --diff-del-text: #fb7185;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px -10px rgba(0, 229, 255, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-hover: rgba(255, 255, 255, 0.98);
  --surface-solid: #ffffff;
  --surface-elevated: #ffffff;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --line-glow: rgba(0, 113, 227, 0.2);

  --accent: #0284c7;
  --accent-secondary: #7c3aed;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --accent-glow: rgba(2, 132, 199, 0.12);
  --violet-glow: rgba(124, 58, 237, 0.1);

  --header-bg: rgba(248, 250, 252, 0.82);
  --code-bg: #0f172a;
  --code-border: rgba(0, 0, 0, 0.1);

  --diff-add-bg: rgba(16, 185, 129, 0.1);
  --diff-add-border: rgba(16, 185, 129, 0.3);
  --diff-add-text: #059669;
  --diff-del-bg: rgba(244, 63, 94, 0.1);
  --diff-del-border: rgba(244, 63, 94, 0.3);
  --diff-del-text: #e11d48;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 35px -8px rgba(2, 132, 199, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container wrapper with wide, balanced layout */
.wrap {
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(880px, calc(100% - 48px));
  margin-inline: auto;
}

/* Accessible utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 20px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}

.logo-badge svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.logo-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--line-glow);
  white-space: nowrap;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
  padding: 9px 18px;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}
.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
}

.hero-glow-sphere {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 90vw);
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, var(--violet-glow) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.05); opacity: 0.95; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.hero-badge-pill:hover {
  border-color: var(--accent);
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--text) 20%, var(--accent) 70%, var(--accent-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px;
  font-weight: 400;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #00b4d8 100%);
  color: #05070e;
  box-shadow: 0 4px 20px var(--accent-glow);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

/* --- Quickstart Terminal Widget --- */
.quickstart-box {
  max-width: 680px;
  margin: 0 auto 56px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}

.quickstart-tabs {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--code-border);
  padding: 6px 12px;
  gap: 6px;
}

.quickstart-tab {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.quickstart-tab.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
.quickstart-tab:hover:not(.active) {
  color: var(--text-secondary);
}

.quickstart-cmd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.cmd-line {
  font-size: 0.9375rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow-x: auto;
  min-width: 0;
  flex: 1;
}
.cmd-prompt {
  color: var(--text-muted);
  user-select: none;
  margin-right: 8px;
}

.copy-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.copy-cmd-btn.copied {
  background: var(--accent-emerald);
  color: #fff;
  border-color: transparent;
}

/* --- Hero Studio Frame (Interactive Mockup) --- */
.hero-studio-container {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 1px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-studio-window {
  background: var(--bg-subtle);
  border-radius: calc(var(--radius-lg) - 1px);
  overflow: hidden;
}

.hero-chat{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:340px;background:var(--surface-solid);text-align:left;min-width:0}
.hero-studio-window.simple-ui .hero-chat{grid-template-columns:minmax(0,1fr)}
.hero-studio-window.simple-ui .hero-side,.hero-studio-window.simple-ui .dev-only-pill{display:none}
.hero-studio-window.simple-ui .hero-thread{max-width:860px;margin:0 auto;width:100%;min-width:0}
.hero-side{padding:16px 14px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px;font-size:.85rem;min-width:0}
.hero-bot{display:flex;align-items:center;gap:8px;color:var(--muted)}
.hero-bot.on{color:var(--text);font-weight:600}
.hero-bot i{width:8px;height:8px;border-radius:50%;background:#34c759;display:inline-block;box-shadow:0 0 8px rgba(52,199,89,0.5)}
.hero-dag-mini{margin-top:auto;padding:10px;border-radius:8px;background:var(--bg);border:1px solid var(--line);font-size:.72rem}
.hero-dag-title{font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.hero-dag-flow{font-family:'JetBrains Mono',monospace;color:var(--text-secondary);line-height:1.4;overflow-wrap:anywhere}
.hero-thread{padding:20px 22px 18px;display:flex;flex-direction:column;gap:12px;min-width:0}
.hero-user,.hero-reply,.hero-step,.hero-card{margin:0;border-radius:10px;padding:12px 14px;font-size:.92rem;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.hero-user{align-self:end;max-width:86%;background:var(--bg-subtle);border:1px solid var(--line)}
.hero-step{color:var(--muted);background:transparent;padding-left:0}
.hero-step-fold{margin:2px 0;min-width:0}
.hero-step-fold summary{list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--accent);font-weight:600;font-size:.82rem;padding:5px 14px;border:1px solid var(--line-glow);background:rgba(0,229,255,0.06);border-radius:980px;max-width:100%;white-space:normal}
.hero-step-fold summary::-webkit-details-marker{display:none}
.hero-step-fold summary:hover{color:var(--text);border-color:var(--accent)}
.hero-step-list{margin:8px 0 0 12px;padding:8px 0 4px 14px;border-left:2px solid var(--accent);font-family:'JetBrains Mono',monospace;font-size:.77rem;color:var(--text-secondary);display:grid;gap:6px;min-width:0}
.hero-step-list span{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.hero-step-list strong{color:var(--accent)}
.hero-card{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line-strong);background:rgba(16,185,129,0.06);flex-wrap:wrap}
.hero-card-btns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hero-inline-diff{margin:0;padding:12px 14px;border-radius:10px;background:var(--code-bg);border:1px solid var(--code-border);font-family:'JetBrains Mono',monospace;font-size:.76rem;line-height:1.5;color:#34d399;overflow-x:auto}

/* Scenario Switcher & Swarm Pipeline in Hero */
.scenario-switcher-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.scenario-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 4px;
}

.scenario-tab {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.scenario-tab.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
}

.swarm-pipeline-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.75rem;
}

.swarm-bot-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.chip-ada { background: rgba(139, 92, 246, 0.16); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.35); }
.chip-synth { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.chip-linus { background: rgba(0, 229, 255, 0.14); color: var(--accent); border: 1px solid rgba(0, 229, 255, 0.35); }
.chip-atlas { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.chip-grace { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.swarm-arrow { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }

.turn-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.turn-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  line-height: 1.55;
}

.turn-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.turn-steps li strong {
  font-size: 1.02rem;
  color: var(--text);
}

.turn-steps li span:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.studio-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.window-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

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

.active-bot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.token-hud-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

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

.titlebar-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
}

.hero-video-wrapper {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 640px;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Trust / Proof Metrics Strip --- */
.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 0;
  margin-bottom: 96px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

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

.proof-item h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.proof-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Feature Bento Grid --- */
.bento-section {
  padding: 48px 0 110px;
}

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

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

  .col-span-8 { grid-column: span 8; }
  .col-span-6 { grid-column: span 6; }
  .col-span-4 { grid-column: span 4; }
  .col-span-12 { grid-column: span 12; }
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), 0 0 30px var(--accent-glow);
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-hover);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.bento-icon-box svg {
  width: 24px;
  height: 24px;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Interactive Diff Mockup in Bento */
.diff-canvas-mock {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  margin-top: auto;
}

.diff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.diff-file-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.diff-actions {
  display: flex;
  gap: 6px;
}

.diff-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.diff-btn-revert {
  background: rgba(244, 63, 94, 0.15);
  color: var(--diff-del-text);
  border-color: var(--diff-del-border);
}
.diff-btn-revert:hover {
  background: rgba(244, 63, 94, 0.25);
}

.diff-btn-approve {
  background: rgba(16, 185, 129, 0.15);
  color: var(--diff-add-text);
  border-color: var(--diff-add-border);
}
.diff-btn-approve:hover {
  background: rgba(16, 185, 129, 0.25);
}

.diff-body {
  padding: 10px 0;
  line-height: 1.7;
}

.diff-line {
  padding: 0 16px;
  display: flex;
  gap: 12px;
}
.diff-line.add {
  background: var(--diff-add-bg);
  color: var(--diff-add-text);
}
.diff-line.del {
  background: var(--diff-del-bg);
  color: var(--diff-del-text);
}
.diff-line.ctx {
  color: var(--text-muted);
}
.diff-num {
  width: 24px;
  user-select: none;
  opacity: 0.5;
}

/* Graph Visualization in Bento */
.graph-visual {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
}

.graph-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.graph-nodes-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.graph-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.graph-node:hover {
  border-color: var(--accent);
}
.graph-badge-safe {
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

/* Flamegraph Visual in Bento */
.flamegraph-mock {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.flame-bar {
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}
.flame-root { background: rgba(0, 229, 255, 0.18); color: var(--accent); }
.flame-sub1 { background: rgba(139, 92, 246, 0.18); color: #c084fc; width: 85%; }
.flame-sub2 { background: rgba(16, 185, 129, 0.18); color: var(--accent-emerald); width: 65%; }

/* --- Studio in Motion (Video Showcase) --- */
.showcase-section {
  padding: 48px 0 110px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease-spring);
}
.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.showcase-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.showcase-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.showcase-card:hover .showcase-media video {
  transform: scale(1.03);
}

.showcase-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s var(--ease-spring);
}
.showcase-media:hover .showcase-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent);
  color: #000;
}
.showcase-play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.showcase-content {
  padding: 24px;
}

.showcase-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Interactive Omnibar Simulation Section --- */
.omnibar-section {
  padding: 60px 0 110px;
}

.omnibar-sim-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 50px var(--accent-glow);
  overflow: hidden;
}

.omnibar-input-bar {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--code-bg);
}

.omnibar-input-bar svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.omnibar-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--text);
  outline: none;
}
.omnibar-input::placeholder {
  color: var(--text-muted);
}

.omnibar-shortcut {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  white-space: nowrap;
}

.omnibar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--line);
}

.cmd-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.cmd-chip:hover, .cmd-chip.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.omnibar-result-box {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  min-height: 140px;
  white-space: pre-wrap;
}

/* --- Ecosystem / Run It Your Way --- */
.ecosystem-section {
  padding: 48px 0 110px;
  border-top: 1px solid var(--line);
}

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

@media (min-width: 768px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eco-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.eco-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  border: 1px solid var(--line-glow);
  margin-bottom: 16px;
}

.eco-title {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.eco-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Price Philosophy Strip --- */
.price-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  border-block: 1px solid var(--line);
  text-align: center;
}

.price-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.price-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.price-body {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- FAQ Section --- */
.faq-section {
  padding: 96px 0 110px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-card:hover {
  border-color: var(--line-strong);
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.faq-card[open] summary svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 28px 24px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* --- Comprehensive Install Section --- */
.install-section {
  padding: 96px 0 120px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}

.install-terminal-card {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
}

.install-code-pre {
  padding: 24px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #f1f5f9;
}

.install-code-pre .comment {
  color: var(--text-muted);
}
.install-code-pre .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 0.8125rem;
}

/* Lightbox Modal */
.video-lightbox {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 0, 0, 0.9);
  max-width: 1100px;
  width: 95vw;
  margin: auto;
  overflow: hidden;
}

.video-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lightbox-close-btn:hover {
  background: var(--accent-rose);
}

.video-lightbox video {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Unify Into One Section --- */
.unify-section {
  padding: 64px 0 100px;
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card.card-before {
  border-color: rgba(244, 63, 94, 0.2);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.04) 0%, rgba(17, 24, 39, 0.6) 100%);
}

.comparison-card.card-after {
  border-color: rgba(0, 229, 255, 0.3);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, rgba(17, 24, 39, 0.8) 100%);
  box-shadow: 0 0 40px -10px var(--accent-glow);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.comparison-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.card-before .comparison-badge {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.card-after .comparison-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.comparison-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-before .comparison-item-icon {
  color: var(--accent-rose);
}

.card-after .comparison-item-icon {
  color: var(--accent-emerald);
}

.card-after .comparison-item strong {
  color: var(--text);
}

/* Teammate Roster Showcase Strip */
.roster-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  margin: 32px auto 24px;
}

.roster-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-spring);
}
.roster-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.roster-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.avatar-linus { background: rgba(0, 229, 255, 0.2); color: var(--accent); }
.avatar-ada { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.avatar-grace { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.avatar-computer { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
.avatar-custom { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }

.roster-info {
  display: flex;
  flex-direction: column;
}
.roster-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}
.roster-role {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* --- Sovereign India & Pricing Section --- */
.india-cloud-section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at top, rgba(0, 229, 255, 0.06), transparent 65%);
}

.india-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pricing-comparison-wrap {
  margin-top: 28px;
}

.pricing-banner-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  text-align: center;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}

.pricing-tier-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease;
}

.pricing-tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.pricing-tier-card.tier-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, var(--surface) 100%);
}

.tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--line-glow);
  margin-bottom: 12px;
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.tier-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tier-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.tier-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tier-features li::before {
  content: "✓ ";
  color: var(--accent-emerald);
  font-weight: 700;
}

/* --- Dual-Engine Swarm Architecture & Role Explorer --- */
.swarm-arch-section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.07), transparent 65%);
}

.dual-engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.engine-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.engine-research {
  border-top: 3px solid #a855f7;
}

.engine-codebase {
  border-top: 3px solid var(--accent);
}

.engine-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--accent);
}

.engine-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.engine-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.engine-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.engine-list li {
  position: relative;
  padding-left: 20px;
}

.engine-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

.swarm-explorer-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.swarm-explorer-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.swarm-explorer-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.swarm-explorer-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 44ch;
}

.swarm-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.swarm-role-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swarm-role-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.swarm-role-tab.active {
  background: var(--accent-glow);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.swarm-role-detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

@media (max-width: 820px) {
  .swarm-role-detail {
    grid-template-columns: 1fr;
  }
}

.swarm-role-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.swarm-role-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.swarm-role-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.swarm-role-handoff {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.swarm-role-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
}

.swarm-tools-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.swarm-tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swarm-tools-chips code {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent);
  font-size: 0.76rem;
}

/* --- Mobile & Tablet Structured Responsive Layout --- */
.dual-engine-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.bento-card,
.comparison-card,
.engine-card,
.eco-card,
.showcase-card,
.pricing-tier-card,
.turn-steps li {
  min-width: 0;
}

@media (max-width: 768px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 28px);
    max-width: 100%;
  }

  /* 1. Compact, zero-overflow mobile header */
  .header-row {
    height: 60px;
    gap: 8px;
  }

  .logo-group {
    gap: 8px;
    min-width: 0;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-title {
    font-size: 0.96rem;
  }

  .logo-tag,
  #openStudioAuthBtn {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .header-actions .btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  /* 2. Structured Mobile Hero */
  .hero {
    padding: 28px 0 44px;
  }

  .hero-badge-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.6vw, 2.35rem);
    line-height: 1.14;
    margin-bottom: 14px;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 22px;
    padding: 0 2px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  /* 3. Structured 2x3 Specialist Bot Grid on Mobile */
  .roster-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 22px 0;
  }

  .roster-card {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    justify-content: flex-start;
    text-align: left;
  }

  .roster-info {
    min-width: 0;
  }

  .roster-name,
  .roster-role {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  /* 4. Structured Mobile Hero Studio Simulator */
  .scenario-switcher-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    text-align: left;
  }

  .scenario-bar-label {
    margin-bottom: 2px;
  }

  .scenario-tab {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  .studio-titlebar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .studio-titlebar .window-dots {
    display: none;
  }

  .titlebar-center {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .active-bot-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
    max-width: 100%;
    white-space: normal;
  }

  .titlebar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-chat,
  .hero-studio-window .hero-chat {
    grid-template-columns: 1fr !important;
  }

  .hero-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .hero-thread {
    padding: 14px 12px;
  }

  .hero-user {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .swarm-pipeline-strip {
    padding: 8px;
    gap: 5px;
  }

  .swarm-bot-chip {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .hero-step-fold summary {
    font-size: 0.76rem;
    padding: 6px 10px;
    border-radius: 10px;
  }

  .hero-step-list {
    margin-left: 4px;
    padding-left: 10px;
    font-size: 0.72rem;
  }

  .hero-reply {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .hero-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-card-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-card-btns .diff-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 8px 10px;
  }

  /* 5. Quickstart & Install Code Blocks on Mobile */
  .quickstart-tabs {
    flex-wrap: wrap;
  }

  .quickstart-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .quickstart-cmd-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }

  .cmd-line {
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .quickstart-cmd-bar .copy-cmd-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }

  .install-code-pre {
    padding: 16px;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* 6. Section Spacings, Swarm Explorer & Grids on Mobile */
  .swarm-arch-section,
  .unify-section,
  .bento-section,
  .showcase-section,
  .omnibar-section,
  .ecosystem-section,
  .india-cloud-section,
  .faq-section,
  .install-section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .engine-card,
  .swarm-explorer-card,
  .comparison-card,
  .bento-card,
  .pricing-tier-card {
    padding: 20px 16px;
  }

  .swarm-role-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .swarm-role-tab {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    justify-content: flex-start;
  }

  .swarm-role-tab span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .swarm-role-detail {
    padding: 16px;
    gap: 16px;
  }

  .diff-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .diff-line {
    font-size: 0.72rem;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .turn-steps,
  .ecosystem-grid,
  .india-pillars-grid,
  .pricing-tiers-grid,
  .showcase-grid {
    grid-template-columns: 1fr !important;
  }

  .faq-card summary {
    padding: 16px 18px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .faq-content {
    padding: 14px 18px 18px;
  }
}

/* --- Scroll Animation Classes --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}

[data-reveal].is-visible,
.hero [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

