:root {
    --red: #B31942;
    --red-dark: #8E1535;
    --blue: #0A3161;
    --navy: #071330;
    --dark: #050D1F;
    --white: #FFFFFF;
    --cream: #F5F3EE;
    --gold: #C9A84C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', Impact, sans-serif;
    line-height: 1;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(7, 19, 48, 0.97);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.nav-active {
    color: var(--white);
}

.nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, var(--navy) 0%, var(--dark) 50%, #0d1a3a 100%);
    overflow: hidden;
}

.hero-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('logo.png') center / contain no-repeat;
    filter: blur(40px);
    opacity: 0.12;
    border-radius: 50%;
    z-index: 0;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 28px;
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.1s;
    box-shadow: 0 0 40px rgba(179, 25, 66, 0.25), 0 0 80px rgba(10, 49, 97, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-star {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.05; }
    50% { opacity: var(--max-opacity); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 24px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    color: var(--white);
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.95;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.4s;
}

.title-line-red {
    color: var(--red);
    animation-delay: 0.6s;
}

.hero-ticker {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

.contract-address {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 6px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.4s;
}

.ca-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.ca-value {
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-copy-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--red);
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ca-copy-btn:hover {
    background: var(--red-dark);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 14px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    text-align: center;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179, 25, 66, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-dark:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1rem;
}

.section-divider {
    position: relative;
    z-index: 5;
}

.divider-stars {
    background: var(--blue);
    text-align: center;
    padding: 14px 0;
    user-select: none;
    overflow: hidden;
}

.star-row-text {
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--white);
    display: inline-block;
}

.divider-stripes {
    height: 30px;
    background: repeating-linear-gradient(
        180deg,
        var(--red) 0px,
        var(--red) 5px,
        var(--white) 5px,
        var(--white) 10px
    );
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-heading-light {
    color: var(--white);
}

.text-red {
    color: var(--red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(5, 13, 31, 0.45);
    margin-bottom: 48px;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.4);
}

#about {
    padding: 100px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(5, 13, 31, 0.7);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-lead {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--dark) !important;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--blue);
    padding: 28px 20px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(10, 49, 97, 0.15);
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(5, 13, 31, 0.45);
}

#chart {
    padding: 100px 0;
    background: var(--navy);
}

.chart-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: var(--dark);
}

.chart-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.chart-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

#lore {
    padding: 100px 0;
    background: var(--cream);
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.tweet-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    border-left: 4px solid var(--red);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tweet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tweet-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.tweet-meta {
    display: flex;
    flex-direction: column;
}

.tweet-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.tweet-handle {
    font-size: 0.8rem;
    color: rgba(5, 13, 31, 0.35);
}

.tweet-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(5, 13, 31, 0.65);
    margin-bottom: 16px;
}

.tweet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tweet-date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
}

.btn-tweet-link {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    padding: 6px 14px;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-tweet-link:hover {
    background: var(--blue);
    color: var(--white);
}

.lore-context {
    background: var(--white);
    border: 2px solid var(--blue);
    border-radius: 8px;
    padding: 48px;
}

.lore-context-title {
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 24px;
}

.lore-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(5, 13, 31, 0.65);
    margin-bottom: 16px;
}

.lore-text p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: rgba(5, 13, 31, 0.35);
}

#memes {
    padding: 100px 0;
    background: var(--navy);
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.meme-card {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
    aspect-ratio: 1;
}

.meme-card:hover {
    transform: scale(1.04);
    border-color: var(--red);
}

.meme-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 49, 97, 0.6), rgba(5, 13, 31, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.meme-placeholder span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.15em;
}

.meme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#join {
    padding: 100px 0;
    background: var(--red);
    text-align: center;
}

.join-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.join-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.join-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

#footer {
    padding: 60px 0 40px;
    background: var(--dark);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer-disclaimer {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.25);
    max-width: 700px;
    margin-bottom: 24px;
}

.footer-copy {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.25em;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }
.reveal:nth-child(9) { transition-delay: 0.8s; }

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lore-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 19, 48, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .lore-grid {
        grid-template-columns: 1fr;
    }

    .meme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lore-context {
        padding: 28px;
    }

    .chart-buttons {
        flex-direction: column;
        align-items: center;
    }

    .chart-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    #about,
    #chart,
    #lore,
    #memes,
    #join {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
    }

    .contract-address {
        flex-direction: column;
        gap: 8px;
    }

    .ca-value {
        max-width: 220px;
        font-size: 0.7rem;
    }

    .about-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .join-buttons {
        flex-direction: column;
        align-items: center;
    }

    .join-buttons .btn {
        width: 100%;
        max-width: 260px;
    }

    .meme-grid {
        gap: 12px;
    }
}
