/* ===========================
   ROOT & GLOBAL STYLES
   =========================== */

:root {
    /* Synthwave/Cyberpunk Colors */
    --primary-cyan: #00d9ff;
    --primary-magenta: #ff006e;
    --primary-purple: #b537f2;
    --accent-pink: #ff10f0;
    --accent-blue: #0099ff;
    --dark-bg: #0a0e27;
    --dark-bg-secondary: #141829;
    --dark-text: #e0e6ff;

    /* Glows */
    --glow-cyan: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.3);
    --glow-magenta: 0 0 10px rgba(255, 0, 110, 0.5), 0 0 20px rgba(255, 0, 110, 0.3);
    --glow-purple: 0 0 10px rgba(181, 55, 242, 0.5), 0 0 20px rgba(181, 55, 242, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   CANVAS STARFIELD
   =========================== */

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* ===========================
   CONTAINER & LAYERING
   =========================== */

.container {
    position: relative;
    z-index: 10;
    min-height: 200vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   HEADER
   =========================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    height: 80px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    background: rgba(10, 14, 39, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.logo-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.logo-butterfly {
    width: 16px;
    height: 16px;
    fill: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    animation: butterfly-pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 40px rgba(0, 217, 255, 0.5);
        transform: scale(1.2);
    }
}

@keyframes butterfly-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 16px rgba(0, 217, 255, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 32px rgba(0, 217, 255, 0.6));
        transform: scale(1.1);
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--primary-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.3;
    }
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 11;
    position: relative;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(
        90deg,
        var(--primary-cyan) 0%,
        var(--primary-magenta) 50%,
        var(--primary-purple) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.hero-word {
    display: inline-block;
    animation: wordFade 0.8s ease-out both;
    animation-delay: calc(var(--word-index) * 0.2s);
}

@keyframes wordFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(0, 217, 255, 0.5),
            0 0 40px rgba(0, 217, 255, 0.3);
        filter: brightness(1);
    }
    50% {
        text-shadow:
            0 0 30px rgba(0, 217, 255, 0.8),
            0 0 60px rgba(0, 217, 255, 0.5),
            0 0 90px rgba(255, 0, 110, 0.3);
        filter: brightness(1.1);
    }
}

.hero-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    margin: 2rem auto;
    box-shadow: 0 0 20px var(--primary-cyan);
    animation: dividPulse 2s ease-in-out infinite;
}

@keyframes dividPulse {
    0%, 100% {
        width: 200px;
    }
    50% {
        width: 250px;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--dark-text);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    display: block;
    margin-top: 1rem;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border: 2px solid;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', 'Courier', monospace;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-primary:hover {
    background: var(--primary-magenta);
    border-color: var(--primary-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-magenta);
    border-color: var(--primary-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
    transform: translateY(-3px);
}

/* ===========================
   GLITCH EFFECT
   =========================== */

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 217, 255, 0.05) 0px,
        rgba(0, 217, 255, 0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: glitch 0.15s infinite;
}

@keyframes glitch {
    0% {
        clip-path: inset(0 0 0 0);
    }
    20% {
        clip-path: inset(10% 0 20% 0);
    }
    40% {
        clip-path: inset(5% 0 15% 0);
    }
    60% {
        clip-path: inset(15% 0 10% 0);
    }
    80% {
        clip-path: inset(8% 0 18% 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* ===========================
   TECH SPECS
   =========================== */

.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    min-height: 100vh;
    align-content: center;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    background: rgba(10, 14, 39, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-item:hover {
    border-color: var(--primary-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
    transform: translateY(-5px);
}

.spec-item:hover::before {
    opacity: 1;
}

.spec-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.spec-label {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

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

    .hero-cta {
        gap: 1rem;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .tech-specs {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* ===========================
   SMOOTH SCROLL & SCROLL BEHAVIOR
   =========================== */

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}
