:root {
    --green: #00ff88;
    --green-dim: #00cc6a;
    --green-glow: rgba(0, 255, 136, 0.4);
    --gold: #ffd700;
    --gold-dim: #ffaa00;
    --dark: #020c06;
    --dark-mid: #041209;
    --card-bg: rgba(0, 255, 136, 0.04);
    --border: rgba(0, 255, 136, 0.18);
}

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

html, body {
    height: 100%;
    background: var(--dark);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
}

/* ── Starfield ── */
#starfield {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
#starfield canvas { width: 100%; height: 100%; }

/* ── Grid lines ── */
.grid-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Main layout ── */
.wrapper {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px;
    gap: 32px;
}

/* ── Logo ── */
.logo-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    animation: fadeDown .8s ease both;
}

/* ── Logo orbit system ── */
.logo-orbit {
    position: relative;
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
}

/* The actual logo image */
.logo-svg {
    width: 82px; height: 82px;
    border-radius: 50%;
    object-fit: contain;
    position: relative; z-index: 2;
    filter: drop-shadow(0 0 18px var(--green-glow)) drop-shadow(0 0 40px rgba(0,255,136,0.2));
    animation: pulse-logo 3s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { filter: drop-shadow(0 0 18px var(--green-glow)) drop-shadow(0 0 40px rgba(0,255,136,0.2)); }
    50%       { filter: drop-shadow(0 0 30px var(--green-glow)) drop-shadow(0 0 60px rgba(0,255,136,0.35)); }
}

/* Orbit ring — tilted ellipse via CSS transform */
.orbit-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 204, 106, 0.4);
    transform: rotateX(70deg) rotateZ(-25deg);
    pointer-events: none; z-index: 1;
}

/* Spinning track that carries the dot — spins in 3D space */
.orbit-track {
    position: absolute; inset: 0;
    border-radius: 50%;
    transform: rotateX(70deg) rotateZ(-25deg);
    animation: orbit-spin 5s linear infinite;
    pointer-events: none; z-index: 3;
}

@keyframes orbit-spin {
    from { transform: rotateX(70deg) rotateZ(-25deg) rotateY(0deg); }
    to   { transform: rotateX(70deg) rotateZ(-25deg) rotateY(360deg); }
}

/* The gold dot on the orbit track */
.orbit-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255,215,0,.5);
    /* Place at top-center of the track circle */
    top: -5px; left: 50%; transform: translateX(-50%);
}

/* Outer dashed decorative ring */
.orbit-outer {
    position: absolute;
    width: 116px; height: 116px;
    border-radius: 50%;
    border: 1px dashed rgba(0,255,136,.2);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin-slow 20s linear infinite;
    pointer-events: none; z-index: 0;
}

@keyframes spin-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.brand-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-weight: 900;
    letter-spacing: .18em;
    background: linear-gradient(135deg, var(--green) 0%, var(--gold) 60%, var(--green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite;
}
@keyframes shine {
0%   { background-position: 0% center; }
100% { background-position: 200% center; }
}

.tagline {
    font-size: .85rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(0,255,136,.55);
    animation: fadeUp .9s .2s ease both;
}

/* ── Headline ── */
.headline {
    text-align: center;
    animation: fadeUp .9s .3s ease both;
}
.headline h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(255,255,255,.75);
    margin-bottom: 6px;
}
.headline .tge-label {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 900;
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-glow);
    letter-spacing: .1em;
}

/* ── Countdown cards ── */
.countdown {
    display: flex; gap: clamp(12px,3vw,28px);
    align-items: flex-start;
    animation: fadeUp .9s .45s ease both;
}

.time-block {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: relative;
}

.time-card {
    position: relative;
    width: clamp(70px,18vw,120px);
    height: clamp(70px,18vw,120px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

/* glow corners */
.time-card::before, .time-card::after {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}
.time-card::before { top: 6px; left: 6px; }
.time-card::after  { bottom: 6px; right: 6px; }

.time-card .inner-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,255,136,.07) 0%, transparent 70%);
    pointer-events: none;
}

.digit {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem,8vw,3.2rem);
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 12px var(--green-glow), 0 0 24px rgba(0,255,136,.25);
    line-height: 1;
    transition: transform .15s ease, opacity .15s ease;
    position: relative; z-index: 1;
}

.digit.flip {
    animation: flip-num .25s ease both;
}
@keyframes flip-num {
    0%   { transform: translateY(-8px) scaleY(.6); opacity: 0; }
    100% { transform: translateY(0)    scaleY(1);   opacity: 1; }
}

.label {
    font-family: 'Orbitron', monospace;
    font-size: clamp(.55rem,1.8vw,.75rem);
    letter-spacing: .25em;
    color: rgba(0,255,136,.5);
    text-transform: uppercase;
}

.separator {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.6rem,6vw,2.8rem);
    color: var(--green-dim);
    opacity: .5;
    margin-top: 14px;
    animation: blink 1s step-start infinite;
}
@keyframes blink { 0%,100%{opacity:.5} 50%{opacity:.12} }

/* ── Progress bar ── */
.progress-wrap {
    width: min(520px, 90vw);
    animation: fadeUp .9s .6s ease both;
}
.progress-meta {
    display: flex; justify-content: space-between;
    font-size: .75rem; color: rgba(255,255,255,.4);
    margin-bottom: 8px; letter-spacing: .05em;
}
.progress-track {
    width: 100%; 
    height: 6px;
    background: rgba(0,255,136,.1);
    border-radius: 99px; 
    overflow: visible; 
    position: relative;
}
.progress-fill {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--green-dim), var(--green), var(--gold));
    box-shadow: 0 0 10px var(--green-glow);
    position: relative; transition: width 1s ease;
}
.progress-dot {
    position: absolute; right: -4px; top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: glow-dot 1.5s ease-in-out infinite;
}
@keyframes glow-dot {
    0%,100%{box-shadow:0 0 8px var(--gold)} 50%{box-shadow:0 0 20px var(--gold), 0 0 30px rgba(255,215,0,.4)}
}

/* ── Users badge ── */
.users-badge {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,255,136,.06);
    border: 1px solid rgba(0,255,136,.15);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: .85rem; color: rgba(255,255,255,.6);
    animation: fadeUp .9s .75s ease both;
}
.users-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: blink 1.4s ease-in-out infinite;
}
.users-badge strong { 
    color: var(--green); font-weight: 700; 
}

/* ── CTA ── */
.cta {
    animation: fadeUp .9s .9s ease both;
    text-align: center;
}
.cta p {
    font-size: .8rem; 
    letter-spacing: .15em; 
    text-transform: uppercase;
    color: rgba(255,255,255,.3); 
    margin-top: 30px;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--green-dim), var(--green));
    color: #020c06; font-family: 'Orbitron', monospace;
    font-size: .85rem; font-weight: 700; letter-spacing: .12em;
    padding: 14px 36px; border-radius: 50px;
    text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 0 20px var(--green-glow), 0 4px 20px rgba(0,0,0,.4);
    transition: box-shadow .3s, transform .2s;
}
.btn-primary:hover {
    box-shadow: 0 0 40px var(--green-glow), 0 6px 28px rgba(0,0,0,.5);
    transform: translateY(-2px);
}
.btn-icon { font-size: 1.1rem; }

/* ── Animations ── */
@keyframes fadeDown {
    from { opacity:0; transform:translateY(-20px) }
    to   { opacity:1; transform:translateY(0) }
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(20px) }
    to   { opacity:1; transform:translateY(0) }
}

/* ── Floating particles ── */
.particles { 
    position:fixed; 
    inset:0; 
    z-index:0; 
    pointer-events:none; 
}
.particle {
    position: absolute;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--green);
    opacity: 0;
    animation: float-up linear infinite;
}
@keyframes float-up {
    0%   { opacity:0; transform:translateY(0) scale(1); }
    10%  { opacity:.6; }
    90%  { opacity:.3; }
    100% { opacity:0; transform:translateY(-90vh) scale(0); }
}
