:root {
    --bg-color: #2A2A2A;
    --bg-alt: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #A8A8A8;
    --text-muted: #6E6E6E;
    --border-color: rgba(255, 255, 255, 0.08);
    --polaroid-bg: #F4F4F4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Just Me Again Down Here', cursive;
    overflow-x: hidden;
    line-height: 1.6;
}
p strong {
    color: var(--text-primary);
    font-weight: normal;
}

/* ===========================
   Stars Overlay — infinite slow scroll
   =========================== */
.stars-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.3;
    overflow: hidden;
}
.stars-scroll {
    display: flex;
    width: 200%;
    height: 100%;
    animation: starsScroll 80s linear infinite;
}
.stars-scroll img {
    width: 50%; height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
@keyframes starsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   3D Animated Buttons
   =========================== */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.6rem;
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: 'Just Me Again Down Here', cursive;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 4px 0 0 #999,
        0 6px 12px rgba(0, 0, 0, 0.35);
}
.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 0 #999,
        0 10px 20px rgba(0, 0, 0, 0.4);
}
.btn-3d:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 0 #999,
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-3d-lg {
    padding: 0.8rem 2.5rem;
    font-size: 1.5rem;
    border-radius: 8px;
    box-shadow:
        0 5px 0 0 #999,
        0 8px 16px rgba(0, 0, 0, 0.35);
}
.btn-3d-lg:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 0 0 #999,
        0 14px 24px rgba(0, 0, 0, 0.4);
}
.btn-3d-lg:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 0 #999,
        0 3px 6px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Fixed Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background: rgba(34, 34, 34, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.nav-logo-img:hover {
    transform: scale(1.1);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Nav right: icons + buy button */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.nav-icon:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

/* ===========================
   HERO
   left/width = vw | top = % of 100vh
   =========================== */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 56px);
    overflow: hidden;
    z-index: 1;
}

/* Hero intro animations — everything rises from bottom */
@keyframes heroRise {
    0%   { opacity: 0; transform: translateY(80px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroTitleRise {
    0%   { opacity: 0; transform: translateY(calc(-60% + 80px)); }
    100% { opacity: 1; transform: translateY(-60%); }
}
@keyframes heroPolaroidRiseL {
    0%   { opacity: 0; transform: rotate(15deg) translateY(80px); }
    100% { opacity: 1; transform: rotate(15deg) translateY(0); }
}
@keyframes heroPolaroidRiseR {
    0%   { opacity: 0; transform: rotate(-15deg) translateY(80px); }
    100% { opacity: 1; transform: rotate(-15deg) translateY(0); }
}
@keyframes heroHamRise {
    0%   { opacity: 0; transform: translateY(80px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-title-wrap {
    animation: heroTitleRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-subtitle {
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-ham {
    animation: heroHamRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both,
               hamFloat 5s ease-in-out 1.5s infinite;
}
.polaroid-left {
    animation: heroPolaroidRiseL 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both,
               polaroidFloat1 6s ease-in-out 1.7s infinite;
}
.polaroid-right {
    animation: heroPolaroidRiseR 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both,
               polaroidFloat2 7s ease-in-out 1.8s infinite;
}
.eth-scatter {
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}
.hero-bottom-info {
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* $HAM title — CENTERED */
.hero-title-wrap {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    top: 48%;
    transform: translateY(-50%);
    z-index: 2;
    white-space: nowrap;
    line-height: 0.75;
    pointer-events: none;
    user-select: none;
}
/* $HAM letters — individual floating animation */
.hero-letter {
    font-size: 40vw;
    display: inline-block;
    animation: letterFloat 4s ease-in-out infinite;
}
.hero-letter-dollar {
    color: rgba(255, 255, 255, 0.22);
}
.hero-letter-h,
.hero-letter-a,
.hero-letter-m {
    color: var(--text-primary);
}
@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Subtitle — animated per-character, right side */
.hero-subtitle {
    position: absolute;
    right: 8vw;
    top: 20%;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    color: #A8A8A8;
    letter-spacing: 0.2vw;
    transform: rotate(2.78deg);
    z-index: 5;
    white-space: nowrap;
}
.hero-subtitle .sub-char {
    display: inline-block;
    animation: subtitleFloat 3s ease-in-out infinite;
}
@keyframes subtitleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* Ham image */
.hero-ham {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: -20%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}
.hero-ham img { 
    width: 35vw;
    max-width: 800px;
    max-height: 85vh;
    height: auto; 
    object-fit: contain;
    display: block; 
}
@keyframes hamFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Polaroids */
.polaroid { position: absolute; z-index: 4; transition: transform 0.4s ease; }
.polaroid-frame {
    background: var(--polaroid-bg);
    box-shadow: 0 0.4vw 1.5vw rgba(0,0,0,0.5);
}
.polaroid-frame img { display: block; width: 100%; height: auto; }

.polaroid-left {
    left: 2.71vw; top: 50.00%;
    width: 7.67vw;
    transform: rotate(15deg);
}
.polaroid-left .polaroid-frame { padding: 5% 5% 18% 5%; }
.polaroid-left:hover { animation-play-state: paused; }

.polaroid-right {
    left: 80.48vw; top: 58.50%;
    width: 9.08vw;
    transform: rotate(-15deg);
}
.polaroid-right .polaroid-frame { padding: 5% 5% 18% 5%; }
.polaroid-right:hover { animation-play-state: paused; }

@keyframes polaroidFloat1 {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50%      { transform: rotate(15deg) translateY(-8px); }
}
@keyframes polaroidFloat2 {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50%      { transform: rotate(-15deg) translateY(-10px); }
}

/* Scattered Ethereum diamonds */
.eth-scatter {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    opacity: 0.55;
    filter: grayscale(100%) brightness(1.8);
}
.eth-scatter-1 {
    width: 3.5vw;
    min-width: 40px;
    bottom: 18%;
    left: 8%;
    transform: rotate(-8deg);
    animation: ethFloat1 5s ease-in-out infinite;
}
.eth-scatter-2 {
    width: 2.2vw;
    min-width: 28px;
    top: 15%;
    right: 6%;
    transform: rotate(12deg);
    animation: ethFloat2 6s ease-in-out infinite;
}
@keyframes ethFloat1 {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50%      { transform: rotate(-8deg) translateY(-8px); }
}
@keyframes ethFloat2 {
    0%, 100% { transform: rotate(12deg) translateY(0); }
    50%      { transform: rotate(12deg) translateY(-6px); }
}

/* ETH icon + label, bottom-right */
.hero-bottom-info {
    position: absolute;
    right: 14vw;
    bottom: 2%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.hero-eth-icon {
    width: 1.2vw;
    min-width: 16px;
    opacity: 0.8;
}
.hero-chain-label {
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    color: var(--text-secondary);
    letter-spacing: 2px;
    transform: rotate(-1deg);
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Open state for hamburger */
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(34, 34, 34, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateY(0); }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.mobile-menu-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2.5rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}
.mobile-menu-socials {
    display: flex;
    gap: 2rem;
}
.mobile-menu-socials .nav-icon {
    width: 50px;
    height: 50px;
    color: var(--text-primary);
}

/* ===========================
   Marquee — seamless infinite scroll
   =========================== */
.marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
}
.marquee-inner {
    display: flex;
    width: max-content;
    will-change: transform;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
}
.marquee-item {
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}
.marquee-dot {
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===========================
   SECTIONS (shared)
   =========================== */
.section { position: relative; z-index: 1; padding: 6rem 0; }
.section-inner { max-width: 1000px; margin: 0 auto; padding: 0 5%; }
.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 3px;
}

/* ===========================
   About
   =========================== */
.about { background: var(--bg-alt); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.about-grid { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-secondary); font-size: 1.6rem; margin-bottom: 1.5rem; line-height: 1.5; }
.polaroid-static { position: relative; width: 280px; transform: rotate(-3deg); transition: transform 0.4s ease; }
.polaroid-static:hover { transform: rotate(0deg) scale(1.05); }
.polaroid-static .polaroid-frame { padding: 5% 5% 18% 5%; }
.polaroid-caption { display: block; text-align: center; color: var(--text-muted); font-size: 1.2rem; padding: 0 0 8px; margin-top: -12%; }

/* ===========================
   Timeline
   =========================== */
.story { background: var(--bg-color); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--text-muted), transparent);
}
.timeline-item { position: relative; padding-left: 2.5rem; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute; left: -2rem; top: 0.5rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--text-secondary); border: 2px solid var(--bg-color);
    transform: translateX(-5px);
}
.timeline-content h3 { font-size: 2rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-secondary); font-size: 1.4rem; line-height: 1.5; }

/* Mission video */
.mission-video {
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.mission-video video {
    width: 100%;
    display: block;
    filter: grayscale(30%);
    transition: filter 0.4s;
}
.mission-video:hover video {
    filter: grayscale(0%);
}

/* ===========================
   How to Buy — split layout + horizontal scroll
   =========================== */
.how-to-buy { background: var(--bg-alt); border-top: 1px solid var(--border-color); padding: 8rem 0; }

.htb-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

.htb-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Left: big heading */
.htb-left {
    position: sticky;
    top: 8rem;
}
.htb-heading {
    display: flex;
    flex-direction: column;
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.95;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.htb-heading span { display: block; }
.htb-heading-accent {
    color: var(--text-secondary);
}
.htb-subtitle {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* Right: card row — all visible */
.htb-scroll {
    display: flex;
    gap: 1.2rem;
}

.htb-card {
    flex: 1 1 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem 1.8rem 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.htb-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.htb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.htb-badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.htb-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s;
}
.htb-card:hover .htb-arrow {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.htb-card-title {
    font-size: 1.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.htb-card-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
}

/* Card image area */
.htb-card-img {
    margin-top: auto;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}
.htb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.4s, transform 0.4s;
}
.htb-card:hover .htb-card-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.htb-card-img-contain img {
    object-fit: contain;
    padding: 1rem;
}
.htb-card-img-bw img {
    filter: grayscale(100%);
}
.htb-card-img-white img {
    filter: brightness(0) invert(1);
}
.htb-card:hover .htb-card-img-bw img,
.htb-card:hover .htb-card-img-white img {
    filter: none;
}

/* ===========================
   Legacy / Save the Chimps
   =========================== */
.legacy { background: var(--bg-color); border-top: 1px solid var(--border-color); }
.legacy-content { max-width: 760px; margin: 0 auto; }
.legacy-text p {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.legacy-quote {
    border-left: 3px solid var(--text-muted);
    padding: 1.2rem 0 1.2rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.7rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.4;
}
.legacy-quote cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: normal;
}
.legacy-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.legacy-support {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.legacy-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-tiktok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    flex-shrink: 0;
}
.btn-tiktok:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: scale(1.05);
}
.btn-tiktok svg {
    width: 32px;
    height: 32px;
}

/* ===========================
   Tokenomics
   =========================== */
.tokenomics { background: var(--bg-alt); border-top: 1px solid var(--border-color); }
.section-inner-wide { max-width: 1100px; margin: 0 auto; padding: 0 5%; }

.tokenomics-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 3rem;
}
.tokenomics-image { display: flex; justify-content: center; }
.polaroid-token { width: 260px; transform: rotate(-4deg); }
.polaroid-token:hover { transform: rotate(0deg) scale(1.03); }

.tokenomics-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.stat-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.stat-block:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}
.stat-value {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Supply bar */
.supply-bar-wrap { margin-top: 0.5rem; }
.supply-bar-title {
    display: block;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}
.supply-bar {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}
.supply-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.15rem;
    letter-spacing: 2px;
    transition: width 1.5s ease;
}
.supply-community {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}
.supply-note {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* CA box */
.ca-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.8rem 2rem;
    text-align: center;
}
.ca-label { display: block; color: var(--text-secondary); font-size: 1.3rem; margin-bottom: 0.75rem; letter-spacing: 1px; }
.ca-value { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 1.4rem; color: var(--text-muted); word-break: break-all; }
.copy-btn {
    background: none; border: none;
    color: var(--text-secondary);
    cursor: pointer; padding: 6px;
    transition: color 0.3s, transform 0.2s;
    display: flex; align-items: center;
}
.copy-btn:hover { color: var(--text-primary); transform: scale(1.15); }

/* ===========================
   Footer
   =========================== */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border-color); padding: 3rem 0; background: var(--bg-alt); }
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 0 5%; text-align: center; }
.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-logo:hover { opacity: 1; }
.footer-text { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 1.3rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-copy { color: var(--text-muted); font-size: 1.1rem; letter-spacing: 2px; }

/* ===========================
   Partners Bar
   =========================== */
.partners-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background: var(--bg-alt);
}
.partners-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
.partners-label {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.partners-logos {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.partner-item {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s, color 0.3s;
}
.partner-item:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* ===========================
   Chart Embed — Premium
   =========================== */
.chart-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}
.chart-header {
    text-align: center;
    margin-bottom: 2rem;
}
.chart-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #4ade80;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.chart-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
.chart-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0a0a0a;
    transition: border-color 0.3s;
}
.chart-embed:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.chart-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}
.chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.chart-token-info {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.chart-token-pill {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.chart-cta {
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: background 0.3s, border-color 0.3s;
}
.chart-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===========================
   FAQ Accordion — Premium
   =========================== */
.faq-section {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
.faq-heading {
    position: sticky;
    top: 120px;
}
.faq-heading .section-title {
    text-align: left;
    line-height: 1.1;
}
.faq-heading-sub {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}
.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.faq-item.open {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: color 0.3s;
    text-align: left;
}
.faq-question:hover { color: var(--text-secondary); }
.faq-num {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
    min-width: 2rem;
    opacity: 0.5;
}
.faq-item.open .faq-num {
    opacity: 1;
    color: var(--text-primary);
}
.faq-q-text {
    flex: 1;
}
.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
    flex-shrink: 0;
    color: var(--text-secondary);
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.12);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.6rem 1.6rem 4.8rem;
}
.faq-answer p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ===========================
   Toast Notification
   =========================== */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.toast.show {
    bottom: 2rem;
}

/* ===========================
   Scroll Animations
   =========================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .nav-links { gap: 1.5rem; }
    .hero-ham { width: 45vw; }
}

@media (max-width: 900px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 3.5rem; margin-bottom: 2rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { display: flex; justify-content: center; }
    
    .htb-layout { grid-template-columns: 1fr; gap: 3rem; }
    .htb-left { position: static; text-align: center; }
    .htb-heading { align-items: center; justify-content: center; }
    .htb-scroll { 
        overflow-x: auto; 
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .htb-scroll::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */
    
    .tokenomics-layout { grid-template-columns: 1fr; gap: 2rem; }
    .tokenomics-image { justify-content: center; order: -1; }
    
    .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .faq-heading { position: static; text-align: center; }
    .faq-heading .section-title { text-align: center; }
    
    .chart-layout { grid-template-columns: 1fr; }
    .chart-info { text-align: center; align-items: center; }
    
    .polaroid-left, .polaroid-right { display: none; }
}

@media (max-width: 600px) {
    .navbar { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-right .nav-icon { display: none; } /* hidden because they're in the mobile menu */
    .nav-right .btn-3d { padding: 0.5rem 1rem; font-size: 1rem; }
    .nav-toggle { display: flex; margin-left: 0.5rem; }
    
    .hero { height: auto; min-height: 90vh; padding: 120px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
    .hero-title-wrap { position: relative; left: auto; top: auto; transform: none; margin-bottom: 1.5rem; animation: heroRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
    .hero-letter { font-size: 32vw; }
    
    .hero-subtitle { position: relative; right: auto; top: auto; transform: rotate(0); text-align: center; margin-bottom: 2rem; font-size: 1.2rem; }
    
    .hero-ham { position: relative; left: auto; top: auto; transform: none; width: 100%; margin-top: auto; margin-bottom: 0; line-height: 0; animation: heroRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both, hamFloatMobile 5s ease-in-out 1.5s infinite; }
    .hero-ham img { width: 92vw; margin-bottom: -5px; } /* bleed slightly into marquee */
    @keyframes hamFloatMobile { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
    
    .hero-bottom-info { display: none; }
    .eth-scatter { display: none; }

    .section-title { font-size: 2.8rem; }
    .htb-card { flex: 0 0 280px; }
    
    .faq-question { font-size: 1.2rem; padding: 1.2rem 1rem; }
    .faq-item.open .faq-answer { padding: 0 1rem 1.2rem 3.5rem; }
    
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .legacy-btns { flex-direction: column; gap: 1rem; }
    .btn-legacy { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
    .hero-letter { font-size: 35vw; }
    .hero-ham img { width: 95vw; }
    .section-title { font-size: 2.4rem; }
    .htb-card { flex: 0 0 85vw; }
}
