/* ============================================
   JIGSAW BOT — Landing Page
   SAW EDITION — Vantablack Horror Theme
   "Viver ou Morrer. Faça sua escolha."
   ============================================ */

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

:root {
    --void: #050505;
    --void-light: #0a0a0a;
    --void-elevated: #0f0f0f;
    --blood: #CC0000;
    --blood-dark: #8B0000;
    --blood-glow: #FF2222;
    --bone: #E0E0E0;
    --bone-dim: #888888;
    --rust: #2A0000;
    --decay-green: #00CC00;
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blood-dark) var(--void);
}

body {
    background: var(--void);
    color: var(--bone);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--blood); }
.accent-text { color: var(--blood-glow); }

/* === BLOOD RAIN CANVAS === */
#bloodRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rust);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--blood-dark);
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bone-dim);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--blood-glow);
}

.nav-cta {
    background: var(--blood-dark) !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--blood) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(204, 0, 0, 0.3);
}

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

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.6) 0%,
        rgba(5, 5, 5, 0.3) 40%,
        rgba(5, 5, 5, 0.7) 70%,
        rgba(5, 5, 5, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid var(--blood-dark);
    color: var(--blood-glow);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--bone-dim);
    max-width: 540px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--blood-dark);
    letter-spacing: 3px;
    font-style: italic;
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--blood-glow);
}

.stat-label {
    font-size: 12px;
    color: var(--bone-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--rust);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-dark) 100%);
    color: white;
    border: 2px solid var(--blood);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(204, 0, 0, 0.4);
    border-color: var(--blood-glow);
}

.btn-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-ghost {
    background: transparent;
    color: var(--bone-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    color: var(--bone);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-buy {
    width: 100%;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--rust) 0%, #1a0000 100%);
    color: var(--blood);
    border: 1px solid var(--blood-dark);
    font-size: 13px;
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--blood-dark) 0%, #3a0000 100%);
    color: var(--blood-glow);
    border-color: var(--blood);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.3);
}

.btn-buy.btn-primary {
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-dark) 100%);
    color: white;
    border: 2px solid var(--blood);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--bone-dim);
    font-size: 10px;
    letter-spacing: 4px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--blood-dark), transparent);
    margin: 8px auto 0;
    animation: scroll-down 2s ease-in-out infinite;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--blood);
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--bone-dim);
    max-width: 500px;
    margin: 0 auto;
}

/* === FEATURES === */
.features {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--void) 0%, var(--void-light) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--void-elevated);
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 8px;
    padding: 36px 28px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--blood-dark);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.15);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bone);
}

.feature-card p {
    font-size: 14px;
    color: var(--bone-dim);
    line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--void-light);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 40px 24px;
    background: var(--void-elevated);
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 8px;
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--blood-dark);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--blood-dark);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--bone-dim);
    line-height: 1.6;
}

.step-arrow {
    font-size: 32px;
    color: var(--blood-dark);
    font-weight: 700;
}

/* === PRICING === */
.pricing {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--void-light) 0%, var(--void) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.price-card {
    background: var(--void-elevated);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.4s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--blood-dark);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.2);
}

.price-card.popular {
    border: 2px solid var(--blood);
    background: linear-gradient(180deg, #120000 0%, var(--void-elevated) 100%);
    transform: scale(1.05);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blood);
    color: white;
    padding: 6px 24px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.price-header h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--bone);
    margin-bottom: 4px;
}

.price-desc {
    font-size: 13px;
    color: var(--bone-dim);
}

.price-value {
    margin: 28px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 20px;
    color: var(--bone-dim);
    font-weight: 600;
}

.amount {
    font-size: 54px;
    font-weight: 900;
    color: var(--bone);
    line-height: 1;
}

.period {
    font-size: 14px;
    color: var(--bone-dim);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--bone-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.price-features li:last-child {
    border-bottom: none;
}

/* === FAQ === */
.faq {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--void);
}

.faq-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--void-elevated);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--blood-dark);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--bone);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    text-align: left;
}

.faq-icon {
    font-size: 20px;
    color: var(--blood);
    transition: transform 0.3s;
    min-width: 24px;
    text-align: center;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--bone-dim);
    line-height: 1.7;
}

/* === FOOTER === */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    background: var(--void);
    border-top: 1px solid var(--rust);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--blood-dark);
    object-fit: cover;
}

.footer-brand p {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blood-dark);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 13px;
    color: var(--bone-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--blood-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: #333;
    letter-spacing: 1px;
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--rust);
    border-top-color: var(--blood);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.loading-content p {
    color: var(--bone-dim);
    font-size: 14px;
    letter-spacing: 2px;
}

/* === SUCCESS OVERLAY === */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.success-overlay.active {
    display: flex;
}

.success-content {
    text-align: center;
    max-width: 400px;
    padding: 48px;
    background: var(--void-elevated);
    border: 2px solid var(--decay-green);
    border-radius: 12px;
}

.success-icon {
    font-size: 48px;
    color: var(--decay-green);
    margin-bottom: 16px;
}

.success-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.success-content p {
    font-size: 14px;
    color: var(--bone-dim);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(204, 0, 0, 0.2); }
    50% { box-shadow: 0 0 40px rgba(204, 0, 0, 0.5); }
}

@keyframes scroll-down {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .price-card.popular {
        transform: scale(1);
    }

    .price-card.popular:hover {
        transform: translateY(-8px);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Language Switcher */
.lang-switcher { display: flex; gap: 12px; align-items: center; margin-right: 15px; }
.lang-flag { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; cursor: pointer; opacity: 0.5; transition: all 0.3s ease; filter: grayscale(100%); }
.lang-flag:hover { opacity: 0.8; filter: grayscale(0%); transform: scale(1.1); }
.lang-flag.active { opacity: 1; filter: grayscale(0%); transform: scale(1.15); box-shadow: 0 0 10px rgba(204, 0, 0, 0.5); border: 1px solid var(--blood); }
