@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #E50914; /* Vermelho flash */
    --secondary: #FFD700; /* Dourado */
    --accent: #0052CC; /* Azul profundo */
    --dark: #0f111a;
    --darker: #08090d;
    --light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utility Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Navbar */
nav.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    transition: all 0.3s ease;
}

nav.navbar.scrolled {
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--light);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-width: 380px; /* Aumentado para empurrar o menu "Início" para a direita */
    height: 60px;
}

.custom-logo {
    position: absolute;
    top: -15px;
    left: -10px; /* Dá respiro pra esquerda */
    height: 100px;
    max-height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
    z-index: 999;
}

nav.navbar.scrolled .custom-logo {
    height: 70px;
    max-height: 70px;
    top: 5px;
}

.logo span {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #ff3333);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

/* Sidebar Menu (quando ativo) */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    transition: left 0.4s ease;
    z-index: 1000;
    padding: 2rem;
}

.sidebar.active {
    left: 0;
}

/* Hero Section */
.hero {
    padding: 150px 5% 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229,9,20,0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Planos / Products */
.plans {
    padding: 5rem 5%;
    text-align: center;
}

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

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    padding: 3rem 2rem;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-speed {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.plan-speed span {
    font-size: 1.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 600;
    margin: 1.5rem 0;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--secondary);
}

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

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 82, 204, 0.4);
    cursor: pointer;
    transition: transform 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: var(--accent);
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0,0,0,0.3);
}

.chat-msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-msg.bot {
    background: var(--glass-bg);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-msg.user {
    background: var(--accent);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--glass-border);
    background: var(--darker);
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 15px;
    border-radius: 10px;
    cursor: pointer;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { text-align: center; justify-content: center; padding-top: 120px; }
    .hero h1 { font-size: 3rem; }
}
