    :root {
      --accent-rgb: 88, 101, 242;
      --blurple:      rgb(var(--accent-rgb));
      --blurple-dim:  rgba(var(--accent-rgb), 0.78);
      --blurple-glow: rgba(var(--accent-rgb), 0.18);
      --gold:      #FFD700;
      --green:     #3BA55C;
      --red:       #ED4245;
      --bg:        #0e0f14;
      --bg2:       #15171f;
      --bg3:       #1d1f2b;
      --border:    rgba(var(--accent-rgb), 0.18);
      --nav-bg:    rgba(14,15,20,0.85);
      --text:      #e3e5ec;
      --muted:     #8b8fa8;
      --radius:    12px;
      --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
      --font-mono: "SF Mono", ui-monospace, "Menlo", "Monaco", "Cascadia Code", monospace;
      transition: background-color 0.4s ease;
    }

    [data-theme="light"] {
      --bg:        #f6f6f9;
      --bg2:       #ffffff;
      --bg3:       #eef0f7;
      --text:      #181a23;
      --muted:     #686d83;
      --border:    rgba(var(--accent-rgb), 0.22);
      --nav-bg:    rgba(255,255,255,0.72);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    body { overflow-x: hidden; }

    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.6;
    }

    /* ── NAV ── */
    nav {
      position: sticky; top: 0; z-index: 100;
      background: var(--nav-bg);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid var(--border);
      height: 60px;
      box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      height: 100%;
      padding: 0 2rem;
      display: flex; align-items: center; justify-content: space-between;
      gap: 1.5rem;
    }
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
    }
    .nav-logo img { width: 32px; height: 32px; border-radius: 50%; display: block; }
    .verified-badge {
      display: inline-flex; align-items: center; justify-content: center;
      width: 15px; height: 15px; border-radius: 50%;
      background: var(--blurple); color: #fff;
      font-size: 10px; font-weight: 700;
      margin-left: -2px;
    }
    .nav-links { display: flex; gap: 1.5rem; }
    .nav-links a {
      color: var(--muted); text-decoration: none;
      font-size: 0.9rem; font-weight: 500;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-toggle {
      display: none;
      background: none; border: none; color: var(--text);
      align-items: center; justify-content: center;
      padding: 6px; margin-left: -6px;
      cursor: pointer;
    }
    .nav-right { display: flex; align-items: center; gap: 1rem; }
    .live-pill {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.78rem; font-weight: 600; color: var(--muted);
      padding: 4px 10px; border-radius: 999px;
      border: 1px solid var(--border);
    }
    .live-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 0 rgba(59,165,92,0.6);
      animation: pulse 2s infinite;
    }
    .live-dot.offline { background: var(--red); animation: none; box-shadow: none; }
    @keyframes pulse {
      0%   { box-shadow: 0 0 0 0 rgba(59,165,92,0.5); }
      70%  { box-shadow: 0 0 0 6px rgba(59,165,92,0); }
      100% { box-shadow: 0 0 0 0 rgba(59,165,92,0); }
    }
    .uptime-badge {
      display: inline-flex; align-items: center;
      font-size: 0.76rem; font-weight: 600; color: var(--muted);
      padding: 4px 10px; border-radius: 999px;
      border: 1px solid var(--border);
      white-space: nowrap;
    }
    @media (max-width: 860px) { .uptime-badge { display: none; } }

    /* ── OFFLINE BANNER (hidden unless the live-status check fails) ── */
    .offline-banner {
      display: none;
      align-items: center; justify-content: center; gap: 8px;
      background: rgba(237,66,69,0.1);
      border-bottom: 1px solid rgba(237,66,69,0.3);
      color: #f57275;
      font-size: 0.85rem; font-weight: 500;
      padding: 0.7rem 1rem;
      text-align: center;
    }
    .offline-banner.show { display: flex; }

    /* ── PAGE LOADER (branded splash, ~2s on first load) ── */
    .page-loader {
      position: fixed; inset: 0; z-index: 999;
      background: var(--bg);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 16px;
      opacity: 1; visibility: visible;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    .page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
    .page-loader-logo {
      width: 52px; height: 52px; border-radius: 50%;
      animation: loader-pulse 1.2s ease-in-out infinite;
    }
    @keyframes loader-pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50%      { transform: scale(1.08); opacity: 0.7; }
    }
    .page-loader-bar { width: 130px; height: 3px; border-radius: 999px; background: var(--bg3); overflow: hidden; }
    .page-loader-fill { height: 100%; width: 0%; background: var(--blurple); border-radius: 999px; animation: loader-fill 2s ease forwards; }
    @keyframes loader-fill { from { width: 0%; } to { width: 100%; } }
    @media (prefers-reduced-motion: reduce) {
      .page-loader { display: none; }
    }

    /* ── THEME PICKER ── */
    .theme-picker { display: flex; align-items: center; gap: 10px; }
    .mode-toggle {
      width: 32px; height: 32px; border-radius: 9px;
      background: var(--bg2); border: 1px solid var(--border);
      color: var(--muted); cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: color 0.2s, border-color 0.2s;
    }
    .mode-toggle:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.5); }
    .swatch-row { display: flex; gap: 6px; }
    .swatch {
      width: 18px; height: 18px; border-radius: 50%;
      background: var(--sw);
      border: 2px solid transparent;
      cursor: pointer; padding: 0;
      transition: transform 0.15s, border-color 0.15s;
    }
    .swatch:hover { transform: scale(1.15); }
    .swatch.active { border-color: var(--text); }

    /* ── HERO ── */
    .hero {
      padding: 4.5rem 2rem 3.5rem;
      max-width: 900px; margin: 0 auto;
      text-align: center;
    }
    .hero-logo-wrap {
      width: 84px; height: 84px; margin: 0 auto 1.5rem; position: relative;
    }
    .hero-logo {
      width: 84px; height: 84px; border-radius: 50%;
      display: block;
      box-shadow: 0 0 0 1px var(--border), 0 12px 40px rgba(var(--accent-rgb), 0.25);
      position: relative; z-index: 1;
    }
    .hero-logo-wrap::after {
      content: '';
      position: absolute; inset: 0; border-radius: 50%;
      background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 35%);
      z-index: 2; pointer-events: none;
    }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--blurple-glow);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 4px 14px;
      font-size: 0.8rem; font-weight: 600;
      color: #a0a8ff;
      margin-bottom: 1.5rem;
      letter-spacing: 0.04em; text-transform: uppercase;
    }
    .hero h1 {
      font-size: clamp(2.4rem, 6vw, 4rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 1.2rem;
    }
    .hero h1 span { color: var(--blurple); }
    .hero p {
      font-size: 1.1rem;
      color: var(--muted);
      max-width: 560px; margin: 0 auto 2.5rem;
    }
    .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 0.7rem 1.6rem;
      border-radius: var(--radius);
      font-family: inherit; font-size: 0.95rem; font-weight: 600;
      cursor: pointer; text-decoration: none;
      border: none; transition: all 0.2s;
    }
    .btn-primary {
      background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 50%), var(--blurple);
      color: #fff;
      box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 16px rgba(var(--accent-rgb), 0.35);
    }
    .btn-primary:hover { background: var(--blurple-dim); transform: translateY(-1px); }
    .btn-ghost {
      background: transparent; color: var(--muted);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.5); }

    /* ── SECTION WRAPPER ── */
    .section {
      padding: 4rem 2rem;
      max-width: 1100px; margin: 0 auto;
    }
    .section-label {
      font-family: var(--font-mono);
      font-size: 0.74rem; font-weight: 700;
      color: var(--blurple);
      letter-spacing: 0.12em; text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    .section-title {
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 700; letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }
    .section-sub {
      color: var(--muted); font-size: 0.95rem;
      margin-bottom: 2.5rem;
    }
    .divider { border: none; border-top: 1px solid var(--border); margin: 0; }

    /* ── LIVE STATS GRID ── */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 1rem; margin-bottom: 1.2rem;
    }
    @media (max-width: 980px) {
      .stats-row { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 640px) {
      .stats-row { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 380px) {
      .stats-row { grid-template-columns: 1fr; }
    }
    .stat-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%), var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.4rem 1.6rem;
      display: flex; flex-direction: column; gap: 4px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
    }
    .stat-card .num {
      font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
      color: var(--text);
      font-variant-numeric: tabular-nums;
    }
    .stat-card .label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
    .stat-card.skeleton .num {
      color: transparent;
      background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 6px;
      width: 70px; height: 1.9rem;
    }
    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .stats-footer {
      font-size: 0.8rem; color: var(--muted);
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 2.5rem;
    }
    .maintenance-banner {
      display: none;
      align-items: center; gap: 10px;
      background: rgba(255,153,0,0.1);
      border: 1px solid rgba(255,153,0,0.3);
      border-radius: var(--radius);
      padding: 0.9rem 1.2rem;
      font-size: 0.88rem; color: #ffaa33;
      margin-bottom: 1.2rem;
    }

    /* ── SPARKLINE ── */
    .spark-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.2rem 1.5rem 0.6rem;
      margin-bottom: 1.2rem;
    }
    .spark-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 0.6rem;
    }
    .spark-head .label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
    .spark-total {
      font-family: var(--font-mono);
      font-size: 0.85rem; font-weight: 600; color: var(--blurple);
    }
    .spark-svg { width: 100%; height: 70px; display: block; overflow: visible; }
    .spark-svg polyline {
      fill: none;
      stroke: var(--blurple);
      stroke-width: 2;
      stroke-linejoin: round;
      stroke-linecap: round;
      vector-effect: non-scaling-stroke;
      transition: stroke 0.3s;
    }
    .spark-svg polygon {
      fill: var(--blurple);
      opacity: 0.12;
      transition: fill 0.3s;
    }

    /* ── XP FORMULA CARD ── */
    .xp-formula {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.8rem 2rem;
      margin-bottom: 2rem;
    }
    .xp-formula h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
    .xp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
    .xp-table th {
      text-align: left; padding: 6px 12px;
      color: var(--muted); font-weight: 600;
      border-bottom: 1px solid var(--border);
      font-family: var(--font-mono); font-size: 0.75rem;
      letter-spacing: 0.06em; text-transform: uppercase;
    }
    .xp-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .xp-table tr:last-child td { border-bottom: none; }
    .xp-table .tag {
      display: inline-block; padding: 2px 8px;
      border-radius: 6px; font-size: 0.78rem; font-weight: 600;
      font-family: var(--font-mono);
    }
    .tag-base    { background: rgba(var(--accent-rgb), 0.18); color: #a0a8ff; }
    .tag-streak  { background: rgba(255,153,0,0.15);  color: #ffaa33; }
    .tag-mile    { background: rgba(255,215,0,0.15);  color: var(--gold); }
    .tag-prestige{ background: rgba(59,165,92,0.15);  color: #5cde8a; }

    /* ── COMMAND GRID ── */
    .cmd-section { margin-bottom: 2.5rem; }
    .cmd-group-label {
      font-size: 0.8rem; font-weight: 700;
      color: var(--muted);
      letter-spacing: 0.06em; text-transform: uppercase;
      margin-bottom: 0.8rem;
      display: flex; align-items: center; gap: 8px;
    }
    .cmd-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .cmd-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 0.7rem;
    }
    .cmd-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 40%), var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.2rem;
      transition: border-color 0.2s, background 0.2s, transform 0.2s;
      box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
    }
    .cmd-card:hover { border-color: rgba(var(--accent-rgb), 0.4); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%), var(--bg3); transform: translateY(-1px); }
    .cmd-name {
      font-family: var(--font-mono);
      font-size: 0.88rem; font-weight: 600;
      color: var(--blurple); margin-bottom: 4px;
    }
    .cmd-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.4; }
    .cmd-badge {
      display: inline-block; margin-top: 6px;
      padding: 1px 7px; border-radius: 6px;
      font-size: 0.7rem; font-weight: 700;
      background: rgba(237,66,69,0.15); color: #f57275;
    }
    .cmd-badge.mod { background: rgba(255,153,0,0.15); color: #ffaa33; }

    /* ── DISCORD-STYLE INLINE CODE (matches actual bot output: `/command args`) ── */
    .discord-cmd {
      display: inline;
      background: #2b2d31;
      color: #dbdee1;
      padding: 0.15em 0.4em;
      border-radius: 3px;
      font-family: var(--font-mono);
      font-size: 0.85em;
    }

    /* ── COMPACT DISCORD RESULT PREVIEW ── */
    .discord-preview {
      margin-top: 10px;
      background: #313338;
      border-radius: 6px;
      padding: 8px 10px 9px;
    }
    .dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
    .dp-avatar {
      width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
      background: var(--blurple);
      display: flex; align-items: center; justify-content: center;
      font-size: 9px; color: #fff; font-weight: 700;
    }
    .dp-name { font-size: 0.7rem; font-weight: 600; color: #f2f3f5; }
    .dp-tag {
      background: var(--blurple); color: #fff; font-size: 0.5rem; font-weight: 700;
      padding: 0 4px; border-radius: 3px; line-height: 1.3;
    }
    .dp-time { font-size: 0.62rem; color: #949ba4; }
    .dp-embed {
      border-left: 3px solid var(--blurple);
      background: #2b2d31;
      border-radius: 4px;
      padding: 6px 10px 7px;
    }
    .dp-title { font-size: 0.72rem; font-weight: 600; color: #f2f3f5; margin-bottom: 2px; }
    .dp-desc { font-size: 0.68rem; color: #c7c9cd; line-height: 1.55; }
    .dp-fields { display: flex; gap: 14px; margin-top: 5px; flex-wrap: wrap; }
    .dp-field-label { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; color: #949ba4; letter-spacing: 0.3px; }
    .dp-field-value { font-size: 0.68rem; color: #dbdee1; margin-top: 1px; }

    /* Skeleton shimmer shown briefly before the preview "loads" */
    .discord-preview.loading .dp-embed { position: relative; min-height: 46px; }
    .discord-preview.loading .dp-embed > * { visibility: hidden; }
    .discord-preview.loading .dp-embed::before {
      content: '';
      position: absolute; inset: 7px 10px;
      background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 4px;
    }
    .discord-preview.loading .dp-time { visibility: hidden; }

    /* ── ACHIEVEMENT GRID ── */
    .achieve-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 0.7rem;
    }
    .achieve-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.2rem;
      display: flex; align-items: flex-start; gap: 12px;
    }
    .achieve-icon {
      width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px;
      background: var(--bg3);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-mono);
      font-size: 0.78rem; font-weight: 700; color: var(--blurple);
    }
    .achieve-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
    .achieve-desc { font-size: 0.78rem; color: var(--muted); }
    .achieve-xp { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); margin-top: 4px; }
    .achieve-hidden { opacity: 0.5; border-style: dashed; }

    /* ── PRESTIGE STRIP ── */
    .prestige-strip {
      background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 2rem 2.4rem;
      display: flex; align-items: center; gap: 2rem;
      flex-wrap: wrap;
    }
    .prestige-strip .icon {
      width: 56px; height: 56px; border-radius: 14px;
      background: var(--bg3);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .prestige-strip .icon img { width: 32px; height: 32px; }
    .prestige-strip h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
    .prestige-strip p { font-size: 0.88rem; color: var(--muted); }
    .prestige-levels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0.8rem; }
    .prestige-pip {
      padding: 3px 10px; border-radius: 8px;
      font-size: 0.78rem; font-weight: 600;
      background: var(--bg3); border: 1px solid var(--border);
      font-family: var(--font-mono);
    }

    /* ── LEVEL LADDER ── */
    .level-ladder {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 0.6rem;
    }
    .level-row {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.8rem 1rem;
      font-family: var(--font-mono);
      font-size: 0.82rem;
    }
    .level-row .lvl { color: var(--blurple); font-weight: 600; }
    .level-row .xpreq { color: var(--muted); font-size: 0.75rem; }

    /* ── CHALLENGES ── */
    .challenge-row {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    .challenge-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.4rem 1.6rem;
    }
    .challenge-type {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
      margin-bottom: 6px;
    }
    .challenge-type.daily  { color: #5cde8a; }
    .challenge-type.weekly { color: #a0a8ff; }
    .challenge-type.monthly{ color: var(--gold); }
    .challenge-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
    .challenge-card p { font-size: 0.82rem; color: var(--muted); }

    /* ── MODERATION ── */
    .mod-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    .mod-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.4rem 1.6rem;
    }
    .mod-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
    .mod-card p  { font-size: 0.82rem; color: var(--muted); }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2.4rem 2rem;
      text-align: center;
      color: var(--muted);
      font-size: 0.82rem;
    }
    footer .foot-logo {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      margin-bottom: 8px; font-weight: 600; color: var(--text);
    }
    footer .foot-logo img { width: 20px; height: 20px; border-radius: 50%; }
    footer a { color: var(--blurple); text-decoration: none; }

    .pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
    .pill-blue { background: rgba(var(--accent-rgb), 0.18); color: #a0a8ff; }

    /* ── SUPPORT CARD ── */
    .support-card {
      background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 2rem 2.4rem;
      display: flex; align-items: center; justify-content: space-between;
      gap: 1.5rem; flex-wrap: wrap;
    }
    .support-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
    .support-card p { font-size: 0.88rem; color: var(--muted); }

    @media (max-width: 640px) {
      .stat-card { padding: 1.1rem 1.2rem; }
      .stat-card .num { font-size: 1.6rem; }
    }

    @media (max-width: 600px) {
      .nav-toggle { display: flex; }
      .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--bg2); border-bottom: 1px solid var(--border);
        padding: 0.4rem 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
      }
      .nav-links.open { display: flex; }
      .nav-links a { padding: 0.85rem 1.5rem; }
      .nav-links a.active { background: rgba(var(--accent-rgb), 0.1); }
      .nav-links a.active::after { display: none; }
      /* Decongest the mobile nav-right cluster so the Invite Bot button
         (the primary CTA) always stays visible instead of overflowing. */
      .swatch-row { display: none; }
      .live-pill span:not(.live-dot) { display: none; }
      .live-pill { padding: 6px; gap: 0; }
      .nav-right { gap: 0.6rem; }
      .hero { padding: 3rem 1.2rem 2.5rem; }
      .section { padding: 2.5rem 1.2rem; }
      .prestige-strip { flex-direction: column; gap: 1rem; }
      .support-card { flex-direction: column; text-align: center; }
    }

    /* ── PAGE TRANSITIONS ── */
    html { view-transition-name: none; }
    body {
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.35s ease, transform 0.35s ease;
    }
    body.loaded { opacity: 1; transform: translateY(0); }

    @media (prefers-reduced-motion: reduce) {
      body { opacity: 1; transform: none; transition: none; }
    }

    ::view-transition-old(root) {
      animation: page-fade-out 0.22s ease both;
    }
    ::view-transition-new(root) {
      animation: page-fade-in 0.28s ease both;
    }
    @keyframes page-fade-out {
      to { opacity: 0; transform: translateY(-6px); }
    }
    @keyframes page-fade-in {
      from { opacity: 0; transform: translateY(6px); }
    }

    /* ── NAV ACTIVE LINK ── */
    .nav-links a.active { color: var(--text); position: relative; }
    .nav-links a.active::after {
      content: '';
      position: absolute; left: 0; right: 0; bottom: -20px;
      height: 2px; background: var(--blurple);
      border-radius: 2px;
    }
    .nav-links { position: relative; }

    /* ── PAGE HEADER (non-home pages) ── */
    .page-header {
      padding: 3.5rem 2rem 2rem;
      max-width: 1100px; margin: 0 auto;
      text-align: center;
    }
    .page-header .section-label { justify-content: center; display: flex; }
    .page-header h1 {
      font-size: clamp(2rem, 4.5vw, 3rem);
      font-weight: 700; letter-spacing: -0.03em;
      margin: 0.4rem 0 0.8rem;
    }
    .page-header p {
      color: var(--muted); font-size: 1.05rem;
      max-width: 560px; margin: 0 auto;
    }

    /* ── HOME TEASER CARDS ── */
    .teaser-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    @media (max-width: 900px) {
      .teaser-grid { grid-template-columns: 1fr; }
    }
    .teaser-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%), var(--bg2);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.6rem 1.8rem;
      text-decoration: none; color: inherit;
      display: block;
      transition: border-color 0.2s, transform 0.2s, background 0.2s;
    }
    .teaser-card:hover {
      border-color: rgba(var(--accent-rgb), 0.5);
      transform: translateY(-2px);
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 40%), var(--bg3);
    }
    .teaser-card .teaser-icon {
      width: 40px; height: 40px; border-radius: 10px;
      background: var(--blurple-glow);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; margin-bottom: 1rem;
    }
    .teaser-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
    .teaser-card p { font-size: 0.86rem; color: var(--muted); }
    .teaser-card .teaser-link {
      display: inline-flex; align-items: center; gap: 4px;
      margin-top: 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--blurple);
    }

    /* ── DOCS PAGE ── */
    .docs-step {
      display: flex; gap: 1.2rem;
      padding: 1.4rem 0;
      border-bottom: 1px solid var(--border);
    }
    .docs-step:last-child { border-bottom: none; }
    .docs-step .step-num {
      flex-shrink: 0;
      width: 34px; height: 34px; border-radius: 50%;
      background: var(--blurple-glow); color: var(--blurple);
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-family: var(--font-mono); font-size: 0.9rem;
    }
    .docs-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
    .docs-step p { font-size: 0.9rem; color: var(--muted); }
    .docs-step code {
      background: var(--bg3); border: 1px solid var(--border);
      padding: 1px 7px; border-radius: 5px;
      font-family: var(--font-mono); font-size: 0.85em; color: var(--blurple);
    }
    .docs-faq { margin-top: 1rem; }
    .docs-faq details {
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1rem 1.3rem;
      margin-bottom: 0.7rem;
    }
    .docs-faq summary {
      cursor: pointer; font-weight: 600; font-size: 0.95rem;
      list-style: none;
    }
    .docs-faq summary::-webkit-details-marker { display: none; }
    .docs-faq summary::before { content: '+ '; color: var(--blurple); }
    .docs-faq details[open] summary::before { content: '– '; }
    .docs-faq p { color: var(--muted); font-size: 0.88rem; margin-top: 0.6rem; }
    .docs-faq p a { color: #a0a8ff; }
    .docs-faq p a:hover { color: var(--blurple); }

    /* ── 404 PAGE ── */
    .notfound {
      max-width: 640px; margin: 0 auto;
      padding: 6rem 2rem; text-align: center;
    }
    .notfound .code {
      font-family: var(--font-mono); font-weight: 700;
      font-size: clamp(4rem, 14vw, 7rem);
      color: var(--blurple); letter-spacing: -0.04em;
      line-height: 1;
    }
    .notfound h1 { font-size: 1.6rem; font-weight: 700; margin: 1rem 0 0.6rem; }
    .notfound p { color: var(--muted); margin-bottom: 2rem; }
