/* ╔═══════════════════════════════════╗
   ║  CLOD — Night theme               ║
   ║  Deep navy, one lime accent,      ║
   ║  mascot-led hero. Loads last.     ║
   ╚═══════════════════════════════════╝ */

body.dark {
    /* only.meme palette */
    --accent: #06A6E5;
    --accent-hover: #2DB8EF;
    --accent-10: rgba(6, 166, 229, 0.10);
    --accent-20: rgba(6, 166, 229, 0.20);
    --accent-40: rgba(6, 166, 229, 0.40);
    --lime: #06A6E5;
    --lime-hover: #2DB8EF;
    --lime-10: rgba(6, 166, 229, 0.10);
    --lime-06: rgba(6, 166, 229, 0.06);
    --border-accent: #06A6E5;
    --ink: #02050B;

    --bg: #02050B;
    --bg-alt: #060B16;
    --surface: #0A1220;
    --white: #0A1220;
    --cream-dark: #060B16;
    --panel: #0A1220;
    --panel-alt: #060B16;

    --text: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-muted: #70839E;
    --text-secondary: #70839E;
    --text-subtle: #5C6370;
    --text-tertiary: #5C6370;
    --primary: #FFFFFF;
    --teal: #FFFFFF;
    --cream: #FFFFFF;
    --gray: #70839E;
    --gray-light: #5C6370;
    --neutral: #70839E;
    --neutral-light: #5C6370;

    --border: hsl(220 15% 20% / 0.7);
    --border-base: hsl(220 15% 20% / 0.7);
    --border-color: hsl(220 15% 20% / 0.7);
    --border-hover: hsl(220 15% 28%);
    --border-strong: hsl(220 15% 28%);

    --primary-08: rgba(150, 175, 230, 0.06);
    --primary-12: rgba(150, 175, 230, 0.10);
    --primary-soft: rgba(150, 175, 230, 0.06);
    --teal-08: rgba(150, 175, 230, 0.06);
    --teal-12: rgba(150, 175, 230, 0.10);
    --teal-20: rgba(150, 175, 230, 0.16);

    --r-sm: 10px;
    --r-md: 12px;
    --r-lg: 16px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --ff-heading: 'Inter', -apple-system, system-ui, sans-serif;

    background:
        radial-gradient(ellipse 60% 38% at 50% -6%, rgba(6, 166, 229, 0.20), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}

/* Theme is fixed to night */
#darkToggle { display: none !important; }

body.dark .nav {
    background: rgba(2, 5, 11, 0.72);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}

body.dark .hero-bg { background: none; }

/* ═══ HERO ═══ */
.hero.hero-night {
    padding: 64px 20px 8px;
    gap: 0;
}

.hero-night .hero-title {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 6vw, 80px);
    letter-spacing: -0.025em;
    line-height: 0.95;
    color: var(--text-primary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.28em;
}

.hero-night .hw i,
.hero-night .hw-hot {
    font-style: normal;
    color: var(--accent);
}

.hero-night .hero-sub {
    margin-top: 18px;
    max-width: none;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
}

/* ─── Stage: giant count behind, mascot in front ─── */
.clod-stage {
    position: relative;
    width: 100%;
    height: clamp(300px, 40vw, 420px);
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.clod-count {
    position: absolute;
    left: 0;
    right: 0;
    top: 2%;
    text-align: center;
    font-family: 'Kanit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(96px, 18vw, 230px);
    line-height: 1;
    color: #283A53;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
    user-select: none;
    pointer-events: none;
}

.clod-glow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(560px, 90vw);
    height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 55% at 50% 72%, rgba(6, 166, 229, 0.22), transparent 70%);
    pointer-events: none;
}

.clod-btn {
    position: relative;
    z-index: 2;
    width: clamp(190px, 22vw, 250px);
    margin-bottom: -32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.clod-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 50%;
}

.clod-mascot {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(rgba(0, 0, 0, 0.15) 0 25px 25px);
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: 50% 100%;
}

.clod-btn.is-poked .clod-mascot {
    animation: clod-squish 0.42s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes clod-squish {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.12, 0.84); }
    60% { transform: scale(0.94, 1.08) translateY(-10px); }
    100% { transform: scale(1, 1); }
}

/* Speech bubble */
.clod-bubble {
    position: absolute;
    left: 78%;
    top: 4%;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 12px 12px 12px 3px;
    background: var(--text-primary);
    color: var(--ink);
    font: 700 13px/1 'JetBrains Mono', monospace;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.clod-bubble.is-on {
    opacity: 1;
    transform: none;
}

/* Pixel sparks on poke */
.clod-spark {
    position: absolute;
    z-index: 1;
    width: 9px;
    height: 9px;
    background: var(--accent);
    pointer-events: none;
    animation: clod-spark 0.7s ease-out forwards;
}

@keyframes clod-spark {
    from { transform: translate(0, 0) scale(1); opacity: 1; }
    to { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

.clod-caption {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
}

.clod-caption-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.clod-caption-note {
    font-size: 14px;
    color: #5C6370;
}

.hero-night .hero-ctas {
    margin-top: 28px;
}

/* ═══ BUTTONS ═══ */
body.dark .hero-btn {
    padding: 13px 26px;
    border-radius: 999px;
    border-color: var(--border-strong);
    font-weight: 700;
}

body.dark .hero-btn:hover {
    border-color: var(--text-muted);
    background: rgba(150, 175, 230, 0.06);
}

body.dark .hero-btn-primary,
body.dark .btn-launch,
body.dark .btn-deploy {
    background: var(--accent) !important;
    color: var(--ink) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 8px 28px -10px rgba(6, 166, 229, 0.65);
}

body.dark .hero-btn-primary:hover {
    background: var(--accent-hover) !important;
}

body.dark .btn-wallet,
body.dark .btn-launch,
body.dark .btn-deploy {
    border-radius: 999px;
}

/* ═══ HOME SECTIONS → navy panels ═══ */
body.dark .home-stats {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

body.dark .stat-pill,
body.dark .fee-mode-card,
body.dark .step-card,
body.dark .feature-card,
body.dark .platform-live-stats {
    background: linear-gradient(180deg, #0A1322 0%, #070D18 100%);
    border: 1px solid var(--border-base);
    border-radius: 18px;
}

body.dark .stat-pill { padding: 16px 28px; }
body.dark .stat-pill:last-child { border-right: 1px solid var(--border-base); }

body.dark .fee-modes-row,
body.dark .steps-row,
body.dark .feature-grid {
    gap: 14px;
    border: 0;
}

body.dark .fee-mode-card,
body.dark .fee-mode-card:last-child { border-right: 1px solid var(--border-base); }

body.dark .fee-mode-card:hover {
    border-color: rgba(6, 166, 229, 0.4);
}

body.dark .step-card { padding: 28px; }
body.dark .feature-card,
body.dark .feature-card:nth-child(odd) { padding: 24px; }
body.dark .platform-live-stats { padding: 28px 0; }

body.dark .home-bottom-cta h2 {
    font-weight: 900;
    letter-spacing: -0.03em;
}

body.dark .step-num {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 900;
    font-size: 14px;
}

body.dark .feature-icon,
body.dark .fee-mode-icon {
    color: var(--accent);
}

body.dark .section-title {
    font-size: clamp(26px, 3.4vw, 40px);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

/* ═══ MARKET / OTHER TABS ═══ */
body.dark .stat-card,
body.dark .token-card,
body.dark .search-bar {
    border-radius: 16px;
}

body.dark .search-bar {
    background: #0A1220;
}

@media (max-width: 640px) {
    .hero.hero-night { padding-top: 40px; }
    .clod-bubble { left: 62%; top: -4%; }
    body.dark .stat-pill { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .clod-btn.is-poked .clod-mascot { animation: none; }
}

/* ═══ NAV BRAND: mascot + wordmark ═══ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo .nav-mascot {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(6, 166, 229, 0.35));
}

.nav-logo .nav-word {
    font-family: 'Kanit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.nav-logo .nav-word b {
    font-weight: 700;
    color: var(--accent);
}
