/* ═══════════════════════════════════════════════
   $姚明 — The OG Meme on Solana
   Aesthetic: Pure B&W Ink — Arena depth system
   ═══════════════════════════════════════════════ */

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-elevated: #1a1a1a;
    --border: #222222;
    --border-hover: #3a3a3a;
    --text: #f0f0f0;
    --text-muted: #6a6a6a;
    --white: #ffffff;
    --font-display: 'Noto Sans SC', sans-serif;
    --font-body: 'Lexend', sans-serif;
    --font-cn: 'Noto Serif SC', serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════
   Arena-style Surface Cards (B&W)
   ═══════════════════════════════════════════════ */

.surface-card {
    background: linear-gradient(to bottom, #1a1a1a, #171717, #141414);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 4px 8px -2px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.15);
}

.surface-card-hoverable {
    transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.surface-card-hoverable:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 12px 24px -4px rgba(0, 0, 0, 0.4),
        0 24px 48px -8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════
   Arena-style Depth Buttons (B&W)
   ═══════════════════════════════════════════════ */

.btn-depth {
    position: relative;
    overflow: hidden;
}
.btn-depth::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(25deg);
    transition: left 0.5s ease-out;
    pointer-events: none;
}
.btn-depth:hover::after {
    left: 125%;
}

/* ── Grain Overlay ── */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 3rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Background Chinese character (ink wash decoration) */
.hero-bg-char {
    position: absolute;
    font-family: var(--font-cn);
    font-weight: 900;
    font-size: clamp(20rem, 40vw, 42rem);
    color: var(--white);
    opacity: 0.018;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Soft white glow behind image */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: min(600px, 85vw);
    height: min(600px, 85vw);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
}

/* Hero image — Arena elevated shadow */
.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.hero-image img {
    width: clamp(220px, 35vw, 380px);
    height: auto;
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 8px 16px -4px rgba(0, 0, 0, 0.45),
        0 20px 40px -8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
    animation: float 5s ease-in-out infinite 1s;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 9rem);
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.08);
}

.hero-tagline {
    margin-top: 0.75rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ── Stats (Arena surface-card) ── */
.stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.25rem 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    opacity: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 90px;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s, transform 0.3s;
}

.stat-value.stat-update {
    color: #ccc;
    transform: scale(1.05);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Buttons ── */
.actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    border: none;
    outline: none;
}
.btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Buy — white on black (inverted, bold) */
.btn-buy {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0, #e5e5e5);
    color: #0a0a0a;
    font-weight: 700;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 3px 6px -1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.06);
}
.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 8px 16px -2px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.06);
}
.btn-buy:active {
    transform: translateY(0);
}

/* CA — dark outlined */
.btn-ca {
    background: linear-gradient(to bottom, #1e1e1e, #181818);
    color: var(--text-muted);
    border: 1px solid var(--border);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 4px -1px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
}
.btn-ca:hover {
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.btn-ca.copied {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── About ── */
.about {
    padding: 3rem 1.5rem 4rem;
    position: relative;
}

.about-inner {
    max-width: 680px;
    margin: 0 auto;
}

.about-card {
    padding: 2.5rem;
    text-align: center;
}

.about-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--white);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.about-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── Highlight Stats ── */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.highlight-item {
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.highlight-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--white);
    letter-spacing: 0.01em;
}

.highlight-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.3;
}

.about-text {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}
.about-text em {
    color: var(--text);
    font-style: italic;
}
.about-text strong {
    color: var(--white);
    font-weight: 600;
}

/* ── Timeline ── */
.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.timeline-year {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.timeline-item.active .timeline-year {
    color: var(--white);
}

.timeline-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}
.timeline-item.active .timeline-label {
    color: var(--text);
}

.timeline-line {
    width: clamp(30px, 6vw, 60px);
    height: 1px;
    background: var(--border);
    align-self: center;
    margin-top: -0.25rem;
}

/* ── Footer ── */
.footer {
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-dot { color: var(--border); font-size: 0.7rem; }

.footer-copy {
    margin-top: 1rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.35;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .nav { padding: 0.85rem 1.25rem; }
    .nav-logo { font-size: 1.2rem; }
    .nav-links { gap: 1.25rem; }

    .hero { padding: 6rem 1.25rem 2.5rem; }

    .hero-image img {
        width: clamp(200px, 60vw, 280px);
        border-radius: 16px;
    }

    .hero-content { margin-top: 1.5rem; }
    .hero-title { font-size: clamp(3.5rem, 18vw, 5rem); }

    .stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        width: 100%;
        max-width: 320px;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: unset;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .btn {
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    .about-card { padding: 1.5rem; }

    .highlights {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .highlight-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
    }

    .highlight-label {
        text-align: right;
    }

    .timeline {
        flex-direction: column;
        gap: 0;
    }

    .timeline-item {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.5rem 0;
        width: 100%;
        max-width: 200px;
    }

    .timeline-line {
        width: 1px;
        height: 20px;
        margin: 0;
        align-self: center;
    }

    .timeline-year { min-width: 40px; text-align: right; }
    .timeline-label { text-align: left; }
}
