/* 1Cat Studio Flagship Website — Kinetic Obsidian × Living Glass */
:root {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --bg-elevated: rgba(20, 20, 27, 0.72);
  --surface: rgba(24, 24, 32, 0.68);
  --surface-solid: #13131a;
  --surface-hover: rgba(34, 34, 46, 0.85);
  --fg: #f5f5f9;
  --fg-secondary: #a8a8b8;
  --fg-muted: #707084;
  --accent: #ff5b2e;
  --accent-2: #ff8c42;
  --accent-hover: #ff6e45;
  --accent-text: #ff7a52;
  --accent-soft: rgba(255, 91, 46, 0.14);
  --accent-border: rgba(255, 91, 46, 0.34);
  --accent-glow: rgba(255, 91, 46, 0.42);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.14);
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.13);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.13);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.13);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-card: 0 18px 48px -20px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-stage: 0 40px 120px -28px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.38, 0.64, 1);
}

html[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #ececf2;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-hover: #ffffff;
  --fg: #111116;
  --fg-secondary: #4a4a57;
  --fg-muted: #727280;
  --accent-text: #d9411a;
  --accent-soft: rgba(255, 91, 46, 0.11);
  --accent-border: rgba(255, 91, 46, 0.28);
  --accent-glow: rgba(255, 91, 46, 0.25);
  --success: #16a34a;
  --blue: #0284c7;
  --violet: #7c3aed;
  --amber: #d97706;
  --border: rgba(17, 17, 22, 0.09);
  --border-strong: rgba(17, 17, 22, 0.16);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --shadow-card: 0 16px 40px -20px rgba(17, 17, 22, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-stage: 0 36px 96px -28px rgba(17, 17, 22, 0.24), 0 0 0 1px rgba(17, 17, 22, 0.09);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  transition: background-color 360ms var(--ease), color 360ms var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Scroll Progress Hairline ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  z-index: 100;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ff3b6b);
  box-shadow: 0 0 14px var(--accent-glow);
  pointer-events: none;
}

/* ── Ambient Kinetic Background Canvas & Aurora Orbs ──────── */
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

html[data-theme="light"] #hero-canvas {
  opacity: 0.45;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
  opacity: 0.28;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.aurora-orb.one {
  width: 680px;
  height: 680px;
  top: -260px;
  left: 50%;
  margin-left: -340px;
  background: radial-gradient(circle, rgba(255, 91, 46, 0.65), rgba(255, 140, 66, 0.12) 60%, transparent 75%);
}

.aurora-orb.two {
  width: 520px;
  height: 520px;
  top: 180px;
  right: -180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.aurora-orb.three {
  width: 480px;
  height: 480px;
  bottom: 10%;
  left: -160px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
  animation-delay: -11s;
  animation-duration: 25s;
}

html[data-theme="light"] .aurora-orb { opacity: 0.16; }

@keyframes orbFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(28px, -22px, 0) scale(1.06); }
  100% { transform: translate3d(-24px, 26px, 0) scale(0.96); }
}

.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, #000 10%, transparent 80%);
}

html[data-theme="light"] .grid-veil {
  background-image:
    linear-gradient(to right, rgba(17, 17, 22, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 22, 0.04) 1px, transparent 1px);
}

.page-shell {
  position: relative;
  z-index: 1;
}

/* ── Sticky Floating Glass Header ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0;
  transition: padding 260ms var(--ease);
}

.header-bar {
  height: 58px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border);
  box-shadow: var(--specular), 0 12px 36px -18px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
}

html[data-theme="light"] .header-bar {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--specular), 0 12px 32px -18px rgba(17, 17, 22, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  padding: 3px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 280ms var(--spring);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 9px;
  border-radius: 999px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.7);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 91, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.nav-links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .nav-links a:hover {
  background: rgba(17, 17, 22, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-secondary);
  display: grid;
  place-items: center;
  transition: all 180ms var(--ease);
}

.icon-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .icon-btn {
  background: rgba(17, 17, 22, 0.04);
}

/* ── Buttons with Magnetic & Shimmer Polish ───────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 220ms var(--ease), background-color 180ms var(--ease), box-shadow 220ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
  will-change: transform;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, #ff6438 0%, #ff471a 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px -8px rgba(255, 91, 46, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.34) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 650ms var(--ease);
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px -8px rgba(255, 91, 46, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--specular);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .btn-glass {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--border-strong);
}

html[data-theme="light"] .btn-glass:hover {
  background: #ffffff;
}

.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Hero Section & Kinetic Choreography ──────────────────── */
.hero {
  padding: 58px 0 56px;
  text-align: center;
}

.hero-stagger {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 540ms var(--ease) forwards;
}

.hero-stagger.d1 { animation-delay: 0ms; }
.hero-stagger.d2 { animation-delay: 60ms; }
.hero-stagger.d3 { animation-delay: 110ms; }
.hero-stagger.d4 { animation-delay: 160ms; }
.hero-stagger.d5 { animation-delay: 210ms; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--specular);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  margin-bottom: 24px;
}

.eyebrow-chip {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.hero h1 {
  margin: 0 auto 22px;
  max-width: 980px;
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(120deg, #ff7a45 0%, #ff471a 42%, #ffb347 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerGrad 6s ease-in-out infinite alternate;
}

@keyframes shimmerGrad {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-sub {
  margin: 0 auto 32px;
  max-width: 700px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--fg-secondary);
}

.hero-sub strong {
  color: var(--fg);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-bottom: 42px;
  font-family: var(--font-mono);
}

.hero-meta strong { color: var(--fg-secondary); }

/* ── Spring-Sliding Segmented Tabs ────────────────────────── */
.seg-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--specular);
}

.seg-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.94), rgba(235, 65, 22, 0.94));
  box-shadow: 0 6px 20px -4px rgba(255, 91, 46, 0.55);
  transition: transform 340ms var(--spring), width 340ms var(--spring), opacity 200ms var(--ease);
  pointer-events: none;
  z-index: 0;
}

.seg-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--fg-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 200ms var(--ease);
}

.seg-tab:hover { color: var(--fg); }
.seg-tab.active { color: #ffffff; }

/* ── 3D Perspective Hero Studio Stage ─────────────────────── */
.showcase-wrap {
  max-width: 1120px;
  margin: 0 auto;
  perspective: 1800px;
}

.stage-3d-shell {
  margin-top: 22px;
  transform-style: preserve-3d;
  will-change: transform;
}

.browser-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: #111117;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
}

.browser-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 91, 46, 0.45), rgba(255, 255, 255, 0.12) 40%, rgba(56, 189, 248, 0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

.stage-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 3;
  transition: opacity 260ms var(--ease);
}

.browser-chrome {
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(20, 20, 28, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-lights { display: flex; align-items: center; gap: 7px; }
.traffic-lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.traffic-lights i:nth-child(1) { background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px 14px;
  border-radius: 999px;
}

.live-hud-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.theme-chip {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  transition: all 180ms var(--ease);
}

.theme-chip:hover { background: rgba(255, 255, 255, 0.16); }
.theme-chip[hidden] { display: none; }

.stage-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0d12;
  overflow: hidden;
}

.stage-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 280ms var(--ease), transform 420ms var(--ease);
}

.stage-viewport img.swapping {
  opacity: 0;
  transform: scale(0.985);
}

.stage-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  text-align: left;
  background: rgba(18, 18, 25, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f9;
}

.stage-caption-title { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.stage-caption-desc { font-size: 13px; color: rgba(255, 255, 255, 0.64); }

.stage-caption-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ff9270;
  background: rgba(255, 91, 46, 0.15);
  border: 1px solid rgba(255, 91, 46, 0.34);
}

/* ── Animated Metrics Strip ───────────────────────────────── */
.metrics-section { padding: 36px 0 24px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(18px);
  box-shadow: var(--specular), var(--shadow-card);
  overflow: hidden;
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.metric-value em { font-style: normal; color: var(--accent); }
.metric-label { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.metric-note { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; }

/* ── Section Common ────────────────────────────────────────── */
.section { padding: 84px 0; }

.section-header {
  max-width: 840px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.section-header p {
  margin: 0;
  font-size: 16.5px;
  color: var(--fg-secondary);
}

/* ── LIVE Interactive Speed Lab & Agent Demo Split ────────── */
.live-lab-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.lab-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  box-shadow: var(--specular), var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.lab-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lab-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-secondary);
}

.engine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.engine-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  transition: all 200ms var(--ease);
}

html[data-theme="light"] .engine-pill { background: rgba(17, 17, 22, 0.04); }

.engine-pill:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}

.engine-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(255, 91, 46, 0.6);
}

.speed-stage {
  border-radius: var(--radius-md);
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px;
  color: #f3f3f8;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.speed-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.speed-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
}

.speed-stat span {
  display: block;
  font-size: 11px;
  color: #8b8b9e;
  margin-bottom: 3px;
}

.speed-stat strong {
  font-family: var(--font-mono);
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.speed-stat strong.hot { color: #ff7a52; }
.speed-stat strong.ok { color: #4ade80; }

.token-stream-box {
  min-height: 142px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 15px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.72;
  color: #e4e4ee;
  position: relative;
  white-space: pre-wrap;
}

.tok-chip {
  display: inline;
  border-radius: 4px;
  transition: background-color 420ms var(--ease);
}

.tok-chip.burst {
  background: rgba(255, 91, 46, 0.28);
  color: #ffd5c7;
  padding: 0 2px;
}

.tok-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  border-radius: 2px;
  animation: blinkCursor 0.9s step-end infinite;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

.gpu-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gpu-mini {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9e9eb3;
}

.gpu-mini-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gpu-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gpu-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5b2e, #ff9d42);
  width: 68%;
  transition: width 380ms var(--ease);
}

/* ── Live Interactive DeepSeek Harness Agent Simulator ────── */
.agent-sim-box {
  border-radius: var(--radius-md);
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #f3f3f8;
}

.agent-sim-header {
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #a5a5ba;
}

.agent-sim-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 215px;
}

.sim-step {
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 12px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: simStepIn 360ms var(--ease) forwards;
}

@keyframes simStepIn {
  to { opacity: 1; transform: translateY(0); }
}

.sim-step-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sim-step-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #dcdce8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sim-badge.think { background: rgba(255, 91, 46, 0.16); color: #ff8c69; }
.sim-badge.tool  { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.sim-badge.done  { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.sim-result {
  font-size: 13px;
  color: #cfd0de;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.22);
  opacity: 0;
  transform: translateY(8px);
  animation: simStepIn 400ms var(--ease) forwards;
}

.agent-sim-hud {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9e9eb4;
}

.agent-sim-hud strong { color: #ffffff; }

/* ── Spotlight Asymmetric Bento Grid ──────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  padding: 28px;
  box-shadow: var(--specular), var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}

.bento-card.wide { grid-column: span 7; }
.bento-card.med  { grid-column: span 5; }
.bento-card.half { grid-column: span 6; }

/* Cursor-tracking spotlight glow */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(255, 91, 46, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 280ms var(--ease);
  pointer-events: none;
}

.bento-card:hover::before { opacity: 1; }

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

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}

.bento-icon.blue   { background: var(--blue-soft);   color: var(--blue);   border-color: rgba(56, 189, 248, 0.28); }
.bento-icon.green  { background: var(--success-soft); color: var(--success); border-color: rgba(34, 197, 94, 0.28); }
.bento-icon.violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(167, 139, 250, 0.28); }
.bento-icon.amber  { background: var(--amber-soft);  color: var(--amber);  border-color: rgba(251, 191, 36, 0.28); }
.bento-icon svg { width: 21px; height: 21px; }

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.bento-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--fg-secondary);
  line-height: 1.65;
}

.bento-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255, 91, 46, 0.12);
  color: var(--accent-text);
  padding: 1px 6px;
  border-radius: 5px;
}

/* Micro animated graphic inside Bento cards */
.bento-visual {
  margin-top: auto;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(8, 8, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  overflow: hidden;
}

html[data-theme="light"] .bento-visual {
  background: rgba(17, 17, 24, 0.94);
  color: #f5f5f9;
}

.sparkline-svg {
  width: 100%;
  height: 54px;
  display: block;
}

.sparkline-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
  animation: sparkPulse 5s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%   { stroke-dashoffset: 420; opacity: 0.6; }
  45%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -420; opacity: 0.6; }
}

.flow-svg .flow-dash {
  stroke-dasharray: 8 8;
  animation: dashFlow 1.4s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -32; }
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--fg-secondary);
  border: 1px solid var(--border);
}

html[data-theme="light"] .tag {
  background: rgba(17, 17, 22, 0.045);
}

.tag.accent { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-border); }
.tag.green  { background: var(--success-soft); color: var(--success); border-color: rgba(34, 197, 94, 0.28); }
.tag.blue   { background: var(--blue-soft); color: var(--blue); border-color: rgba(56, 189, 248, 0.28); }
.tag.violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(167, 139, 250, 0.28); }

/* ── Infinite Kinetic Model Marquee ───────────────────────── */
.marquee-band {
  position: relative;
  margin: 0 0 28px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
  padding: 6px 0;
}

.marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 44s;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--specular);
}

.marquee-chip small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

/* ── Verified Model Explorer ──────────────────────────────── */
.models-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--specular), var(--shadow-card);
}

.models-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.family-pills { display: flex; flex-wrap: wrap; gap: 7px; }

.family-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 180ms var(--ease);
}

html[data-theme="light"] .family-pill { background: rgba(17, 17, 22, 0.04); }

.family-pill:hover { border-color: var(--border-strong); color: var(--fg); }

.family-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px -6px rgba(255, 91, 46, 0.55);
}

.model-search { position: relative; min-width: 240px; }

.model-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 13.5px;
  outline: none;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

html[data-theme="light"] .model-search input { background: rgba(17, 17, 22, 0.04); }

.model-search input:focus {
  border-color: var(--accent);
  background: var(--surface-solid);
}

.model-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--fg-muted);
  pointer-events: none;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.model-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.028);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-theme="light"] .model-item { background: #fafafd; }

.model-item:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--accent-border);
}

.model-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.model-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.model-family-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
html[data-theme="light"] .model-family-tag { background: rgba(17, 17, 22, 0.06); }

.model-repo {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }

.models-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}

/* ── Download & Terminal Hub ──────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: stretch;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  backdrop-filter: blur(20px);
  box-shadow: var(--specular), var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pkg-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pkg-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pkg-title h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pkg-title p { margin: 2px 0 0; font-size: 12.5px; color: var(--fg-muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; }

.pkg-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 22px; }
.spec-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
}
html[data-theme="light"] .spec-box { background: var(--bg); }
.spec-box span { display: block; font-size: 11.5px; color: var(--fg-muted); margin-bottom: 2px; }
.spec-box strong { font-size: 14px; font-weight: 700; font-family: var(--font-mono); }

.pkg-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pkg-actions .btn-lg { width: 100%; }

.mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.mirror-row a { color: var(--accent-text); font-weight: 600; }
.mirror-row a:hover { text-decoration: underline; }

.checksum-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
html[data-theme="light"] .checksum-box { background: var(--bg); }
.checksum-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--fg-secondary); margin-bottom: 6px; }
.checksum-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted); word-break: break-all; line-height: 1.5; }

.copy-mini {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 160ms var(--ease);
}
.copy-mini:hover { border-color: var(--accent); color: var(--accent-text); }

/* ── Obsidian Terminal Card ────────────────────────────────── */
.terminal-card {
  background: #0c0c12;
  color: #f4f4f8;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px -22px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-top {
  padding: 14px 18px;
  background: #14141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.term-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.term-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 160ms var(--ease);
}

.term-tab:hover { color: #ffffff; }
.term-tab.active { background: rgba(255, 91, 46, 0.2); color: #ff9270; }

.term-copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.term-copy-btn:hover { background: rgba(255, 255, 255, 0.15); }

.terminal-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.78;
  overflow-x: auto;
  flex: 1;
}

.terminal-body pre { margin: 0; white-space: pre-wrap; word-break: break-all; }
.terminal-body .comment { color: #7e7e94; }
.terminal-body .prompt { color: #ff7a52; user-select: none; }

.terminal-reqs {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.req-item { font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }
.req-item strong { display: block; color: #ffffff; font-size: 13px; margin-bottom: 2px; }

/* ── Changelog & FAQ ───────────────────────────────────────── */
.changelog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--specular), var(--shadow-card);
}

.changelog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.changelog-head h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.changelog-head p { margin: 0; font-size: 14.5px; color: var(--fg-secondary); }
.changelog-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.changelog-group h4 { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.changelog-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--fg-secondary); }

.changelog-runtime {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-secondary);
}
html[data-theme="light"] .changelog-runtime { background: var(--bg); }
.changelog-runtime strong { color: var(--fg); }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--specular), var(--shadow-card);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

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

.faq-item h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.faq-item p { margin: 0; font-size: 14px; color: var(--fg-secondary); line-height: 1.65; }
.faq-item code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255, 91, 46, 0.12);
  color: var(--accent-text);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ── Toast Feedback ────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  opacity: 0;
  z-index: 120;
  background: #16161f;
  color: #ffffff;
  border: 1px solid rgba(255, 91, 46, 0.42);
  box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.7);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: transform 280ms var(--spring), opacity 220ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.55);
  padding: 36px 0 44px;
}

html[data-theme="light"] .site-footer { background: rgba(255, 255, 255, 0.6); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--fg-muted);
}

.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--fg); }

/* ── Scroll Reveal Choreography ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 640ms var(--ease), transform 680ms var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-stagger, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .aurora-orb, .marquee-track, .sparkline-path, .flow-dash, .pulse-dot { animation: none !important; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .live-lab-grid, .download-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.wide, .bento-card.med, .bento-card.half { grid-column: span 6; }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .version-pill { display: none; }
  .header-actions .btn-glass { display: none; }
  .header-bar { height: 52px; padding: 0 10px 0 12px; }
  .hero { padding: 34px 0 36px; }
  .hero-eyebrow { border-radius: 16px; font-size: 12px; flex-wrap: wrap; justify-content: center; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .hero-cta-row .btn { width: 100%; }
  .seg-tabs { border-radius: 18px; width: 100%; }
  .seg-indicator { display: none; }
  .seg-tab.active { background: var(--accent); color: #ffffff; }
  .browser-url, .live-hud-strip { display: none; }
  .metrics-grid, .models-grid, .faq-grid, .terminal-reqs, .gpu-bars, .speed-stats-row { grid-template-columns: 1fr; }
  .bento-card, .bento-card.wide, .bento-card.med, .bento-card.half { grid-column: span 12; }
  .stage-caption-bar { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
  .lab-card, .models-panel, .download-card, .changelog-card { padding: 20px; }
  .model-search { width: 100%; }
}
