/* =================================
   Configurações Globais
   ================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --color-background: #0f1014;
    --color-surface: #181a1f;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --gradient-primary: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitário para esconder elementos */
.hidden { display: none !important; }

/* =================================
   LÓGICA DE IDIOMA (PT/EN)
   ================================= */
/* Se o corpo for PT, esconde EN */
body.lang-pt .en { display: none; }
/* Se o corpo for EN, esconde PT */
body.lang-en .pt { display: none; }

/* =================================
   Navbar e Bandeiras
   ================================= */
.navbar {
    background-color: rgba(15, 16, 20, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid #2a2a2a;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar .nav-links li { margin-left: 2rem; }

.navbar .nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre icone e texto */
}

.navbar .nav-links a:hover { color: #fff; }

/* Ícone do Discord colorido ao passar o mouse */
.navbar .nav-links a.discord-link:hover { color: #5865F2; }

/* =================================
   Seletor de Idiomas (Bandeiras)
   ================================= */
.language-switcher {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #333;
    align-items: center; /* Centraliza verticalmente */
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.6; /* Deixa um pouco transparente quando não selecionado */
    display: flex;
    align-items: center;
}

/* Configuração das Imagens das Bandeiras */
.language-switcher img {
    width: 28px;  /* Tamanho da bandeira */
    height: auto;
    border-radius: 4px; /* Bordas levemente arredondadas */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Sombra suave */
}

.language-switcher button:hover {
    transform: scale(1.1); /* Aumenta um pouco ao passar o mouse */
    opacity: 1; /* Fica totalmente visível */
}
/* =================================
   Hero Section
   ================================= */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(37, 117, 252, 0.15), var(--color-background) 60%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero .hero-logo {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(37, 117, 252, 0.3);
    border: 3px solid #1c1e24;
}

/* Switcher Ticket vs IA */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.mode-btn {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-btn:hover { border-color: #555; transform: translateY(-2px); }

.mode-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(37, 117, 252, 0.4);
}

/* =================================
   Features Grid
   ================================= */
.features-section { padding: 60px 0; text-align: center; }
.features-section h2 { font-size: 2.5rem; margin-bottom: 3rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-5px); border-color: #444; }

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =================================
   Pricing Grid
   ================================= */
.pricing-section { padding: 80px 0; background-color: var(--color-surface); }
.pricing-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.pricing-card {
    background-color: var(--color-background);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.premium-card {
    border: 2px solid #6a11cb;
    box-shadow: 0 0 25px rgba(106, 17, 203, 0.2);
    transform: scale(1.02);
}

.premium-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 { font-size: 1.5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 700; margin: 10px 0; }
.pricing-card .price-unit { font-size: 1rem; color: #777; font-weight: 400; }
.pricing-card .desc { color: #888; margin-bottom: 2rem; }

.pricing-card ul { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.pricing-card ul li .fa-check { color: #2ecc71; }
.pricing-card ul li .fa-times { color: #e74c3c; opacity: 0.5; }

.cta-button {
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cta-button:hover { box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4); }
.cta-button.secondary { background: transparent; border: 1px solid #444; color: #ccc; }
.cta-button.secondary:hover { border-color: #fff; color: #fff; box-shadow: none; }

/* =================================
   Commands Section
   ================================= */
.commands-section { padding: 80px 0; }
.commands-section h2 { text-align: center; margin-bottom: 10px; }
.commands-section p { text-align: center; color: #777; margin-bottom: 3rem; }

.command-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    background: var(--color-surface);
    border: 1px solid #333;
    color: #aaa;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.tab-button.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.command-content {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    animation: fadeIn 0.4s ease;
}

.command-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.command-list li {
    background: var(--color-background);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.command-list li code {
    display: block;
    background: #252830;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-family: monospace;
    margin-bottom: 5px;
    width: fit-content;
}

.command-list li span { font-size: 0.9rem; color: #888; }

/* =================================
   Footer e Mobile
   ================================= */
.footer { padding: 3rem 0; text-align: center; border-top: 1px solid #2a2a2a; background: #0d0e12; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.footer p { color: #666; margin-top: 1rem; font-size: 0.9rem; }

@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .mode-switcher { flex-direction: column; align-items: center; }
    .mode-btn { width: 100%; }
    .language-switcher { margin-left: auto; margin-right: 20px; }
}