:root {
    --primary-gold: #FFDF00;
    --primary-gold-glow: rgba(255, 223, 0, 0.6);
    --dark-bg: #11110e;
    --darker-bg: #080805;
    --text-main: #f5f5f5;
    --text-muted: #b0b0b0;
    --red-usa: #e31b23;
    --blue-usa: #002868;
    --red-china: #ee1c25;
    --glass-bg: rgba(255, 223, 0, 0.03);
    --glass-border: rgba(255, 223, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
}

/* Animated Split Background */
.split-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    display: flex;
}

.bg-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.bg-usa {
    background: linear-gradient(135deg, #001f54 0%, #0a0a2a 100%);
}

.bg-china {
    background: linear-gradient(135deg, #4a0000 0%, #1a0000 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-usa .orb-1 { width: 400px; height: 400px; background: #002868; top: -10%; left: -10%; }
.bg-usa .orb-2 { width: 300px; height: 300px; background: #e31b23; bottom: 10%; right: 10%; animation-delay: -5s; }

.bg-china .orb-3 { width: 400px; height: 400px; background: #ee1c25; top: 20%; right: -10%; animation-delay: -10s; }
.bg-china .orb-4 { width: 350px; height: 350px; background: #FFDF00; bottom: -10%; left: 10%; animation-delay: -15s; }

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.stars {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    animation: drift-up 60s linear infinite;
}

.dragon-scale-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 10px 10px, rgba(255, 223, 0, 0.1) 2px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.4;
    animation: drift-up 40s linear infinite;
}

@keyframes drift-up {
    from { background-position: 0 0; }
    to { background-position: 0 -1000px; }
}

.flag-bg {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 1;
}

.usa-flag-wave {
    background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg');
    animation: wave-anim 10s ease-in-out infinite alternate;
}

.china-flag-wave {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg');
    animation: wave-anim 10s ease-in-out infinite alternate-reverse;
}

@keyframes wave-anim {
    0% { transform: perspective(800px) rotateY(5deg) rotateX(2deg) scale(1.05); filter: brightness(0.8) contrast(1.2); }
    50% { transform: perspective(800px) rotateY(-5deg) rotateX(-2deg) scale(1.1); filter: brightness(1.2) contrast(1.1); }
    100% { transform: perspective(800px) rotateY(8deg) rotateX(4deg) scale(1.05); filter: brightness(0.9) contrast(1.3); }
}

.bg-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-gold), transparent);
    box-shadow: 0 0 20px var(--primary-gold-glow);
    transform: translateX(-50%);
    z-index: 2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,5,0) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 3;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--primary-gold);
    text-shadow: 0 0 10px var(--primary-gold-glow);
}

.logo img {
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.btn-buy-nav {
    background: linear-gradient(45deg, var(--primary-gold), #ffaa00);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--primary-gold-glow);
}

.btn-buy-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-gold-glow);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    transform: translateY(22px); /* Moves it down without pushing elements below it */
    position: relative;
    z-index: 20;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.badge.usa { color: #fff; background: linear-gradient(45deg, var(--blue-usa), var(--red-usa)); }
.badge.china { color: #fff; background: linear-gradient(45deg, var(--red-china), #ffcc00); }
.badge.heart { font-size: 1.2rem; background: transparent; border: none; animation: pulse-heart 2s infinite; }

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Title Collision Animation */
.title-wrapper {
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-bottom: 1rem;
}

.static-title {
    font-size: 6rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--primary-gold-glow);
    animation: static-cycle 20s infinite;
}

.collide-left {
    position: absolute;
    font-size: 6rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--primary-gold-glow);
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
    opacity: 0;
    animation: slide-left 20s infinite;
    transform: translateX(-150vw);
    z-index: 10;
}

.collide-right {
    position: absolute;
    font-size: 6rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--primary-gold-glow);
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
    opacity: 0;
    animation: slide-right 20s infinite;
    transform: translateX(150vw);
    z-index: 10;
}

@keyframes static-cycle {
    0%, 85% { opacity: 1; transform: scale(1); }
    85.01%, 92% { opacity: 0; transform: scale(0.9); }
    92.01%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes slide-left {
    0%, 85% { opacity: 0; transform: translateX(-100vw); }
    85.01% { opacity: 1; transform: translateX(-100vw); }
    92% { opacity: 1; transform: translateX(-20%); }
    92.01%, 100% { opacity: 0; transform: translateX(-20%); }
}

@keyframes slide-right {
    0%, 85% { opacity: 0; transform: translateX(100vw); }
    85.01% { opacity: 1; transform: translateX(100vw); }
    92% { opacity: 1; transform: translateX(20%); }
    92.01%, 100% { opacity: 0; transform: translateX(20%); }
}

.glitch {
    position: relative;
}

.subtitle {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-gold), #ffaa00);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    border: 2px solid var(--primary-gold);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px var(--primary-gold-glow);
}

.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 var(--primary-gold-glow); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    background: var(--primary-gold);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.ticker {
    display: inline-block;
    animation: ticker 60s linear infinite;
}

.ticker__item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Sections General */
section {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
    background: var(--darker-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 4rem;
    color: var(--primary-gold);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Panel Utilities */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Live News Board */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 223, 0, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: var(--transition);
    border-top: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 223, 0, 0.08);
    border-top: 2px solid var(--primary-gold);
    box-shadow: 0 10px 20px rgba(255, 223, 0, 0.1);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-source {
    font-weight: 700;
    color: var(--primary-gold);
}

.news-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.news-card p {
    font-size: 0.95rem;
    color: #ffd700;
    font-style: italic;
    line-height: 1.5;
}

/* Coverage Section */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.coverage-card {
    display: block;
    text-decoration: none;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.coverage-card:hover {
    transform: scale(1.05);
}

.usa-card {
    background: linear-gradient(45deg, var(--blue-usa), var(--darker-bg));
    box-shadow: 0 5px 15px rgba(0, 40, 104, 0.5);
}

.usa-card:hover {
    box-shadow: 0 5px 25px rgba(0, 40, 104, 0.8);
}

.china-card {
    background: linear-gradient(45deg, var(--red-china), var(--darker-bg));
    box-shadow: 0 5px 15px rgba(238, 28, 37, 0.5);
}

.china-card:hover {
    box-shadow: 0 5px 25px rgba(238, 28, 37, 0.8);
}

.coverage-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Token / Chart Section */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.chart-container h3, .buy-container h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.chart-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--primary-gold);
}

.mock-chart .chart-text {
    font-size: 2rem;
    color: var(--primary-gold);
    font-family: 'Bebas Neue', cursive;
    animation: pulse-glow 2s infinite;
}

.swap-widget {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.swap-input {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    position: relative;
}

.swap-input label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--dark-bg);
    padding: 0 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 3px;
}

.swap-input input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 100%;
    outline: none;
    font-weight: 700;
}

.swap-input .currency {
    font-weight: 900;
    color: var(--primary-gold);
}

.swap-arrow {
    text-align: center;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.btn-swap {
    width: 100%;
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-swap:hover {
    background: #ffaa00;
    transform: translateY(-2px);
}

.ca-box {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.ca-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.ca-box code {
    display: block;
    background: #000;
    padding: 0.8rem;
    border-radius: 5px;
    color: var(--primary-gold);
    font-family: monospace;
    margin-bottom: 0.8rem;
    word-break: break-all;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-gold);
    color: #000;
}

/* Media Gallery */
.media-section h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 3rem;
}

.media-section {
    overflow: hidden;
}

.gallery-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
}

.gallery-track {
    display: inline-flex;
    gap: 2rem;
    animation: gallery-scroll 30s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.gallery-item {
    width: 350px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-item:hover {
    border: 2px solid var(--primary-gold);
    transform: scale(1.3);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .glitch { font-size: 4rem; }
    .subtitle { font-size: 1.8rem; }
    .nav-links { display: none; }
}
