/* ==========================================================================
   JOKIFI - Market Analytics Platform
   Modern glassmorphism. Rounded edges. Clean type.
   ========================================================================== */

:root {
    --xr-bg: #09090f;
    --xr-bg-2: #111118;
    --xr-surface: #16161e;
    --xr-surface-2: #1e1e2a;
    --xr-line: #25253a;
    --xr-line-2: #33334d;
    --xr-text: #eaeaf5;
    --xr-text-dim: #8888aa;
    --xr-text-faint: #55556e;
    --xr-orange: #8b5cf6;
    --xr-orange-soft: rgba(139, 92, 246, 0.12);
    --xr-amber: #06d6a0;
    --xr-cyan: #67e8f9;
    --xr-green: #34d399;
    --xr-red: #fb7185;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, monospace;
}

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

html, body { background: var(--xr-bg); }

body {
    font-family: var(--font-sans);
    color: var(--xr-text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--xr-bg);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(50% 40% at 20% 0%, rgba(139, 92, 246, 0.07), transparent 70%),
        radial-gradient(40% 35% at 90% 100%, rgba(6, 214, 160, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */

.xr-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--xr-bg);
    border-bottom: 1px solid var(--xr-line);
}

.xr-ticker {
    background: #07070d;
    border-bottom: 1px solid var(--xr-line);
    overflow: hidden;
    height: 32px;
    position: relative;
}

.xr-ticker-track {
    display: flex;
    gap: 48px;
    align-items: center;
    height: 100%;
    padding-left: 100%;
    animation: xr-scroll 40s linear infinite;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--xr-text-dim);
    letter-spacing: 0.5px;
}

.xr-ticker-track strong {
    color: var(--xr-text);
    font-weight: 600;
    margin-right: 8px;
}

.xr-ticker-track .up { color: var(--xr-green); }
.xr-ticker-track .down { color: var(--xr-red); }

@keyframes xr-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.xr-nav {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 48px;
}

.xr-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xr-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--xr-orange), #a78bfa);
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xr-logo-mark::before {
    content: '';
    position: absolute;
    inset: 2.5px;
    background: var(--xr-bg);
    border-radius: 50%;
    z-index: 0;
}

.xr-logo-mark::after {
    display: none;
}

.xr-logo-mark .glyph {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    color: var(--xr-orange);
    letter-spacing: -1px;
}

.xr-logo-text {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.xr-logo-text em {
    font-style: normal;
    color: var(--xr-orange);
}

.xr-nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.xr-nav-menu a {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--xr-text-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
    transition: color .15s, background .15s;
    border: 1px solid transparent;
}

.xr-nav-menu a::before {
    content: '';
}

.xr-nav-menu a::after {
    content: '';
}

.xr-nav-menu a:hover {
    color: var(--xr-orange);
}

.xr-nav-menu a:hover::before,
.xr-nav-menu a:hover::after {
    color: var(--xr-orange);
}

.xr-nav-menu a.active {
    color: var(--xr-text);
    background: var(--xr-surface);
    border-color: var(--xr-line);
}

.xr-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xr-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px 22px;
    border-radius: var(--r-sm);
    cursor: pointer;
    border: none;
    transition: transform .15s, box-shadow .15s, background .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xr-btn-primary {
    background: var(--xr-orange);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.xr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
    background: #a78bfa;
}

.xr-btn-ghost {
    background: transparent;
    color: var(--xr-text);
    border: 1px solid var(--xr-line-2);
}

.xr-btn-ghost:hover {
    border-color: var(--xr-orange);
    color: var(--xr-orange);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.xr-hero {
    position: relative;
    padding: 60px 32px 80px;
    border-bottom: 1px solid var(--xr-line);
    overflow: hidden;
}

.xr-hero-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.xr-hero-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--xr-text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.xr-hero-meta::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--xr-orange);
}

.xr-hero-title {
    font-family: var(--font-sans);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 0.98;
    margin-bottom: 28px;
}

.xr-hero-title .accent {
    color: var(--xr-orange);
    position: relative;
    display: inline-block;
}

.xr-hero-title .accent::after {
    content: '_';
    color: var(--xr-amber);
    animation: xr-blink 1s steps(2) infinite;
}

@keyframes xr-blink { 50% { opacity: 0; } }

.xr-hero-desc {
    font-size: 17px;
    color: var(--xr-text-dim);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.xr-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.xr-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--xr-line);
    padding-top: 28px;
    gap: 24px;
}

.xr-hstat-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--xr-text);
    letter-spacing: -1px;
}

.xr-hstat-num .unit {
    color: var(--xr-orange);
    font-size: 18px;
    margin-left: 2px;
}

.xr-hstat-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--xr-text-faint);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* terminal panel */

.xr-terminal {
    background: var(--xr-bg-2);
    border: 1px solid var(--xr-line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
    align-self: start;
}

.xr-term-bar {
    background: #0b0b14;
    border-bottom: 1px solid var(--xr-line);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--xr-text-dim);
}

.xr-term-dots {
    display: flex;
    gap: 6px;
}

.xr-term-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--xr-line-2);
}
.xr-term-dots span:nth-child(1) { background: var(--xr-red); }
.xr-term-dots span:nth-child(2) { background: var(--xr-amber); }
.xr-term-dots span:nth-child(3) { background: var(--xr-green); }

.xr-term-title {
    margin-left: 14px;
    color: var(--xr-text-faint);
    flex: 1;
}

.xr-term-status {
    color: var(--xr-green);
    font-size: 10.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.xr-term-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--xr-green);
    border-radius: 50%;
    animation: xr-pulse 1.6s infinite;
}

@keyframes xr-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.xr-term-body {
    padding: 22px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.85;
}

.xr-term-line {
    color: var(--xr-text-dim);
}

.xr-term-line .prompt { color: var(--xr-orange); margin-right: 10px; }
.xr-term-line .key { color: var(--xr-cyan); }
.xr-term-line .str { color: var(--xr-amber); }
.xr-term-line .num { color: var(--xr-green); }
.xr-term-line .comment { color: var(--xr-text-faint); }

.xr-term-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--xr-line-2);
}

.xr-term-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--xr-text-dim);
}

.xr-term-row b {
    color: var(--xr-text);
    font-weight: 500;
}

.xr-term-row .pos { color: var(--xr-green); }
.xr-term-row .neg { color: var(--xr-red); }

/* ==========================================================================
   SECTION CHROME
   ========================================================================== */

.xr-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 32px;
}

.xr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--xr-line);
    padding-bottom: 20px;
    gap: 24px;
    flex-wrap: wrap;
}

.xr-section-head h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}

.xr-section-head h2::before {
    content: attr(data-num) ' / ';
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--xr-orange);
    font-weight: 500;
    letter-spacing: 1px;
    margin-right: 8px;
    vertical-align: middle;
}

.xr-section-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--xr-text-dim);
    letter-spacing: 0.5px;
}

/* Tabs */
.xr-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--xr-line-2);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.xr-tab {
    padding: 9px 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--xr-text-dim);
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    border-right: 1px solid var(--xr-line-2);
}

.xr-tab:last-child { border-right: none; }

.xr-tab:hover { color: var(--xr-text); }

.xr-tab.active {
    background: var(--xr-orange);
    color: var(--xr-bg);
}

/* ==========================================================================
   TABLE  (kept structurally identical, restyled)
   ========================================================================== */

.xr-table-wrap {
    background: var(--xr-surface);
    border: 1px solid var(--xr-line);
    border-radius: var(--r-md);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--xr-text-faint);
    background: #0d0d18;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--xr-line);
}

td {
    padding: 22px 20px;
    border-bottom: 1px solid var(--xr-line);
    font-size: 14px;
    color: var(--xr-text);
}

tr:last-child td { border-bottom: none; }

tr:hover { background: rgba(139, 92, 246, 0.04); }

.rank {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--xr-orange);
    font-size: 16px;
}

.rank::before { content: '#'; color: var(--xr-text-faint); }

.exchange-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.exchange-logo {
    width: 38px;
    height: 38px;
    background: var(--xr-bg-2);
    border: 1px solid var(--xr-line);
    border-radius: var(--r-sm);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-logo img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 2px;
}

.exchange-name {
    font-weight: 600;
    color: var(--xr-text);
    font-size: 15px;
}

.trading-volume,
.liquidity-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--xr-amber);
    font-size: 14px;
}

.weekly-visits,
.markets-count,
.coins-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--xr-text-dim);
}

.fiat-supported {
    color: var(--xr-text-dim);
    font-size: 13px;
    line-height: 1.5;
}

.volume-chart {
    width: 100px;
    height: 36px;
    position: relative;
    background: var(--xr-bg-2);
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--xr-line);
}

.chart-line {
    position: absolute;
    inset: 2px;
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.5) 0%, rgba(74, 222, 128, 0.05) 100%);
    clip-path: polygon(0% 85%, 10% 70%, 20% 60%, 30% 45%, 40% 35%, 50% 25%, 60% 30%, 70% 40%, 80% 50%, 90% 45%, 100% 30%, 100% 100%, 0% 100%);
}

.chart-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--xr-green);
    clip-path: polygon(0% 85%, 10% 70%, 20% 60%, 30% 45%, 40% 35%, 50% 25%, 60% 30%, 70% 40%, 80% 50%, 90% 45%, 100% 30%, 100% 27%, 0% 82%);
}

.chart-red .chart-line {
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.5) 0%, rgba(251, 113, 133, 0.05) 100%);
    clip-path: polygon(0% 30%, 10% 45%, 20% 55%, 30% 70%, 40% 80%, 50% 75%, 60% 85%, 70% 90%, 80% 85%, 90% 80%, 100% 75%, 100% 100%, 0% 100%);
}

.chart-red .chart-line::before {
    background: var(--xr-red);
    clip-path: polygon(0% 30%, 10% 45%, 20% 55%, 30% 70%, 40% 80%, 50% 75%, 60% 85%, 70% 90%, 80% 85%, 90% 80%, 100% 75%, 100% 72%, 0% 27%);
}

/* ==========================================================================
   FEATURES (cards)
   ========================================================================== */

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

.xr-feat {
    background: var(--xr-bg);
    padding: 36px 28px;
    transition: background .2s;
    position: relative;
}

.xr-feat:hover {
    background: var(--xr-surface);
}

.xr-feat-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--xr-orange);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.xr-feat-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--xr-orange);
    color: var(--xr-orange);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.xr-feat-icon svg {
    width: 22px;
    height: 22px;
}

.xr-feat h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.xr-feat p {
    font-size: 14px;
    color: var(--xr-text-dim);
    line-height: 1.65;
}

/* ==========================================================================
   CHART SECTION
   ========================================================================== */

.xr-chart-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px 100px;
}

.xr-chart-frame {
    background: var(--xr-surface);
    border: 1px solid var(--xr-line);
    border-radius: var(--r-md);
    padding: 6px;
}

.xr-chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--xr-line);
    margin-bottom: 6px;
}

.xr-chart-pair {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--xr-text);
    font-weight: 600;
    letter-spacing: 1px;
}

.xr-chart-pair span {
    color: var(--xr-text-faint);
    margin: 0 4px;
}

.xr-chart-price {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-family: var(--font-mono);
}

.xr-chart-price .v {
    font-size: 20px;
    color: var(--xr-text);
    font-weight: 700;
}

.xr-chart-price .c {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: rgba(74, 222, 128, 0.1);
    color: var(--xr-green);
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}

.xr-chart-price .c.down {
    background: rgba(248, 113, 113, 0.1);
    color: var(--xr-red);
    border-color: rgba(248, 113, 113, 0.3);
}

.xr-chart-price .c.up {
    background: rgba(74, 222, 128, 0.1);
    color: var(--xr-green);
    border-color: rgba(74, 222, 128, 0.3);
}

.xr-chart-host {
    height: 480px;
    overflow: hidden;
    border-radius: var(--r-sm);
    position: relative;
}

.xr-chart-host .tradingview-widget-container,
.xr-chart-host .tradingview-widget-container__widget,
.xr-chart-host .tradingview-widget-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* footer seal */
.xr-foot-seal {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--xr-line);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xr-foot-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.xr-footer {
    border-top: 1px solid var(--xr-line);
    background: #07070d;
    margin-top: 60px;
}

.xr-footer-top {
    max-width: 1320px;
    margin: 0 auto;
    padding: 64px 32px 40px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 48px;
}

.xr-foot-brand {
    max-width: 320px;
}

.xr-foot-brand .xr-logo {
    margin-bottom: 18px;
}

.xr-foot-brand p {
    font-size: 13px;
    color: var(--xr-text-dim);
    line-height: 1.7;
}

.xr-foot-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--xr-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.xr-foot-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.xr-foot-col a {
    font-size: 13.5px;
    color: var(--xr-text-dim);
    transition: color .15s;
}

.xr-foot-col a:hover {
    color: var(--xr-orange);
}

.xr-footer-bottom {
    border-top: 1px solid var(--xr-line);
    padding: 24px 32px;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--xr-text-faint);
    letter-spacing: 0.5px;
}

.xr-footer-bottom .xr-company {
    flex: 1;
    min-width: 280px;
}

.xr-company p {
    margin-bottom: 4px;
}

.xr-copyright {
    text-align: right;
}

/* ==========================================================================
   ABOUT PAGE — distinct vertical timeline layout
   ========================================================================== */

.xr-about-hero {
    padding: 72px 32px 48px;
    border-bottom: 1px solid var(--xr-line);
}

.xr-about-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: end;
}

.xr-about-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--xr-orange);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.xr-about-tag::before {
    content: '// ';
}

.xr-about-hero h1 {
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -3px;
}

.xr-about-hero h1 .strike {
    color: var(--xr-orange);
}

.xr-about-lead {
    font-size: 18px;
    color: var(--xr-text-dim);
    line-height: 1.7;
    border-left: 2px solid var(--xr-orange);
    padding-left: 22px;
}

/* timeline */

.xr-timeline {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}

.xr-time-side {
    position: sticky;
    top: 130px;
    align-self: start;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--xr-text-faint);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.xr-time-side h3 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--xr-text);
    text-transform: none;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.xr-time-list {
    border-left: 1px solid var(--xr-line);
    padding-left: 0;
}

.xr-time-item {
    position: relative;
    padding: 28px 0 28px 40px;
    border-bottom: 1px solid var(--xr-line);
}

.xr-time-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 36px;
    width: 13px;
    height: 13px;
    background: var(--xr-orange);
    border: 2px solid var(--xr-bg);
}

.xr-time-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--xr-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.xr-time-item h4 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.xr-time-item p {
    font-size: 15px;
    color: var(--xr-text-dim);
    line-height: 1.7;
    max-width: 720px;
}

/* values strip */

.xr-values {
    background: var(--xr-bg-2);
    border-top: 1px solid var(--xr-line);
    border-bottom: 1px solid var(--xr-line);
    padding: 64px 32px;
}

.xr-values-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.xr-value {
    padding: 0 28px;
    border-right: 1px solid var(--xr-line);
}

.xr-value:last-child { border-right: none; }
.xr-value:first-child { padding-left: 0; }

.xr-value-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--xr-orange);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.xr-value h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.xr-value p {
    font-size: 13.5px;
    color: var(--xr-text-dim);
    line-height: 1.65;
}

/* about facts grid */
.xr-facts {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--xr-line);
    border: 1px solid var(--xr-line);
}

.xr-fact {
    background: var(--xr-bg);
    padding: 36px 28px;
}

.xr-fact-key {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--xr-text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.xr-fact-val {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--xr-text);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.xr-fact-val .unit {
    color: var(--xr-orange);
    font-size: 16px;
    margin-left: 4px;
}

.xr-fact-desc {
    font-size: 13px;
    color: var(--xr-text-dim);
    line-height: 1.55;
}

/* about CTA */
.xr-about-cta {
    max-width: 1320px;
    margin: 0 auto 100px;
    padding: 56px 48px;
    border: 1px solid var(--xr-line);
    border-radius: var(--r-lg);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent 60%),
        var(--xr-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.xr-about-cta h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.xr-about-cta p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--xr-text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   LEGAL PAGES (terms / cookie)
   ========================================================================== */

.xr-legal {
    max-width: 880px;
    margin: 0 auto;
    padding: 72px 32px 100px;
}

.xr-legal-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--xr-orange);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.xr-legal-tag::before { content: '// '; }

.xr-legal h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 16px;
}

.xr-legal-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--xr-text-dim);
    padding-bottom: 28px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--xr-line);
}

.xr-legal h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--xr-text);
    margin: 40px 0 14px;
    letter-spacing: -0.5px;
}

.xr-legal h2::before {
    content: attr(data-n);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--xr-orange);
    margin-right: 12px;
    letter-spacing: 1px;
}

.xr-legal h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--xr-text);
    margin: 26px 0 10px;
}

.xr-legal p {
    font-size: 15px;
    color: var(--xr-text-dim);
    line-height: 1.75;
    margin-bottom: 14px;
}

.xr-legal ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.xr-legal li {
    font-size: 14.5px;
    color: var(--xr-text-dim);
    line-height: 1.7;
    padding: 4px 0 4px 20px;
    position: relative;
}

.xr-legal li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--xr-orange);
    font-weight: 700;
}

.xr-legal a {
    color: var(--xr-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.xr-legal strong {
    color: var(--xr-text);
}

/* ==========================================================================
   MODALS  (kept simple)
   ========================================================================== */

.modal, .contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 9, 15, 0.85);
    backdrop-filter: blur(8px);
}

.modal.show, .contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content, .contact-modal-content {
    background: var(--xr-surface);
    border: 1px solid var(--xr-line-2);
    border-radius: var(--r-lg);
    width: 460px;
    max-width: 92vw;
    padding: 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 30px rgba(139, 92, 246, 0.15);
}

.modal-header, .contact-modal-header {
    margin-bottom: 24px;
}

.modal-header h2, .contact-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-header h2::before, .contact-modal-header h2::before {
    content: '> ';
    color: var(--xr-orange);
    font-family: var(--font-mono);
}

.modal-header p {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--xr-text-dim);
}

.form-group, .contact-form-group {
    margin-bottom: 18px;
}

.form-group label, .contact-form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--xr-text-dim);
    margin-bottom: 8px;
}

.form-group input, .contact-form-group input,
.contact-form-group select, .contact-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--xr-bg);
    border: 1px solid var(--xr-line-2);
    border-radius: var(--r-sm);
    color: var(--xr-text);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: border-color .15s;
}

.contact-form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-sans);
}

.form-group input:focus, .contact-form-group input:focus,
.contact-form-group select:focus, .contact-form-group textarea:focus {
    outline: none;
    border-color: var(--xr-orange);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--xr-line-2);
    background: transparent;
    color: var(--xr-text);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: background .15s, color .15s, border-color .15s;
}

.btn-cancel:hover { border-color: var(--xr-text-dim); color: var(--xr-text); }

.btn-login, .contact-submit-btn {
    background: var(--xr-orange);
    color: #fff;
    border-color: var(--xr-orange);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-login:hover, .contact-submit-btn:hover {
    background: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

.contact-submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
}

.close-modal, .contact-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--xr-text-dim);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover, .contact-close:hover {
    color: var(--xr-orange);
}

.contact-form-row {
    display: flex;
    gap: 14px;
}

.contact-form-row > * { flex: 1; }

.success-message, .contact-success-message {
    text-align: center;
    padding: 24px 12px;
}

.success-message .icon, .contact-success-icon {
    font-size: 42px;
    margin-bottom: 14px;
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: var(--xr-orange);
    color: #fff;
    border-radius: var(--r-md);
}

.success-message h3, .contact-success-message h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-message p, .contact-success-message p {
    font-size: 14px;
    color: var(--xr-text-dim);
    line-height: 1.6;
}

/* disclaimer */

.disclaimer {
    background: rgba(139, 92, 246, 0.03);
    border-top: 1px solid var(--xr-line);
    padding: 20px 32px;
}

.disclaimer-content {
    max-width: 1320px;
    margin: 0 auto;
}

.disclaimer h4 {
    color: var(--xr-orange);
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.disclaimer p {
    font-size: 12.5px;
    color: var(--xr-text-dim);
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .xr-hero-grid { grid-template-columns: 1fr; }
    .xr-features { grid-template-columns: repeat(2, 1fr); }
    .xr-footer-top { grid-template-columns: 1fr 1fr; }
    .xr-values-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .xr-value { padding: 0 16px; border-right: none; border-bottom: 1px solid var(--xr-line); padding-bottom: 24px; }
    .xr-about-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .xr-timeline { grid-template-columns: 1fr; gap: 24px; }
    .xr-time-side { position: static; }
    .xr-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .xr-nav { grid-template-columns: auto auto; gap: 12px; padding: 0 18px; }
    .xr-nav-menu { display: none; }
    .xr-nav-actions .xr-btn-ghost { display: none; }
    .xr-section { padding: 56px 18px; }
    .xr-hero { padding: 40px 18px 56px; }
    .xr-features { grid-template-columns: 1fr; }
    .xr-footer-top { grid-template-columns: 1fr; gap: 32px; }
    .xr-facts { grid-template-columns: 1fr; }
    .xr-about-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
    .xr-section-head h2 { font-size: 28px; }
    .xr-legal h1 { font-size: 38px; }
    th, td { padding: 14px 12px; font-size: 12.5px; }
}
