:root {
    --bg: #091F34;
    --bg-card: #0D2540;
    --bg-card2: #0F2B48;
    --text: #F5F5F5;
    --muted: #C5CCD3;
    --accent: #629FE4;
    --accent-lt: #B9D4F3;
    --border: rgba(98, 159, 228, 0.12);
    --border-md: rgba(98, 159, 228, 0.28);
    --shadow: rgba(98, 159, 228, 0.15);
    --radius: 16px;
    --header-h: 68px;
}

.theme-light {
    --bg: #EEF4FC;
    --bg-card: #FFFFFF;
    --bg-card2: #F5F9FF;
    --text: #091F34;
    --muted: #4a5a6a;
    --border: rgba(9, 31, 52, 0.08);
    --border-md: rgba(9, 31, 52, 0.18);
    --shadow: rgba(98, 159, 228, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .2s, color .2s;
    position: relative;
}

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

h1,
h2,
h3,
.logo span,
.hero-title {
    font-family: 'Syne', sans-serif;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .3s;
}

.header.scrolled {
    background: rgba(9, 31, 52, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.theme-light .header.scrolled {
    background: rgba(238, 244, 252, 0.92);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: opacity .2s;
}

.logo:hover {
    opacity: .72;
}

.logo svg {
    color: var(--accent);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── Buttons ── */
.btn-theme {
    background: transparent;
    border: 1px solid var(--border-md);
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    flex-shrink: 0;
}

.btn-theme:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-lt);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(98, 159, 228, .28);
}

.btn-primary--lg {
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-md);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Small variant — used for nav-style links */
.btn-outline--sm {
    padding: 8px 16px;
    font-size: .8rem;
}

.btn-outline--sm.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ══════════════════════════════════════════════════
   HERO — shared by index.html and plasma.html
   Background = radial orb glow at the bottom, NO dot grid
══════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 32px) 24px 0;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 140px;
    animation: fadeIn .8s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Status / info badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(98, 159, 228, 0.08);
    border: 1px solid rgba(98, 159, 228, 0.22);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .8rem;
    color: var(--accent-lt);
    margin-bottom: 26px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-dot--accent {
    background: var(--accent);
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.6)
    }
}

/* Main title */
.hero-title {
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 10px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-accent2 {
    background: linear-gradient(-100deg, #FECB00 5%, #629fe4 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Node designation line */
.hero-node {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: .7;
    margin-bottom: 20px;
}

/* Description */
.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.78;
}

/* CTA row */
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Tech specs row */
.hero-specs {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.spec-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.spec-lbl {
    font-size: .7rem;
    color: var(--muted);
    opacity: .6;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Glowing orb — reused on both pages */
.hero-orb {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 120vw);
    height: 460px;
    pointer-events: none;
    z-index: 1;
}

.orb-core {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 90vw);
    height: 280px;
    background: radial-gradient(ellipse at 50% 100%,
            rgba(98, 159, 228, .42) 0%, rgba(58, 123, 200, .22) 35%,
            rgba(26, 74, 138, .08) 65%, transparent 82%);
    border-radius: 50%;
    animation: orb-breathe 6s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(98, 159, 228, .09);
}

.orb-r1 {
    width: min(460px, 85vw);
    height: 75px;
    bottom: 6px;
}

.orb-r2 {
    width: min(680px, 110vw);
    height: 105px;
    bottom: -8px;
    border-color: rgba(98, 159, 228, .05);
}

@keyframes orb-breathe {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .65;
        transform: translateX(-50%) scaleX(1.04)
    }
}

/* ══════════════════════════════════════════════════
   SECTION HELPERS
══════════════════════════════════════════════════ */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.15;
}

.section-sub {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════
   FEATURES GRID — 3 cards (index.html)
══════════════════════════════════════════════════ */
.features {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

.feat-card:hover {
    border-color: var(--border-md);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(98, 159, 228, .1);
}

.feat-icon {
    font-size: 1.4rem;
}

.feat-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
}

.feat-card p {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.feat-card .feat-tag {
    font-size: .72rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════
   COUNTDOWN SECTION (plasma.html)
   Big digit boxes counting down to target date.
   Logic lives in js/main.js → initCountdown()
══════════════════════════════════════════════════ */
.countdown {
    padding: 90px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-target {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--muted);
    opacity: .55;
    margin-bottom: 36px;
}

.countdown-target span {
    color: var(--accent-lt);
    opacity: 1;
}

.countdown-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cd-box {
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: 20px;
    padding: 28px 20px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s;
}

.cd-box:hover {
    border-color: var(--accent);
}

/* Subtle glow line on top of each box */
.cd-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .5;
}

.cd-val {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--accent-lt), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cd-lbl {
    display: block;
    margin-top: 10px;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .55;
}

.countdown-note {
    font-size: .88rem;
    color: var(--muted);
    opacity: .55;
    max-width: 420px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════
   CORE / PLASMA RELATIONSHIP SECTION (plasma.html)
   Large "Core" orb dominates; small "Plasma" node
   orbits around it — visual hierarchy = importance
══════════════════════════════════════════════════ */
.core-relation {
    padding: 90px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

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

/* ── Visual: neon Saturn canvas ── */
.relation-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 420px;
    margin: 0 auto;
}

/* Canvas fills the square — Saturn drawn by js/saturn.js */
#saturn-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Text side ── */
.relation-text .section-label {
    display: block;
}

.relation-p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.78;
    margin-bottom: 16px;
}

.relation-p strong {
    color: var(--text);
    font-weight: 600;
}

/* Compare chips — reinforce hierarchy with short labels */
.relation-compare {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.compare-chip {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}

.compare-chip--core {
    border-color: var(--border-md);
}

.chip-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .55;
    margin-bottom: 6px;
}

.compare-chip--core .chip-label {
    color: var(--accent);
    opacity: 1;
}

.chip-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.compare-chip--core .chip-desc {
    color: var(--text);
}

/* ══════════════════════════════════════════════════
   DONATE SECTION
══════════════════════════════════════════════════ */
.donate {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.donate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.donate-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}

.crypto-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: 50px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .25s;
}

.crypto-btn:hover {
    border-color: var(--accent);
    background: rgba(98, 159, 228, .07);
    color: var(--accent-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(98, 159, 228, .12);
}

.crypto-btn.copied {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, .05);
}

.crypto-sym {
    font-size: 1.1rem;
}

.copy-status {
    margin-top: 14px;
    font-size: .83rem;
    color: #4ade80;
    font-weight: 500;
    min-height: 20px;
    opacity: 0;
    transition: opacity .3s;
}

.copy-status.visible {
    opacity: 1;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: .78rem;
    color: var(--muted);
    opacity: .5;
}

.footer-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.footer-links a {
    font-size: .8rem;
    color: var(--muted);
    opacity: .6;
    transition: opacity .2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-tg {
    color: var(--accent) !important;
    opacity: 1 !important;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .relation-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .relation-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .hero {
        padding: 88px 20px 0;
    }

    .hero-inner {
        padding-bottom: 120px;
    }

    .section-inner {
        padding: 0 20px;
    }

    .feat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .features,
    .donate,
    .countdown,
    .core-relation {
        padding: 60px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-specs {
        gap: 16px;
    }

    .orb-r2 {
        display: none;
    }

    .cd-box {
        min-width: 78px;
        padding: 20px 12px;
    }

    .countdown-grid {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -.5px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        justify-content: center;
    }

    .donate-btns {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 28px auto 0;
    }

    .crypto-btn {
        justify-content: center;
    }

    .hero-specs {
        gap: 12px;
    }

    .relation-compare {
        flex-direction: column;
    }

    .header-right {
        gap: 6px;
    }
}
