/* =========================================================================
   TYPOGRAPHY (LOCAL WEBFONTS)
   ========================================================================= */
@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/helvetica-light-587ebe5a59211.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/Helvetica.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/Helvetica.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/Helvetica-Oblique.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/Helvetica-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/Helvetica-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue Display';
    src: url('../assets/fonts/Helvetica-BoldOblique.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    --bg-color: #000000;
    --bg-darker: #050505;
    --surface-color: #0c0c0c;
    --border-color: #1a1a1a;
    --accent-color: #0853ff;
    --accent-hover: #0640cc;
    --text-primary: #ffffff;
    --text-secondary: #888888;

    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --section-padding: 6rem 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue Display', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   TEXT FORMATTING (STANDARDIZATION)
   ========================================================================= */

/* Títulos: minúsculos */
h1, h2, .title, .section-title {
    text-transform: lowercase;
}

/* Subtítulos: maiúsculos */
h3, .subtitle, .vitrine-subtitle, .promo-label, .step-number {
    text-transform: uppercase;
}

/* Textos Corridos: minúsculo com apenas a primeira letra da frase em maiúsculo */
p, .description, .copyright {
    text-transform: lowercase;
}

p::first-letter, .description::first-letter, .copyright::first-letter {
    text-transform: uppercase;
}

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

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

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

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

.bg-darker {
    background-color: var(--bg-darker);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.secao-site {
  padding: 120px 20px; /* Respiro padrão de 120px em cima e embaixo */
  position: relative;
  width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 0;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Animations */
@keyframes subtlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(8, 83, 255, 0);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 20px rgba(8, 83, 255, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(8, 83, 255, 0);
    }
}

.cta-pulse {
    animation: subtlePulse 3s infinite ease-in-out;
}

/* Hardware Acceleration Setup for GSAP */
.logo,
.nav-links a,
.word-inner,
.hero .subtitle,
.hero .description,
.hero-actions .btn,
.hero-video-wrapper,
.section-title,
.pricing-header p,
.pricing-card,
.benefit-card,
.step-card,
.vitrine-video,
.vitrine-header,
.glow-1,
.glow-2,
.card-ambient-glow {
    will-change: transform, opacity;
}

/* Custom Textures / Design Grid */
.design-grid {
    background-color: var(--bg-color); /* Restored absolute black background */
}

/* Bounding Box / Wireframe Anchors */
.bounding-box {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: visible !important;
}

.bounding-box::after {
    display: none !important;
    content: '';
    position: absolute;
    top: -6px; left: -6px; bottom: -6px; right: -6px; /* 12px handles require 6px negative offset */
    pointer-events: none;
    background-image: 
        url('data:image/svg+xml;utf8,<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="11" height="11" fill="%23000000" stroke="rgba(255,255,255,0.3)" stroke-width="1"/></svg>'),
        url('data:image/svg+xml;utf8,<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="11" height="11" fill="%23000000" stroke="rgba(255,255,255,0.3)" stroke-width="1"/></svg>'),
        url('data:image/svg+xml;utf8,<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="11" height="11" fill="%23000000" stroke="rgba(255,255,255,0.3)" stroke-width="1"/></svg>'),
        url('data:image/svg+xml;utf8,<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="11" height="11" fill="%23000000" stroke="rgba(255,255,255,0.3)" stroke-width="1"/></svg>');
    background-position: 
        0 0, /* TL */
        100% 0, /* TR */
        0 100%, /* BL */
        100% 100%; /* BR */
    background-size: 12px 12px;
    background-repeat: no-repeat;
    z-index: 10;
}

/* Ambient Glows */
.ambient-glow-container {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.ambient-top {
    top: 0;
    height: 1500px;
}

.glow-1,
.glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
}

.glow-1 {
    width: 80vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(8, 83, 255, 0.18) 0%, rgba(8, 83, 255, 0) 70%);
    top: 10%;
    left: -15vw;
}

.glow-2 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(8, 83, 255, 0.15) 0%, rgba(8, 83, 255, 0) 70%);
    top: 20%;
    right: -20vw;
}

/* Word Mask Intro Animation */
.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
}

.word-inner {
    display: inline-block;
}

/* Video Containers */
.video-container {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glow Effect */
.glow-effect {
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Badges */
.badge {
    display: inline-block;
    background-color: rgba(8, 83, 255, 0.1);
    color: var(--accent-color);
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.5rem;
    border: 1px solid rgba(8, 83, 255, 0.4);
}


/* =========================================================================
   LAYOUT MODULES
   ========================================================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.nav-cta:hover {
    background-color: var(--border-color);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    /* Offset for fixed navbar */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero .subtitle {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero .title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero .description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    margin-bottom: 4rem;
}

.video-wrapper {
    position: relative;
    margin-top: 2rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 2.5rem 2rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 83, 255, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background: rgba(8, 83, 255, 0.1);
    border-radius: 0;
    border: 1px solid rgba(8, 83, 255, 0.2);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Workflow Section (Technical Wireframe) */
.fluxo {
    background-color: var(--bg-color); /* Hides the grid only within this section */
    position: relative;
}

.fluxo-wireframe {
    position: relative;
    background-color: transparent; /* Changed from bg-color to allow fluxo background to work, but both act the same */
    z-index: 1;
}

.wireframe-arc-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Draws a perfectly proportioned semi-circle arching down from the top border */
.wireframe-arc {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    aspect-ratio: 1/1;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.fluxo-header {
    padding: 6rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.technical-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* solid table layout */
    z-index: 1;
    position: relative;
}

.technical-step {
    padding: 4rem 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.technical-step-last {
    border-right: none;
}

.intersection-handle {
    display: none !important;
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 10;
}

/* Placed precisely at the cross intersection of step columns and header */
.handle-top-right {
    top: -6px;
    right: -6px;
}

.step-video {
    aspect-ratio: 1/1;
    border-radius: 0;
    background: #0a0a0a;
}

.step-info {
    padding-right: 1rem;
}

.step-number {
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.step-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-info p {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .technical-steps {
        grid-template-columns: 1fr;
    }
    .technical-step {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .technical-step-last {
        border-bottom: none;
    }
    .hide-mobile {
        display: none;
    }
}

/* Benefícios Section */
.beneficios {
    padding: 8rem 0;
}

/* Vitrine Section */
.vitrine {
    padding: 8rem 0;
}

.vitrine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.vitrine-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: uppercase;
}

.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 3rem;
}

.vitrine-grid .vitrine-video:nth-child(even) {
    margin-top: 3rem;
}

.vitrine-video {
    border-radius: 0;
    overflow: visible;
    aspect-ratio: 4/5;
    background: #141414;
    transition: transform var(--transition-normal);
}

.vitrine-video:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

/* Pricing Section */
.pricing {
    padding: 8rem 0;
    position: relative;
}

/* Wrapper para centralizar glows e o card */
.pricing-card-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.card-ambient-glow {
    position: absolute;
    width: 70%;
    height: 50%;
    background-color: #0853ff;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.6;
}

/* Pricing Card Container */
.pricing-card {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    z-index: 1;
    display: flex;
    background-color: #000000;
    border: 1px solid var(--border-color);
}

/* Conteúdo central */
.pricing-content {
    padding: 4rem;
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}

.price-currency, .price-cents {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: uppercase;
}

.price-value {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
}

.trust-badge {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer Element */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer .copyright {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}


/* Carousel 3D Styles */
#vitrine-carousel .carousel-item {
  position: absolute;
  width: 250px; /* Tamanho fixo Desktop */
  aspect-ratio: 4 / 5;
  border-radius: 0 !important;
  background: #050505;
  border: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#vitrine-carousel .carousel-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

#vitrine-carousel {
    perspective: 2500px;
}

/* Regras específicas para evitar quebra no Celular */
@media (max-width: 768px) {
  #vitrine-carousel {
    perspective: 1200px !important; /* Lente mais próxima */
  }
  #vitrine-carousel .carousel-item {
    width: 160px; /* Card menor para caber na tela */
  }
}

.carousel-buttons {
  position: relative;
  z-index: 999; /* Garante que fique acima do 3D */
  pointer-events: auto;
}

.carousel-buttons .button {
  background: transparent;
  border: 2px solid #0055ff;
  color: #0055ff;
  font-family: inherit;
  font-weight: bold;
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-buttons .button:hover {
  background: #0055ff;
  color: #ffffff;
}

/* =========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================= */

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

    .section-title {
        font-size: 2rem;
    }

    .pricing-card-wrapper {
        max-width: 100%;
    }

    .pricing-content {
        padding: 3rem 1.5rem;
    }

    .price {
        margin-bottom: 1.5rem;
    }
    .price-value {
        font-size: 3.5rem;
    }
    .price-currency, .price-cents {
        font-size: 1.75rem;
    }

    .vitrine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .vitrine-grid .vitrine-video:nth-child(even) {
        margin-top: 2rem;
    }

    .vitrine-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 3rem;
    }

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

    /* --- NOVAS CORREÇÕES SOLICITADAS --- */
    
    /* 1. Correção do Título Hero Vazando */
    .hero .title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        word-wrap: break-word;
        hyphens: auto;
    }

    /* 2. Espaçamentos Gerais e Gap Gigante */
    .secao-site {
        padding: 50px 20px !important;
    }

    .fluxo-header {
        padding: 3rem 1rem !important;
    }

    /* 1. Subtítulo Hero Escondido */
    .hero .subtitle {
        margin-top: 2rem !important;
        position: relative;
        z-index: 10;
    }

    /* 2. Esticar Vídeo Hero (Borda a Borda) */
    .hero-video-wrapper {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-video-wrapper .video-container.main-video {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }

    /* 3. Benefícios igual ao Fluxo (Borda a Borda) */
    .beneficios .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .benefits-grid {
        gap: 0 !important;
    }
    .benefit-card {
        padding: 2.5rem 1rem !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    .benefit-card:last-child {
        border-bottom: none !important;
    }

    /* 4. Desencavalar Carrossel 3D */
    #vitrine-carousel {
        margin: 1.5rem 0 !important;
        min-height: 280px !important;
        height: 380px !important; /* Sobrescreve o 50vh do HTML */
        perspective: 900px !important; /* Câmera mais próxima do rosto */
    }

    #vitrine-carousel .carousel-item {
        width: 130px !important; /* Reduzido de 190px para mostrar os vizinhos */
    }

    .carousel-buttons {
        display: flex !important;
        gap: 15px !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 1.5rem !important;
    }
    .carousel-buttons .button {
        flex: 1 !important;
        max-width: 140px !important;
        padding: 12px 0 !important;
        text-align: center !important;
    }

    /* 5. Ajuste na Largura do Fluxo de Trabalho e alinhamento */
    .fluxo .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .technical-step {
        padding: 2rem 1rem !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .technical-step-last {
        border-bottom: none !important;
    }
}