/* ============================================
   AYEDEX - Merchant-Powered Decentralized Exchange
   Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --black: #000000;
    --white: #ffffff;
    --cyan: #00ffff;
    --electric: #00f0ff;
    --blue: #0080ff;
    --purple: #8000ff;
    --magenta: #ff00ff;
    --green: #00ff80;
    --gold: #ffd700;
    --red: #ff003c;
    --dark-bg: #050505;
    --card-bg: rgba(0, 0, 0, 0.95);
    --card-bg-hover: rgba(0, 20, 25, 0.95);
    --border: rgba(0, 255, 255, 0.15);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.3);
    --font-main: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-brand: 'Ethnocentric', var(--font-main);
}

/* ---------- Custom Font ---------- */
@font-face {
    font-family: 'Ethnocentric';
    src: url('assets/fonts/ethnocentric.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: crosshair;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(0, 255, 255, 0.3);
    color: var(--white);
}

/* ---------- Overlays ---------- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.008) 2px,
        rgba(0, 255, 255, 0.008) 4px
    );
    pointer-events: none;
    z-index: 9998;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 9997;
}

/* ---------- Three.js Canvas ---------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 48px;
    mix-blend-mode: difference;
    transition: padding 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-brand);
    font-size: 20px;
    letter-spacing: 0.15em;
    color: var(--white);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.3s ease;
    cursor: pointer;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 32px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.mobile-menu-link {
    font-family: var(--font-mono);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--cyan);
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section Base ---------- */
.section {
    padding: 200px 64px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.dark-section {
    background: var(--dark-bg);
    max-width: 100%;
    padding-left: 64px;
    padding-right: 64px;
}

.dark-section > .section-header,
.dark-section > .feature-grid,
.dark-section > .tier-system,
.dark-section > .price-feed-comparison,
.dark-section > .comparison-section,
.dark-section > .trading-note,
.dark-section > .ecosystem-grid,
.dark-section > .roadmap-timeline {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Section Header ---------- */
.section-header {
    margin-bottom: 80px;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-eyebrow-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 0.05em;
}

.section-eyebrow-text {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--text-muted);
}

.section-title {
    font-size: clamp(36px, 8vw, 100px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.section-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-top: 24px;
    max-width: 600px;
}

/* ---------- Text Effects ---------- */
.gradient {
    background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stroke {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 64px 120px;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-eyebrow-line {
    width: 48px;
    height: 1px;
    background: var(--cyan);
    position: relative;
}

.hero-eyebrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-eyebrow-text {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--cyan);
}

.hero-title {
    font-size: clamp(48px, 12vw, 160px);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 32px;
}

.hero-title .line {
    display: block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* ---------- Hero Stats ---------- */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

/* ============================================
   X-RAY BUTTON
   ============================================ */
.hero-ctas {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.xray-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 20px 40px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.xray-layers {
    position: absolute;
    inset: 0;
}

.xray-layer {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.15);
}

.xray-layer:nth-child(1) { inset: 0; }
.xray-layer:nth-child(2) { inset: 2px; border-color: rgba(0, 255, 255, 0.12); }
.xray-layer:nth-child(3) { inset: 4px; border-color: rgba(0, 255, 255, 0.09); }
.xray-layer:nth-child(4) { inset: 6px; border-color: rgba(0, 255, 255, 0.06); }
.xray-layer:nth-child(5) { inset: 8px; border-color: rgba(0, 255, 255, 0.03); }

.xray-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    transition: width 0.3s ease, height 0.3s ease;
}

.xray-corner::before,
.xray-corner::after {
    content: '';
    position: absolute;
    background: var(--cyan);
}

.xray-corner-tl { top: 0; left: 0; }
.xray-corner-tl::before { top: 0; left: 0; width: 100%; height: 1px; }
.xray-corner-tl::after { top: 0; left: 0; width: 1px; height: 100%; }

.xray-corner-tr { top: 0; right: 0; }
.xray-corner-tr::before { top: 0; right: 0; width: 100%; height: 1px; }
.xray-corner-tr::after { top: 0; right: 0; width: 1px; height: 100%; }

.xray-corner-bl { bottom: 0; left: 0; }
.xray-corner-bl::before { bottom: 0; left: 0; width: 100%; height: 1px; }
.xray-corner-bl::after { bottom: 0; left: 0; width: 1px; height: 100%; }

.xray-corner-br { bottom: 0; right: 0; }
.xray-corner-br::before { bottom: 0; right: 0; width: 100%; height: 1px; }
.xray-corner-br::after { bottom: 0; right: 0; width: 1px; height: 100%; }

.xray-button:hover .xray-corner {
    width: 16px;
    height: 16px;
}

.xray-current {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.xray-current::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: currentFlow 2s linear infinite;
}

.xray-current::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: currentFlow 2s linear infinite 1s;
}

.xray-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.xray-text svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.xray-button:hover .xray-text svg {
    transform: translateX(4px);
}

.xray-button:hover {
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05), transparent);
}

.xray-button.secondary .xray-layer {
    border-color: rgba(128, 0, 255, 0.15);
}

.xray-button.secondary .xray-corner::before,
.xray-button.secondary .xray-corner::after {
    background: var(--purple);
}

.xray-button.secondary .xray-current::before,
.xray-button.secondary .xray-current::after {
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.xray-button.secondary:hover {
    background: radial-gradient(ellipse at center, rgba(128, 0, 255, 0.05), transparent);
}

/* ============================================
   HOW IT WORKS - FLOW DIAGRAM
   ============================================ */
.flow-diagram {
    display: flex;
    gap: 0;
    align-items: flex-start;
    margin-bottom: 60px;
}

.flow-step {
    flex: 1;
    padding: 48px 40px;
    position: relative;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.flow-step:hover {
    background: var(--card-bg-hover);
    border-color: rgba(0, 255, 255, 0.3);
}

.flow-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.flow-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--cyan);
}

.flow-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    margin-bottom: 12px;
}

.flow-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.flow-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.flow-connector {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60px;
    height: 20px;
}

.flow-connector svg {
    width: 60px;
    height: 20px;
}

.flow-callout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 32px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.03);
}

.callout-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.flow-callout p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.flow-callout strong {
    color: var(--gold);
}

/* ============================================
   FEATURE CARDS (Merchants)
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 255, 255, 0.1);
    margin-bottom: 80px;
}

.feature-card {
    padding: 48px 40px;
    background: var(--card-bg);
    position: relative;
    transition: background 0.4s ease;
}

.feature-card:hover {
    background: var(--card-bg-hover);
}

/* Corner Decorators */
.corner {
    position: absolute;
    pointer-events: none;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 255, 0.2);
    transition: background 0.4s ease;
}

.corner-tl { top: 16px; left: 16px; }
.corner-tl::before { top: 0; left: 0; width: 20px; height: 1px; }
.corner-tl::after { top: 0; left: 0; width: 1px; height: 20px; }

.corner-br { bottom: 16px; right: 16px; }
.corner-br::before { bottom: 0; right: 0; width: 20px; height: 1px; }
.corner-br::after { bottom: 0; right: 0; width: 1px; height: 20px; }

.feature-card:hover .corner::before,
.feature-card:hover .corner::after {
    background: var(--cyan);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   TIER SYSTEM
   ============================================ */
.tier-system {
    text-align: center;
}

.tier-header {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tier-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tier-card {
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    text-align: left;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
}

.tier-basic { border-color: rgba(255, 255, 255, 0.15); }
.tier-basic:hover { border-color: rgba(255, 255, 255, 0.3); }

.tier-verified { border-color: rgba(0, 255, 255, 0.3); }
.tier-verified:hover { border-color: var(--cyan); }

.tier-established { border-color: rgba(255, 215, 0, 0.3); }
.tier-established:hover { border-color: var(--gold); }

.tier-card.featured {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.05);
}

.tier-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.tier-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    padding: 6px 16px;
    display: inline-block;
    margin-bottom: 24px;
}

.tier-basic .tier-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.tier-verified .tier-badge {
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: var(--cyan);
}

.tier-established .tier-badge {
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--gold);
}

.tier-weight {
    margin-bottom: 24px;
}

.weight-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    overflow: hidden;
}

.weight-fill {
    display: block;
    height: 100%;
    transition: width 1s ease;
}

.tier-basic .weight-fill { background: rgba(255, 255, 255, 0.3); }
.tier-verified .weight-fill { background: var(--cyan); }
.tier-established .weight-fill { background: var(--gold); }

.weight-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.tier-features {
    list-style: none;
}

.tier-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 16px;
}

.tier-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 11px;
}

.tier-features li:last-child {
    border-bottom: none;
}

/* ============================================
   FOR CUSTOMERS
   ============================================ */
.two-col-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.col-text {
    flex: 1;
}

.col-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.customer-feature {
    margin-bottom: 32px;
}

.customer-feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.customer-feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-top: 16px;
    transition: gap 0.3s ease;
}

.text-link:hover {
    gap: 12px;
}

/* ---------- Wallet Mockup ---------- */
.wallet-mockup {
    width: 300px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.9);
    padding: 16px;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.05);
}

.mockup-notch {
    width: 100px;
    height: 24px;
    background: var(--black);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
    border: 1px solid var(--border);
    border-top: none;
}

.mockup-screen {
    padding: 16px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mockup-logo {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
}

.mockup-network {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mockup-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.mockup-balance {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.balance-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.balance-amount {
    display: block;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.balance-ref {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
}

.mockup-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mockup-btn {
    flex: 1;
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mockup-btn.primary {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    color: var(--cyan);
}

.mockup-recent {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mockup-tx {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-merchant {
    font-size: 12px;
    color: var(--text-muted);
}

.tx-amount {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red);
}

.tx-amount.incoming {
    color: var(--green);
}

/* ============================================
   PRICE DISCOVERY
   ============================================ */
.price-feed-comparison {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: 80px;
}

.price-feed-item {
    flex: 1;
    padding: 48px 40px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-align: center;
}

.price-feed-item.spot {
    border-color: rgba(128, 0, 255, 0.3);
}

.price-feed-item.reference {
    border-color: rgba(0, 255, 255, 0.3);
}

.feed-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    padding: 4px 16px;
    display: inline-block;
    margin-bottom: 24px;
}

.spot .feed-badge {
    border: 1px solid rgba(128, 0, 255, 0.4);
    color: var(--purple);
}

.reference .feed-badge {
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: var(--cyan);
}

.feed-price {
    font-family: var(--font-mono);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 16px;
}

.spot .feed-price { color: #a78bfa; }
.reference .feed-price { color: var(--cyan); }

.feed-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.feed-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-weight, .feed-update {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.price-feed-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    flex-shrink: 0;
}

.divider-vs {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--black);
}

/* ---------- Comparison Table ---------- */
.comparison-section {
    margin-bottom: 60px;
}

.comparison-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}

.comparison-table {
    border: 1px solid var(--border);
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.comparison-row.header {
    background: rgba(0, 255, 255, 0.05);
}

.comparison-col {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-col:last-child {
    border-right: none;
}

.comparison-row.header .comparison-col {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    padding: 12px 24px;
}

.comparison-col.highlight {
    color: var(--cyan);
    background: rgba(0, 255, 255, 0.02);
}

.comparison-row.header .comparison-col.highlight {
    color: var(--cyan);
}

/* ---------- Trading Note ---------- */
.trading-note {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 32px;
    border: 1px solid rgba(128, 0, 255, 0.2);
    background: rgba(128, 0, 255, 0.03);
}

.note-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.note-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #a78bfa;
}

.note-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.note-content strong {
    color: var(--white);
}

/* ============================================
   ANTI-MANIPULATION
   ============================================ */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0, 255, 255, 0.1);
    margin-bottom: 60px;
}

.security-card {
    padding: 48px 40px;
    background: var(--card-bg);
    position: relative;
    transition: background 0.4s ease;
}

.security-card:hover {
    background: var(--card-bg-hover);
}

.security-number {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(0, 255, 255, 0.2);
    margin-bottom: 16px;
    line-height: 1;
}

.security-card:hover .security-number {
    -webkit-text-stroke-color: rgba(0, 255, 255, 0.5);
}

.security-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Dashboard Preview ---------- */
.dashboard-preview {
    border: 1px solid var(--border);
    background: var(--card-bg);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.dashboard-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border: 1px solid rgba(0, 255, 128, 0.3);
    color: var(--green);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--green);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.dash-stat {
    padding: 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.dash-stat:last-child {
    border-right: none;
}

.dash-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
}

.dash-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

/* ============================================
   ECOSYSTEM
   ============================================ */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 255, 255, 0.1);
}

.eco-card {
    padding: 48px 32px;
    background: var(--card-bg);
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
}

.eco-card:hover {
    background: var(--card-bg-hover);
}

.eco-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.eco-icon svg {
    width: 100%;
    height: 100%;
}

.eco-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.eco-role {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 16px;
}

.eco-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

.eco-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--cyan);
    margin-top: 20px;
    transition: letter-spacing 0.3s ease;
}

.eco-link:hover {
    letter-spacing: 0.1em;
}

/* ============================================
   LIVE PRICE FEED
   ============================================ */
.price-feed-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}

.main-price-card {
    padding: 48px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.spot-card::before {
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.ref-card::before {
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.price-type {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.price-big {
    font-family: var(--font-mono);
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 700;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.spot-card .price-big { color: #a78bfa; }
.ref-card .price-big { color: var(--cyan); }

.price-big.tick {
    transform: scale(1.02);
}

.price-change {
    font-family: var(--font-mono);
    font-size: 14px;
    margin-bottom: 16px;
}

.price-change.positive { color: var(--green); }
.price-change.negative { color: var(--red); }

.price-source {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/* ---------- Category Breakdown ---------- */
.category-breakdown {
    margin-bottom: 40px;
}

.category-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.category-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(0, 255, 255, 0.1);
}

.category-item {
    padding: 32px 24px;
    background: var(--card-bg);
    text-align: center;
    transition: background 0.4s ease;
}

.category-item:hover {
    background: var(--card-bg-hover);
}

.category-icon-wrap {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
}

.category-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.category-icon-wrap.food svg { stroke: #00ff80; }
.category-icon-wrap.retail svg { stroke: #00ffff; }
.category-icon-wrap.services svg { stroke: #8000ff; }
.category-icon-wrap.electronics svg { stroke: #ff00ff; }
.category-icon-wrap.hospitality svg { stroke: #ffd700; }

.category-icon-wrap.food { border-color: rgba(0, 255, 128, 0.3); }
.category-icon-wrap.retail { border-color: rgba(0, 255, 255, 0.3); }
.category-icon-wrap.services { border-color: rgba(128, 0, 255, 0.3); }
.category-icon-wrap.electronics { border-color: rgba(255, 0, 255, 0.3); }
.category-icon-wrap.hospitality { border-color: rgba(255, 215, 0, 0.3); }

.category-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.category-price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
}

.category-txns {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.feed-disclaimer {
    text-align: center;
}

.feed-disclaimer p {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   ROADMAP
   ============================================ */
.roadmap-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--purple), var(--gold));
    opacity: 0.3;
}

.roadmap-phase {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    position: relative;
}

.phase-marker {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.phase-1 .phase-dot {
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}

.phase-2 .phase-dot {
    background: var(--purple);
    box-shadow: 0 0 20px var(--purple);
}

.phase-3 .phase-dot {
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold);
}

.phase-content {
    flex: 1;
    padding: 32px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: border-color 0.4s ease;
}

.phase-content:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

.phase-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--cyan);
    margin-bottom: 8px;
}

.phase-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.phase-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 20px;
}

.phase-content ul {
    list-style: none;
}

.phase-content li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.phase-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 11px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 64px 40px;
    background: var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-logo {
    font-family: var(--font-brand);
    font-size: 24px;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-patent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    padding: 6px 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.footer-assignee {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes currentFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(200%); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* ---------- 1200px ---------- */
@media (max-width: 1200px) {
    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
    .section {
        padding: 120px 32px;
    }

    .dark-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hero {
        padding: 140px 32px 100px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tier-card.featured {
        transform: none;
    }

    .tier-card.featured:hover {
        transform: translateY(-4px);
    }

    .two-col-layout {
        flex-direction: column;
        gap: 48px;
    }

    .price-feed-main {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-stat:nth-child(2) {
        border-right: none;
    }

    .dash-stat:nth-child(1),
    .dash-stat:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .section {
        padding: 80px 24px;
    }

    .dark-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 80px);
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-pill {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .xray-button {
        justify-content: center;
        width: 100%;
    }

    .flow-diagram {
        flex-direction: column;
    }

    .flow-connector {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .price-feed-comparison {
        flex-direction: column;
    }

    .price-feed-divider {
        width: 100%;
        height: 40px;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-col {
        border-right: none;
    }

    .comparison-row.header .comparison-col:first-child {
        display: none;
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 60px 24px 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .roadmap-phase {
        gap: 20px;
    }

    .phase-marker {
        width: 32px;
    }

    .timeline-line {
        left: 16px;
    }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
    .section {
        padding: 60px 16px;
    }

    .dark-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .flow-step {
        padding: 32px 24px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .xray-button {
        padding: 16px 24px;
        font-size: 10px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dash-stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .dash-stat:last-child {
        border-bottom: none;
    }

    .wallet-mockup {
        width: 260px;
    }
}
