/* 
   NIXLOC BRAND STYLES & STEPPED RESPONSIVE LAYOUT
*/

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

:root {
    /* Colors */
    --bg-dark: #000000;
    --bg-card: #080808;
    --primary: #3ab9e2; /* Nixloc Blue */
    --primary-hover: #299bbd;
    --accent: #ff6b00;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    
    /* Stepped Layout Constants */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* A hifenização foi removida a pedido do usuário */


html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 48px;
}

.bg-alt {
    background-color: #050505;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bg-light {
    background-color: #f8fafc;
    color: #0f172a;
}
.bg-light p {
    color: #475569;
}
.bg-light .glass-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.bg-light .glass-card h3 {
    color: #0f172a;
}
.bg-light .glass-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(58, 185, 226, 0.15);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, .cta-button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

/* --- STEPPED RESPONSIVE LAYOUT (NEW STANDARD) --- */

.section {
    width: 100%;
    overflow: hidden; /* Evita que elementos como o brilho ou o carrossel criem barra lateral */
}

.content-wrapper {
    margin: 0 auto;
    box-sizing: border-box;
    /* overflow removido para não cortar bordas no hover */
}

/* Herança de box-sizing */
.content-wrapper *,
.content-wrapper *::before,
.content-wrapper *::after {
    box-sizing: border-box;
}

/* Desktop: ≥ 1472px */
@media (min-width: 1472px) {
    .section        { padding: 96px 0; }
    .content-wrapper { width: 1280px; }
    .hero {
        background-image: url('S-Home - nixloc - lp - W,D,N,T,C - BG.webp');
        background-size: 1920px auto;
        background-position: center bottom;
        padding: 180px 0 725px;
    }
}

/* Notebook: 1025px – 1471px */
@media (min-width: 1025px) and (max-width: 1471px) {
    .section        { padding: 96px 0; }
    .content-wrapper { width: 961px; }
    .hero {
        background-image: url('S-Home - nixloc - lp - W,D,N,T,C - BG.webp');
        background-size: 1920px auto;
        background-position: center bottom;
        padding: 180px 0 725px;
    }
}

/* Tablet: 768px – 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .section        { padding: 72px 0; }
    .content-wrapper { width: 656px; }
    .hero {
        background-image: url('S-Home - nixloc - lp - T,C - BG.webp');
        background-size: 1024px auto;
        background-position: center bottom;
        padding: 150px 0 852px;
    }
}

/* Celular: 320px – 767px */
@media (min-width: 320px) and (max-width: 767px) {
    .section {
        padding: 56px 0;
    }
    .trust-bar { /* Padding reduzido para a barra de logos no celular */
        padding: 32px 0 !important;
    }
    .content-wrapper {
        max-width: 359px;
        width: 100%;
        padding: 0 16px;
    }
    .hero {
        background-image: url('S-Home - nixloc - lp - T,C - BG.webp');
        background-size: 500px auto;
        background-position: center bottom;
        padding: 120px 0 445px;
    }
    .mobile-only {
        display: inline !important;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* Imagens contidas por padrão */
.content-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- COMPONENTS --- */

@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

.btn-primary {
    --border-angle: 0turn; 
    color: #000;
    font-weight: 600;
    background-image: 
      linear-gradient(var(--primary), var(--primary)), 
      conic-gradient(from var(--border-angle), transparent 60%, rgba(255,255,255,0.9) 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 2px solid transparent;
    animation: bg-spin 3s linear infinite;
    
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-align: center;
}

@keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; 
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-20deg);
    z-index: 2;
}

.btn-primary:hover::after {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 8px;
}

.btn-outline:hover {
    background: rgba(0, 223, 130, 0.05);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* --- NAV --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
}

nav .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

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

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

/* Menu Toggle (Sanduíche) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
}

/* Estado aberto — transforma em X */
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 24px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: center;
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 16px;
    }
    
    .nav-links a.btn-outline {
        margin-top: 24px;
        display: inline-block;
        border: 1px solid var(--primary);
    }
}

/* --- HERO --- */
.hero {
    position: relative;
    text-align: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(58, 185, 226, 0.9) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
    mix-blend-mode: screen;
    animation: roamGlow 12s ease-in-out infinite alternate;
}

@keyframes roamGlow {
    0% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    25% { transform: translate(-30%, 50px) scale(1.3); opacity: 0.8; }
    50% { transform: translate(-70%, 20px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(-40%, -40px) scale(1.1); opacity: 0.9; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
}

.hero h1 {
    font-size: 67px;
    max-width: 900px;
    margin: 0 auto 24px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance; 
    white-space: pre-wrap; /* Garante que os espaços da digitação não sumam */
}

.hero p {
    font-size: 20px;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 40px;
    text-wrap: pretty;
}

/* Hero visual removed - handled via background */

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

@media (max-width: 767px) {
    .hero h1 { 
        font-size: 45px; /* Aumentado */
        background: none; /* Removido degradê que parecia cinza */
        -webkit-text-fill-color: #ffffff;
        color: #ffffff;
    }
    .hero p { font-size: 18px; }
    
    .hero-actions .btn-primary {
        padding: 16px 20px;
        font-size: 16px;
        line-height: 1.3;
        width: 100%; /* Botões cheios no mobile */
    }

    .pricing-card {
        padding: 40px 20px;
    }
}

/* --- TRUST BAR CAROUSEL --- */
.trust-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Edge blur fade */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: inline-flex;
    align-items: center;
    gap: 80px; /* Gap fixo entre todos os itens */
    padding-right: 80px; /* Garante que o fim de um set tenha o mesmo espaço que o início do outro */
    animation: infiniteScroll 25s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.carousel-item img {
    height: 40px;
    object-fit: contain;
    /* Filtro removido para cores originais */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-item:hover img {
    opacity: 1;
}

@keyframes infiniteScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-25%); }
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    position: relative;
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at top right, rgba(0, 223, 130, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.feature-card p {
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* --- PRICING SECTION REDESIGN --- */
.pricing-section {
    text-align: center;
}

.pricing-card {
    max-width: 440px; 
    margin: 0 auto; 
    border: 1px solid rgba(58, 185, 226, 0.3);
    background: #080808;
    background: linear-gradient(145deg, #0a0a0a 0%, #000000 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    padding: 60px 40px;
    overflow: visible;
}

.pricing-card::before {
    content: 'MAIS ESCOLHIDO';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 30px 0;
}

.price-tag .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-top: -20px;
}

.price-tag .amount {
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.price-tag .period {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: -20px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-main); /* Forçado branco para leitura no fundo escuro */
}

.pricing-features svg {
    color: var(--primary);
}

/* --- FORM SECTION --- */
.lead-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lead-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.icon-check {
    stroke: var(--primary);
    width: 24px;
    height: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-dim);
}

.form-group input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

@media (max-width: 1024px) {
    .lead-section { grid-template-columns: 1fr; gap: 40px; }
}

/* --- FOOTER --- */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: #050505;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-dim);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- UTILS --- */
.text-center { text-align: center !important; }
.text-primary { color: var(--primary); }

/* --- RESPONSIVIDADE ADICIONAL (RAG & PADDING) OVERRIDES FINAIS --- */
@media (max-width: 767px) {
    /* Padding interno obrigatório para elementos com texto - DEVE VENCER A CASCATA */
    .glass-card,
    .box,
    .alert,
    [class*="card"],
    [class*="container"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding: 24px 16px; 
    }

    /* OVERRIDES DE PREÇO NO MOBILE - FINAL ABSOLUTO */
    .price-tag .amount {
        font-size: 35px !important; /* Reduzido DRÁSTICAMENTE */
    }
    .price-tag .currency {
        font-size: 18px !important;
        margin-top: -5px !important;
    }
    .price-tag .period {
        font-size: 14px !important;
    }
    .pricing-card {
        padding: 40px 15px !important;
    }
    .pricing-card .btn-primary {
        width: 100% !important;
    }

    /* Ajuste de formulário no mobile */
    .lead-section { 
        grid-template-columns: 1fr !important;
        gap: 40px !important; 
    }

    /* Estratégia de RAG Tipográfico */
    /* Para o título Hero caber em 3 linhas suaves na maioria dos celulares */
    h1, .hero h1 { 
        font-size: 42px; 
        line-height: 1.1; 
        hyphens: none; 
        overflow-wrap: break-word;
        text-wrap: balance; 
    }
    
    h2, .lead-content h2 { 
        font-size: 26px; 
        line-height: 1.25; 
        hyphens: none; 
        overflow-wrap: break-word; 
    }
    
    h3 { 
        font-size: 22px; 
        line-height: 1.3; 
        hyphens: none; 
        overflow-wrap: break-word; 
    }

    p, li, blockquote {
        font-size: 16px;
        line-height: 1.6;
        hyphens: none;
        -webkit-hyphens: none;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    h1, h2, h3 {
        hyphens: none;
        overflow-wrap: break-word;
    }
    
    .hero p {
        font-size: 16px;
    }
}

/* --- TESTIMONIALS CAROUSEL --- */
.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
}

.testimonials-track-wrapper {
    flex: 1;
    min-width: 0; /* IMPEDE A EXPANSÃO INFINITA DO FLEXBOX */
    width: 100%;
    overflow-x: clip;  /* clipa cards que saem pelas laterais */
    overflow-y: visible; /* permite o hover lift sem cortar o card */
    padding: 15px 0;
    margin: -15px 0;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.45s ease, transform 0.3s ease, border-color 0.3s ease;
}

.testimonials-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.testimonials-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(58, 185, 226, 0.08);
}

.testimonials-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.testimonials-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

@media (max-width: 767px) {
    .testimonials-carousel {
        gap: 8px;
        margin-top: 40px;
    }
    .testimonials-btn {
        width: 36px;
        height: 36px;
    }
    .testimonials-btn svg {
        width: 18px;
        height: 18px;
    }
}
