/* ==========================================================================
   Crow5 Official Website · v4.0.0
   Brand color: #367dff
   Dark / Light theme support
   ========================================================================== */

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

:root,
[data-theme="dark"] {
  --brand: #367dff;
  --brand-600: #2563eb;
  --brand-400: #60a5fa;
  --brand-glow: rgba(54,125,255,0.35);

  --bg: #06070d;
  --bg-2: #0b0c17;
  --bg-3: #111226;
  --surface: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --border-brand: rgba(54,125,255,0.35);

  --text: #eef0f6;
  --text-dim: #b4b8c8;
  --muted: #7a8099;
  --muted-2: #555a72;

  --nav-bg: rgba(6,7,13,0.7);
  --nav-bg-scrolled: rgba(6,7,13,0.92);
  --nav-mobile-bg: rgba(6,7,13,0.98);
  --window-bar-bg: #16182a;
  --window-bar-light-bg: #f3f4f6;
  --window-bar-light-border: #e5e7eb;
  --window-bar-light-text: #6b7280;
  --code-bg: rgba(255,255,255,0.06);
  --shadow-card: 0 30px 80px rgba(0,0,0,0.5);
  --shadow-hero: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  --footer-bg: var(--bg-2);
  --hero-grid-line: rgba(255,255,255,0.025);
  --who-bar-bg: rgba(255,255,255,0.015);

  --nav-h: 68px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1200px;
}

[data-theme="light"] {
  --brand: #367dff;
  --brand-600: #2563eb;
  --brand-400: #60a5fa;
  --brand-glow: rgba(54,125,255,0.25);

  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --bg-3: #eef2f8;
  --surface: rgba(15,23,42,0.03);
  --surface-2: rgba(15,23,42,0.06);
  --surface-strong: rgba(15,23,42,0.05);
  --border: rgba(15,23,42,0.09);
  --border-2: rgba(15,23,42,0.16);
  --border-brand: rgba(54,125,255,0.45);

  --text: #0a0f1e;
  --text-dim: #475569;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --nav-bg: rgba(255,255,255,0.72);
  --nav-bg-scrolled: rgba(255,255,255,0.92);
  --nav-mobile-bg: rgba(255,255,255,0.98);
  --window-bar-bg: #eef2f8;
  --code-bg: rgba(15,23,42,0.06);
  --shadow-card: 0 24px 60px rgba(15,23,42,0.08);
  --shadow-hero: 0 32px 90px rgba(15,23,42,0.12), 0 0 0 1px rgba(15,23,42,0.04);
  --hero-grid-line: rgba(15,23,42,0.05);
  --who-bar-bg: rgba(15,23,42,0.02);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #367dff 45%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}

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

.section-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

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

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
#nav.scrolled { background: var(--nav-bg-scrolled); border-bottom-color: var(--border); }

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

.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #367dff 0%, #1e40af 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -0.5px;
  box-shadow: 0 4px 20px rgba(54,125,255,0.4);
  overflow: hidden;
}
.logo-mark.logo-mark-img {
  background: transparent;
  box-shadow: 0 4px 18px rgba(54,125,255,0.35);
}
.logo-mark.logo-mark-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  display: block;
}

.logo-text { line-height: 1.1; }
.logo-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.logo-sub { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }

.nav-links a {
  color: var(--text-dim);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute;
  bottom: -6px; left: 0; right: 0; height: 1px;
  background: var(--brand);
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 8px;
  font-weight: 600 !important; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(54,125,255,0.3);
}
.nav-cta:hover { background: var(--brand-600); box-shadow: 0 6px 24px rgba(54,125,255,0.5); transform: translateY(-1px); }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

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

.hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 140px; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(54,125,255,0.22), transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 40%, rgba(139,92,246,0.12), transparent 70%),
    radial-gradient(ellipse 500px 300px at 20% 60%, rgba(6,182,212,0.1), transparent 70%);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(54,125,255,0.12), transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 40%, rgba(139,92,246,0.06), transparent 70%),
    radial-gradient(ellipse 500px 300px at 20% 60%, rgba(6,182,212,0.05), transparent 70%);
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner { text-align: center; padding-top: 40px; }

/* Hero slider (crossfade) */
.hero-slides {
  display: grid;
  grid-template-areas: "stack";
}
.hero-slide {
  grid-area: stack;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border-2);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-dot.active {
  background: var(--brand);
  width: 26px;
}
.hero-dot:hover:not(.active) { background: var(--muted); }


.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px;
  background: rgba(54,125,255,0.1);
  border: 1px solid rgba(54,125,255,0.25);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: #7aa5ff;
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px;
}
[data-theme="light"] .hero-badge { color: #2563eb; }

.pulse {
  width: 7px; height: 7px;
  background: var(--brand); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(54,125,255,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(54,125,255,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(54,125,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(54,125,255,0); }
}

.hero-title { font-size: clamp(48px, 8.5vw, 104px); font-weight: 900; line-height: 1.0; letter-spacing: -4px; margin-bottom: 28px; }

.hero-subtitle {
  font-size: clamp(16px, 2.3vw, 20px); color: var(--text-dim);
  max-width: 660px; margin: 0 auto 44px; line-height: 1.7;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  border-radius: 10px; padding: 14px 28px;
  transition: all 0.2s; cursor: pointer; border: 1px solid transparent;
}

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 0 0 0 var(--brand-glow), 0 10px 30px rgba(54,125,255,0.35); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 0 40px var(--brand-glow), 0 16px 40px rgba(54,125,255,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border-2);
  box-shadow: 0 10px 28px rgba(15,23,42,0.2);
}
.btn-secondary:hover {
  background: rgba(54,125,255,0.12);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.hero-visual { position: relative; max-width: 1080px; margin: 0 auto; }

.hero-visual-inner {
  position: relative; z-index: 2;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.hero-visual-inner img { width: 100%; display: block; }

.hero-visual-glow {
  position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 60%;
  background: radial-gradient(ellipse, var(--brand-glow), transparent 70%);
  filter: blur(60px); pointer-events: none; z-index: 1;
}

/* Window bar */
.window-bar {
  background: var(--window-bar-bg);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.window-bar.light { background: var(--window-bar-light-bg); border-bottom-color: var(--window-bar-light-border); }
.window-bar.light .window-title { color: var(--window-bar-light-text); }
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.window-bar .dot.r { background: #ff5f57; }
.window-bar .dot.y { background: #febc2e; }
.window-bar .dot.g { background: #28c840; }
.window-title { font-size: 12px; color: var(--muted); margin-left: 12px; font-family: 'JetBrains Mono', monospace; }
.window-badge {
  margin-left: auto; font-size: 10px;
  background: rgba(54,125,255,0.15); color: #7aa5ff;
  padding: 3px 10px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(54,125,255,0.25);
}
[data-theme="light"] .window-badge { color: #2563eb; }

/* ============ WHO BAR ============ */
.who-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--who-bar-bg);
}
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.who-stat { text-align: center; padding: 0 24px; border-right: 1px solid var(--border); }
.who-stat:last-child { border-right: none; }
.who-value {
  font-size: clamp(36px, 4vw, 52px); font-weight: 800;
  letter-spacing: -2px; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, #60a5fa, #367dff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.who-unit { font-size: 0.55em; margin-left: 4px; }
.who-label { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0.3px; }

/* ============ MISSION ============ */
.mission { padding: 120px 0; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.principle-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.principle-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.principle-card:hover { background: var(--surface-2); border-color: var(--border-brand); transform: translateY(-4px); }
.principle-card:hover::before { opacity: 1; }
.principle-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 16px; letter-spacing: 1px; }
.principle-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.principle-desc { font-size: 15px; color: var(--text-dim); line-height: 1.7; }

/* ============ PRODUCT ============ */
.product { padding: 120px 0; position: relative; }
.product::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 50%, rgba(54,125,255,0.06), transparent 70%);
  pointer-events: none;
}
.product-showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.showcase-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-card); }
.showcase-img img { width: 100%; display: block; }
.category-list { display: flex; flex-direction: column; gap: 16px; }
.category-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px;
  display: flex; gap: 16px; align-items: center; transition: all 0.2s;
}
.category-item:hover { border-color: var(--border-brand); background: var(--surface-2); transform: translateX(4px); }
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.cat-icon svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
.cat-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px; }
.cat-desc { font-size: 13px; color: var(--muted); line-height: 1.5; font-family: 'JetBrains Mono', monospace; }

/* ============ DEMO ============ */
.demo { padding: 120px 0; }
.demo-box {
  max-width: 960px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
  position: relative; overflow: hidden;
}
.demo-box::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(54,125,255,0.1), transparent 70%);
  pointer-events: none;
}
.demo-prompt {
  background: rgba(54,125,255,0.06); border: 1px solid rgba(54,125,255,0.2);
  border-radius: var(--radius); padding: 24px 28px;
  margin-bottom: 36px; position: relative;
}
.demo-prompt-label { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--brand); margin-bottom: 8px; }
.demo-prompt-text { font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.6; letter-spacing: -0.3px; }

.demo-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; flex-wrap: wrap; margin-bottom: 36px; }
.flow-step {
  flex: 1; min-width: 140px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  text-align: center; transition: all 0.2s;
}
.flow-step:hover { border-color: var(--border-brand); background: var(--surface-2); }
.flow-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--brand); letter-spacing: 1px; margin-bottom: 8px; }
.flow-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.flow-sub { font-size: 13px; color: var(--muted); }
.flow-arrow { color: var(--muted-2); font-size: 20px; flex-shrink: 0; }

.demo-result {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-3);
  box-shadow: var(--shadow-card);
  position: relative; z-index: 1;
}
.demo-result img { width: 100%; display: block; }

/* ============ STACK (Agents & Codebase) ============ */
.agents, .codebase { padding: 120px 0; }

.stack { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.stack-content { width: 100%; max-width: 960px; margin: 0 auto; }
.stack-visual {
  width: 100%; max-width: 1080px; margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-card);
}
.stack-visual img { width: 100%; display: block; }

.agent-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.agent-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.agent-card:hover { border-color: var(--border-brand); background: var(--surface-2); transform: translateY(-2px); }
.agent-avatar {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.agent-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agent-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; padding: 3px 7px;
  background: rgba(54,125,255,0.12);
  border: 1px solid rgba(54,125,255,0.25);
  color: #7aa5ff; border-radius: 100px;
  letter-spacing: 1px; font-weight: 600;
}
[data-theme="light"] .agent-role { color: #2563eb; }
.agent-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.capability-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.capability-list li { display: flex; gap: 16px; align-items: flex-start; }
.cap-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, #367dff, #1e40af);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(54,125,255,0.4);
}
.cap-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px; }
.cap-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ============ SKILLS ============ */
.skills {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(54,125,255,0.04), transparent);
}
.skills-showcase {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  justify-content: center;
  max-width: 1120px; margin: 0 auto;
}
.skills-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.skill-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; transition: all 0.2s;
}
.skill-cat:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.skill-cat-header { margin-bottom: 12px; }
.skill-cat-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border: 1px solid; border-radius: 100px; letter-spacing: 1px;
}
.skill-cat-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skill-cat-items code {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding: 4px 10px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
}
.skill-cat-desc { font-size: 12px; color: var(--muted); }

.skills-visual {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow-card);
}
.skills-visual img { width: 100%; display: block; }

/* ============ MODELS ============ */
.models { padding: 120px 0; }
.models-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.model-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 18px; transition: all 0.2s;
}
.model-card:hover { border-color: var(--border-brand); background: rgba(54,125,255,0.06); transform: translateY(-2px); }
.model-card.highlight {
  background: linear-gradient(135deg, rgba(54,125,255,0.08), rgba(139,92,246,0.05));
  border-color: rgba(54,125,255,0.25);
}
.m-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.3px; }
.m-vendor { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; text-transform: uppercase; }

/* ============ DOWNLOAD ============ */
.download { padding: 120px 0; }

.download-card {
  background: linear-gradient(135deg, rgba(54,125,255,0.12), rgba(139,92,246,0.06));
  border: 1px solid rgba(54,125,255,0.25);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.download-card::before {
  content: ''; position: absolute;
  top: -60%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(54,125,255,0.15), transparent 70%);
  pointer-events: none;
}
.download-card > * { position: relative; }

.download-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; }
.download-lead { font-size: 17px; color: var(--text-dim); margin-bottom: 48px; }

.platform-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.platform-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  background: var(--surface-strong);
  border: 1px solid var(--border-2);
  border-radius: 12px; color: var(--text);
  transition: all 0.2s; min-width: 210px;
}
.platform-btn:hover {
  background: rgba(54,125,255,0.15);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54,125,255,0.25);
}
.platform-btn.disabled { opacity: 0.55; cursor: not-allowed; }
.platform-btn.disabled:hover {
  background: var(--surface-strong);
  border-color: var(--border-2);
  transform: none; box-shadow: none;
}
.platform-btn-text { text-align: left; }
.platform-btn-sub { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.platform-btn-name { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin-top: 2px; }

.download-sub { margin-top: 20px; font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--footer-bg);
  position: relative; z-index: 1;
}
.footer-main { display: grid; grid-template-columns: 1.3fr 2fr; gap: 80px; margin-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.footer-sub { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 8px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-slogan { font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: 0.5px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .product-showcase, .skills-showcase { grid-template-columns: 1fr; gap: 48px; }
  .agent-list, .capability-list { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .models-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 1180px) {
  #nav { padding: 0 20px; }
  .nav-links { gap: 18px; }
  .logo-sub { display: none; }
}

@media (max-width: 1100px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .nav-links.show { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; }
  .theme-toggle { margin: 10px 0; }
  .nav-burger { display: flex; }
}

@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .nav-links.show { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; }
  .theme-toggle { margin: 10px 0; }
  .nav-burger { display: flex; }

  .hero-title { letter-spacing: -2px; }
  .principles, .models-grid, .footer-cols { grid-template-columns: 1fr 1fr; }
  .skills-categories { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .who-stat { padding: 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .demo-box { padding: 32px 24px; }
  .demo-flow { flex-direction: column; gap: 12px; }
  .demo-flow .flow-step { width: 100%; }
  .demo-flow .flow-arrow { transform: rotate(90deg); }
  .download-card { padding: 48px 24px; }
  .footer-bottom { justify-content: center; text-align: center; }

  section, .mission, .product, .demo, .agents, .codebase, .skills, .models, .download { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .principles, .models-grid, .footer-cols { grid-template-columns: 1fr; }
  .platform-btn { min-width: 100%; }
}

/* ==========================================================================
   ADDITIONS · v4.1 (multi-agent rework, models expansion, footer cleanup)
   ========================================================================== */

/* ---- Single-line subtitle ---- */
.section-lead.no-wrap {
  white-space: nowrap;
  max-width: 100%;
  font-size: 16px;
  overflow: visible;
  letter-spacing: 0.1px;
}
@media (max-width: 1100px) {
  .section-lead.no-wrap {
    white-space: normal;
    font-size: 17px;
    max-width: 720px;
  }
}

/* ============ MULTI-AGENT · reworked layout ============ */
.agents-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.agents-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  align-self: center;
}

/* Mode card */
.mode-card {
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(54, 125, 255, 0.09), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(54, 125, 255, 0.28);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .mode-card {
  background: linear-gradient(135deg, rgba(54, 125, 255, 0.06), rgba(168, 85, 247, 0.03));
  border-color: rgba(54, 125, 255, 0.25);
}
.mode-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(54, 125, 255, 0.22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  position: relative;
}
.mode-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}
.mode-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 100px;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), #1e40af);
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(54, 125, 255, 0.4), 0 0 14px rgba(54, 125, 255, 0.4);
}
.mode-toggle::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.mode-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  position: relative;
  letter-spacing: 0.1px;
}

/* Agent list switched to vertical when .expanded */
.agent-list.expanded {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-template-columns: none;
}

/* Override .agent-card to 3-col grid with status */
.agents-layout .agent-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
}
.agents-layout .agent-card .agent-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
  border-radius: 10px;
}
.agents-layout .agent-name {
  font-size: 14px;
  margin-bottom: 3px;
}
.agents-layout .agent-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.agent-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #10b981;
  white-space: nowrap;
  flex-shrink: 0;
}
.agent-status::before {
  content: '●';
  margin-right: 5px;
  animation: status-blink 2s infinite;
}
.agent-status.active { color: #fbbf24; }
@keyframes status-blink {
  0%, 60%, 100% { opacity: 1; }
  80% { opacity: 0.35; }
}

/* Custom-agent add card */
.agent-card.add {
  display: flex;
  justify-content: center;
  padding: 14px 20px;
  border-style: dashed;
  background: transparent;
  cursor: pointer;
  grid-template-columns: none !important;
}
.agent-card.add:hover {
  background: rgba(54, 125, 255, 0.05);
  border-color: var(--brand);
  transform: none;
}
.add-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-align: center;
}
.agent-card.add:hover .add-label {
  color: var(--brand);
}

/* Right-side image container (like .stack-visual) */
.agents-right {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
  align-self: center;
}
.agents-right .window-bar {
  background: var(--window-bar-bg);
}
.agents-right img {
  width: 100%;
  height: auto;
  display: block;
}

.release-card,
.release-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.release-meta,
.report-head,
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.release-tag,
.release-version {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1.2px;
}
.release-card h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.release-tag {
  border-radius: 999px;
  border: 1px solid rgba(54,125,255,0.3);
  background: rgba(54,125,255,0.1);
  color: #8ab0ff;
  padding: 6px 10px;
  font-size: 10px;
}
.changelog {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(54,125,255,0.03), transparent);
}
.changelog-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: start;
}
.release-card {
  padding: 28px;
  position: sticky;
  top: 96px;
  background:
    radial-gradient(circle at top right, rgba(54,125,255,0.12), transparent 36%),
    var(--bg-2);
}
.release-version {
  font-size: 11px;
  color: var(--muted);
}
.release-card p {
  margin: 14px 0 20px;
  color: var(--text-dim);
  line-height: 1.7;
}
.release-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.release-highlights span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(54,125,255,0.08);
  border: 1px solid rgba(54,125,255,0.2);
  font-size: 12px;
}
.release-list {
  display: grid;
  gap: 16px;
}
.release-item {
  padding: 24px;
}
.release-item-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.release-item ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.release-item li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  line-height: 1.75;
}
.release-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #367dff);
  box-shadow: 0 0 0 4px rgba(54,125,255,0.08);
}

/* ============ MODELS · expanded ============ */
.models-top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.models-count {
  text-align: right;
  line-height: 1;
}
.count-big {
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  background: linear-gradient(180deg, var(--text) 20%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(54, 125, 255, 0.3));
  display: inline-flex;
  align-items: flex-start;
}
[data-theme="light"] .count-big {
  background: linear-gradient(180deg, #1e40af 20%, #367dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}
.count-plus {
  font-size: 0.45em;
  color: var(--brand);
  margin-left: 6px;
  font-weight: 700;
  -webkit-text-fill-color: var(--brand);
  filter: none;
}
.count-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 12px;
  text-transform: uppercase;
}

.vendor-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.vtab {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.vtab:hover {
  border-color: var(--border-2);
  color: var(--text);
}
.vtab.active {
  background: rgba(54, 125, 255, 0.1);
  border-color: var(--brand);
  color: var(--brand);
}
.vtab .c {
  font-size: 10px;
  opacity: 0.65;
  font-weight: 600;
}
.vtab.active .c { opacity: 1; }

/* Extend models-grid with scroll behavior + responsive columns */
.models-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.models-grid::-webkit-scrollbar { width: 6px; }
.models-grid::-webkit-scrollbar-track { background: transparent; }
.models-grid::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

.model-card {
  padding: 14px 16px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.model-card .m-name {
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  line-break: anywhere;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.model-card .m-vendor {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.model-card.local {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
  border-color: rgba(16, 185, 129, 0.25);
}
.model-card.local .m-vendor {
  color: #10b981;
}

/* Summary band under models */
.models-summary {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sum-item {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}
.sum-item:hover {
  border-color: var(--border-brand);
  background: rgba(54, 125, 255, 0.05);
}
.sum-n {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .sum-n {
  background: linear-gradient(180deg, #1e40af, #367dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sum-n span {
  font-size: 0.55em;
  color: var(--brand);
  margin-left: 2px;
  -webkit-text-fill-color: var(--brand);
}
.sum-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ============ FOOTER · cleaned ============ */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-right .footer-slogan {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-right .footer-copy {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

/* Footer bottom bar (site copyright line) */
footer .footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-copyright {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.3px;
  line-height: 1.8;
}

/* ============ RESPONSIVE ADDITIONS ============ */
@media (max-width: 1024px) {
  .agents-layout { grid-template-columns: 1fr; gap: 36px; }
  .agents-right { position: static; }
  .changelog-layout { grid-template-columns: 1fr; }
  .release-card { position: static; }
  .models-grid { grid-template-columns: repeat(3, 1fr); max-height: none; }
  .models-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .models-top { justify-content: center; }
  .models-count { text-align: center; }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .vendor-tabs { justify-content: flex-start; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-right { align-items: center; }
  .agents-layout .agent-card {
    grid-template-columns: auto 1fr;
  }
  .agents-layout .agent-status {
    grid-column: 1 / -1;
    text-align: right;
  }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .models-grid, .models-summary { grid-template-columns: 1fr; }
}

/* Floating scroll nav */
.scroll-nav {
  position: fixed;
  right: 24px;
  bottom: 150px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.scroll-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.scroll-nav-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .scroll-nav { right: 14px; bottom: 120px; }
  .scroll-nav-btn { width: 36px; height: 36px; }
}

/* Floating download buttons (two stacked, always visible) */
.float-download {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(54,125,255,.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.float-dl-btn:hover {
  background: var(--brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(54,125,255,.45);
}
.float-dl-btn-disabled {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: not-allowed;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.float-dl-btn-disabled:hover {
  background: var(--surface);
  color: var(--muted);
  transform: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.float-dl-btn-windows {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}
.float-dl-btn-windows:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
}
@media (max-width: 640px) {
  .float-download { right: 14px; bottom: 20px; gap: 8px; }
  .float-dl-btn { padding: 10px 14px; font-size: 12px; }
}

/* macOS 系统版本提示语 */
/* —— 下载卡片：保留独立小字（紧贴名称下方） */
.dl-os-tip {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}
.platform-btn-tip {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* —— Hero 主 CTA：按钮恢复单行，提示语作为按钮下方独立小段，居中、字号 13px */
.hero-os-tip {
  text-align: center;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* —— 悬浮 pill：tip 嵌入 pill 内部，主标题 + 副标题两行布局 */
.float-dl-btn.float-dl-with-tip {
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}
.float-dl-btn.float-dl-with-tip .float-dl-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
}
.float-dl-btn.float-dl-with-tip .float-dl-main {
  font-size: 14px;
  font-weight: 600;
}
.float-dl-btn.float-dl-with-tip .float-dl-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.88;
}

@media (max-width: 640px) {
  .hero-os-tip { font-size: 12px; margin-top: 10px; }
  .float-dl-btn.float-dl-with-tip .float-dl-main { font-size: 12px; }
  .float-dl-btn.float-dl-with-tip .float-dl-sub { font-size: 10px; }
}

/* Danmaku (registration notifications) — 2 lanes, fixed at top, decoupled from page scroll */
.danmaku-layer {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 0;
  right: 0;
  height: 104px;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}
.danmaku-item {
  position: absolute;
  left: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(54, 125, 255, 0.14);
  border: 1px solid rgba(54, 125, 255, 0.35);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(54, 125, 255, 0.12);
  animation: danmakuFly linear forwards;
  will-change: transform;
}
[data-theme="light"] .danmaku-item {
  background: rgba(54, 125, 255, 0.08);
  border-color: rgba(54, 125, 255, 0.25);
  box-shadow: 0 6px 16px rgba(54, 125, 255, 0.1);
}
.danmaku-item .dmk-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(54,125,255,0.25);
  flex: 0 0 auto;
}
.danmaku-item .dmk-name {
  font-weight: 600;
  color: var(--brand-400);
}
.danmaku-item .dmk-action {
  color: var(--text-dim);
}
@keyframes danmakuFly {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 100%)); }
}
@media (max-width: 640px) {
  .danmaku-layer { height: 88px; top: calc(var(--nav-h) + 8px); }
  .danmaku-item { font-size: 12px; padding: 6px 12px 6px 8px; }
}
