:root {
    /* Colors from selected theme */
    --bg-color: #050505;
    --text-color: #e2e8f0;
    --primary-color: #7c3aed;
    /* Neon Purple */
    --accent-color: #a3e635;
    /* Toxic Lime */
    --secondary-bg: #111111;
    --border-color: #1f1f1f;
    --error-color: #f43f5e;

    /* Fonts */
    --header-font: 'Bebas Neue', cursive;
    --body-font: 'Source Sans 3', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.accent {
    color: var(--accent-color);
}

/* CRT EFFECTS */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 100%),
        rgba(18, 16, 16, 0);
    pointer-events: none;
    z-index: 1000;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    text-decoration: none;
    font-family: var(--header-font);
    font-size: 2rem;
    letter-spacing: 2px;
}

.logo__text {
    color: var(--text-color);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger__line {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--bg-color) 40%, transparent 100%),
        url('img/03e145f323a551a3e775decf0cf9671b.jpg');
    background-size: cover;
    background-position: center right;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero__container {
    padding-top: 80px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--header-font);
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero__subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

/* GLITCH TEXT EFFECT */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: 2px 0 var(--primary-color);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }

    20% {
        clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%);
    }

    40% {
        clip-path: polygon(0 60%, 100% 60%, 100% 70%, 0 70%);
    }

    60% {
        clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%);
    }

    80% {
        clip-path: polygon(0 0%, 100% 0%, 100% 10%, 0 10%);
    }

    100% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%);
    }

    25% {
        clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%);
    }

    50% {
        clip-path: polygon(0 65%, 100% 65%, 100% 75%, 0 75%);
    }

    75% {
        clip-path: polygon(0 85%, 100% 85%, 100% 95%, 0 95%);
    }

    100% {
        clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%);
    }
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    border-radius: 4px;
    font-family: var(--body-font);
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn--primary:hover {
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.4);
    transform: translateY(-2px);
}

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

.btn--secondary:hover {
    background: var(--border-color);
    border-color: var(--text-color);
}

.btn--full {
    width: 100%;
}

/* FEATURES SECTION */
.section-title {
    font-family: var(--header-font);
    font-size: 4rem;
    margin-bottom: 60px;
    text-align: center;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--secondary-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.feature-card__text {
    color: #94a3b8;
}

/* PREDICTION / INTERFACE */
.prediction {
    background: black;
}

.prediction__box {
    max-width: 800px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.prediction__header {
    background: #1a1a1a;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.prediction__dots {
    display: flex;
    gap: 8px;
}

.prediction__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.prediction__dots span:nth-child(1) {
    background: #ff5f56;
}

.prediction__dots span:nth-child(2) {
    background: #ffbd2e;
}

.prediction__dots span:nth-child(3) {
    background: #27c93f;
}

.prediction__status {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
}

.prediction__content {
    padding: 30px;
}

.prediction__terminal {
    height: 200px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 20px;
    background: #000;
    border: 1px solid #1a1a1a;
}

.terminal__line {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.terminal__line::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.terminal__line--system {
    color: #666;
}

.terminal__line--success {
    color: var(--accent-color);
}

.prediction__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.prediction__form input {
    width: 100%;
    background: #111;
    border: 1px solid var(--border-color);
    padding: 16px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.prediction__form input:focus {
    border-color: var(--primary-color);
    background: #151515;
}

.input-mask {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none;
    font-family: monospace;
}

/* FOOTER */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: #050505;
}

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

.footer__socials {
    display: flex;
    gap: 20px;
}

.footer__socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer__socials a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 968px) {
    .hero__title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        z-index: 100;
        transition: var(--transition);
        padding: 100px 40px;
        border-left: 1px solid var(--border-color);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 30px;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .burger.active .burger__line:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .burger.active .burger__line:nth-child(2) {
        opacity: 0;
    }

    .burger.active .burger__line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero__title {
        font-size: 3rem;
    }

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

    .footer__container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}