@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-deep: #020202; /* Darker background to reduce "wash out" */
    --monitor-bezel: #0a0a0c;
    --screen-base: #1c1c1f;
    --accent: #7b2cbf;
    --accent-glow: #9d4edd;
    --neon-line: rgba(157, 78, 221, 0.9);
    --nav-glass: linear-gradient(180deg, rgba(50,50,60,0.9) 0%, rgba(20,20,25,0.95) 100%);
}

body {
    background: var(--bg-deep);
    /* Subtler backlight so the screen outline pops */
    background-image: radial-gradient(circle at 50% -20%, #1a0b2e 0%, var(--bg-deep) 70%);
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* 1. MONITOR FRAME */
#monitor-frame {
    background: var(--monitor-bezel); 
    padding: 18px; 
    border-radius: 44px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    width: 94vw;
    max-width: 1280px;
    /* Sharp Neon Outline + Hot Spots */
    box-shadow: 
        0 0 0 3px var(--neon-line), 
        0 0 40px rgba(157, 78, 221, 0.2), 
        -100px 50px 150px -20px rgba(123, 44, 191, 0.4), /* Top Left Hotspot */
        100px 100px 150px -20px rgba(157, 78, 221, 0.4), /* Bottom Right Hotspot */
        0 60px 180px rgba(0,0,0,1);
}

/* 2. NAV PILL */
.nav-pill {
    background: var(--nav-glass);
    backdrop-filter: blur(40px);
    border: 2px solid var(--neon-line);
    border-radius: 100px;
    padding: 8px 45px;
    width: fit-content; 
    min-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: -32px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 2px 2px rgba(255,255,255,0.15);
}

.logo-block { display: flex; align-items: center; }
.logo-block span { font-weight: 900; letter-spacing: 2px; font-size: 0.9rem; margin-left: 14px; }

.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: 0.3s;
    white-space: nowrap;
}
.nav-links a.active, .nav-links a:hover { color: #fff; text-shadow: 0 0 15px var(--accent-glow); }

#viewport {
    background: var(--screen-base);
    background-image: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    border-radius: 28px;
    min-height: 85vh;
    padding: 80px 60px 60px; 
    position: relative;
    overflow-y: auto;
}

/* 3. HERO LAYOUT */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
    margin-bottom: 50px;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-text {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.mockup-container { 
    display: flex; 
    justify-content: center;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}
.mockup-container img {
    max-width: 85%;
    height: auto;
    border-radius: 16px;
    box-shadow: -30px 30px 70px rgba(0,0,0,0.8);
    border: 1px solid var(--neon-line);
}

h1 { font-size: 3.8rem; font-weight: 900; letter-spacing: -3px; line-height: 0.95; margin: 0; }
.lede { font-size: 1.15rem; color: rgba(255,255,255,0.55); max-width: 520px; margin-top: 25px; line-height: 1.6; }

/* 4. LAYOUTS: BOXES vs ROWS */

/* Grid for Home/Roadmap Boxes */
.grid-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

/* Vertical Stack for FAQ/Terms/Updates */
.doc-rows, #feed-container, #dynamic-content {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Fix: Adds space between update cards */
    margin-top: 60px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    border: 1px solid var(--neon-line);
    border-radius: 28px;
    padding: 32px;
    transition: 0.3s;
}

.kicker { color: var(--accent-glow); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2.5px; display: block; margin-bottom: 15px; }

/* TABLES */
.table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table th { text-align: left; border-bottom: 2px solid var(--accent); padding: 12px; font-size: 0.85rem; }
.table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); font-size: 0.9rem; }/* Footer Styles */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid var(--neon-line);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(123,44,191,0.03) 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-line);
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 100%;
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-glow);
    box-shadow: 0 0 6px var(--accent-glow);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-contact {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-contact a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--purple-light);
    text-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 768px) {
    footer {
        padding: 25px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Enhanced Hero Styles */
.hero-shield {
    color: var(--accent-glow);
    text-shadow: 0 0 40px var(--accent), 0 0 80px var(--accent), 0 0 120px rgba(157, 78, 221, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 40px var(--accent), 0 0 80px var(--accent), 0 0 120px rgba(157, 78, 221, 0.4);
    }
    50% { 
        text-shadow: 0 0 50px var(--accent-glow), 0 0 100px var(--accent-glow), 0 0 150px rgba(157, 78, 221, 0.6);
    }
}

.lede {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 520px;
    margin-top: 25px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
}

.cta-button {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--neon-line);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.4), 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.6), 0 15px 40px rgba(0,0,0,0.6);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mockup-container img {
    max-width: 85%;
    height: auto;
    border-radius: 16px;
    box-shadow: -30px 30px 70px rgba(0,0,0,0.8);
    border: 1px solid var(--neon-line);
}

/* ============================================
   ADVANCED ANIMATIONS & INTERACTIVITY
   ============================================ */

/* Floating Particles Background */
#viewport::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(157, 78, 221, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(157, 78, 221, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(157, 78, 221, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(157, 78, 221, 0.2), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(157, 78, 221, 0.3), transparent),
        radial-gradient(1px 1px at 33% 90%, rgba(157, 78, 221, 0.2), transparent);
    background-size: 200% 200%;
    animation: floatingParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatingParticles {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%, 60% 40%;
    }
    25% { 
        background-position: 20% 30%, 80% 70%, 60% 40%, 90% 30%, 30% 90%, 70% 50%;
    }
    50% { 
        background-position: 40% 60%, 60% 40%, 70% 30%, 70% 60%, 40% 70%, 50% 60%;
    }
    75% { 
        background-position: 60% 40%, 40% 60%, 80% 50%, 50% 80%, 50% 50%, 40% 70%;
    }
}

/* Scan Line Effect */
#monitor-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(157, 78, 221, 0.6), 
        transparent
    );
    animation: scanLine 8s linear infinite;
    pointer-events: none;
    z-index: 10000;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Enhanced Glass Card Interactions */
.glass-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(135deg, 
        rgba(157, 78, 221, 0.1) 0%, 
        rgba(123, 44, 191, 0.05) 100%
    );
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 0 1px var(--neon-line),
        0 0 40px rgba(157, 78, 221, 0.3),
        0 20px 50px rgba(0,0,0,0.5);
}

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

/* Nav Links Enhanced */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-glow);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Ripple Effect on Click */
.cta-button, .glass-card, .nav-links a {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll Fade In Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple items */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }

/* Monitor Frame Ambient Glow Enhancement */
@keyframes ambientGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 3px var(--neon-line), 
            0 0 40px rgba(157, 78, 221, 0.2), 
            -100px 50px 150px -20px rgba(123, 44, 191, 0.3), 
            100px 100px 150px -20px rgba(157, 78, 221, 0.3), 
            0 60px 180px rgba(0,0,0,1);
    }
    50% {
        box-shadow: 
            0 0 0 3px var(--neon-line), 
            0 0 60px rgba(157, 78, 221, 0.4), 
            -100px 50px 150px -20px rgba(123, 44, 191, 0.5), 
            100px 100px 150px -20px rgba(157, 78, 221, 0.5), 
            0 60px 180px rgba(0,0,0,1);
    }
}

#monitor-frame {
    animation: ambientGlow 6s ease-in-out infinite;
}

/* Gradient Shift on Viewport */
@keyframes gradientShift {
    0%, 100% {
        background-image: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    }
    50% {
        background-image: radial-gradient(circle at 50% 10%, rgba(157, 78, 221, 0.05) 0%, transparent 60%);
    }
}

#viewport {
    animation: gradientShift 10s ease-in-out infinite;
}

/* Hover Effect for Update Cards */
#feed-container .glass-card {
    cursor: pointer;
}

#feed-container .glass-card:hover h3 {
    color: var(--accent-glow);
    text-shadow: 0 0 20px var(--accent);
    transition: all 0.3s ease;
}

/* Hero Text Slide In on Load */
.hero-text {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mockup-container {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth Page Transitions */
body {
    animation: pageLoad 0.5s ease;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Interactive Grid Boxes */
.grid-boxes {
    position: relative;
    z-index: 1;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll Padding for Anchor Links */
html {
    scroll-padding-top: 120px;
}

/* Kickstarter CTA Section */
.kickstarter-cta {
    margin-top: 60px;
}

.kickstarter-cta .glass-card {
    position: relative;
    overflow: hidden;
}

.kickstarter-cta .glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent), var(--accent-glow));
    border-radius: 28px;
    z-index: -1;
    opacity: 0.3;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}