/* ========== VARIABLES ========== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(18, 18, 28, 0.85);
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --accent-red: #ff2d55;
    --accent-orange: #ff6b35;
    --accent-cyan: #00f0ff;
    --accent-yellow: #ffd700;
    --accent-green: #00ff88;
    --accent-purple: #a855f7;
    --glow-red: rgba(255, 45, 85, 0.4);
    --glow-cyan: rgba(0, 240, 255, 0.4);
    --glow-orange: rgba(255, 107, 53, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== BACKGROUND ARENA ========== */
.bg-arena {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-floor {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 45, 85, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 45, 85, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-floor::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 30%, var(--bg-primary) 70%);
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.01) 2px,
        rgba(0, 240, 255, 0.01) 4px
    );
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.glitch-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: glitchFlash 8s ease-in-out infinite;
}

@keyframes glitchFlash {
    0%, 96%, 100% { opacity: 0; }
    97% {
        opacity: 0.1;
        background: linear-gradient(90deg, var(--accent-red) 33%, var(--accent-cyan) 33%, var(--accent-cyan) 66%, var(--accent-orange) 66%);
    }
    98% { opacity: 0; }
    99% {
        opacity: 0.05;
        background: var(--accent-cyan);
    }
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ========== MAIN LAYOUT ========== */
.main {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

/* ========== LOGO BLOCK ========== */
.logo-block {
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.2s both;
}

.bot-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 20px var(--glow-cyan));
    animation: botHover 3s ease-in-out infinite;
}

@keyframes botHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.eye {
    animation: eyeBlink 4s ease-in-out infinite;
}

.eye-right {
    animation-delay: 0.1s;
}

@keyframes eyeBlink {
    0%, 42%, 46%, 100% { opacity: 1; }
    44% { opacity: 0.1; }
}

.antenna {
    animation: antennaPulse 2s ease-in-out infinite;
}

@keyframes antennaPulse {
    0%, 100% { fill: var(--accent-cyan); }
    50% { fill: var(--accent-red); }
}

.spark {
    animation: sparkFlash 1.5s ease-in-out infinite;
}

.spark-2 {
    animation-delay: 0.75s;
}

@keyframes sparkFlash {
    0%, 40%, 100% { opacity: 0; }
    50%, 60% { opacity: 1; }
}

.title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    position: relative;
}

.title-bot {
    color: var(--accent-cyan);
    text-shadow:
        0 0 20px var(--glow-cyan),
        0 0 60px rgba(0, 240, 255, 0.2);
}

.title-fight {
    color: var(--accent-red);
    text-shadow:
        0 0 20px var(--glow-red),
        0 0 60px rgba(255, 45, 85, 0.2);
}

.title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 45, 85, 0.15);
    animation: glitchTitle 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glitchTitle {
    0%, 92%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    93% {
        opacity: 1;
        transform: translate(3px, -2px);
        -webkit-text-stroke-color: rgba(0, 240, 255, 0.3);
    }
    94% {
        opacity: 1;
        transform: translate(-3px, 1px);
        -webkit-text-stroke-color: rgba(255, 45, 85, 0.3);
    }
    95% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* ========== TAGLINE ========== */
.tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    animation: fadeInUp 1s ease 0.5s both;
}

.tagline span {
    display: inline-block;
    margin: 0 6px;
}

.tag-line-1 { color: var(--accent-cyan); }
.tag-line-2 { color: var(--text-secondary); }
.tag-line-3 {
    color: var(--accent-red);
    font-weight: 600;
}

/* ========== COMING SOON BADGE ========== */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 32px;
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: 100px;
    background: rgba(255, 45, 85, 0.05);
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.7s both, badgePulse 3s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 12px var(--glow-red);
    animation: dotPulse 2s ease-in-out infinite;
}

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

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
    50% { box-shadow: 0 0 30px -5px rgba(255, 45, 85, 0.15); }
}

.badge-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--accent-red);
}

/* ========== FEATURES ========== */
.features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    padding: 5px;
}

.feature:nth-child(3) .feature-icon {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.15);
    color: var(--accent-orange);
}

.feature:nth-child(5) .feature-icon {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.feature-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* ========== TERMINAL ========== */
.terminal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    margin-bottom: 48px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: fadeInUp 1s ease 1.1s both;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.term-red { background: #ff5f57; }
.term-yellow { background: #febc2e; }
.term-green { background: #28c840; }

.term-title {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 16px 20px;
    font-family: 'Space Grotesk', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 2;
}

.term-line {
    opacity: 0;
    animation: termTypeLine 0.5s ease forwards;
}

.term-line:nth-child(1) { animation-delay: 1.5s; }
.term-line:nth-child(2) { animation-delay: 2.2s; }
.term-line:nth-child(3) { animation-delay: 2.9s; }
.term-line:nth-child(4) { animation-delay: 3.6s; }
.term-line:nth-child(5) { animation-delay: 4.3s; }
.term-line:nth-child(6) { animation-delay: 5.0s; }

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

.term-prompt {
    color: var(--accent-cyan);
    margin-right: 8px;
}

.term-cmd {
    color: var(--accent-green);
}

.term-output {
    color: var(--text-secondary);
    padding-left: 18px;
}

.term-text-green { color: var(--accent-green); }
.term-text-yellow { color: var(--accent-yellow); }
.term-text-cyan { color: var(--accent-cyan); }
.term-text-orange { color: var(--accent-orange); }

.blink {
    animation: blinkAnim 1.2s step-end infinite;
}

@keyframes blinkAnim {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.typing-cursor {
    color: var(--accent-cyan);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========== FOOTER ========== */
.footer {
    animation: fadeInUp 1s ease 1.3s both;
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ========== UTILS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .features {
        gap: 12px;
    }

    .feature-divider {
        display: none;
    }

    .feature {
        font-size: 0.82rem;
    }

    .coming-soon-badge {
        padding: 10px 24px;
    }

    .badge-text {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 12px 14px;
    }
}
