:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(37, 99, 235, 0.28);
  --text: #090d16;
  --text-secondary: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #ffffff;
  --code-bg: #f8fafc;
  --notice-bg: #fffbeb;
  --notice-border: #fde68a;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 8px 24px -4px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 18px 42px -10px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 68px -12px rgba(37, 99, 235, 0.15), 0 8px 24px -4px rgba(15, 23, 42, 0.05);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

/* ==========================================================================
   CLEAN ANIMATED LIGHT BACKGROUND
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 55%, #f8fafc 100%);
}

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.6;
  will-change: transform;
}

.aura-1 {
  top: -140px;
  left: 8%;
  width: 540px;
  height: 440px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36) 0%, rgba(37, 99, 235, 0.14) 70%, transparent 100%);
  animation: auraFloat1 16s ease-in-out infinite alternate;
}

.aura-2 {
  top: -100px;
  right: 8%;
  width: 520px;
  height: 440px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.34) 0%, rgba(168, 85, 247, 0.12) 70%, transparent 100%);
  animation: auraFloat2 19s ease-in-out infinite alternate;
}

.aura-3 {
  top: 42%;
  left: 50%;
  width: 640px;
  height: 420px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, rgba(56, 189, 248, 0.12) 70%, transparent 100%);
  animation: auraFloat3 22s ease-in-out infinite alternate;
}

@keyframes auraFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.08); }
}

@keyframes auraFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-60px, 45px, 0) scale(1.07); }
}

@keyframes auraFloat3 {
  0% { transform: translate3d(-50%, 0, 0) scale(0.96); }
  100% { transform: translate3d(-44%, -35px, 0) scale(1.06); }
}

.grid-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 20%, transparent 100%);
}

.beam {
  position: absolute;
  height: 1.5px;
  width: 240px;
  border-radius: 999px;
  opacity: 0.65;
}

.beam-1 {
  top: 168px;
  left: -240px;
  background: linear-gradient(90deg, transparent, #38bdf8, #2563eb, transparent);
  animation: beamPassRight 12s linear infinite;
}

.beam-2 {
  top: 392px;
  right: -240px;
  background: linear-gradient(90deg, transparent, #10b981, #38bdf8, transparent);
  animation: beamPassLeft 15s linear infinite 3s;
}

@keyframes beamPassRight {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.7; }
  100% { transform: translateX(calc(100vw + 480px)); opacity: 0; }
}

@keyframes beamPassLeft {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 0.7; }
  85% { opacity: 0.7; }
  100% { transform: translateX(calc(-100vw - 480px)); opacity: 0; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--border);
}

.top,
main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.nav-logo {
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .nav-logo {
  transform: rotate(-6deg) scale(1.08);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

/* ==========================================================================
   HERO & ANIMATED LOGO (SIDE-BY-SIDE LEFT OF QUERITHM)
   ========================================================================== */
.hero {
  text-align: center;
  padding: 40px 0 32px;
}

.hero-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.logo-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-halo {
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: conic-gradient(from 0deg, #38bdf8, #2563eb, #818cf8, #10b981, #38bdf8);
  filter: blur(14px);
  opacity: 0.45;
  animation: haloSpin 8s linear infinite;
}

@keyframes haloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-icon {
  position: relative;
  z-index: 1;
  border-radius: 17px;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.22);
  animation: heroFloat 4.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.logo-ring-anim {
  stroke-dasharray: 820;
  stroke-dashoffset: 0;
  animation: ringGlow 4s ease-in-out infinite alternate;
}

@keyframes ringGlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 55; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75)); }
}

.db-tier-1 { animation: tierFloat 3.2s ease-in-out infinite 0s; }
.db-tier-2 { animation: tierFloat 3.2s ease-in-out infinite 0.22s; }
.db-tier-3 { animation: tierFloat 3.2s ease-in-out infinite 0.44s; }

@keyframes tierFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.5px); }
}

.pulse-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: pulseDraw 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseDraw {
  0% { stroke-dashoffset: 260; filter: drop-shadow(0 0 2px #10b981); }
  55% { stroke-dashoffset: 0; filter: drop-shadow(0 0 10px #34d399); }
  100% { stroke-dashoffset: 0; filter: drop-shadow(0 0 2px #10b981); }
}

.led-dot {
  animation: ledPulse 1.6s ease-in-out infinite alternate;
}

@keyframes ledPulse {
  0% { fill: #10b981; }
  100% { fill: #6ee7b7; }
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.tagline {
  margin: 0 auto 24px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.6;
}

.tagline strong {
  color: var(--text);
  font-weight: 650;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
  background-size: 200% 200%;
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 26px -6px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: btnShift 5s ease infinite;
}

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

.btn-primary:hover {
  color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(37, 99, 235, 0.58);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.meta a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.2);
  text-underline-offset: 3px;
}

.meta a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.notice {
  display: inline-block;
  margin: 16px 0 0;
  padding: 10px 16px;
  border: 1px solid var(--notice-border);
  border-radius: 10px;
  background: var(--notice-bg);
  color: #92400e;
  font-size: 14px;
}

.stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  font-size: 13px;
  font-weight: 500;
}

.stats strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PLATFORM DOWNLOAD CARDS (#platforms)
   ========================================================================== */
.platforms-wrap {
  padding: 8px 0 40px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.card.current::after {
  content: "Detected OS";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.os-win { background: #e0f2fe; color: #0284c7; }
.os-mac { background: #ede9fe; color: #4f46e5; }
.os-linux { background: #fef3c7; color: #d97706; }

.os-svg {
  animation: osFloat 3.6s ease-in-out infinite;
}

@keyframes osFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

.card:hover .os-badge {
  transform: scale(1.1) rotate(-5deg);
}

.card h2 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.req {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}

.card li a {
  font-weight: 550;
}

.card li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size,
.count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.count {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

a.disabled {
  color: var(--muted);
  pointer-events: none;
  text-decoration: none;
}

/* ==========================================================================
   FULL-WIDTH WORKSPACE PREVIEW (#preview)
   ========================================================================== */
.preview-section {
  padding: 8px 0 48px;
}

.preview-shell {
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
}

.window-frame {
  border-radius: 15px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  overflow: hidden;
}

.window-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) { background: #fda4af; }
.traffic-lights span:nth-child(2) { background: #fde047; }
.traffic-lights span:nth-child(3) { background: #86efac; }

.segmented-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
}

.seg-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

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

.seg-btn.active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.conn-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.window-body {
  animation: fadeSlide 0.22s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.editor-area {
  position: relative;
  padding: 18px 22px;
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: pre-wrap;
}

.active-line {
  background: #f8fafc;
}

.bp-active {
  background: #fff1f2;
}

.ln {
  width: 20px;
  color: #cbd5e1;
  font-size: 11.5px;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}

.kw { color: #2563eb; font-weight: 600; }
.fn { color: #7c3aed; }
.id { color: #0f172a; }
.str { color: #059669; }

.caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: #2563eb;
  vertical-align: middle;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.ac-popover {
  margin: 8px 0 2px 34px;
  max-width: 420px;
  border-radius: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 12px;
}

.ac-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
}

.ac-active {
  background: #eff6ff;
}

.ac-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 10.5px;
  font-weight: 600;
}

.ac-name {
  font-weight: 600;
  color: var(--text);
}

.ac-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.grid-area {
  background: #fbfcfe;
}

.grid-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.grid-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 11.5px;
}

.grid-rows {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-x: auto;
}

.g-row {
  display: grid;
  grid-template-columns: 48px 140px 150px 120px 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.g-head {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

.g-idx { color: #94a3b8; }
.g-num { color: var(--text); font-weight: 600; }

.status-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.chip-live {
  background: #dbeafe;
  color: #1d4ed8;
}

.g-stream {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), rgba(16, 185, 129, 0.08), transparent);
}

.plan-view {
  padding: 24px 22px;
  background: #fbfcfe;
}

.plan-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.p-node {
  flex: 1 1 200px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-node-warn {
  border-color: rgba(245, 158, 11, 0.35);
}

.p-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tag-emerald { background: #ecfdf5; color: #059669; }
.tag-amber { background: #fffbeb; color: #d97706; }
.tag-blue { background: #eff6ff; color: #2563eb; }

.p-sub {
  font-size: 12px;
  color: var(--muted);
}

.p-track {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.p-fill { display: block; height: 100%; border-radius: 999px; }
.w-8 { width: 12%; background: #10b981; }
.w-68 { width: 68%; background: #f59e0b; }
.w-24 { width: 24%; background: #2563eb; }

.p-edge {
  width: 24px;
  height: 2px;
  background: #cbd5e1;
}

.plan-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 12px;
}

.hint-label {
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.debug-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 22px;
  background: #f8fafc;
}

.d-metric {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.d-metric span {
  color: var(--muted);
}

.d-metric strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--text);
}

/* ==========================================================================
   BENCHMARKS (#benchmarks — SPACIOUS 3x2 GRID)
   ========================================================================== */
.bench-wrap {
  padding: 4px 0 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bench-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bench-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.bench-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bench-val {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bench-val small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.bench-gate {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  font-size: 11.5px;
  font-weight: 600;
}

.bench-title {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.bench-bar {
  height: 5px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.bench-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  animation: fillGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fillGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

.b-sky { width: 37%; background: linear-gradient(90deg, #38bdf8, #0284c7); }
.b-indigo { width: 25%; background: linear-gradient(90deg, #818cf8, #4f46e5); }
.b-emerald { width: 76%; background: linear-gradient(90deg, #34d399, #059669); }
.b-blue { width: 83%; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.b-violet { width: 55%; background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.b-teal { width: 15%; background: linear-gradient(90deg, #2dd4bf, #0d9488); }

/* ==========================================================================
   FIRST LAUNCH ACCORDION (#install — SINGLE COLUMN)
   ========================================================================== */
.install {
  padding: 4px 0 40px;
}

.accordion-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease;
}

details[open] {
  border-color: var(--border-hover);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
}

details p,
details ol {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 10px 0 0;
}

details ol {
  padding-left: 20px;
}

pre {
  overflow-x: auto;
  padding: 12px 14px;
  margin: 10px 0 0;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ==========================================================================
   FOOTER & CONTACT
   ========================================================================== */
footer {
  padding-top: 12px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-text strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.contact-text span {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.contact-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
}

footer p {
  margin: 4px 0;
}

@media (max-width: 820px) {
  .platforms,
  .bench-grid,
  .accordion-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .debug-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-edge,
  .nav-item {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
