:root {
    --bg: #050508;
    --bg-elevated: #0a0a10;
    --surface: #111118;
    --border: #1e1e2e;
    --border-bright: #2a2a3e;
    
    --text: #e8e8f0;
    --text-dim: #7a7a90;
    --text-faint: #4a4a5e;
    
    --accent-red: #e63946;
    --accent-red-glow: rgba(230, 57, 70, 0.4);
    --accent-blue: #3a86ff;
    --accent-gold: #e9c46a;
    
    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body: 'Rajdhani', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== ATMOSPHERE ===== */
.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

.scanline {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: float 10s ease-in-out infinite;
    will-change: transform;
}

.glow.red {
    width: 500px;
    height: 500px;
    background: var(--accent-red);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.glow.blue {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    bottom: -5%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1s ease-out 0.2s forwards;
}

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--border-bright);
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-content:hover .badge {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.pentagram {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 45vw, 500px);
    height: clamp(280px, 45vw, 500px);
    color: var(--accent-red);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    animation: pentagramSpin 60s linear infinite;
    will-change: transform;
}

.pentagram svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.3));
}

@keyframes pentagramSpin {
    from { transform: translate(-50%, -55%) rotate(0deg); }
    to   { transform: translate(-50%, -55%) rotate(360deg); }
}

.title {
    font-family: var(--font-display);
    font-size: clamp(48px, 11vw, 100px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 8px;
    margin-bottom: 20px;
    position: relative;
    perspective: 800px;
    transform-style: preserve-3d;
}

.glitch {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.glitch-base {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ff4d5a 0%, #ff9f43 40%, #feca57 70%, #ff4d5a 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fireShift 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.25));
}

@keyframes fireShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.glitch-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
}

.glitch-top {
    color: #ff0040;
    clip-path: polygon(0 0, 100% 0, 100% 32%, 0 62%);
    animation: glitch-1 3s infinite linear alternate-reverse;
}

.glitch-bottom {
    color: #ffb700;
    clip-path: polygon(0 72%, 100% 42%, 100% 100%, 0 100%);
    animation: glitch-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, 2px); }
}

@keyframes glitch-2 {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(2px, -1px); }
    93% { transform: translate(-2px, 1px); }
    96% { transform: translate(1px, -2px); }
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.letter {
    display: inline-block;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.tagline {
    font-family: var(--font-display);
    font-size: clamp(13px, 2.2vw, 17px);
    font-weight: 400;
    color: var(--accent-red);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.desc {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-download {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-red-glow);
    animation: btnPulse 3s ease-in-out infinite;
}

.btn-download:hover {
    background: #ff4d5a;
    box-shadow: 0 0 50px var(--accent-red-glow);
    transform: translateY(-2px);
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.3); }
    50% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.5); }
}

.btn-large {
    padding: 18px 44px;
    font-size: 15px;
}

.btn-large .icon {
    width: 22px;
    height: 22px;
}

.platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature {
    background: var(--bg);
    padding: 56px 36px;
    text-align: center;
    transition: background 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature:hover {
    background: var(--bg-elevated);
    transform: translateY(-4px);
}

.feature-num {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: 3px;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.feature:hover .feature-num {
    color: var(--accent-red);
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text);
}

.feature p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
    position: relative;
    padding: 120px 24px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-bg .grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 55%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 55%);
}

.cta-bg .glow.red {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.06;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.cta-content > p {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 32px;
}

.cta-note {
    margin-top: 20px;
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
}

footer p {
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .feature {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 20px;
    }
    
    .title {
        letter-spacing: 4px;
    }
    
    .pentagram {
        width: clamp(200px, 70vw, 400px);
        height: clamp(200px, 70vw, 400px);
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta {
        padding: 80px 20px;
    }
    
    .feature {
        padding: 36px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pentagram,
    .glow,
    .btn-download {
        animation: none !important;
    }
}
