/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg: #09090b;
  --bg-2: #0f0f13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --primary: #6366f1;
  --primary-lt: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.2);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);

  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #52525b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 6px;
  --ease: 0.2s ease;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ── SVG icon sizes ──────────────────────────────────────── */
.icon-xs {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
}
.icon-sm {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.icon-md {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}
.icon-lg {
  width: 30px;
  height: 30px;
  display: inline-block;
  flex-shrink: 0;
}
.icon-react {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.inline-icon {
  vertical-align: -2px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

/* ── Typography ──────────────────────────────────────────── */
h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-lt) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: var(--r);
}
.btn-arrow {
  transition: transform var(--ease);
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 0 var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--ease);
}
.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  transition: all var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.nav-cta {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  margin-left: auto;
  transition: all var(--ease);
  line-height: 0;
}
.nav-menu-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--r-xs);
  transition: all var(--ease);
}
.nav-mobile a:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.nav-mobile .btn {
  margin-top: 8px;
  justify-content: center;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 130px 24px 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 55% at 15% 15%,
      rgba(99, 102, 241, 0.13) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 55% 45% at 85% 85%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 65%
    );
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero-title {
  margin-bottom: 18px;
}
.hero-desc {
  color: var(--text-2);
  font-size: 1.1rem;
  margin-bottom: 34px;
  max-width: 460px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Discord mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
.discord-mockup {
  width: 100%;
  max-width: 430px;
  background: #2b2d31;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.mockup-header {
  background: #1e1f22;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.mockup-channel {
  color: #80848e;
  font-size: 0.85rem;
  font-weight: 600;
}
.mockup-channel::before {
  content: "# ";
}
.mockup-messages {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mockup-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mockup-bot-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #36393f;
}
.mockup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bot-avatar {
  background: #5865f2;
}
.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mockup-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mockup-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b5bac1;
}
.bot-name {
  color: #5865f2;
}
.pridebot-name {
  color: #ec4899;
}
.pridebot-link {
  text-decoration: none;
  transition: opacity 0.15s;
}
.pridebot-link:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bot-tag-verified-img {
  height: 36px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-top: -10px;
  margin-bottom: -10px;
}
.mockup-ts {
  font-size: 0.7rem;
  color: #6d6f78;
  font-weight: 400;
  white-space: nowrap;
}
.bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.mockup-text {
  font-size: 0.92rem;
  color: #dbdee1;
  font-family: monospace;
}
.bot-text {
  font-family: var(--font);
  font-size: 0.88rem;
  color: #b5bac1;
}
.mockup-reactions {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.mockup-reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.4;
  font-family: var(--font);
}
.mockup-reaction--green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.mockup-reaction--green:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.55);
}
.mockup-reaction--green:active {
  background: rgba(34, 197, 94, 0.35);
}
.mockup-reaction--green.reacted {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.6);
}
.mockup-reaction--green.reacted:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
}
.mockup-reaction--red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.mockup-reaction--red:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.55);
}
.mockup-reaction--red:active {
  background: rgba(239, 68, 68, 0.35);
}
.mockup-reaction--red.reacted {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.6);
}
.mockup-reaction--red.reacted:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

/* ── Stats strip ─────────────────────────────────────────── */
.stats-strip {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-item {
  padding: 20px 16px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Features ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: all var(--ease);
}
.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.feature-icon {
  margin-bottom: 14px;
  display: block;
  color: var(--primary-lt);
}
.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
}
.feature-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
}
.feature-card code {
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-lt);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.85em;
}

/* ── Modes ───────────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.mode-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--ease);
}
.mode-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.mode-card:hover::after {
  opacity: 1;
}
.mode-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mode-icon {
  flex-shrink: 0;
  color: var(--primary-lt);
  line-height: 0;
}
.mode-card h3 {
  font-size: 0.95rem;
}
.mode-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent);
  border: 1px solid rgba(236, 72, 153, 0.25);
}
.mode-seq {
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--primary-lt);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 7px 12px;
  border-radius: var(--r-xs);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.mode-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Math strip ──────────────────────────────────────────── */
.math-section {
  background: var(--bg-2);
}
.math-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.math-type {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 18px 16px;
  transition: all var(--ease);
}
.math-type:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.math-type-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.math-examples {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.math-ex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.math-ex code {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: var(--primary-lt);
}
.math-ex span {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Expression verifier ─────────────────────────────────── */
.verifier-box {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
}
.verifier-header {
  margin-bottom: 18px;
}
.verifier-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.verifier-header p {
  font-size: 0.85rem;
  color: var(--text-2);
}
.verifier-input-row {
  display: flex;
  gap: 10px;
}
.verifier-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 16px;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  min-width: 0;
}
.verifier-input::placeholder {
  color: var(--text-3);
  font-family: var(--font);
}
.verifier-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.verifier-result {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  animation: verifier-pop 0.18s ease;
}
@keyframes verifier-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.verifier-result[hidden] {
  display: none;
}
.verifier-result--valid {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green);
}
.verifier-result--invalid {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}
.verifier-result--ambiguous {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #eab308;
}
.verifier-result--ambiguous strong {
  color: #fde047;
  font-weight: 600;
}
.verifier-result-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.verifier-result-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.verifier-result-main {
  font-weight: 600;
}
.verifier-result-sub {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ── Commands ────────────────────────────────────────────── */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  transition: all var(--ease);
}
.cmd-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.cmd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cmd-header code {
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  color: var(--primary-lt);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  padding: 3px 8px;
  border-radius: var(--r-xs);
}
.cmd-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.cmd-badge.admin {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent);
  border-color: rgba(236, 72, 153, 0.25);
}
.cmd-card p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
  padding: 72px 0;
}
.cta-box {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(236, 72, 153, 0.08) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 65%
  );
}
.cta-box h2 {
  margin-bottom: 10px;
}
.cta-box p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.footer-brand p {
  color: var(--text-2);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--ease);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-3);
  font-size: 0.82rem;
}
.footer-bottom a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ── Mode modal ──────────────────────────────────────────── */
.mode-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade-in 0.18s ease;
}
.mode-modal-overlay[hidden] {
  display: none;
}
@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mode-modal {
  background: #13131a;
  border: 1px solid var(--border-hover);
  border-radius: var(--r);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
  animation: modal-slide-in 0.18s ease;
}
@keyframes modal-slide-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.mode-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mode-modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.mode-modal-close {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  transition:
    color var(--ease),
    background var(--ease);
}
.mode-modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.mode-modal-hint {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 20px;
}
.mode-modal-cmd-group {
  margin-bottom: 14px;
}
.mode-modal-cmd-group:last-child {
  margin-bottom: 0;
}
.mode-modal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.mode-modal-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition:
    background var(--ease),
    border-color var(--ease);
  text-align: left;
  position: relative;
}
.mode-modal-cmd:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}
.mode-modal-cmd code {
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  color: var(--primary-lt);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mode-modal-copy-icon {
  flex-shrink: 0;
  color: var(--text-3);
  line-height: 0;
  transition: color var(--ease);
}
.mode-modal-cmd:hover .mode-modal-copy-icon {
  color: var(--text-2);
}
.mode-modal-copied {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.mode-modal-cmd.copied .mode-modal-copied {
  opacity: 1;
}
.mode-modal-cmd.copied .mode-modal-copy-icon {
  opacity: 0;
}

/* ── Reveal animation ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-top: 110px;
  }
  .hero-desc {
    margin: 0 auto 34px;
  }
  .hero-actions {
    justify-content: center;
  }
  .mockup-msg,
  .mockup-bot-msg {
    text-align: left;
  }
  .discord-mockup {
    max-width: 380px;
    margin: 0 auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-menu-btn {
    display: block;
  }

  .features-grid,
  .modes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .math-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item + .stat-item::before {
    display: none;
  }

  .commands-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 44px 28px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }
  .features-grid,
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}
