:root {
    --black: #000000;
    --black-soft: #050505;
    --black-card: #0d0d0d;
    --primary: #0D6EFD;
    --secondary: #00D4FF;
    --text-main: #FFFFFF;
    --text-dim: #B8B8B8;
    --glow: rgba(13, 110, 253, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--black);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Estado inicial para a animação de introdução */
    opacity: 0;
    filter: blur(20px);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Ajuste a altura conforme necessário para o seu design */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text-main); }

/* Grid Background Effect */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    /* Estado inicial para a animação de introdução */
    opacity: 0;
    filter: blur(20px);
}

.glow-effect {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden; /* Garante que o vídeo não saia dos limites da hero */
}

/* Esconde o conteúdo da hero (incluindo o texto grande) antes da animação começar */
.hero .container {
    opacity: 0;
    filter: blur(20px);
}

.hero-slogan-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0; /* Acima do grid, mas abaixo do conteúdo */
    opacity: 0;
}

.explosion-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Cards & Glassmorphism */
.card-premium {
    background: var(--black-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
}

.card-premium:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--glow);
}

/* Botões */
.hero-btns {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    z-index: 10; /* Garante que ele fique acima de tudo */
}


.btn-glow-tech {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-glow-tech:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 35px rgba(13, 110, 253, 0.7);
}

.btn-glass-tech {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.btn-glass-tech:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-5px);
}

.hero-btns i {
    font-size: 1.2rem;
}

.btn-primary-sm {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem !important;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: 0.3s;
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Força 4 colunas lado a lado */
    gap: 40px 15px; /* Reduz o espaço entre colunas */
    text-align: center;
}

/* HUD Frame for Stats Section */
.stats .container {
    position: relative;
    padding: 100px 40px;
}

.section-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hud-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 40px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(13, 110, 253, 0.03) 0%, transparent 80%),
        linear-gradient(rgba(13, 110, 253, 0.02) 1px, transparent 1px) 0 0 / 100% 4px; /* Micro-grid */
    z-index: 0;
}

.hud-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--secondary);
    filter: drop-shadow(0 0 12px var(--secondary));
}

.hud-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 40px 0 0 0; }
.hud-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 40px 0 0; }
.hud-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 40px; }
.hud-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 40px 0; }

.hud-frame::before {
    content: "UNIT_STATS_CALIBRATION_v4.0";
    position: absolute;
    top: 20px;
    left: 80px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 3px;
    opacity: 0.4;
}

.hud-frame::after {
    content: "NODE_STATUS: OPTIMIZED";
    position: absolute;
    bottom: 20px;
    right: 80px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 3px;
    opacity: 0.4;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Preenche o .stat-visual */
    height: 100%; /* Preenche o .stat-visual */
    pointer-events: none;
    background: transparent !important; /* Garante transparência no CSS */
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.stat-circle-wrapper {
    position: relative;
    width: 140px; /* Reduzido levemente para acomodar a grade de 4 */
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important; /* Garante que não há fundo preto */
    border: none; /* Remove qualquer marcação de borda */
    box-shadow: none !important;
    border-radius: 50%; /* Força limite circular para esconder qualquer fundo retangular vazado */
    isolation: isolate; /* <- isola o contexto de composição */
}

.stat-circle-wrapper svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    z-index: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden; /* <- impede linhas de vazar para fora */
}

.stat-circle-wrapper circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: butt;

    /* APLICADO AQUI: A segmentação agora só afeta a linha do círculo */
    mask-image: repeating-conic-gradient(#000 0% 0.8%, transparent 0.8% 1.2%);
    -webkit-mask-image: repeating-conic-gradient(#000 0% 0.8%, transparent 0.8% 1.2%);
    
    mask-clip: border-box;
    -webkit-mask-clip: border-box;
    mask-origin: border-box;
    -webkit-mask-origin: border-box;
}

.stat-circle-wrapper .bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.stat-circle-wrapper .progress {
    stroke: var(--secondary);
    stroke-dasharray: 283; /* Define o comprimento total para a animação do JS preencher corretamente */
    stroke-dashoffset: 283;
    filter: drop-shadow(0 0 10px var(--secondary));
}

/* HUD Connectors */
.hud-visual {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.hud-connector {
    position: absolute;
    width: 80px; /* Reduzido para não invadir o espaço do vizinho */
    height: 100px;
    left: 60%;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.connector-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1;
    opacity: 0.3;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    filter: drop-shadow(0 0 5px var(--primary));
}

.path-particle {
    fill: var(--secondary);
    filter: drop-shadow(0 0 8px var(--secondary));
    opacity: 0;
}

/* HUD Content */
.hud-content {
    margin-top: 15px;
    text-align: left;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
    max-width: 180px; /* Ajustado para o novo layout */
}

.hud-container[data-pos="top"] .hud-content { transform: translateY(-20px); }
.hud-container[data-pos="bottom"] .hud-content { transform: translateY(20px); }

.hud-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.hud-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin-bottom: 8px;
}

.hud-growth {
    font-size: 0.7rem;
    color: #00ff88;
    font-weight: 600;
}

.stat-item h2 { 
    font-size: 1.8rem; 
    color: var(--text-main);
    margin: 0;
}

/* Horizontal Scroll Layout */
.horizontal-scroll-container {
    height: 100vh;
    overflow: hidden;
    background: var(--black-soft);
    display: flex;
    align-items: center;
}

.horizontal-wrapper {
    display: flex;
    gap: 40px;
    padding: 0 5%;
    width: max-content;
    align-items: center;
}

.horizontal-item {
    width: 85vw;
    max-width: 400px;
    height: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.horizontal-item i {
    font-size: 3rem;
    color: var(--secondary);
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ajustado para 3 colunas fixas */
    gap: 20px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efeito de Energia (Border Beam) */
.plan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 70%, var(--energy-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: 0.3s;
}

.plan-card:hover::after {
    animation: rotate-angle 3s linear infinite;
    opacity: 1;
}

/* Sweep de energia interna ao passar o mouse */
.plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--energy-rgb), 0.05), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: 0.5s;
}

.plan-card:hover::before {
    animation: energy-sweep 2s infinite;
}

@keyframes energy-sweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Variáveis de cores para os planos */
.plan-blue { --energy-color: #0D6EFD; --energy-rgb: 13, 110, 253; border-color: rgba(13, 110, 253, 0.2); }
.plan-green { --energy-color: #00FF88; --energy-rgb: 0, 255, 136; border-color: rgba(0, 255, 136, 0.2); }
.plan-yellow { --energy-color: #FFB700; --energy-rgb: 255, 183, 0; border-color: rgba(255, 183, 0, 0.2); }
.plan-red { --energy-color: #FF4444; --energy-rgb: 255, 68, 68; border-color: rgba(255, 68, 68, 0.2); }

.plan-card.featured {
    transform: scale(1.05);
    z-index: 2;
    overflow: visible; /* Permite que o badge flutue fora do card */
}

.plan-card.featured .badge {
    position: absolute;
    top: -16px; /* Move para cima do limite do card */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background: rgba(13, 110, 253, 0.4); /* Azul semi-transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borda fina para realçar o vidro */
    padding: 6px 18px;
    white-space: nowrap; /* Impede a quebra do texto */
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.plan-card h4 {
    font-size: 1.2rem; /* Reduzido para evitar quebra de linha */
    margin-bottom: 5px;
}

.price { font-size: 2.1rem; font-weight: 800; } /* Reduzido de 2.5rem */

.plan-features { list-style: none; color: var(--text-dim); line-height: 1.8; font-size: 0.9rem; }

/* Sobre Nós Section */
.about {
    overflow: hidden; /* Evita que elementos saindo da tela criem scroll horizontal */
}

.badge {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    margin-bottom: 25px;
    display: inline-block;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: #fff;
    white-space: normal;
}

.about-title span {
    color: var(--primary);
    display: inline-block; /* Mantém o destaque sem forçar a quebra de linha */
    white-space: nowrap; /* Impede que a frase de destaque quebre no meio */
}

.about-content {
    position: relative;
    z-index: 10; /* Garante que o texto fique visualmente à frente da imagem */
}

.about-description p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Dá mais espaço para o texto e menos para a imagem */
    gap: 30px;
    align-items: center;
}

.about-visual {
    position: relative;
    overflow: hidden; /* Essencial: corta o que estiver fora do limite do container */
    border-radius: 20px;
    box-shadow: 0 0 50px var(--glow);
    width: 100%; /* Permite que o container use todo o espaço da coluna */
}

.tiles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    z-index: 5;
    pointer-events: none;
    transform: scale(1.05);
    transform-origin: center;
}

.tile { background-size: 1000% 1000%; opacity: 0; }

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transform-origin: center;
}

.pc-img {
    width: 100%;
    opacity: 0; /* Começa invisível */
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { order: -1; } /* Coloca a imagem acima do texto no celular */
}

/* Borda Animada Futurista */
.chart-container::after, .dashboard-main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(var(--angle, 0deg), transparent 20%, var(--secondary), transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.chart-container:hover::after, .dashboard-main:hover::after {
    animation: rotate-angle 3s linear infinite;
}

@keyframes rotate-angle {
    to { --angle: 360deg; }
}

/* Scanning Line Effect */
.chart-container::before, .dashboard-main::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 212, 255, 0.05), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* Garantir que o canvas do gráfico apareça acima do fundo mas abaixo do scanline */
.chart-container canvas, .dashboard-main canvas {
    position: relative;
    z-index: 3;
    display: block;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.chart-container h3, .dashboard-main h3 {
    margin-bottom: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container h3::before {
    content: "●";
    font-size: 0.6rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* FAQ & Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 40px auto;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: var(--text-dim);
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    padding-top: 15px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 15px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-nav, .footer-social {
    display: flex;
    flex-direction: column;
}

.footer-nav h4, .footer-social h4 {
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-dim);
    margin-bottom: 12px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--primary); }

.social-icons { display: flex; gap: 20px; }
.social-icons a { color: var(--text-dim); font-size: 1.4rem; transition: 0.3s; }
.social-icons a:hover { color: var(--primary); transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.process-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 80px; /* Aumentado de 60px para 80px para separar melhor cada passo */
    opacity: 0.3;
    transition: 0.5s;
}

.process-step:first-of-type {
    margin-top: 60px; /* Afasta a primeira etapa (Planejamento) do título "Nosso Processo" */
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px; /* Cria um respiro entre o título e o texto */
    color: var(--text-main);
}

.process-step p {
    font-size: 1.05rem;
    line-height: 1.8; /* Aumenta o espaço entre as linhas do texto */
    color: var(--text-dim);
}

.process-step.active {
    opacity: 1;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    /* Esconde o seguidor do mouse no início */
    opacity: 0;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr); /* No celular, 2x2 fica melhor para não espremer */
        gap: 30px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-brand p { margin: 15px auto 0; }
    .social-icons { justify-content: center; }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .horizontal-item {
        width: 300px;
    }
    .hero-btns a { width: 100%; justify-content: center; }
    .plan-card.featured {
        transform: scale(1);
    }
}

/* Utility */
.section-padding { padding: 120px 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Plan Modal & Form */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none; /* Escondido por padrão, ativado pelo JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    background: var(--black-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; opacity: 0.5;
    transition: 0.3s;
    z-index: 10;
}
.close-modal:hover { opacity: 1; transform: rotate(90deg); }

.modern-form { display: flex; flex-direction: column; gap: 18px; margin-top: 25px; }

.input-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.input-group label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: 12px;
    color: white; outline: none; transition: 0.3s;
    font-size: 1rem;
}
.input-group input:focus { border-color: var(--primary); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 15px rgba(13, 110, 253, 0.2); }

/* Success Step Styles */
.success-icon { font-size: 4rem; color: #00ff88; margin-bottom: 20px; filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.3)); }
.success-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.pay-highlight {
    background: linear-gradient(135deg, #0D6EFD 0%, #00D4FF 100%);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
    border: none !important;
    font-size: 1.1rem;
    padding: 18px;
    text-align: center;
}
.success-actions .btn-secondary { 
    margin-left: 0; 
    width: 100%; 
    text-align: center; 
    background: rgba(255,255,255,0.05);
}

#formStep h3 { font-size: 1.5rem; margin-bottom: 10px; }
#formStep p { color: var(--text-dim); font-size: 0.95rem; }

/* --- Mobile Fixes (< 768px) --- */
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .stats .container {
        padding: 60px 20px;
    }
    .hud-connector {
        display: none;
    }
    .hud-container[data-pos="top"] .hud-content,
    .hud-container[data-pos="bottom"] .hud-content {
        transform: translateY(0);
        margin-top: 15px;
        text-align: center;
        border-left: none;
        padding-left: 0;
        max-width: 100%;
    }
    .modal-content {
        padding: 30px 20px;
    }
    .cursor-follower {
        display: none !important;
    }
    .hero-slogan-img {
        object-fit: contain;
    }
}