/* =========================================
   1. VARIÁVEIS E DEFINIÇÕES CORE
   ========================================= */
:root {
    /* Cores do Império */
    --bg-black: #050505;
    --bg-card: rgba(15, 15, 20, 0.7);
    --primary: #8b5cf6;
    /* Roxo Protagonista */
    --primary-glow: rgba(139, 92, 246, 0.4);
    --accent: #00f2ff;
    /* Ciano de Automação */
    --accent-glow: rgba(0, 242, 255, 0.3);
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --border: rgba(255, 255, 255, 0.08);
    --error: #ff5f56;
    --success: #27c93f;

    /* Fontes */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;
    --font-game: 'Press Start 2P', cursive;
}

/* Reset Profissional */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Cursor customizado ligado */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. ELEMENTOS GLOBAIS (CURSOR & LOADER)
   ========================================= */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.load-bar {
    width: 100%;
    height: 4px;
    background: #111;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: width 0.1s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* =========================================
   3. NAVEGAÇÃO (GLASSMORPHISM)
   ========================================= */
.main-nav {
    position: fixed;
    top: 25px;
    width: 100%;
    z-index: 9000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 12px 30px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -1px;
}

.brand span {
    color: var(--primary);
}

.links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.links a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    transition: 0.3s;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--primary);
}

/* =========================================
   4. HERO SECTION (O IMPACTO)
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.badge-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.location-badge,
.status-online {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-online {
    color: var(--success);
    border-color: rgba(39, 201, 63, 0.2);
}

h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.text-3d-gradient {
    background: linear-gradient(45deg, var(--primary), var(--accent), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    to {
        background-position: 200% center;
    }
}

.hero-text p {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.4s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
    border: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

/* Visual do Card Python */
.hero-visual {
    perspective: 1500px;
}

.main-card {
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: rotateY(-15deg) rotateX(10deg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.code-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.r {
    background: var(--error);
}

.y {
    background: #ffbd2e;
}

.g {
    background: var(--success);
}

.code-header small {
    margin-left: auto;
    font-family: var(--font-code);
    color: #444;
}

pre {
    font-family: var(--font-code);
    font-size: 0.95rem;
}

.c-1 {
    color: #c678dd;
}

/* Import/If */
.c-2 {
    color: #98c379;
}

/* Strings */
.c-3 {
    color: #61afef;
}

/* Functions */

/* =========================================
   5. PRICING SECTION (CONVERSÃO)
   ========================================= */
.pricing-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, transparent, #080808, transparent);
}

.center-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(139, 92, 246, 0.03);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
}

.price-value {
    font-size: 4rem;
    font-weight: 800;
    margin: 30px 0;
}

.p-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.p-features li {
    margin-bottom: 15px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-features i {
    color: var(--accent);
}

/* =========================================
   6. TERMINAL & GAME
   ========================================= */
.terminal-section {
    padding-bottom: 120px;
}

.terminal-wrapper-compact {
    max-width: 700px;
    margin: 0 auto;
}

.terminal-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
}

.terminal-bar {
    background: #151515;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #555;
}

.terminal-content {
    height: 250px;
    padding: 25px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 0.95rem;
}

.output {
    margin-bottom: 10px;
}

.t-cyan {
    color: var(--accent);
    font-weight: bold;
}

.prompt-text {
    color: var(--primary);
}

.error-text {
    color: var(--error);
}

.terminal-input-line {
    padding: 15px 25px;
    border-top: 1px solid #111;
    display: flex;
    gap: 12px;
}

.prompt {
    color: var(--primary);
    font-weight: 800;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: var(--font-code);
}

/* GAME SECTION */
.game-card {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.game-tag {
    color: var(--primary);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 3px;
}

#word-to-type {
    font-family: var(--font-game);
    font-size: 2.5rem;
    margin: 40px 0;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

#game-input {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* =========================================
   7. FAQ & FOOTER
   ========================================= */
.faq-wrapper {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.faq-trigger {
    padding: 25px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    padding: 0 25px 25px;
    color: var(--text-gray);
    display: none;
}

.faq-item.active .faq-content {
    display: block;
}

.faq-item.active {
    border-color: var(--primary);
}

.main-footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* =========================================
   8. RESPONSIVIDADE (MOBILE READY)
   ========================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .nav-container {
        border-radius: 25px;
        margin: 0 15px;
    }

    .links {
        display: none;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.8rem;
    }

    .price-card {
        padding: 30px;
    }

    #word-to-type {
        font-size: 1.5rem;
    }
}