/* ═══════════════════════════════════════════════════════════════
   D10 Design System — xmr.irish v4.0
   Three-layer token architecture · Fluid typography · Spacing system
   Typography: Playfair Display / Instrument Serif / DM Mono / Geologica / Sora
   ═══════════════════════════════════════════════════════════════ */

/* ── Layer 1: Primitive Tokens ───────────────────────────────── */
:root {
    /* Brand colors */
    --orange-500: #FF6600;
    --orange-400: #FF8533;
    --orange-300: #FFAA66;
    --orange-100: rgba(255, 102, 0, 0.08);
    --orange-50:  rgba(255, 102, 0, 0.04);
    --green-500:  #00D395;
    --green-400:  #00CC88;
    --green-100:  rgba(0, 211, 149, 0.08);
    --red-500:    #FF4757;
    --red-100:    rgba(255, 71, 87, 0.08);
    --blue-500:   #4A9EFF;
    --blue-100:   rgba(74, 158, 255, 0.08);
    --gold-500:   #FFD700;
    --gold-100:   rgba(255, 215, 0, 0.06);
    --cyan-500:   #00CED1;
    --cyan-100:   rgba(0, 206, 209, 0.06);
    --violet-500: #8855FF;

    /* Surface ramp (dark-first, no pure black) */
    --surface-0:  #0A0A0C;
    --surface-05: #0E0E11;
    --surface-1:  #111114;
    --surface-2:  #1A1A1E;
    --surface-3:  #222226;

    /* Gray ramp (text + borders) */
    --g1:  #E8E8EC;
    --g2:  #D0D0D6;
    --g3:  #B0B0B8;
    --g4:  #90909A;
    --g5:  #70707A;
    --g6:  #555560;
    --g7:  #3A3A42;
    --g8:  #2A2A32;
    --g9:  #1A1A22;
    --g10: #0A0A0E;
}

/* ── Layer 2: Semantic Tokens ────────────────────────────────── */
:root {
    /* Accent */
    --xmr:        var(--orange-500);
    --xmr-text:   var(--orange-400);
    --xmr-light:  var(--orange-300);
    --btc:        #F7931A;
    --grn:        var(--green-500);
    --red:        var(--red-500);
    --blue:       var(--blue-500);
    --gold:       var(--gold-500);
    --cyan:       var(--cyan-500);

    /* Surfaces */
    --bg:          var(--surface-0);
    --card-bg:     rgba(255, 255, 255, 0.012);
    --card-bg-solid: var(--surface-1);
    --card-border: rgba(255, 255, 255, 0.04);
    --card-hover:  rgba(255, 102, 0, 0.15);

    /* Text hierarchy */
    --text-primary:   var(--g1);
    --text-secondary: var(--g4);
    --text-tertiary:  var(--g5);
    --text-muted:     var(--g7);

    /* Border hierarchy */
    --border-subtle:  var(--g9);
    --border-default: var(--g8);
    --border-strong:  var(--g7);

    /* Font stacks */
    --font-headline: 'Playfair Display', Georgia, serif;
    --font-subhead:  'Instrument Serif', Georgia, serif;
    --font-mono:     'DM Mono', 'Courier New', monospace;
    --font-data:     'Geologica', 'Helvetica Neue', sans-serif;
    --font-body:     'Sora', 'Helvetica Neue', sans-serif;

    /* Fluid type scale */
    --text-hero:     clamp(2.25rem, 1rem + 5vw, 3.5rem);
    --text-h1:       clamp(1.625rem, 1rem + 2.5vw, 2.25rem);
    --text-h2:       clamp(1.25rem, 0.9rem + 1.5vw, 1.625rem);
    --text-h3:       clamp(1rem, 0.85rem + 0.8vw, 1.25rem);
    --text-body:     clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
    --text-body-sm:  clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    --text-mono:     clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --text-label:    clamp(0.625rem, 0.6rem + 0.12vw, 0.6875rem);
    --text-eyebrow:  clamp(0.5625rem, 0.55rem + 0.06vw, 0.625rem);

    /* Spacing scale */
    --space-section: clamp(64px, 8vh, 120px);
    --space-content: clamp(24px, 3vh, 48px);
    --space-element: clamp(12px, 1.5vh, 24px);
    --space-tight:   8px;
    --space-page-x:  clamp(16px, 3vw, 28px);

    /* Motion */
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast:  150ms;
    --duration-base:  300ms;
    --duration-slow:  500ms;
    --duration-reveal: 800ms;

    /* Radii */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   14px;
    --radius-xl:   18px;
    --radius-pill:  100px;
}

/* ── Layer 3: Component Tokens ───────────────────────────────── */
:root {
    --nav-bg:         rgba(10, 10, 12, 0.92);
    --nav-border:     rgba(255, 102, 0, 0.04);
    --nav-text:       var(--g5);
    --nav-text-hover: var(--g1);
    --nav-text-active: var(--xmr);

    --btn-primary-border: rgba(255, 102, 0, 0.25);
    --btn-primary-bg:     rgba(255, 102, 0, 0.08);
    --btn-primary-color:  var(--xmr);
    --btn-secondary-border: rgba(255, 255, 255, 0.06);
    --btn-secondary-bg:    rgba(255, 255, 255, 0.02);
    --btn-secondary-color: var(--g4);

    --stat-value-size:  clamp(1.25rem, 1rem + 1vw, 1.625rem);
    --stat-label-size:  var(--text-eyebrow);
    --pillar-value-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}


/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESET
   ═══════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-variant-numeric: tabular-nums;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { outline: none; font-family: inherit; }


/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--xmr);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
    display: flex;
    align-items: center;
    padding: 12px var(--space-page-x);
    border-bottom: 1px solid var(--nav-border);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.shamrock-link {
    width: 26px; height: 26px;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
}
.shamrock-link svg {
    width: 100%; height: 100%;
    animation: shamrock-osc 8s ease-in-out infinite;
}
@keyframes shamrock-osc {
    0%   { transform: perspective(600px) rotateY(-20deg); }
    50%  { transform: perspective(600px) rotateY(20deg); }
    100% { transform: perspective(600px) rotateY(-20deg); }
}

.nav-logo {
    font-family: var(--font-headline);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-right: 24px;
    white-space: nowrap;
}
.nav-logo span { color: var(--xmr); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--nav-text);
    padding: 6px 10px;
    cursor: pointer;
    transition: color var(--duration-fast);
    white-space: nowrap;
}
.nav-link:hover { color: var(--nav-text-hover); }
.nav-link.active { color: var(--nav-text-active); }

/* New badge for nav items */
.nav-badge {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: var(--xmr);
    color: #000;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: 2px;
}

.dd-wrap { position: relative; }
.dd-wrap .nav-link::after { content: ' \25BE'; font-size: 8px; color: var(--g7); }
.dd-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--surface-05);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 6px 0;
    min-width: 185px;
    opacity: 0; visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--duration-fast) ease;
    z-index: 200;
}
.dd-wrap:hover .dd-menu { opacity: 1; visibility: visible; transform: translateY(2px); }
.dd-item {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}
.dd-item:hover {
    color: var(--xmr);
    background: var(--orange-50);
    padding-left: 20px;
}

/* Nav block counter */
.nav-block {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 102, 0, 0.12);
    animation: block-pulse 3s infinite;
    flex-shrink: 0;
}
@keyframes block-pulse {
    0%, 100% { border-color: rgba(255, 102, 0, 0.12); }
    50%      { border-color: rgba(255, 102, 0, 0.3); }
}
.nav-block .nb-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--xmr);
    animation: nb-blink 2s infinite;
}
@keyframes nb-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.nav-block .nb-val { font-family: var(--font-data); font-size: 11px; font-weight: 500; color: var(--xmr); }
.nav-block .nb-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* Nav price ticker */
.nav-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 14px;
    flex-shrink: 0;
}
.nav-price .np {
    font-family: var(--font-mono);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-price .np .sym { color: var(--g6); }
.nav-price .np .val { font-family: var(--font-data); color: var(--g2); font-weight: 500; }
.nav-price .np .chg-up { color: var(--grn); }
.nav-price .np .chg-dn { color: var(--red); }


/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.t-headline {
    font-family: var(--font-headline);
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.08;
}
.t-subhead {
    font-family: var(--font-subhead);
    font-style: italic;
}
.t-data {
    font-family: var(--font-data);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.t-mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}
.t-body {
    font-family: var(--font-body);
}
.t-kicker {
    font-family: var(--font-mono);
    font-size: var(--text-eyebrow);
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION PRIMITIVES
   ═══════════════════════════════════════════════════════════════ */

.sec {
    padding: var(--space-content) var(--space-page-x);
}
.sec-border {
    border-top: 1px solid var(--border-subtle);
}
.sec-surface {
    background: var(--surface-1);
}
.sec-k {
    font-family: var(--font-mono);
    font-size: var(--text-eyebrow);
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sec-t {
    font-family: var(--font-headline);
    font-size: var(--text-h1);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.sec-s {
    font-family: var(--font-subhead);
    font-style: italic;
    font-size: var(--text-body);
    color: var(--text-secondary);
    margin-bottom: var(--space-content);
    max-width: 560px;
    line-height: 1.7;
}

/* Section spacing utility */
.section-gap     { height: var(--space-section); }
.section-gap-sm  { height: calc(var(--space-section) * 0.6); }
.section-gap-lg  { height: calc(var(--space-section) * 1.25); }


/* ═══════════════════════════════════════════════════════════════
   CARD SYSTEM (3D Bubble System evolved)
   ═══════════════════════════════════════════════════════════════ */

.bub, .orb, .mc, .eco-card, .lc, .rt, .ft-c, .inf-c {
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: all var(--duration-slow) var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.bub:hover, .orb:hover, .mc:hover, .eco-card:hover, .lc:hover, .rt:hover, .ft-c:hover, .inf-c:hover {
    border-color: var(--card-hover);
    border-radius: calc(var(--radius-xl) + 4px);
}

/* Elevated card variant */
.card-elevated {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-content);
    transition: border-color var(--duration-base);
}
.card-elevated:hover {
    border-color: rgba(255, 102, 0, 0.12);
}

/* Orange pulse on hover */
.bub::before, .orb::before, .mc::before, .eco-card::before, .lc::before, .rt::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}
.bub:hover::before, .orb:hover::before, .mc:hover::before, .eco-card:hover::before, .lc:hover::before, .rt:hover::before {
    opacity: 1;
    animation: orange-pulse 2.5s ease-in-out infinite;
}
@keyframes orange-pulse {
    0%, 100% { background: rgba(255, 102, 0, 0.03); }
    50%      { background: rgba(255, 102, 0, 0.08); }
}

/* Card content typography */
.bub-icon, .bi {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--xmr);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative; z-index: 1;
}
.bub-icon .dot, .bi .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--xmr);
}
.bub-h, .bh {
    font-family: var(--font-subhead);
    font-style: italic;
    font-size: var(--text-h3);
    margin-bottom: 6px;
    position: relative; z-index: 1;
}
.bub-p, .bp {
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    color: var(--text-tertiary);
    line-height: 1.6;
    position: relative; z-index: 1;
}
.bub-stat, .bs {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: relative; z-index: 1;
}
.bub-stat .bsv, .bs .bsv {
    font-family: var(--font-data);
    font-size: var(--text-h3);
    font-weight: 500;
    color: var(--xmr);
}
.bub-stat .bsl, .bs .bsl {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.bub.hero-bub {
    border-color: rgba(255, 102, 0, 0.06);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.03), transparent);
}


/* ═══════════════════════════════════════════════════════════════
   METRIC CELLS
   ═══════════════════════════════════════════════════════════════ */

.mc {
    background: var(--surface-05);
    padding: 12px 10px;
    text-align: center;
    border-radius: 0;
    border: none;
    display: block;
    color: inherit;
}
.mc:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.mc:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.mc:hover { background: var(--surface-1); }

.mc-v { font-family: var(--font-data); font-size: var(--stat-value-size); font-weight: 500; color: var(--xmr-text); position: relative; z-index: 1; }
.mc-l { font-family: var(--font-mono); font-size: 11px; color: var(--g6); margin-top: 3px; position: relative; z-index: 1; }
.mc-s { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 2px; position: relative; z-index: 1; }
.mc-c { font-family: var(--font-mono); font-size: 11px; position: relative; z-index: 1; margin-top: 1px; }
.mc-c.up { color: var(--grn); }
.mc-c.dn { color: var(--red); }


/* ═══════════════════════════════════════════════════════════════
   ORBIT CARDS
   ═══════════════════════════════════════════════════════════════ */

.orb {
    border-radius: var(--radius-lg);
    padding: 14px;
    text-align: center;
}
.orb:hover { border-radius: calc(var(--radius-lg) + 4px); }
.orb .ov { font-family: var(--font-data); font-size: 18px; font-weight: 500; color: var(--xmr); position: relative; z-index: 1; }
.orb .oc { font-family: var(--font-body); font-size: var(--text-body-sm); color: var(--text-tertiary); margin-top: 2px; position: relative; z-index: 1; }
.orb .ob { height: 3px; border-radius: 2px; background: var(--g9); margin-top: 6px; overflow: hidden; position: relative; z-index: 1; }
.orb .ob-f { height: 100%; border-radius: 2px; }
.orb .ol { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 3px; position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════════════════════════ */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; }
.grid-10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }


/* ═══════════════════════════════════════════════════════════════
   CTA BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.cta {
    font-family: var(--font-mono);
    font-size: var(--text-mono);
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-base);
    text-align: center;
    display: inline-block;
}
.cta-primary {
    border: 1px solid var(--btn-primary-border);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}
.cta-primary:hover {
    background: rgba(255, 102, 0, 0.14);
    border-color: rgba(255, 102, 0, 0.4);
    transform: scale(1.02);
}
.cta-secondary {
    border: 1px solid var(--btn-secondary-border);
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
}
.cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--g2);
}

/* Colored CTA variants */
.cta-green {
    border: 1px solid rgba(0, 211, 149, 0.25);
    background: rgba(0, 211, 149, 0.08);
    color: var(--grn);
}
.cta-green:hover {
    background: rgba(0, 211, 149, 0.14);
    border-color: rgba(0, 211, 149, 0.4);
}


/* ═══════════════════════════════════════════════════════════════
   INPUT FIELDS
   ═══════════════════════════════════════════════════════════════ */

input[type="text"], input[type="search"] {
    background: var(--surface-05);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--text-mono);
    transition: border-color var(--duration-fast);
}
input[type="text"]:focus, input[type="search"]:focus {
    border-color: var(--xmr);
}
input[type="text"]::placeholder, input[type="search"]::placeholder {
    color: var(--text-muted);
}

.btn-track {
    background: var(--xmr);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    font-family: var(--font-mono);
    font-size: var(--text-mono);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--duration-fast);
}
.btn-track:hover { background: var(--xmr-light); }


/* ═══════════════════════════════════════════════════════════════
   ORGANIC BLOBS
   ═══════════════════════════════════════════════════════════════ */

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    transition: opacity 3s;
}
.blob-1 { width: 300px; height: 300px; background: var(--xmr); top: 8%; left: -5%; animation: blob-float-1 14s ease-in-out infinite; }
.blob-2 { width: 250px; height: 250px; background: #6B3FA0; top: 38%; right: -3%; animation: blob-float-2 18s ease-in-out infinite; }
.blob-3 { width: 200px; height: 200px; background: var(--xmr); bottom: 12%; left: 28%; animation: blob-float-3 12s ease-in-out infinite; }
.blob-4 { width: 180px; height: 180px; background: var(--grn); top: 58%; left: 8%; animation: blob-float-1 16s ease-in-out infinite 3s; }
.blob-5 { width: 220px; height: 220px; background: var(--blue); bottom: 30%; right: 12%; animation: blob-float-2 20s ease-in-out infinite 5s; }

@keyframes blob-float-1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -20px); } }
@keyframes blob-float-2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-25px, 30px); } }
@keyframes blob-float-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, 25px); } }


/* ═══════════════════════════════════════════════════════════════
   TRIPLE RING VISUAL (Orbital Price Viz)
   ═══════════════════════════════════════════════════════════════ */

.ring-container { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.ring-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.ring {
    position: absolute; border-radius: 50%;
    border-style: solid; border-color: transparent;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ring-1 {
    width: 240px; height: 240px; border-width: 2px;
    border-top-color: rgba(255, 102, 0, 0.5);
    border-right-color: rgba(255, 102, 0, 0.15);
    border-bottom-color: rgba(255, 102, 0, 0.08);
    animation: ring-spin-1 22s linear infinite;
}
.ring-2 {
    width: 180px; height: 180px; border-width: 1.5px;
    border-bottom-color: rgba(255, 102, 0, 0.4);
    border-left-color: rgba(255, 102, 0, 0.12);
    animation: ring-spin-2 14s linear infinite;
}
.ring-3 {
    width: 120px; height: 120px; border-width: 1.5px;
    border-top-color: rgba(255, 102, 0, 0.35);
    border-right-color: rgba(255, 102, 0, 0.1);
    animation: ring-spin-3 9s linear infinite;
}
@keyframes ring-spin-1 { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ring-spin-2 { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes ring-spin-3 { to { transform: translate(-50%, -50%) rotate(360deg); } }

.ring-node {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--xmr);
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}
.ring-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; z-index: 2;
}
.ring-center .rc-price {
    font-family: var(--font-data);
    font-size: 28px; font-weight: 600;
    color: var(--xmr);
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.15);
}
.ring-center .rc-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-tertiary); letter-spacing: 2px; margin-top: 2px; }
.ring-center .rc-change { font-family: var(--font-mono); font-size: 11px; color: var(--grn); margin-top: 3px; }

.stem {
    position: absolute; width: 1px;
    transform-origin: center center;
    opacity: 0.18;
}


/* ═══════════════════════════════════════════════════════════════
   MEMPOOL SHORTCUT
   ═══════════════════════════════════════════════════════════════ */

.mempool-shortcut {
    margin-top: 16px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 102, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.03), rgba(255, 102, 0, 0.008));
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s;
}
.mempool-shortcut:hover {
    border-color: rgba(255, 102, 0, 0.2);
}
.ms-orb {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 102, 0, 0.2);
    display: flex; align-items: center; justify-content: center;
    animation: ms-orb-spin 6s ease-in-out infinite;
}
@keyframes ms-orb-spin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.ms-orb span { font-family: var(--font-data); font-size: 11px; font-weight: 600; color: var(--xmr); }
.ms-title { font-family: var(--font-subhead); font-style: italic; font-size: 15px; }
.ms-desc { font-family: var(--font-body); font-size: var(--text-body-sm); color: var(--g6); margin-top: 1px; }


/* ═══════════════════════════════════════════════════════════════
   QUOTE SECTION
   ═══════════════════════════════════════════════════════════════ */

.quote-mark { font-family: var(--font-headline); font-size: 44px; color: rgba(255, 102, 0, 0.12); line-height: 1; }
.quote-text { font-family: var(--font-subhead); font-style: italic; font-size: 18px; color: var(--g3); max-width: 560px; margin: 6px auto 10px; line-height: 1.55; }
.quote-attr { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════════════
   LEGAL STATUS CELLS
   ═══════════════════════════════════════════════════════════════ */

.lc { border-radius: var(--radius-sm); padding: 8px 6px; text-align: center; }
.lc:hover { border-radius: var(--radius-md); z-index: 2; }
.lc-name { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-primary); position: relative; z-index: 1; }
.lc-status { font-family: var(--font-mono); font-size: 11px; margin-top: 2px; position: relative; z-index: 1; }
.lc.legal { background: var(--green-100); border-color: rgba(0, 211, 149, 0.08); }
.lc.legal:hover { border-color: rgba(0, 211, 149, 0.25); }
.lc.legal .lc-status { color: var(--grn); }
.lc.gray-zone { background: var(--gold-100); border-color: rgba(255, 215, 0, 0.06); }
.lc.gray-zone:hover { border-color: rgba(255, 215, 0, 0.2); }
.lc.gray-zone .lc-status { color: var(--gold); }
.lc.restricted { background: var(--red-100); border-color: rgba(255, 71, 87, 0.06); }
.lc.restricted:hover { border-color: rgba(255, 71, 87, 0.25); }
.lc.restricted .lc-status { color: var(--red); }
.lc.exchange-restricted { background: var(--blue-100); border-color: rgba(74, 158, 255, 0.06); }
.lc.exchange-restricted:hover { border-color: rgba(74, 158, 255, 0.2); }
.lc.exchange-restricted .lc-status { color: var(--blue); }
.lc.geo-highlight { animation: geo-pulse 2s ease-in-out infinite; }
@keyframes geo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2); } }


/* ═══════════════════════════════════════════════════════════════
   ECOSYSTEM CARDS
   ═══════════════════════════════════════════════════════════════ */

.eco-card {
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: block;
    color: var(--text-primary);
}
.eco-card:hover { border-radius: calc(var(--radius-lg) + 4px); z-index: 2; }
.eco-card .eco-name { font-family: var(--font-subhead); font-style: italic; font-size: var(--text-body); margin-bottom: 3px; position: relative; z-index: 1; }
.eco-card .eco-desc { font-family: var(--font-body); font-size: var(--text-body-sm); color: var(--text-tertiary); line-height: 1.5; position: relative; z-index: 1; }
.eco-card .eco-url { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 11px; color: var(--xmr); position: relative; z-index: 1; }
.eco-card .eco-tag {
    display: inline-block; margin-top: 5px;
    padding: 2px 6px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 11px;
    position: relative; z-index: 1;
}
.eco-card.recommended { border-color: rgba(0, 211, 149, 0.12); }
.eco-card.recommended::after {
    content: 'RECOMMENDED'; position: absolute; top: 6px; right: 8px;
    font-family: var(--font-mono); font-size: 8px; letter-spacing: 1px;
    color: var(--grn); background: var(--green-100);
    padding: 2px 6px; border-radius: 3px; z-index: 1;
}
.eco-card.warn .eco-warn { font-family: var(--font-mono); font-size: 11px; color: var(--red); margin-top: 4px; position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════════════════
   CHART CONTAINERS
   ═══════════════════════════════════════════════════════════════ */

.chart-wrap {
    border-radius: var(--radius-lg);
    background: var(--surface-05);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    position: relative;
}
.chart-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.chart-btn {
    padding: 4px 10px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-default); background: transparent;
    color: var(--text-tertiary); font-family: var(--font-mono);
    font-size: 11px; transition: all var(--duration-fast);
}
.chart-btn:hover { border-color: var(--border-strong); color: var(--g3); }
.chart-btn.active { border-color: rgba(255, 102, 0, 0.3); color: var(--xmr); background: var(--orange-50); }

.chart-info-grid {
    position: absolute; top: 34px; left: 14px;
    background: rgba(10, 10, 12, 0.9); border: 1px solid var(--border-default);
    border-radius: 6px; padding: 4px 8px;
    z-index: 10; font-size: 11px; line-height: 1.4;
}
.chart-info-grid .ig-t { font-family: var(--font-mono); color: var(--g6); font-size: 8px; letter-spacing: 1px; }
.chart-info-grid .ig-r { display: flex; gap: 6px; justify-content: space-between; }
.chart-info-grid .ig-l { font-family: var(--font-mono); color: var(--text-muted); }
.chart-info-grid .ig-v { font-family: var(--font-data); font-weight: 500; }

.flip-toggle {
    padding: 2px 6px; border-radius: 4px;
    border: 1px solid var(--border-default); background: transparent;
    color: var(--g6); font-family: var(--font-mono);
    font-size: 9px; margin-left: 4px;
    letter-spacing: 0.5px; transition: all var(--duration-fast);
}
.flip-toggle:hover { border-color: rgba(255, 102, 0, 0.3); color: var(--xmr); }


/* ═══════════════════════════════════════════════════════════════
   CROSSFADE ANIMATION (for rotating stat/pillar/investment cards)
   ═══════════════════════════════════════════════════════════════ */

.crossfade-container {
    position: relative;
}
.crossfade-set {
    transition: opacity var(--duration-slow) var(--ease-smooth);
}
.crossfade-set.hidden {
    opacity: 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.crossfade-set.visible {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════ */

.page-offset { padding-top: 52px; }
.z1 { position: relative; z-index: 1; }
canvas.constellation { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    padding: 16px var(--space-page-x);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer span, .footer a {
    font-family: var(--font-mono);
    font-size: 11px;
}
.footer span { color: var(--text-muted); }
.footer a { color: var(--text-muted); margin: 0 6px; transition: color var(--duration-fast); }
.footer a:hover { color: var(--xmr); }


/* ═══════════════════════════════════════════════════════════════
   HAMBURGER + MOBILE MENU
   ═══════════════════════════════════════════════════════════════ */

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px; z-index: 101;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--g4); border-radius: 1px;
    transition: transform var(--duration-base), opacity var(--duration-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none; position: fixed; top: 52px; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 12, 0.97); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99; overflow-y: auto;
    padding: 24px var(--space-page-x) 40px; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mm-link {
    display: block; padding: 12px 0; color: var(--g3);
    text-decoration: none; font-family: var(--font-body);
    font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color var(--duration-fast);
}
.mm-link:hover, .mm-link.active { color: var(--xmr); }
.mm-group { margin-top: 14px; }
.mm-label {
    display: block; font-family: var(--font-mono); font-size: var(--text-eyebrow);
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
}
.mm-group .mm-link { padding-left: 12px; font-size: 14px; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav { padding: 10px 16px; }
    .nav-links { display: none; }
    .nav-price { display: none; }
    .nav-block { display: none; }
    .hamburger { display: flex; }
    .sec { padding: 16px 16px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sec-t { font-size: var(--text-h2); }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: 1fr; }
}
