@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Orbitron:wght@400;700;900&family=Fira+Code:wght@400;600&display=swap');

:root {
    --bg-base: #030305;
    --bg-surface: rgba(10, 15, 30, 0.6);
    --neon-cyan: #00f3ff;
    --neon-blue: #0055ff;
    --neon-purple: #b535f6;
    --neon-magenta: #ff00ea;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --glow-magenta: 0 0 10px rgba(255, 0, 234, 0.5), 0 0 20px rgba(255, 0, 234, 0.3);
    --glow-blue: 0 0 15px rgba(0, 85, 255, 0.6);
    
    --drop-glow-cyan: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5)) drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
    --drop-glow-magenta: drop-shadow(0 0 10px rgba(255, 0, 234, 0.5)) drop-shadow(0 0 20px rgba(255, 0, 234, 0.3));
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    padding-top: 76px; /* Offset for fixed navbar */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 85, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(181, 53, 246, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Scanlines overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-cyan { color: var(--neon-cyan) !important; }
.text-magenta { color: var(--neon-magenta) !important; }
.text-purple { color: var(--neon-purple) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-mono { font-family: var(--font-mono); }

p {
    color: var(--text-muted);
}

/* Buttons */
.btn-cyber {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    position: relative;
    background: transparent;
    color: var(--neon-cyan);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: var(--neon-cyan);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: -2;
}

.btn-cyber::after {
    content: '';
    position: absolute;
    top: 1px; left: 1px; bottom: 1px; right: 1px;
    background: linear-gradient(90deg, transparent 50%, var(--bg-base) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    z-index: -1;
    transition: background-position 0.3s ease;
}

.btn-cyber:hover {
    color: #000;
    filter: var(--drop-glow-cyan);
}

.btn-cyber:hover::after {
    background-position: 0 0;
}

.btn-cyber-secondary {
    color: var(--neon-magenta);
}
.btn-cyber-secondary::before {
    background: var(--neon-magenta);
}
.btn-cyber-secondary:hover {
    color: #fff;
    filter: var(--drop-glow-magenta);
}

.btn-cyber-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.btn-cyber-disabled {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    position: relative;
    background: transparent;
    color: var(--text-muted);
    border: none;
    text-decoration: none;
    cursor: not-allowed;
    z-index: 1;
}
.btn-cyber-disabled::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(255, 255, 255, 0.2);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: -2;
}
.btn-cyber-disabled::after {
    content: '';
    position: absolute;
    top: 1px; left: 1px; bottom: 1px; right: 1px;
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.05) 5px, rgba(255, 255, 255, 0.05) 10px), var(--bg-base);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    z-index: -1;
}

/* Navbar */
.cyber-navbar {
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.cyber-navbar .navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
}
.cyber-navbar .navbar-brand .text-white {
    color: #fff !important;
}
.cyber-navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
}
.cyber-navbar .nav-link:hover, .cyber-navbar .nav-link.active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}
.cyber-navbar .navbar-toggler {
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
}
.cyber-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 243, 255, 0.25);
}

/* Glassmorphism Cards */
.cyber-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.cyber-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: var(--glow-blue);
}

/* Section 1 - Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 10vh;
    overflow: hidden;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: var(--glow-cyan);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Sections General */
.section-padding {
    padding: 6rem 0;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    text-shadow: var(--glow-cyan);
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 4rem auto;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

/* Section 3 - Live Planet Activity */
.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 0 0 20px rgba(0, 85, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.terminal-header {
    border-bottom: 1px solid rgba(0, 85, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    color: var(--neon-cyan);
    font-size: 0.9rem;
}
.ticker-container {
    height: 300px;
    overflow-y: hidden;
    position: relative;
}
.ticker-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}
.ticker-item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.ticker-item .time {
    color: var(--neon-purple);
    font-size: 0.85rem;
    white-space: nowrap;
}
.ticker-item .message {
    color: var(--text-main);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section 4 - Ecosystem Stats */
.stat-widget {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0, 85, 255, 0.1) 0%, transparent 100%);
    border-top: 2px solid var(--neon-cyan);
    border-radius: 8px;
}
.stat-value {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section 5 - Tiers */
.tier-card {
    border-top: 3px solid;
}
.tier-free { border-top-color: var(--text-muted); }
.tier-pro { border-top-color: var(--neon-cyan); }
.tier-legendary { 
    border-top-color: var(--neon-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 234, 0.15);
}
.tier-price {
    font-size: 2.5rem;
    font-family: var(--font-mono);
    margin: 1.5rem 0;
}

/* Locked Card State */
.cyber-card.locked {
    opacity: 0.85;
    position: relative;
    overflow: hidden;
}
.cyber-card.locked::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 0, 234, 0.03) 15px,
        rgba(255, 0, 234, 0.03) 30px
    );
    z-index: 0;
    pointer-events: none;
}
.cyber-card.locked > * {
    position: relative;
    z-index: 1;
}
.badge-magenta {
    background: rgba(255, 0, 234, 0.05);
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 234, 0.2);
    letter-spacing: 1px;
}

/* Section 6 - Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; width: 2px; height: 100%;
    background: var(--neon-blue);
    transform: translateX(-50%);
}
.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
    padding-right: 3rem;
}
.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 3rem;
}
.timeline-dot {
    position: absolute;
    right: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-base);
    border: 3px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    right: auto;
}

/* Footer */
.cyber-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    padding: 4rem 0 2rem;
    background: #000;
}
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-link:hover {
    color: var(--neon-cyan);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-padding { padding: 3.5rem 0; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.5rem; }
    .stat-value { font-size: 2.2rem; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { 
        width: 100%; 
        padding-left: 60px; 
        padding-right: 0; 
        margin-left: 0;
    }
    .timeline-dot { left: 10px !important; right: auto !important; }
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .page-header h1.display-3 {
        font-size: 2.5rem !important;
        word-break: break-word;
        hyphens: auto;
    }
}
