:root {
    --bg-base: #030305;
    --bg-surface: #0a0a0f;
    --bg-glass: rgba(15, 15, 20, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* CRT Scanline Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* Tech Canvas */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.8;
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    bottom: 10%;
    right: -100px;
    animation-delay: -5s;
    opacity: 0.2;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3a0088 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography & Layout */
.container {
    max-width: 1600px;
    width: 92%;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.brand span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.token-link {
    color: var(--accent-primary);
}

/* Contact in Nav */
.nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.nav-contact:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

.contact-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-email {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-email:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), #3a0088);
    color: #fff;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.3);
    border: 1px solid rgba(112, 0, 255, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(112, 0, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(112, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(112, 0, 255, 0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Genesis Nebula with Black Hole */
.genesis-nebula {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, 
        #000000 0%,
        #000000 15%,
        rgba(112, 0, 255, 0.8) 25%, 
        rgba(0, 240, 255, 0.4) 45%, 
        rgba(3, 3, 5, 0) 75%);
    filter: blur(20px);
    z-index: -1;
    animation: nebulaPulse 15s infinite alternate ease-in-out;
    mix-blend-mode: screen;
}

.genesis-nebula::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 70%);
    box-shadow: 0 0 50px 20px rgba(0,0,0,0.9), inset 0 0 20px rgba(112,0,255,0.5);
    z-index: 1;
    mix-blend-mode: normal;
    animation: blackHoleBreathe 8s infinite alternate ease-in-out;
}

@keyframes blackHoleBreathe {
    0% { transform: translate(-50%, -50%) scale(0.85); box-shadow: 0 0 40px 10px rgba(0,0,0,0.8), inset 0 0 15px rgba(112,0,255,0.3); }
    100% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 80px 30px rgba(0,0,0,1), inset 0 0 30px rgba(0,240,255,0.6); }
}

.nebula-particle {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-primary);
    opacity: 0;
    animation: starTwinkle var(--duration) infinite ease-in-out;
}

@keyframes nebulaPulse {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
    100% { transform: scale(1.2) rotate(15deg); opacity: 0.8; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Big Dipper Canvas */
#big-dipper-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* Data Sphere Animation (Hero Visual) */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.data-sphere {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotateSphere 20s infinite linear;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1) inset;
}

.ring-1 { transform: rotateX(60deg) rotateY(0deg); }
.ring-2 { transform: rotateX(60deg) rotateY(60deg); }
.ring-3 { transform: rotateX(60deg) rotateY(120deg); }

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    border-radius: 50%;
    box-shadow: 0 0 50px var(--accent-secondary);
    animation: corePulse 3s infinite alternate ease-in-out;
}

@keyframes rotateSphere {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes corePulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 50%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.service-card.featured {
    background: linear-gradient(180deg, rgba(10,10,15,1) 0%, rgba(10,10,15,0.5) 100%);
    border-color: rgba(0, 240, 255, 0.3);
}

.service-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* Token Sale Section */
.token-sale {
    padding: 8rem 0;
}

.token-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.token-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(112,0,255,0.15) 0%, transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.token-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.token-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.sale-progress-container {
    margin-bottom: 3rem;
}

.progress-info, .progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.progress-stats {
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 100px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.token-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.link-arrow:hover {
    color: var(--accent-primary);
    gap: 0.8rem;
}

.token-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 6rem 0 2rem;
    background: #000;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.icp-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.icp-link:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Responsive & Mobile H5 Support */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 1.5rem;
    }
    
    .hero-container, .token-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .hero-actions, .token-actions {
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-links {
        display: none; /* Can be replaced with a hamburger menu later if needed */
    }
    
    .nav-contact {
        padding: 0.3rem 0.8rem;
    }
    
    .contact-label {
        display: none; /* Hide label on very small screens to save space */
    }
    
    .contact-email {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .token-sale {
        padding: 4rem 0;
    }
    
    .token-container {
        padding: 2rem;
    }
    
    .token-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .token-actions {
        flex-direction: column;
    }
    
    .token-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-sphere {
        width: 250px;
        height: 250px;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
