/* ══════════════════════════════════════════
   NexGo Website — Global Styles
   Dark Violet Theme · Light/Dark Mode
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Epilogue:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ─────────────────────── */
:root {
  --violet:        #7c3aed;
  --violet-mid:    #6d28d9;
  --violet-light:  #a78bfa;
  --violet-bright: #c4b5fd;
  --violet-dim:    rgba(124,58,237,0.12);
  --cyan:          #22d3ee;
  --pink:          #f472b6;

  --font-head: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
  --shadow:    0 8px 32px rgba(0,0,0,0.18);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (default) */
[data-theme="dark"], :root {
  --bg:          #070710;
  --bg-2:        #0c0c18;
  --surface:     #10101e;
  --surface-2:   #181830;
  --surface-3:   #1e1e3a;
  --border:      rgba(124,58,237,0.18);
  --border-2:    rgba(255,255,255,0.06);
  --text:        #e2e8f0;
  --text-muted:  #8b90aa;
  --text-subtle: #4a4f6a;
  --glow:        0 0 40px rgba(124,58,237,0.25);
  --glow-strong: 0 0 80px rgba(124,58,237,0.4);
  --noise-opacity: 0.03;
}

/* Light Theme */
[data-theme="light"] {
  --bg:          #f5f3ff;
  --bg-2:        #ede9fe;
  --surface:     #ffffff;
  --surface-2:   #f0ebff;
  --surface-3:   #e8e0fe;
  --border:      rgba(109,40,217,0.14);
  --border-2:    rgba(109,40,217,0.08);
  --text:        #150d3a;
  --text-muted:  #5b5480;
  --text-subtle: #a098c0;
  --glow:        0 0 40px rgba(109,40,217,0.1);
  --glow-strong: 0 0 80px rgba(109,40,217,0.18);
  --noise-opacity: 0.02;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--violet-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet-bright); }

img { max-width: 100%; height: auto; }
code, pre { font-family: var(--font-code); }

/* ── Typography ────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.heading-xl { font-size: clamp(2rem, 4vw, 3.5rem); }
.heading-lg { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.heading-md { font-size: clamp(1.2rem, 2vw, 1.75rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--cyan) 50%, var(--violet-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-violet {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 8rem 0; }

/* ── Grid ──────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Header / Nav ──────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-2);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(7,7,16,0.75);
  transition: background var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(245,243,255,0.85);
}

[data-theme="light"] .beam {
  background: linear-gradient(180deg, transparent 0%, rgba(109,40,217,0.15) 30%, rgba(109,40,217,0.3) 50%, rgba(109,40,217,0.15) 70%, transparent 100%);
}

[data-theme="light"] .beam::after {
  background: linear-gradient(180deg, transparent 0%, rgba(109,40,217,0.04) 30%, rgba(109,40,217,0.08) 50%, rgba(109,40,217,0.04) 70%, transparent 100%);
}

[data-theme="light"] .hero-scanline {
  background: linear-gradient(90deg, transparent 0%, rgba(109,40,217,0.2) 20%, rgba(109,40,217,0.5) 50%, rgba(109,40,217,0.2) 80%, transparent 100%);
  box-shadow: 0 0 15px rgba(109,40,217,0.2);
}

[data-theme="light"] .particle {
  background: var(--violet-mid);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .beam, .hero-scanline, .particle, .hero-grid { animation: none !important; }
  .hero-install .install-box::before { animation: none !important; }
  .glow-orb { animation: none !important; }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet) 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-announce {
  background: var(--violet-dim) !important;
  border: 1px solid rgba(124,58,237,0.3) !important;
  color: var(--violet-light) !important;
  font-weight: 600 !important;
}

.nav-announce .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 4px;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nav-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
}

.coming-soon-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,211,238,0.2));
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--cyan);
  animation: comingSoonPulse 3s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; border-color: rgba(34,211,238,0.4); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-github:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
  box-shadow: var(--glow);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  border-color: var(--violet);
  color: var(--violet-light);
  background: var(--violet-dim);
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Mobile Menu Panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.mobile-github-btn {
  justify-content: center;
  padding: 0.6rem 1rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .btn-github span { display: none; }
  .mobile-menu { display: flex; max-height: 0; opacity: 0; padding: 0 1.5rem; }
  .mobile-menu.open { max-height: 400px; opacity: 1; padding: 1.25rem 1.5rem 1.5rem; }
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #a855f7 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
  color: white;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-2);
}

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

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

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

.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

[data-theme="light"] .card-glass {
  background: rgba(255,255,255,0.7);
  border-color: rgba(109,40,217,0.1);
}

/* ── Code Block ────────────────────────── */
.code-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}

.code-dots {
  display: flex;
  gap: 6px;
}
.code-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-label {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-code);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}

.code-body .c-comment { color: var(--text-subtle); }
.code-body .c-keyword { color: #f472b6; }
.code-body .c-string  { color: #86efac; }
.code-body .c-func    { color: #93c5fd; }
.code-body .c-var     { color: var(--violet-light); }
.code-body .c-type    { color: var(--cyan); }
.code-body .c-number  { color: #fca5a5; }

/* ── Install Box ───────────────────────── */
.install-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
}

.install-cmd {
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: var(--text);
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cmd-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.install-cmd .cmd-prefix {
  color: var(--violet-light);
  margin-right: 0.5rem;
}

.copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover {
  border-color: var(--violet);
  color: var(--violet-light);
  background: var(--violet-dim);
}

.copy-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}

/* ── Badge / Tag ───────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-violet {
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--violet-light);
}

.badge-cyan {
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  color: var(--cyan);
}

.badge-green {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}

/* ── Divider ───────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── Feature Icon ──────────────────────── */
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feat-icon-violet { background: var(--violet-dim); border: 1px solid rgba(124,58,237,0.2); }
.feat-icon-cyan   { background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2); }
.feat-icon-green  { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }
.feat-icon-pink   { background: rgba(244,114,182,0.1); border: 1px solid rgba(244,114,182,0.2); }

/* ── Stats ─────────────────────────────── */
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Section Labels ────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--violet-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--violet);
  border-radius: 1px;
}

/* ── Glow Elements ─────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-orb-violet {
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
}

.glow-orb-cyan {
  background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
}

/* ── Table ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-2); }

table { width: 100%; border-collapse: collapse; }

thead { background: var(--surface-2); }

th, td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.9rem;
}

th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }

.check  { color: #4ade80; font-size: 1rem; }
.cross  { color: #f87171; font-size: 1rem; }
.partial { color: #ffc800; font-size: 1rem; }

/* ── Glowing NexGo Table Column ───────── */
th[style*="color:#a78bfa"] {
  position: relative;
  text-shadow: 0 0 12px rgba(167,139,250,0.6);
  animation: nexgoHeaderGlow 3s ease-in-out infinite;
}

@keyframes nexgoHeaderGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(167,139,250,0.4); }
  50% { text-shadow: 0 0 20px rgba(167,139,250,0.8), 0 0 40px rgba(124,58,237,0.3); }
}

/* NexGo highlight cells in tables */
td[style*="background:rgba(139,92,246"] {
  position: relative;
  animation: nexgoCellPulse 4s ease-in-out infinite;
}

@keyframes nexgoCellPulse {
  0%, 100% { background: rgba(139,92,246,0.08); }
  50% { background: rgba(139,92,246,0.16); }
}

/* Animated table rows on hover */
table tbody tr {
  transition: all 0.3s ease;
}

table tbody tr:hover td {
  background: var(--surface-2);
}

table tbody tr:hover td[style*="background:rgba(139,92,246"] {
  background: rgba(139,92,246,0.22) !important;
  box-shadow: inset 0 0 20px rgba(124,58,237,0.1);
}

/* NexGo column vertical glow line */
.table-wrap {
  position: relative;
}

/* ── Version card glow animation ──────── */
.version-card-latest {
  animation: latestCardGlow 4s ease-in-out infinite;
}

@keyframes latestCardGlow {
  0%, 100% { border-color: rgba(124,58,237,0.3); box-shadow: 0 0 0 rgba(124,58,237,0); }
  50% { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 30px rgba(124,58,237,0.15); }
}

/* ── Comparison column highlight pulse ── */
.comparison-col-highlight {
  animation: compColGlow 3s ease-in-out infinite;
}

@keyframes compColGlow {
  0%, 100% { border-color: rgba(124,58,237,0.3); box-shadow: 0 0 20px rgba(124,58,237,0.1); }
  50% { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 40px rgba(124,58,237,0.2); }
}

/* ── Badge shimmer animation ──────────── */
.badge-violet {
  animation: badgeShimmer 5s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%, 100% { box-shadow: 0 0 0 rgba(124,58,237,0); }
  50% { box-shadow: 0 0 12px rgba(124,58,237,0.3); }
}

/* ── Change badge pulse (new features) ── */
.change-badge.change-new {
  animation: newBadgePulse 3s ease-in-out infinite;
}

@keyframes newBadgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(74,222,128,0); }
  50% { box-shadow: 0 0 8px rgba(74,222,128,0.3); }
}

/* ── Footer ────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-2);
  padding: 4rem 0 2rem;
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

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

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--violet-light); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-2);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ── Hero ──────────────────────────────── */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  animation: gridPulse 6s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Hero Light Beams ─────────────────── */
.hero-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,0.3) 30%, rgba(124,58,237,0.6) 50%, rgba(124,58,237,0.3) 70%, transparent 100%);
  opacity: 0;
  animation: beamPass 8s linear infinite;
}

.beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,0.08) 30%, rgba(167,139,250,0.15) 50%, rgba(124,58,237,0.08) 70%, transparent 100%);
  filter: blur(3px);
}

.beam-1 { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.beam-2 { left: 30%; animation-delay: 1.5s; animation-duration: 9s; }
.beam-3 { left: 50%; animation-delay: 3s; animation-duration: 6s; }
.beam-4 { left: 70%; animation-delay: 4.5s; animation-duration: 8s; }
.beam-5 { left: 90%; animation-delay: 2s; animation-duration: 10s; }

@keyframes beamPass {
  0% { opacity: 0; transform: translateY(-100%) scaleY(0.3); }
  10% { opacity: 0.7; }
  40% { opacity: 1; transform: translateY(0%) scaleY(1); }
  60% { opacity: 0.7; }
  90% { opacity: 0; transform: translateY(100%) scaleY(0.3); }
  100% { opacity: 0; }
}

/* ── Hero Scanline ────────────────────── */
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,0.4) 20%, rgba(167,139,250,0.8) 50%, rgba(124,58,237,0.4) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(124,58,237,0.4), 0 0 60px rgba(124,58,237,0.2);
  pointer-events: none;
  animation: scanline 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes scanline {
  0% { top: -2px; opacity: 0; }
  5% { opacity: 1; }
  50% { top: 100%; opacity: 0.6; }
  95% { opacity: 0; }
  100% { top: -2px; opacity: 0; }
}

/* ── Hero Particles ───────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--violet-light);
  opacity: 0;
  animation: particleFloat 12s ease-in-out infinite;
}

.particle-1 { left: 15%; top: 80%; animation-delay: 0s; animation-duration: 10s; }
.particle-2 { left: 25%; top: 70%; animation-delay: 1.5s; animation-duration: 14s; }
.particle-3 { left: 40%; top: 85%; animation-delay: 3s; animation-duration: 11s; }
.particle-4 { left: 55%; top: 75%; animation-delay: 0.8s; animation-duration: 13s; }
.particle-5 { left: 65%; top: 90%; animation-delay: 4s; animation-duration: 9s; }
.particle-6 { left: 75%; top: 80%; animation-delay: 2.5s; animation-duration: 12s; }
.particle-7 { left: 85%; top: 70%; animation-delay: 5s; animation-duration: 15s; }
.particle-8 { left: 50%; top: 65%; animation-delay: 1s; animation-duration: 11s; width: 2px; height: 2px; background: var(--cyan); }

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  10% { opacity: 0.8; }
  50% { opacity: 0.4; transform: translateY(-200px) scale(1); }
  90% { opacity: 0; }
  100% { opacity: 0; transform: translateY(-400px) scale(0.3); }
}

/* ── Floating Orb Animation ───────────── */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, -35px) scale(0.95); }
  75% { transform: translate(20px, -15px) scale(1.02); }
}

/* ── Shimmer border on cards ──────────── */
.feat-card {
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,0.06) 50%, transparent 100%);
  transition: none;
  pointer-events: none;
}

.feat-card:hover::before {
  animation: cardShimmer 0.8s ease forwards;
}

@keyframes cardShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ── Glowing border animation for install box ── */
.hero-install .install-box {
  position: relative;
  overflow: hidden;
}

.hero-install .install-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0%, var(--violet) 10%, transparent 20%, transparent 80%, var(--violet-light) 90%, transparent 100%);
  z-index: -1;
  animation: borderSpin 4s linear infinite;
  opacity: 0.4;
}

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

/* ── Enhanced stat counter glow ───────── */
.stat-card {
  position: relative;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-card:hover .stat-value {
  filter: drop-shadow(0 0 12px rgba(124,58,237,0.5));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.3);
  background: var(--violet-dim);
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--violet-light);
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.6s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  animation: fadeInUp 0.7s ease 0.1s both;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.7s ease 0.2s both;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-install {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.4s both;
}

/* ── Docs Layout ───────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 8px;
}

.sidebar-nav { list-style: none; }

.sidebar-nav .nav-section {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 1.25rem 0 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--violet-light);
  background: var(--violet-dim);
  border-left-color: var(--violet);
}

.docs-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-2);
}

.docs-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.docs-content p { color: var(--text-muted); margin-bottom: 1rem; }

.docs-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.docs-content code {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
}

.docs-content :not(pre) > code {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.85em;
  color: var(--violet-light);
}

/* ── Blog Cards ────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--shadow);
}

.blog-tag {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.blog-card:hover h3 { color: var(--violet-light); }

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-subtle);
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* ── Animations ────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-float  { animation: float 4s ease-in-out infinite; }
.animate-fadein { animation: fadeIn 0.5s ease both; }

/* Staggered cards */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Animated Gradient Text ───────────── */
.gradient-text-animated {
  background: linear-gradient(270deg, var(--violet-light), var(--cyan), var(--pink), var(--violet-bright), var(--violet-light));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

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

/* ── Glowing CTA Button ─────────────── */
.btn-primary-glow {
  position: relative;
  overflow: visible;
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--violet), #a855f7, var(--cyan));
  z-index: -1;
  filter: blur(16px);
  opacity: 0.5;
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.4; filter: blur(16px); }
  50% { opacity: 0.7; filter: blur(22px); }
}

/* ── Floating badge animation ────────── */
.hero-badge-float {
  animation: fadeInDown 0.6s ease both, badgeFloat 4s ease-in-out 1s infinite;
}

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

/* ── Typewriter cursor ──────────────── */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--violet-light);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Section fade-in from different directions ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ── Blog card gradient border on hover ── */
.blog-card {
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,0.06) 50%, transparent 100%);
  pointer-events: none;
  transition: none;
}

.blog-card:hover::before {
  animation: cardShimmer 0.8s ease forwards;
}

/* ── Blog author link styling ────────── */
.blog-author-link {
  color: var(--violet-light);
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
}

.blog-author-link:hover {
  color: var(--cyan);
}

.blog-author-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.blog-author-link:hover::after {
  width: 100%;
}

/* ── Version timeline connector ──────── */
.version-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.version-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan), var(--violet-light), transparent);
  border-radius: 2px;
  opacity: 0.4;
}

.version-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-left: 56px;
  transition: all var(--transition);
}

.version-card:hover {
  border-color: var(--border);
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(-2px);
}

.version-card::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(124,58,237,0.5);
}

.version-card-latest::before {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(34,211,238,0.6);
  animation: timelineDotPulse 2s ease-in-out infinite;
}

@keyframes timelineDotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34,211,238,0.4); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(34,211,238,0.8); transform: scale(1.2); }
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.version-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: var(--font-code);
}

.version-changes {
  margin-top: 1rem;
}

.change-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-2);
  align-items: flex-start;
}

.change-item:last-child {
  border-bottom: none;
}

.change-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.change-new {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}

.change-improved {
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.3);
  color: var(--cyan);
}

.change-fixed {
  background: rgba(244,114,182,0.12);
  border: 1px solid rgba(244,114,182,0.3);
  color: var(--pink);
}

/* ── Blog page hero background ───────── */
.blog-hero {
  position: relative;
  overflow: hidden;
}

.blog-hero .glow-orb {
  position: absolute;
}

/* ── Stat card number glow on view ──── */
.stat-card.visible .stat-value {
  animation: statGlow 1.5s ease 0.3s both;
}

@keyframes statGlow {
  0% { filter: drop-shadow(0 0 0 rgba(124,58,237,0)); }
  50% { filter: drop-shadow(0 0 20px rgba(124,58,237,0.6)); }
  100% { filter: drop-shadow(0 0 8px rgba(124,58,237,0.3)); }
}

/* ── Responsive version timeline ────── */
@media (max-width: 600px) {
  .version-timeline::before { display: none; }
  .version-card { margin-left: 0; }
  .version-card::before { display: none; }
}

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-mid); }

/* ── Utility ───────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm       { gap: 0.5rem; }
.gap          { gap: 1rem; }
.gap-lg       { gap: 2rem; }
.mt-sm        { margin-top: 0.5rem; }
.mt           { margin-top: 1rem; }
.mt-lg        { margin-top: 2rem; }
.mb-sm        { margin-bottom: 0.5rem; }
.mb           { margin-bottom: 1rem; }
.mb-lg        { margin-bottom: 2rem; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.w-full       { width: 100%; }
.relative     { position: relative; }
.overflow-h   { overflow: hidden; }

/* ── Stats Grid ───────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

/* ── Responsive Split ─────────────────── */
.responsive-split {
  grid-template-columns: 1fr 1fr;
}

/* ══════════════════════════════════════════
   Responsive — Tablet
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 3.5rem; }

  .hero h1 br { display: none; }

  section { padding: 3.5rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-lg { padding: 5rem 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .responsive-split { grid-template-columns: 1fr !important; gap: 2rem !important; }

  .install-cmd {
    white-space: normal;
    word-break: break-all;
    font-size: 0.78rem;
  }

  .hero-actions .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .code-body {
    padding: 1rem;
    font-size: 0.78rem;
  }

  .heading-xl br,
  .heading-lg br { display: none; }
}

/* ══════════════════════════════════════════
   Responsive — Mobile
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { padding: 3.5rem 0 2.5rem; }

  .container { padding: 0 1rem; }
  .container-narrow { padding: 0 1rem; }

  section { padding: 2.5rem 0; }
  .section-sm { padding: 1.5rem 0; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

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

  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }

  .hero-desc { margin-bottom: 1.5rem; }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-install .install-box { padding: 0.75rem 1rem; }

  .install-cmd {
    white-space: normal;
    word-break: break-all;
    font-size: 0.78rem;
  }

  .cmd-text {
    white-space: normal;
    word-break: break-all;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .code-body {
    padding: 0.75rem;
    font-size: 0.72rem;
    line-height: 1.6;
  }

  .code-body pre { white-space: pre-wrap; word-break: break-word; }

  .feat-card { padding: 1.25rem; }

  .card { padding: 1.25rem; border-radius: var(--radius); }

  .nav-inner { padding: 0 1rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
