:root {
    --void: #050510;
    --abyss: #0a0a18;
    --nebula: #121228;
    --quantum: #00ccff;
    --quantum-glow: rgba(0, 204, 255, 0.15);
    --starlight: #e0f0ff;
    --cosmic-dust: #8a9bb0;
    --pulsar: #ff3366;
    --glass-edge: rgba(255, 255, 255, 0.08);
    --event-horizon: rgba(0, 204, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Mono', 'Cascadia Code', 'Monaco', monospace;
    background: var(--void);
    color: var(--starlight);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 15% 25%, rgba(0, 204, 255, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 85% 75%, rgba(255, 51, 102, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

/* ===== GLASS EFFECT ===== */
.glass {
    background: rgba(18, 18, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* ===== HEADER ===== */
.stellar-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-edge);
    padding: 18px 0;
}

.header-core {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.portal-symbol {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--quantum), #ff3366);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: var(--void);
}

.portal-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--starlight), var(--quantum));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navigation-core {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--cosmic-dust);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--starlight);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--quantum);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.quantum-hero {
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--quantum-glow) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.2;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--starlight), var(--quantum));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--cosmic-dust);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.verification-badge {
    display: inline-block;
    padding: 12px 32px;
    background: var(--event-horizon);
    border: 1px solid var(--quantum);
    border-radius: 8px;
    margin-top: 30px;
}

.badge-text {
    color: var(--quantum);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* ===== ACCESS POINTS ===== */
.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.access-card {
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.access-card:hover {
    transform: translateY(-10px);
    border-color: var(--quantum);
    box-shadow: 0 20px 40px rgba(0, 204, 255, 0.2);
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--quantum), transparent);
}

.access-type {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--void);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--quantum);
    border: 1px solid var(--quantum);
}

.access-name {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--starlight);
}

.access-desc {
    color: var(--cosmic-dust);
    margin-bottom: 30px;
    line-height: 1.7;
}

.link-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-edge);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    color: var(--quantum);
    word-break: break-all;
    position: relative;
}

.copy-tag {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--void);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--cosmic-dust);
    border: 1px solid var(--glass-edge);
}

.access-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid var(--quantum);
    color: var(--quantum);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.access-btn:hover {
    background: rgba(0, 204, 255, 0.2);
    gap: 15px;
}

/* ===== WARNING SECTION ===== */
.security-alert {
    padding: 40px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 12px;
    margin: 60px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.alert-icon {
    font-size: 32px;
    color: var(--pulsar);
    flex-shrink: 0;
}

.alert-content h3 {
    color: var(--pulsar);
    margin-bottom: 12px;
    font-size: 20px;
}

/* ===== HISTORY SECTION ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--quantum);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    position: relative;
}

.timeline-year {
    position: absolute;
    top: -15px;
    left: -70px;
    background: var(--quantum);
    color: var(--void);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-year {
    left: auto;
    right: -70px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(0, 204, 255, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 204, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--starlight);
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.stat-card {
    padding: 40px 30px;
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--quantum);
    font-family: 'SF Mono', monospace;
}

.stat-label {
    font-size: 14px;
    color: var(--cosmic-dust);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== NETWORK GRAPH ===== */
.network-graph {
    padding: 40px;
    margin-top: 60px;
}

.graph-container {
    height: 200px;
    position: relative;
    border-left: 1px solid var(--glass-edge);
    border-bottom: 1px solid var(--glass-edge);
    margin-top: 40px;
    padding-left: 60px;
    padding-bottom: 40px;
}

.graph-bar {
    position: absolute;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to top, var(--quantum), #00ffaa);
    border-radius: 6px 6px 0 0;
    opacity: 0.8;
    transition: height 0.3s ease;
}

/* ===== PGP SECTION ===== */
.pgp-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.pgp-key-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-edge);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    overflow-x: auto;
}

.pgp-key {
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #00ffaa;
    white-space: pre-wrap;
    word-break: break-all;
}

.verification-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    padding: 16px 36px;
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid var(--quantum);
    color: var(--quantum);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(0, 204, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-edge);
}

.faq-question {
    padding: 28px 0;
    font-size: 18px;
    color: var(--starlight);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-question::after {
    content: '▸';
    color: var(--quantum);
    transition: transform 0.3s ease;
}

.faq-item:target .faq-question::after {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--cosmic-dust);
    transition: max-height 0.3s ease-out;
}

.faq-item:target .faq-answer {
    max-height: 500px;
    padding-bottom: 28px;
}

/* ===== FOOTER ===== */
.quantum-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-edge);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.legal-notice {
    padding: 30px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.footer-bottom {
    text-align: center;
    color: var(--cosmic-dust);
    padding-top: 40px;
    border-top: 1px solid var(--glass-edge);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .access-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-year {
        left: -60px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .navigation-core {
        display: none;
    }

    .access-grid,
    .features-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .access-card,
    .feature-card,
    .stat-card {
        padding: 30px 20px;
    }

    .pgp-container {
        padding: 30px 20px;
    }

    .pgp-key-block {
        padding: 20px;
    }
}