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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
}

.first-slide {
    position: relative;
    background-image: url("/static/images/rawImage.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark overlay — keeps text readable over the image */
.first-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── NAV ── */
nav {
    position:relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.3s,
        background 0.3s;
}

/* Header */
.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-lockup {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
}

.logo-lockup img {
    width: 95px;
    height: 40px;
}

.nav-divider {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    display: inline-flex !important;
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500 !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

/* ── HERO ── */
.hero {
    min-height: unset;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 50px 100px;
    position: relative;
}

.hero-eyebrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-eyebrow::before {
content: "";
width: 24px;
height: 1px;
background: var(--red);
}

.hero-headline {
position: relative;
z-index: 1;
font-size: clamp(56px, 10vw, 130px);
font-weight: 700;
line-height: 0.9;
letter-spacing: -2px;
margin-bottom: 40px;
}
.hero-headline .accent {
color: var(--red);
}

.hero-bottom {
position: relative;
z-index: 1;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 40px;
}

.hero-desc {
font-size: 16px;
color: var(--muted);
line-height: 1.75;
max-width: 400px;
font-weight: 300;
}

.hero-actions {
display: flex;
gap: 12px;
flex-shrink: 0;
}

.btn-primary {
background: var(--red);
color: var(--white);
padding: 14px 32px;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
text-decoration: none;
letter-spacing: 0.3px;
transition: opacity 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-primary:hover {
opacity: 0.85;
}

.btn-ghost {
color: var(--white);
padding: 14px 32px;
border-radius: 4px;
font-size: 14px;
font-weight: 400;
text-decoration: none;
border: 1px solid var(--border);
transition: border-color 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-ghost:hover {
border-color: rgba(255, 255, 255, 0.2);
}

/* ── DIVIDER / TICKER ── */
.ticker-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 14px 0;
}

.ticker-track {
display: flex;
gap: 64px;
animation: ticker 28s linear infinite;
white-space: nowrap;
}
@keyframes ticker {
from {
    transform: translateX(0);
}
to {
    transform: translateX(-50%);
}
}
.ticker-item {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
font-family: "Space Mono", monospace;
font-size: 11px;
}
.ticker-label {
color: var(--muted);
text-transform: uppercase;
letter-spacing: 1.5px;
}
.ticker-val {
color: var(--white);
}
.ticker-dot {
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--red);
}

/* ── SECTIONS ── */
section {
padding: 120px 48px;
}

.eyebrow {
font-family: "Space Mono", monospace;
font-size: 11px;
color: var(--red);
letter-spacing: 3px;
text-transform: uppercase;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 12px;
}
.eyebrow::before {
content: "";
width: 24px;
height: 1px;
background: var(--red);
}

.section-title {
font-size: clamp(36px, 5vw, 64px);
font-weight: 700;
line-height: 1;
letter-spacing: -1px;
margin-bottom: 16px;
}

.section-sub {
font-size: 16px;
color: var(--muted);
line-height: 1.75;
max-width: 460px;
font-weight: 300;
}

/* ── HOW IT WORKS ── */
#how {
border-top: 1px solid var(--border);
}

.how-header {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
align-items: end;
margin-bottom: 80px;
}

.how-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
}

.how-card {
background: var(--black);
padding: 40px 32px;
transition: background 0.3s;
}
.how-card:hover {
background: #0a0a0a;
}

.how-num {
font-family: "Space Mono", monospace;
font-size: 11px;
color: var(--red);
letter-spacing: 2px;
margin-bottom: 32px;
}

.how-icon {
font-size: 28px;
margin-bottom: 20px;
}

.how-card h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
letter-spacing: -0.2px;
}

.how-card p {
font-size: 13px;
color: var(--muted);
line-height: 1.75;
font-weight: 300;
}

/* ── MINERS ── */
#miners {
background: #050505;
border-top: 1px solid var(--border);
}

.miners-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 64px;
}

.miners-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
}

.miner-card {
background: #050505;
padding: 40px 32px;
transition: background 0.3s;
position: relative;
}
.miner-card:hover {
background: #0a0a0a;
}
.miner-card.featured {
background: var(--red-dim);
}
.miner-card.featured:hover {
background: rgba(216, 31, 39, 0.15);
}

.miner-tag {
font-family: "Space Mono", monospace;
font-size: 10px;
color: var(--muted);
letter-spacing: 2px;
text-transform: uppercase;
display: block;
margin-bottom: 28px;
}
.miner-tag.hot {
color: var(--red);
}

.miner-name {
font-size: 24px;
font-weight: 700;
letter-spacing: -0.5px;
margin-bottom: 32px;
}

.miner-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 0;
border-top: 1px solid var(--border);
font-size: 13px;
}
.miner-row-label {
color: var(--muted);
font-weight: 300;
}
.miner-row-val {
font-family: "Space Mono", monospace;
font-size: 13px;
}
.miner-row-val.red {
color: var(--red);
}

/* ── REFERRAL ── */
#referral {
border-top: 1px solid var(--border);
}

.referral-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 120px;
align-items: center;
}

.ref-levels {
display: flex;
flex-direction: column;
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
margin-top: 48px;
}

.ref-level {
background: var(--black);
display: flex;
align-items: center;
gap: 20px;
padding: 24px 28px;
transition: background 0.2s;
}
.ref-level:hover {
background: #0a0a0a;
}

.ref-badge {
font-family: "Space Mono", monospace;
font-size: 11px;
color: var(--red);
letter-spacing: 1px;
width: 32px;
flex-shrink: 0;
}

.ref-info h4 {
font-size: 14px;
font-weight: 500;
margin-bottom: 3px;
}
.ref-info p {
font-size: 12px;
color: var(--muted);
font-weight: 300;
}

.ref-pct {
margin-left: auto;
font-size: 28px;
font-weight: 700;
letter-spacing: -1px;
}

.ref-visual {
border: 1px solid var(--border);
padding: 40px;
}

.tree-node {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
margin-bottom: 4px;
font-size: 13px;
font-weight: 300;
}
.tree-node.root {
background: var(--red-dim);
border: 1px solid rgba(216, 31, 39, 0.2);
color: var(--red);
font-weight: 500;
}
.tree-node.l1 {
margin-left: 28px;
border: 1px solid var(--border);
}
.tree-node.l2 {
margin-left: 56px;
border: 1px solid rgba(255, 255, 255, 0.04);
color: var(--muted);
}
.tree-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
}
.tree-earnings {
margin-left: auto;
font-family: "Space Mono", monospace;
font-size: 10px;
color: var(--muted);
}

/* ── WHY ── */
#why {
background: #050505;
border-top: 1px solid var(--border);
}

.why-header {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
align-items: end;
margin-bottom: 64px;
}

.why-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
}

.why-card {
background: #050505;
padding: 40px 32px;
transition: background 0.3s;
}
.why-card:hover {
background: #0d0d0d;
}

.why-icon {
font-size: 24px;
margin-bottom: 24px;
}

.why-card h3 {
font-size: 16px;
font-weight: 600;
margin-bottom: 12px;
letter-spacing: -0.2px;
}

.why-card p {
font-size: 13px;
color: var(--muted);
line-height: 1.75;
font-weight: 300;
}

/* ── CTA ── */
.cta-section {
border-top: 1px solid var(--border);
padding: 140px 48px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 48px;
}

.cta-section h2 {
font-size: clamp(40px, 6vw, 72px);
font-weight: 700;
letter-spacing: -2px;
line-height: 0.95;
}
.cta-section h2 span {
color: var(--red);
}

.cta-right {
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 20px;
}

.cta-sub {
font-size: 14px;
color: var(--muted);
text-align: right;
max-width: 280px;
line-height: 1.7;
font-weight: 300;
}

/* ── FOOTER ── */
footer {
border-top: 1px solid var(--border);
padding: 64px 48px 40px;
}

.footer-top {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 64px;
margin-bottom: 64px;
}

.footer-brand p {
font-size: 13px;
color: var(--muted);
line-height: 1.75;
margin-top: 20px;
max-width: 260px;
font-weight: 300;
}

.footer-col h4 {
font-family: "Space Mono", monospace;
font-size: 10px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 24px;
}
.footer-col ul {
list-style: none;
}
.footer-col li {
margin-bottom: 14px;
}
.footer-col a {
color: rgba(255, 255, 255, 0.5);
text-decoration: none;
font-size: 13px;
transition: color 0.2s;
font-weight: 300;
}
.footer-col a:hover {
color: var(--white);
}

.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 32px;
border-top: 1px solid var(--border);
font-family: "Space Mono", monospace;
font-size: 10px;
color: var(--muted);
letter-spacing: 1px;
text-transform: uppercase;
}

/* ── REVEAL ── */
.reveal {
opacity: 0;
transform: translateY(24px);
transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
    nav {
        padding: 20px 25px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        background-position: center right;
        padding: 25px 20px 50px;
    }
    section {
        padding: 80px 25px;
    }
    .how-header {
        grid-template-columns: 1fr;
    }
    .how-grid {
        grid-template-columns: 1fr 1fr;
    }
    .miners-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .miners-grid {
        grid-template-columns: 1fr;
    }
    .referral-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .why-header {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .cta-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-right {
        align-items: flex-start;
    }
    .cta-sub {
        text-align: left;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 52px;
        letter-spacing: -1.5px;
    }
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .how-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
    }
}