/* ══════════════════════════════════════════
   XYON Network – Shared Stylesheet
   ══════════════════════════════════════════ */

:root {
    --bg: #07080a;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.055);
    --text-primary: #e8eaed;
    --text-secondary: #7a7f88;
    --text-tertiary: #4a4e56;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glow: #00f0ff;
    --glow-dim: rgba(0, 240, 255, 0.15);
    --glow-faint: rgba(0, 240, 255, 0.06);
    --accent-prismata: #00f0ff;
    --accent-404: #a78bfa;
    --accent-404-dim: rgba(167, 139, 250, 0.15);
    --accent-404-faint: rgba(167, 139, 250, 0.06);
    --accent-bsp: #22d3ee;
    --accent-bsp-dim: rgba(34, 211, 238, 0.15);
    --accent-bsp-faint: rgba(34, 211, 238, 0.06);
    --radius: 12px;
}

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

body {
    font-family: "IBM Plex Mono", monospace;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════
   BACKGROUNDS
   ══════════════════════════════════════════ */

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-bg canvas {
    width: 100%;
    height: 100%;
}

.grid-bg svg {
    width: 100%;
    height: 100%;
}

/* Animated grid page glow */
.grid-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 50%;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(0, 240, 255, 0.04) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Static grid pages - reduced opacity */
.grid-bg.static {
    opacity: 0.4;
}
.grid-bg.static::after {
    display: none;
}

.content {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 48px;
    background: rgba(7, 8, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    gap: 28px;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.logo a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--glow);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.nav-sep {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a.active-prismata {
    color: var(--accent-prismata);
}
.nav-links a.active-404 {
    color: var(--accent-404);
}
.nav-links a.active-bsp {
    color: var(--accent-bsp);
}

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

footer {
    border-top: 1px solid var(--border);
    padding: 36px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

footer.narrow {
    max-width: 760px;
}

footer p {
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

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

/* ══════════════════════════════════════════
   INDEX – HERO (compact)
   ══════════════════════════════════════════ */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 24px 48px;
}

.hero h1 {
    font-weight: 300;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.1s;
}

.hero h1 .x {
    color: var(--glow);
    text-shadow:
        0 0 60px rgba(0, 240, 255, 0.35),
        0 0 120px rgba(0, 240, 255, 0.1);
}

.hero-tagline {
    margin-top: 16px;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.25s;
}

.hero-tagline .sep {
    color: var(--text-tertiary);
    margin: 0 0.05em;
}
.hero-tagline .word-trade {
    color: var(--accent-prismata);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}
.hero-tagline .word-protect {
    color: var(--accent-404);
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.2);
}
.hero-tagline .word-earn {
    color: var(--accent-bsp);
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
}

.hero-sub {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 560px;
    font-weight: 300;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

/* ══════════════════════════════════════════
   INDEX – PRODUCTS SECTION
   ══════════════════════════════════════════ */

.products {
    padding: 32px 48px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.5s;
}

.products-header h2 {
    font-weight: 300;
    font-size: 28px;
    letter-spacing: -0.01em;
}

.products-header .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 2px;
    font-size: 14px;
    color: var(--glow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 12px;
}

.live-badge .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glow);
    box-shadow: 0 0 8px var(--glow);
    animation: pulse 2.5s ease-in-out infinite;
}

.products-header p {
    color: var(--text-tertiary);
    font-size: 15px;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 0.04em;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--card-glow, var(--glow-dim)),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--card-glow, var(--glow-faint)),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card:nth-child(1) {
    animation-delay: 0.6s;
    --card-glow: rgba(0, 240, 255, 0.15);
    --card-glow-strong: var(--accent-prismata);
}
.card:nth-child(2) {
    animation-delay: 0.75s;
    --card-glow: rgba(167, 139, 250, 0.15);
    --card-glow-strong: var(--accent-404);
}
.card:nth-child(3) {
    animation-delay: 0.9s;
    --card-glow: rgba(34, 211, 238, 0.15);
    --card-glow-strong: var(--accent-bsp);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.card:nth-child(1) .card-icon {
    color: var(--accent-prismata);
}
.card:nth-child(2) .card-icon {
    color: var(--accent-404);
}
.card:nth-child(3) .card-icon {
    color: var(--accent-bsp);
}

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

.card-label {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card:nth-child(1) .card-label {
    color: var(--accent-prismata);
}
.card:nth-child(2) .card-label {
    color: var(--accent-404);
}
.card:nth-child(3) .card-label {
    color: var(--accent-bsp);
}

.card h3 {
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.card-detail {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    line-height: 1.7;
}

.card-detail strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.card-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover .card-tag {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.card-arrow {
    position: absolute;
    top: 32px;
    right: 28px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.card:hover .card-arrow {
    color: var(--card-glow-strong);
}

.card-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.card:hover .card-arrow svg {
    transform: translate(2px, -2px);
}

/* ══════════════════════════════════════════
   PRODUCT PAGES – SHARED LAYOUT
   ══════════════════════════════════════════ */

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 100px;
}

/* ── Page Header ── */
.page-header {
    margin-bottom: 64px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.1s;
}

.page-label {
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-label.accent-404 {
    color: var(--accent-404);
}
.page-label.accent-bsp {
    color: var(--accent-bsp);
}

.page-header h1 {
    font-weight: 300;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.page-header h1 .highlight-404 {
    color: var(--accent-404);
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.25);
}

.page-header h1 .highlight-bsp {
    color: var(--accent-bsp);
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

.page-header .lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 640px;
}

.page-header .lead em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 400;
}

/* ── Stats Row ── */
.stats {
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 64px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 0.25s;
}

.stat {
    flex: 1;
    background: var(--surface);
    padding: 28px 20px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

/* ── Sections ── */
.section {
    margin-bottom: 64px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.section:nth-child(3) {
    animation-delay: 0.35s;
}
.section:nth-child(4) {
    animation-delay: 0.4s;
}
.section:nth-child(5) {
    animation-delay: 0.45s;
}
.section:nth-child(6) {
    animation-delay: 0.5s;
}
.section:nth-child(7) {
    animation-delay: 0.55s;
}
.section:nth-child(8) {
    animation-delay: 0.6s;
}

.section-label {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-label.accent-404 {
    color: var(--accent-404);
}
.section-label.accent-bsp {
    color: var(--accent-bsp);
}

.section h2 {
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.section p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 18px;
}

.section p:last-child {
    margin-bottom: 0;
}

.section strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Callout ── */
.callout {
    margin-top: 28px;
    padding: 24px 28px;
    border-left: 2px solid currentColor;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.callout.accent-404 {
    border-left-color: var(--accent-404);
    background: var(--accent-404-faint);
}
.callout.accent-bsp {
    border-left-color: var(--accent-bsp);
    background: var(--accent-bsp-faint);
}

.callout strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   $404 PAGE – SPECIFIC
   ══════════════════════════════════════════ */

/* Allocation Bars */
.allocation {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.alloc-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.alloc-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.alloc-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-404);
    opacity: 0.7;
}

.alloc-pct {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    width: 56px;
    text-align: right;
}

.alloc-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 300;
    width: 220px;
}

/* Trigger List */
.trigger-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trigger {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

.trigger-icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--accent-404);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.trigger strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Relaunch Grid */
.relaunch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.relaunch-item {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.relaunch-item h4 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.relaunch-item .val {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.relaunch-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════
   BSP PAGE – SPECIFIC
   ══════════════════════════════════════════ */

/* Quote Block */
.quote-block {
    margin: 28px 0;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.quote-block .quote {
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    color: var(--accent-bsp);
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.step {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-bsp);
}

.step-content h4 {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0;
}

/* Collection Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.detail-item {
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.detail-item h4 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.detail-item .val {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

/* Mint Schedule Table */
.mint-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
}

.mint-table th {
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.mint-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 15px;
}

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

.mint-table .window-label {
    color: var(--text-primary);
    font-weight: 400;
}

.mint-table .note {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 300;
}

.lock-row td {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 10px 18px;
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--glow);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px var(--glow);
    }
}

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

@media (max-width: 900px) {
    /* Nav */
    nav {
        padding: 16px 20px;
        gap: 16px;
    }
    .nav-sep {
        display: none;
    }
    .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 12px;
    }

    /* Index */
    .hero {
        padding: 90px 24px 36px;
    }
    .products {
        padding: 24px 24px 80px;
    }
    .cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Product pages */
    .page {
        padding: 100px 20px 80px;
    }
    .stats {
        flex-direction: column;
    }
    .alloc-label {
        width: 140px;
    }
    .relaunch-grid {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 32px 24px;
    }
}
