/* ============================================================
   INDEX PAGE — Hero, halving panel, stat cards, community
   ============================================================ */

/* ── Hero section ─────────────────────────────────────────── */
.hero-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display, 'Syne', sans-serif) !important;
    font-size: var(--text-hero, clamp(2.4rem, 8vw, 5.5rem)) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.05 !important;
    background: linear-gradient(135deg, var(--brand, #00C8C8), var(--brand-light, oklch(88% 0.12 190)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    white-space: nowrap;
}

.hero-subtitle {
    color: var(--text-2, #9ca3af) !important;
    font-size: clamp(1rem, 2.2vw, 1.2rem) !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    max-width: 48ch;
}

/* Animated logo */
#waveduco {
    height: 9rem;
    filter: drop-shadow(0 0 32px oklch(78% 0.18 195 / 0.4));
    animation: logo-float 4s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

#wavecontainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0)   rotate(-2deg); }
    50%       { transform: translateY(-10px) rotate(2deg); }
}

.hide { opacity: 0 !important; }

/* ── Key Metrics Strip ────────────────────────────────────── */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0.5rem 0;
}

.key-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--surface-1, oklch(12% 0.045 245));
    border: 1px solid oklch(78% 0.18 195 / 0.15);
    border-radius: var(--radius-lg, 20px);
    text-align: center;
    transition:
        transform  0.3s var(--spring-bounce, cubic-bezier(0.34, 1.56, 0.64, 1)),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.key-metric:hover {
    transform: translateY(-4px);
    border-color: oklch(78% 0.18 195 / 0.4);
    box-shadow: 0 8px 24px oklch(78% 0.18 195 / 0.12);
}

.key-metric-icon {
    font-size: 1.1rem;
    color: oklch(78% 0.18 195 / 0.8);
}

.key-metric-value {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--text-1, #f0f0f0);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.key-metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3, oklch(48% 0.012 230));
}

@media (max-width: 900px) {
    .key-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .key-metric {
        padding: 1rem 0.75rem;
    }

    .key-metric-value {
        font-size: 1.1rem;
    }
}

/* ── What is Palladium ────────────────────────────────────── */
.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand, #00C8C8);
    text-align: center;
    margin-bottom: 0.75rem;
}

.what-is-lead {
    font-size: var(--text-xl, clamp(1.2rem, 2.5vw, 1.5rem));
    font-weight: 600;
    color: var(--text-1, oklch(95% 0.006 240));
    line-height: 1.4;
    max-width: 48ch;
    letter-spacing: -0.01em;
}

/* ── Section body text ────────────────────────────────────── */
.section-body-text {
    color: var(--text-2, #9ca3af) !important;
    font-size: var(--text-base, clamp(0.9rem, 1.8vw, 1rem)) !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    max-width: 65ch;
}

/* ── Halving panel ────────────────────────────────────────── */
.halving-panel {
    border: 1px solid oklch(78% 0.18 195 / 0.25);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    background: oklch(12% 0.045 245 / 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px oklch(78% 0.18 195 / 0.08),
        0 8px 32px oklch(0% 0 0 / 0.3);
}

.halving-panel-header {
    background: oklch(78% 0.18 195 / 0.10);
    border-bottom: 1px solid oklch(78% 0.18 195 / 0.25);
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand, #00C8C8);
    text-align: center;
}

.halving-panel-body {
    padding: 1.25rem;
}

/* ── Stat cards ───────────────────────────────────────────── */
.stat-card {
    background: oklch(16% 0.04 245 / 0.8);
    border: 1px solid oklch(78% 0.18 195 / 0.18);
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem 1rem;
    text-align: center;
    transition:
        border-color 0.25s ease,
        background   0.25s ease,
        transform    0.3s var(--spring-bounce, cubic-bezier(0.34, 1.56, 0.64, 1)),
        box-shadow   0.25s ease;
}

.stat-card:hover {
    background: oklch(20% 0.04 245 / 0.9);
    border-color: oklch(78% 0.18 195 / 0.45);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px oklch(78% 0.18 195 / 0.15);
}

.stat-label {
    color: var(--text-2, #9ca3af);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.stat-value {
    color: var(--brand, #00C8C8);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-variant-numeric: tabular-nums;
}

.stat-loading {
    animation: stat-pulse 1.4s ease-in-out infinite;
    color: var(--text-3, oklch(48% 0.012 230));
}

@keyframes stat-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ── Halving progress bar ─────────────────────────────────── */
.halving-progress-container {
    margin-top: 1.25rem;
}

.halving-progress-bar {
    background: oklch(28% 0.03 245);
    border-radius: var(--radius-full, 9999px);
    height: 8px;
    overflow: hidden;
}

.halving-progress-fill {
    background: linear-gradient(90deg, var(--brand, #00C8C8), var(--brand-light, oklch(88% 0.12 190)));
    height: 100%;
    border-radius: var(--radius-full, 9999px);
    width: 0%;
    transition: width 1.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    box-shadow: 0 0 10px oklch(78% 0.18 195 / 0.5);
}

.halving-progress-label {
    color: var(--text-3, oklch(48% 0.012 230));
    font-size: 0.78rem;
    margin-top: 0.6rem;
    text-align: center;
}

/* ── Community section ────────────────────────────────────── */
.community-section .hero-body {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.community-section .title {
    margin-bottom: 1rem !important;
}

.community-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    justify-content: center !important;
    margin-top: 1.25rem !important;
}

/* ── Legacy / misc ────────────────────────────────────────── */
.fix-link a {
    color: transparent;
}

.exchange_box {
    cursor: pointer;
}

.exchange_box,
figure {
    transition: transform 0.25s var(--spring-bounce, cubic-bezier(0.34, 1.56, 0.64, 1));
}

figure:hover {
    transform: scale(1.05);
}

.centered-figure {
    margin-left: auto;
    margin-right: auto;
}

/* ── Mobile ── ≤ 768px ────────────────────────────────────── */
@media (max-width: 768px) {
    /* Hero */
    .hero-main {
        padding-top: 4rem;
        padding-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 11vw, 3rem) !important;
        text-align: center;
        letter-spacing: -0.02em !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        text-align: center;
        max-width: 100%;
    }

    .hero-main .buttons {
        justify-content: center;
    }

    /* Section titles centered on mobile */
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    }

    /* Section body text: full width */
    .section-body-text {
        max-width: 100%;
        font-size: 0.95rem !important;
    }

    /* Halving panel */
    .halving-panel {
        border-radius: var(--radius-md, 12px);
    }

    .halving-panel-body {
        padding: 1rem 0.75rem;
    }

    /* Stat cards — full width, less padding */
    .stat-card {
        padding: 1.25rem 0.75rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    /* Community buttons: stack vertically on small screens */
    .community-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }

    .community-buttons .button {
        width: 100%;
        justify-content: center;
    }
}

/* ── Very small screens ── ≤ 360px ───────────────────────── */
@media (max-width: 360px) {
    .hero-title {
        font-size: clamp(1.7rem, 13vw, 2rem) !important;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .halving-progress-label {
        font-size: 0.72rem;
    }
}
