:root {
    --primary: #00f2ff;
    /* Electric Cyan */
    --secondary: #0066ff;
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-logo-wrap {
    height: 70px;
    /* Increased from 50px */
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    height: 100%;
    /* Use the full height of the wrap */
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Keep this to ensure any black backgrounds are removed */
}

.nav-brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    /* Increased from 1.1rem */
    font-weight: 800;
    letter-spacing: 5px;
    /* Extra-wide for premium feel */
    background: linear-gradient(180deg, #ffffff 0%, #d1d1d1 45%, #8a8a8a 50%, #e0e0e0 55%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-join {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: radial-gradient(circle at 20% 30%, #001a33 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, #000c1a 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero_bg.png') center/cover no-repeat;
    opacity: 0.4;
    z-index: -1;
    filter: brightness(0.6) contrast(1.2);
    /* Cinematic background restored */
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(3rem, 12vw, 6rem);
    /* Responsive font size */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.3));
    white-space: nowrap;
    /* Prevent accidental wrapping */
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    border: 1px solid var(--text-secondary);
    color: white;
}

.hero-image img {
    width: clamp(250px, 45vw, 550px);
    mix-blend-mode: screen;
    opacity: 1;
    /* Much softer radial mask to kill the edges earlier */
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);

    /* Stronger drop-shadow to create an artificial 'glow' that hides any remaining edge artifacts */
    filter: drop-shadow(0 0 40px var(--primary)) drop-shadow(0 0 80px rgba(0, 102, 255, 0.4)) brightness(1.1);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 4rem 10%;
    background: var(--card-bg);
}

.stat-item {
    text-align: center;
}

.stat-item .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stat-item .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Mining Dashboard */
.mining-section {
    padding: 8rem 10%;
    text-align: center;
}

.dashboard-mockup {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('mining_bg.png') center/cover no-repeat;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 1000px;
    margin: 3rem auto;
    text-align: left;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 3rem;
    font-size: 1.1rem;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.db-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-connect {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-connect:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary);
}

.wallet-info {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.db-value.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    font-size: 1.4rem;
}

.mining-visual {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 10px var(--primary);
    transition: 1s ease-in-out;
}

.progress-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden {
    display: none !important;
}

.db-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.db-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.db-value {
    font-size: 1.1rem;
    font-weight: bold;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    box-shadow: 0 0 10px #00ff00;
}

/* Content Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.content-section {
    padding: 10rem 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tokenomics */
.tokenomics-section {
    padding: 10rem 10%;
    background: radial-gradient(circle at 50% 50%, #001a33 0%, transparent 70%);
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.token-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 242, 255, 0.05);
    text-align: center;
    transition: 0.3s;
}

.token-card:hover {
    background: rgba(0, 242, 255, 0.02);
    border-color: var(--primary);
    transform: scale(1.05);
}

.percentage {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.token-card h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.token-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Roadmap */
.roadmap-section {
    padding: 10rem 10%;
    background: linear-gradient(transparent, #0a0a0a);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.roadmap-item {
    position: relative;
    padding: 2rem;
    border-left: 2px solid var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.phase-tag {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.roadmap-item h4 {
    margin-bottom: 1rem;
}

.roadmap-item ul {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.roadmap-item li::before {
    content: '▶';
    color: var(--primary);
    font-size: 0.6rem;
    margin-right: 8px;
}

/* Maintenance Mode */
.maintenance-box {
    background: rgba(10, 20, 30, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.maintenance-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.status-tag {
    background: var(--neon-cyan);
    color: #0d1117;
    padding: 2px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
}

.hype-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.hype-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.hype-label {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
}

.hype-val {
    font-weight: bold;
    color: var(--neon-cyan);
}

/* Mining Gear Upgrades */
.upgrade-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upgrade-section h4 {
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.upgrade-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.upgrade-card:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.03);
}

.upgrade-card h5 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.up-cost {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.up-benefit {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
}


.cost-tooltip-container:hover .roi-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn-buy {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.btn-buy:hover:not(.owned):not(.locked) {
    background: var(--primary);
    color: var(--dark);
}

.btn-buy.owned {
    background: rgba(0, 255, 204, 0.15);
    border-color: #00ffcc;
    color: #00ffcc;
    cursor: default;
}

.btn-buy.locked {
    opacity: 0.3;
    filter: grayscale(1);
    cursor: not-allowed;
}

/* Guide Modal Override */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.95), rgba(5, 5, 5, 0.98));
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.15), inset 0 0 20px rgba(0, 255, 136, 0.05);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #ff3c3c;
    text-shadow: 0 0 10px #ff3c3c;
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ================= THE MATRIX COMMAND CENTER ================= */
.matrix-section {
    position: relative;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    background-color: #050a05;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.terminal-container {
    width: 90%;
    max-width: 1200px;
    border: 1px solid #00ff00;
    padding: 30px;
    background: radial-gradient(circle, rgba(0,30,0,1) 0%, rgba(0,10,0,1) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 20px rgba(0, 255, 0, 0.1);
    border-radius: 5px;
    position: relative;
    z-index: 2;
    color: #a0ffa0;
}

.matrix-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 15px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
}

@media (min-width: 768px) {
    .matrix-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.panel {
    background: rgba(0, 20, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.4);
    padding: 20px;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid #00ff00;
    border-left: 2px solid #00ff00;
}

.panel-header {
    font-size: 1.2rem;
    color: #00ff00;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 255, 0, 0.3);
    padding-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    font-family: 'Orbitron', monospace;
}

.large-panel {
    grid-column: 1 / -1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.highlight { color: #fff; text-shadow: 0 0 8px #00ff00; }
.success { color: #00ff00; text-shadow: 0 0 5px #00ff00; font-weight: bold;}

.matrix-log-container {
    height: 220px;
    overflow-y: auto;
    font-size: 0.95rem;
}

ul#matrix-tx-log { list-style-type: none; padding: 0; margin: 0; }
ul#matrix-tx-log li { margin-bottom: 8px; opacity: 0.9; }

.time { color: #888; }
.sys { color: #00ffff; }
.blink { animation: blinker 1.5s linear infinite; }

.matrix-log-container::-webkit-scrollbar { width: 8px; }
.matrix-log-container::-webkit-scrollbar-track { background: rgba(0, 20, 0, 0.5); }
.matrix-log-container::-webkit-scrollbar-thumb { background: #00ff00; }

/* Official Info Section (CMC Compliance) */
.official-info-section {
    padding: 6rem 10%;
    background: #050a0f;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
}

.official-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.official-col h3 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.ca-container {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    align-items: center;
    gap: 15px;
    max-width: fit-content;
}

#contract-address {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 1rem;
    word-break: break-all;
}

.btn-copy {
    background: var(--primary);
    border: none;
    color: black;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-copy:hover {
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.05);
}

.ca-note {
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.f-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.f-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

footer {
    padding: 3rem 10%;
    text-align: center;
    background: #030609;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .official-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* ============================================================= */