/* ringworld.quest - Cosmic Ring Design */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Space Grotesk (display), Inter (body) */

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --cursor-x: 50%;
    --cursor-y: 50%;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #1a1a2e;
    color: #f5f0e8;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cursor Glow */
#cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.15) 0%, rgba(232, 184, 75, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out, top 0.1s ease-out;
    left: var(--cursor-x);
    top: var(--cursor-y);
    mix-blend-mode: screen;
}

/* Stars Canvas */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Fluid Typography */
.fluid-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 8rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow:
        0 0 20px rgba(74, 144, 217, 0.5),
        0 0 40px rgba(74, 144, 217, 0.3),
        0 0 80px rgba(74, 144, 217, 0.1);
}

.hero-title .accent {
    color: #e8b84b;
    text-shadow:
        0 0 20px rgba(232, 184, 75, 0.5),
        0 0 40px rgba(232, 184, 75, 0.3),
        0 0 80px rgba(232, 184, 75, 0.1);
}

.section-title {
    font-size: clamp(2rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 15px rgba(74, 144, 217, 0.4),
        0 0 30px rgba(74, 144, 217, 0.2);
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 4rem 2rem;
}

/* Hero Section */
#hero {
    flex-direction: column;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-layer--ring {
    z-index: 1;
}

.parallax-layer--content {
    position: relative;
    z-index: 2;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

#ring-structure {
    width: min(80vw, 600px);
    opacity: 0.7;
    animation: ring-rotate 60s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ring-svg {
    width: 100%;
    height: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #6c757d;
    max-width: 600px;
    text-align: center;
}

/* CTA Button with Neon Glow */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f0e8;
    text-decoration: none;
    border: 2px solid #4a90d9;
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    background: rgba(74, 144, 217, 0.15);
    box-shadow:
        0 0 15px rgba(74, 144, 217, 0.4),
        0 0 30px rgba(74, 144, 217, 0.2),
        inset 0 0 15px rgba(74, 144, 217, 0.1);
    border-color: #e8b84b;
    color: #e8b84b;
}

/* Neon Glow Utility */
.neon-glow {
    box-shadow:
        0 0 10px rgba(74, 144, 217, 0.3),
        0 0 20px rgba(74, 144, 217, 0.15);
}

/* Section Content */
.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #6c757d;
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90d9, #e8b84b, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(74, 144, 217, 0.5);
    transform: translateY(-5px);
    box-shadow:
        0 0 20px rgba(74, 144, 217, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

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

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e8b84b;
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
}

/* Neon Border */
.neon-border {
    border: 1px solid rgba(74, 144, 217, 0.2);
}

.neon-border:hover {
    border-color: rgba(232, 184, 75, 0.4);
}

/* Lore Section */
#lore {
    background: linear-gradient(180deg, transparent 0%, rgba(74, 144, 217, 0.03) 50%, transparent 100%);
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lore-panel {
    padding: 2rem;
    border-left: 2px solid rgba(74, 144, 217, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.lore-panel:hover {
    border-left-color: #e8b84b;
    background: rgba(74, 144, 217, 0.05);
}

.lore-panel:hover .lore-number {
    color: #e8b84b;
    text-shadow: 0 0 20px rgba(232, 184, 75, 0.5);
}

.lore-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(74, 144, 217, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.lore-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.75rem;
}

.lore-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
}

/* Journey Section */
#journey {
    background: linear-gradient(180deg, transparent 0%, rgba(232, 184, 75, 0.02) 50%, transparent 100%);
}

.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding-left: 60px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4a90d9, #e8b84b, #4a90d9);
    opacity: 0.3;
}

.timeline-node {
    position: relative;
    padding: 2rem 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease;
}

.timeline-node.visible {
    opacity: 1;
    transform: translateX(0);
}

.node-dot {
    position: absolute;
    left: -48px;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 2px solid #4a90d9;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(74, 144, 217, 0.3);
}

.timeline-node:hover .node-dot {
    background: #e8b84b;
    border-color: #e8b84b;
    box-shadow:
        0 0 15px rgba(232, 184, 75, 0.5),
        0 0 30px rgba(232, 184, 75, 0.3);
}

.node-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a90d9;
    margin-bottom: 0.5rem;
}

.node-content p {
    font-size: 1rem;
    color: #6c757d;
}

/* Footer */
#footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.footer-ring {
    margin-bottom: 1.5rem;
}

.footer-ring-svg {
    width: 200px;
    height: auto;
}

.footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(108, 117, 125, 0.5);
}

/* Scroll Reveal Animation */
.parallax-section .section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.parallax-section.in-view .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .parallax-section {
        padding: 3rem 1.5rem;
    }

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

    .journey-timeline {
        padding-left: 50px;
    }

    .timeline-line {
        left: 15px;
    }

    .node-dot {
        left: -43px;
    }

    #ring-structure {
        width: 90vw;
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}