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

:root {
  --bg:           #08080b;
  --bg-1:         #0d0d12;
  --bg-card:      #111118;
  --bg-card-2:    #16161f;
  --border:       rgba(255,255,255,0.055);
  --border-glow:  rgba(124,92,252,0.35);
  --accent:       #7c5cfc;
  --accent-alt:   #f0a500;
  --accent-dim:   rgba(124,92,252,0.1);
  --accent-glow:  rgba(124,92,252,0.45);
  --text:         #e2e2ee;
  --text-muted:   #52526a;
  --success:      #22c55e;
  --gold:         #f0a500;
  --radius:       16px;
  --radius-sm:    10px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Film grain overlay ─────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Animated background mesh ───────────────────────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124,92,252,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 80% 70%, rgba(240,165,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 60% 15%, rgba(124,92,252,0.06) 0%, transparent 50%);
  animation: mesh-drift 20s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

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

/* ── Gradient text ─────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #7c5cfc 45%, #f0a500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(8,8,11,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-bottom-color: rgba(124,92,252,0.12);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem; color: #fff;
  letter-spacing: -0.01em;
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(124,92,252,0.5);
  box-shadow: 0 0 14px rgba(124,92,252,0.35);
}

.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

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

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-discord {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(124,92,252,0.4);
}
.btn-discord:hover {
  background: #6a4de8;
  box-shadow: 0 0 36px rgba(124,92,252,0.6);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 7rem 5rem 5rem;
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-left { z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.22);
  border-radius: 999px;
  padding: 0.35rem 1rem 0.35rem 0.5rem;
  font-size: 0.78rem; font-weight: 600;
  color: #b8a5ff;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
  50%       { opacity: 0.7; transform: scale(1.35); box-shadow: 0 0 16px rgba(34,197,94,0.4); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 .meet-line {
  display: block;
  font-size: 0.6em;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.15em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.75rem; }

.hero-proof {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; color: var(--text-muted);
}
.proof-avatars { display: flex; }
.proof-avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  border: 2px solid var(--bg);
  background: var(--bg-card-2);
  margin-left: -7px;
}
.proof-avatars span:first-child { margin-left: 0; }

/* ── Discord Mockup ────────────────────────────────────────────────────────── */
.hero-right { position: relative; z-index: 1; }

.discord-window {
  background: #1e1f22;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 60px rgba(124,92,252,0.08);
  animation: float-window 7s ease-in-out infinite;
  max-width: 520px;
}
@keyframes float-window {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50%       { transform: translateY(-14px) rotate(-0.8deg); }
}

.window-titlebar {
  background: #2b2d31;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.window-channel {
  font-size: 0.84rem; font-weight: 600; color: #b5bac1;
  display: flex; align-items: center; gap: 6px;
}

.chat-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 12px; align-items: flex-start; }

.msg-av {
  width: 38px; height: 38px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
}
.av-user { background: #5865f2; color: #fff; }
.av-bot  { background: linear-gradient(135deg, var(--accent), #a78bfa); color: #fff; }

.msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.msg-name.bot-name { color: #a78bfa; }
.bot-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.06em;
}
.msg-time { font-size: 0.72rem; color: #72767d; }
.msg-text { font-size: 0.88rem; color: #dbdee1; }
.slash-preview { color: #00b0f4; font-weight: 600; }

.msg-embed {
  margin-top: 8px;
  background: #2b2d31;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  max-width: 380px;
}
.embed-ttl { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.embed-link { color: #00aff4; font-size: 0.875rem; }
.embed-meta { display: flex; gap: 16px; margin-top: 8px; }
.embed-field-sm { font-size: 0.78rem; }
.embed-field-name { color: #b5bac1; font-weight: 600; margin-bottom: 1px; }
.embed-field-val  { color: #dbdee1; }

.typing-indicator {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; color: #72767d;
  padding: 0 0 4px;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
  width: 5px; height: 5px;
  background: #72767d; border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Floating accent cards */
.hero-card-accent {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  white-space: nowrap;
  animation: float-card 5.5s ease-in-out infinite;
}
.accent-1 { bottom: -20px; left: -40px; animation-delay: -2.5s; }
.accent-2 { top: 24px; right: -28px; animation-delay: -1s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
.accent-icon { font-size: 1.1rem; }
.accent-text strong { display: block; font-weight: 700; color: #fff; font-size: 0.82rem; }
.accent-text span   { color: var(--text-muted); font-size: 0.74rem; }

/* ── Stats bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 5rem;
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(124,92,252,0.04) 50%, transparent 100%);
  pointer-events: none;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 160px;
  padding: 0 1.5rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em;
  padding-right: 0.06em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #7c5cfc 50%, #f0a500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-lbl {
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Section layout ────────────────────────────────────────────────────────── */
section { padding: 6rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(124,92,252,0.18);
  border-radius: 6px;
  padding: 0.25rem 0.85rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #b8a5ff;
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 480px; line-height: 1.75;
}

/* ── Feature cards ─────────────────────────────────────────────────────────── */
#features { background: var(--bg-1); }

.features-header { margin-bottom: 3.5rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

/* Decorative background number */
.feat-card::before {
  content: attr(data-num);
  position: absolute;
  top: -0.3rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s;
}

/* Gradient shimmer on hover */
.feat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.06) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.feat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(124,92,252,0.12), 0 0 0 1px rgba(124,92,252,0.1);
}
.feat-card:hover::before { color: rgba(124,92,252,0.07); }
.feat-card:hover::after  { opacity: 1; }

/* Top accent line on hover */
.feat-card-inner { position: relative; z-index: 1; }

.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 1.35rem;
}
.ic-music  { background: rgba(29,185,84,0.1);   box-shadow: 0 0 18px rgba(29,185,84,0.12);  }
.ic-mod    { background: rgba(239,68,68,0.1);    box-shadow: 0 0 18px rgba(239,68,68,0.12);  }
.ic-level  { background: rgba(240,165,0,0.1);    box-shadow: 0 0 18px rgba(240,165,0,0.12);  }
.ic-web    { background: rgba(124,92,252,0.1);   box-shadow: 0 0 18px rgba(124,92,252,0.12); }

.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: #fff; margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.feat-card p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.35rem; }

.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ftag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem; color: var(--text-muted);
  font-family: var(--font-mono);
  transition: border-color 0.2s, color 0.2s;
}
.feat-card:hover .ftag { border-color: rgba(124,92,252,0.2); color: #9080c0; }

/* ── AutoMod spotlight section ─────────────────────────────────────────────── */
.automod-section {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}

.automod-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(239,68,68,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.automod-header { margin-bottom: 3rem; }
.am-label { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #fca5a5; }

.am-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.am-rule-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.am-rule-card:hover {
  border-color: rgba(239,68,68,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(239,68,68,0.07);
}

.am-rule-icon {
  font-size: 1.35rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.am-rule-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.am-rule-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.am-rule-desc code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a5b4fc;
  background: rgba(88,101,242,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.am-rule-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.am-actions-row {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.am-action-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.am-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
}

.am-chip-del  { background: rgba(107,114,128,0.12); border-color: rgba(107,114,128,0.25); color: #9ca3af; }
.am-chip-warn { background: rgba(234,179,8,0.1);    border-color: rgba(234,179,8,0.25);   color: #fbbf24; }
.am-chip-mute { background: rgba(124,92,252,0.1);   border-color: rgba(124,92,252,0.25);  color: #a78bfa; }
.am-chip-kick { background: rgba(249,115,22,0.1);   border-color: rgba(249,115,22,0.25);  color: #fb923c; }
.am-chip-ban  { background: rgba(239,68,68,0.1);    border-color: rgba(239,68,68,0.25);   color: #f87171; }

.am-actions-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Commands section ──────────────────────────────────────────────────────── */
#commands { background: var(--bg); }

.cmd-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.cmd-sidebar {
  background: rgba(0,0,0,0.25);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
}
.cmd-sidebar-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 1.25rem;
  margin-bottom: 0.6rem;
}
.cmd-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem; color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.cmd-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.cmd-tab.active {
  color: #fff; background: rgba(124,92,252,0.1);
  border-left-color: var(--accent);
  font-weight: 600;
}
.cmd-tab-icon { width: 20px; text-align: center; }

.cmd-content { padding: 1.75rem 2rem; }
.cmd-pane { display: none; }
.cmd-pane.active { display: block; }

.cmd-pane-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: 1.35rem;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.01em;
}

.cmd-list { display: flex; flex-direction: column; gap: 6px; }

.cmd-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.cmd-row:hover {
  border-color: rgba(124,92,252,0.2);
  background: rgba(124,92,252,0.04);
}
.cmd-name {
  font-family: var(--font-mono);
  font-size: 0.83rem; font-weight: 600;
  color: #b8a5ff;
}
.cmd-desc { font-size: 0.83rem; color: var(--text-muted); }

/* ── CTA section ───────────────────────────────────────────────────────────── */
#cta {
  background: var(--bg-1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124,92,252,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 640px; margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-inner p  { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg);
}
.footer-brand .logo-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 0.8rem;
}
.footer-brand .logo-row span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1rem; color: #fff;
}
.footer-brand .logo-row img {
  border: 1.5px solid rgba(124,92,252,0.35);
  box-shadow: 0 0 10px rgba(124,92,252,0.2);
}
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); max-width: 240px; line-height: 1.65; }

.footer-col h4 {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block; font-size: 0.85rem;
  color: var(--text-muted); margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 5rem;
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--bg);
}

/* ── Scroll reveal ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 2rem 4rem;
    text-align: center;
  }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-right { display: none; }
  .stats-bar { padding: 1.75rem 2rem; gap: 0; flex-wrap: wrap; }
  .stat-item { min-width: 150px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; padding: 1rem 1.5rem; }
  .cmd-layout { grid-template-columns: 1fr; }
  .cmd-sidebar {
    display: flex; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 0;
  }
  .cmd-sidebar-label { display: none; }
  .cmd-tab { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .cmd-tab.active { border-left: none; border-bottom-color: var(--accent); }
  .cmd-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 0; }
  .stat-item + .stat-item::before { display: none; }
}
