/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #0a0a0f;
    --color-bg-light: #12121a;
    --color-primary: #00f0ff;
    --color-secondary: #ff6b35;
    --color-text: #e0e0e0;
    --color-text-dim: #808090;
    --color-kinetic: #a0a0a0;
    --color-thermal: #ff4444;
    --color-arc: #8844ff;
    --color-cryo: #44ddff;
    --font-display: 'Orbitron', monospace;
    --font-mono: 'Share Tech Mono', monospace;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === BACKGROUND EFFECTS === */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 60% 50%, white, transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90% 40%, white, transparent),
        radial-gradient(1.5px 1.5px at 25% 85%, var(--color-primary), transparent),
        radial-gradient(1.5px 1.5px at 75% 15%, var(--color-secondary), transparent);
    background-size: 200px 200px;
    animation: drift 60s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    opacity: 0.3;
}

/* === LAYOUT === */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    text-shadow:
        0 0 10px var(--color-primary),
        0 0 30px rgba(0, 240, 255, 0.5),
        0 0 60px rgba(0, 240, 255, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--color-primary), 0 0 30px rgba(0, 240, 255, 0.5); }
    to { text-shadow: 0 0 20px var(--color-primary), 0 0 50px rgba(0, 240, 255, 0.7), 0 0 80px rgba(0, 240, 255, 0.4); }
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.platform-badge {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.05));
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    display: inline-block;
}

.platform-text {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--color-secondary);
    border-radius: 2px;
    margin-top: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--color-secondary); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--color-secondary); }
}

.status-text {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--color-secondary);
}

/* === TERMINAL === */
.transmission {
    margin: 3rem 0;
}

.terminal {
    background: var(--color-bg-light);
    border: 1px solid #2a2a3a;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 240, 255, 0.03);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #1a1a24;
    border-bottom: 1px solid #2a2a3a;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    margin-left: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
}

.terminal-content {
    padding: 1.5rem;
    font-size: 0.95rem;
}

.typing-line {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    margin-bottom: 0.5rem;
}

.typing-line.delay-1 { animation-delay: 0.8s; }
.typing-line.delay-2 { animation-delay: 1.6s; }
.typing-line.delay-3 { animation-delay: 2.4s; }
.typing-line.delay-4 { animation-delay: 3.2s; }
.typing-line.delay-5 { animation-delay: 4s; }

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

.prompt {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.highlight {
    color: var(--color-secondary);
    font-weight: bold;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === INTEL SECTION === */
.section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a3a;
}

.intel {
    margin: 4rem 0;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.intel-card {
    background: var(--color-bg-light);
    border: 1px solid #2a2a3a;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.intel-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.card-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.intel-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.intel-card p {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* === WEAPONS SECTION === */
.systems {
    margin: 4rem 0;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .weapons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weapon-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid #2a2a3a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weapon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weapon-item:hover::before {
    opacity: 0.1;
}

.weapon-item.kinetic { border-color: var(--color-kinetic); }
.weapon-item.kinetic::before { background: var(--color-kinetic); }
.weapon-item.kinetic:hover { box-shadow: 0 0 20px rgba(160, 160, 160, 0.3); }

.weapon-item.thermal { border-color: var(--color-thermal); }
.weapon-item.thermal::before { background: var(--color-thermal); }
.weapon-item.thermal:hover { box-shadow: 0 0 20px rgba(255, 68, 68, 0.3); }

.weapon-item.arc { border-color: var(--color-arc); }
.weapon-item.arc::before { background: var(--color-arc); }
.weapon-item.arc:hover { box-shadow: 0 0 20px rgba(136, 68, 255, 0.3); }

.weapon-item.cryo { border-color: var(--color-cryo); }
.weapon-item.cryo::before { background: var(--color-cryo); }
.weapon-item.cryo:hover { box-shadow: 0 0 20px rgba(68, 221, 255, 0.3); }

.weapon-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
    transition: color 0.3s ease;
}

.weapon-item.kinetic:hover .weapon-label { color: var(--color-kinetic); }
.weapon-item.thermal:hover .weapon-label { color: var(--color-thermal); }
.weapon-item.arc:hover .weapon-label { color: var(--color-arc); }
.weapon-item.cryo:hover .weapon-label { color: var(--color-cryo); }

/* === MILO QUOTE === */
.milo-quote {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--color-bg-light);
    border-left: 3px solid var(--color-secondary);
    position: relative;
}

.milo-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.milo-quote blockquote p {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.milo-quote cite {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    font-style: normal;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid #2a2a3a;
    margin-top: 4rem;
}

.footer-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.75rem;
    color: #505060;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .terminal-content {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .milo-quote {
        padding: 1.5rem;
    }

    .milo-quote blockquote p {
        font-size: 0.9rem;
    }
}
