:root {
    /* Colors */
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-surface: #161616;
    --bg-glass: rgba(22, 22, 22, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(74, 222, 128, 0.2);

    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;

    --accent-primary: #4ADE80;
    --accent-primary-hover: #22C55E;
    --accent-secondary: #86EFAC;

    --gradient-primary: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    --gradient-secondary: linear-gradient(135deg, #86EFAC 0%, #4ADE80 100%);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-negative {
    color: #EF4444;
    /* Red for negative emphasis */
}

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

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

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

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

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.w-full {
    width: 100%;
}

.ml-auto {
    margin-left: auto;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    width: 100%;
}

.bg-surface {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* Glassmorphism & UI Elements */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn i {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--text-secondary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-primary.btn-atrativo:not(:disabled) {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
    animation: pulseAtrativo 2.5s infinite ease-in-out;
    font-weight: 700;
    padding-left: 3rem;
    padding-right: 3rem;
}

@keyframes pulseAtrativo {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 222, 128, 0.7);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
        transform: scale(1);
    }
}

.btn-accent {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.btn-accent:hover:not(:disabled) {
    background: var(--accent-primary-hover);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* Background Glows */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.glow-1 {
    top: -200px;
    left: -200px;
}

.glow-2 {
    bottom: 0;
    right: -200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--accent-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

/* Hero Section */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 1rem;
    /* offset for header */
    overflow: hidden;
}

/* Premium Animated Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg-primary);
}

.hero-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
    opacity: 0.8;
    transform-origin: center;
    animation: gridFlow 30s linear infinite;
    will-change: transform;
}

.neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above the grid, below the aurora/spotlight */
    pointer-events: none;
    opacity: 0.8;
    /* Balanced brightness */
}

@keyframes gridFlow {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50px);
    }
}

.hero-aurora {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    mix-blend-mode: screen;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.aurora-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 60%);
    animation-delay: 0s;
}

.aurora-2 {
    bottom: -30%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.aurora-3 {
    top: 20%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.06) 0%, transparent 60%);
    animation-delay: -10s;
    animation-duration: 22s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(3%, 4%) scale(1.05);
    }

    66% {
        transform: translate(-3%, 2%) scale(0.95);
    }

    100% {
        transform: translate(1%, -4%) scale(1);
    }
}

.hero-spotlight {
    position: absolute;
    width: 800px;
    height: 800px;
    left: 0;
    top: 0;
    margin-left: -400px;
    margin-top: -400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(74, 222, 128, 0.02) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease;
    transform: translate(var(--mouse-x, 50vw), var(--mouse-y, 50vh));
    will-change: transform;
    pointer-events: none;
}

.hero.mouse-active .hero-spotlight {
    opacity: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    grid-template-areas:
        "content visual"
        "actions visual";
    gap: 1.5rem 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    grid-area: content;
    align-self: end;
}

.hero-visual {
    grid-area: visual;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.hero-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    grid-area: actions;
    align-self: start;
    display: flex;
    gap: 1rem;
}

/* Dashboard Stack Carousel */
.dashboard-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 16/14;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.dash-img {
    position: absolute;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.dash-img.pos-prev {
    transform: translateY(-30%) scale(0.85);
    z-index: 1;
    opacity: 0.5;
    filter: blur(4px);
}

.dash-img.pos-active {
    transform: translateY(0) scale(1);
    z-index: 3;
    opacity: 1;
    filter: blur(0);
}

.dash-img.pos-next {
    transform: translateY(30%) scale(0.85);
    z-index: 2;
    opacity: 0.5;
    filter: blur(4px);
}

/* Sections */
.section-header {
    margin-bottom: 4rem;
}

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Cards */
.card {
    padding: 2rem;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    text-align: center;
    animation: pulseGlow 3s infinite;
}

.card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-primary);
    animation: pulseGlow 3s infinite;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Pain Cards */
@keyframes pulseNegative {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.15);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes shakeNegative {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-3px);
    }
}

.pain-card {
    animation: pulseNegative 2s infinite;
}

.pain-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.02);
}

.pain-card .pain-icon {
    animation: pulseNegative 2s infinite;
    background: rgba(239, 68, 68, 0.05);
    color: #EF4444;
}

.pain-card:hover .pain-icon {
    animation: shakeNegative 0.4s ease-in-out;
}

/* Benefits */
@keyframes floatPositive {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.1);
    }

    50% {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px -5px rgba(134, 239, 172, 0.2);
        border-color: rgba(134, 239, 172, 0.3);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.1);
    }
}

@keyframes pulsePositive {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(134, 239, 172, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
    }
}

.benefit-card {
    animation: floatPositive 4s ease-in-out infinite;
}

.benefit-card .benefit-icon {
    animation: pulsePositive 3s ease-in-out infinite;
    background: rgba(134, 239, 172, 0.1);
    color: var(--accent-secondary);
}

/* Services */
.service-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.service-card i {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.service-card:hover i {
    color: var(--accent-primary);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

.services-network {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 1;
}

@keyframes networkFlow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 50px;
    }
}

.services-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    -webkit-mask-image: radial-gradient(ellipse at center bottom, black 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at center bottom, black 10%, transparent 70%);
    animation: networkFlow 3s linear infinite;
    pointer-events: none;
}

.services-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.services-flex .service-card {
    flex: 1 1 250px;
    max-width: 280px;
}

@keyframes networkGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(74, 222, 128, 0.05);
    }

    50% {
        box-shadow: 0 0 25px rgba(74, 222, 128, 0.15);
        border-color: rgba(74, 222, 128, 0.3);
    }
}

.tech-card {
    animation: networkGlow 4s infinite ease-in-out;
}

.services-flex .tech-card:nth-child(1) {
    animation-delay: 0.0s;
}

.services-flex .tech-card:nth-child(2) {
    animation-delay: 0.3s;
}

.services-flex .tech-card:nth-child(3) {
    animation-delay: 0.6s;
}

.services-flex .tech-card:nth-child(4) {
    animation-delay: 0.9s;
}

.services-flex .tech-card:nth-child(5) {
    animation-delay: 1.2s;
}

.services-flex .tech-card:nth-child(6) {
    animation-delay: 1.5s;
}

.services-flex .tech-card:nth-child(7) {
    animation-delay: 1.8s;
}

.network-beam-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.network-beam {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    animation: beamDrop 2s infinite linear;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

@keyframes beamDrop {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}

.highlight-pulse {
    animation: pulseGlow 3s infinite;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;
    position: relative;
}

.timeline::after {
    content: '';
    position: absolute;
    /* Item padding (1.5rem/24px) + half circle (32px) = 56px */
    top: 56px;
    left: 64px;
    width: 2px;
    height: calc(100% - 112px);
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    z-index: 0;
    box-shadow: 0 0 15px var(--accent-primary);
    transform: translateX(-50%);
}

.mini-timeline::after {
    display: none;
}

@keyframes straightBeam {
    0% {
        top: 32px;
        opacity: 0;
        transform: translateY(-100px);
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 32px);
        opacity: 0;
        transform: translateY(0);
    }
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    transition: all var(--transition-normal);
}

.timeline-item:first-child {
    border: 2px solid var(--accent-primary);
    background: rgba(74, 222, 128, 0.03);
}

.timeline-item:nth-child(1) .timeline-number { border-color: rgba(74, 222, 128, 1); }
.timeline-item:nth-child(2) .timeline-number { border-color: rgba(74, 222, 128, 0.7); }
.timeline-item:nth-child(3) .timeline-number { border-color: rgba(74, 222, 128, 0.4); }
.timeline-item:nth-child(4) .timeline-number { border-color: rgba(74, 222, 128, 0.2); }

.timeline-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 2;
    flex-shrink: 0;
    color: var(--accent-primary);
    transition: all var(--transition-normal);
}

.timeline-item.active .timeline-number {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    animation: pulseGlow 3s infinite;
}

.timeline-item.active {
    margin-top: 40px;
}

.timeline-stamp {
    position: absolute;
    right: auto;
    left: -15px;
    top: -40px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
    animation: bounceStampMobile 2s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

/* Arrow removed */

@keyframes bounceStampMobile {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.timeline-content {
    padding-top: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Diff Cards */
.diff-card {
    padding: 2.5rem;
}

.diff-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.diff-header i {
    color: var(--accent-secondary);
}

.diff-card p {
    color: var(--text-secondary);
}

/* FAQ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding: 0 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
}

.cta-card {
    position: relative;
    padding: 5rem 3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-hover);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.05);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseCardGlow 4s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes pulseCardGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.cta-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.cta-microcopy {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.cta-microcopy i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Quiz Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 700px;
    background: var(--bg-secondary);
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.quiz-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 11%;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.quiz-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
    width: 100%;
}

.quiz-step.quiz-loading.active,
.quiz-step.quiz-final.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 400px; /* Garante espaço para centralização */
}

@media (max-width: 640px) {
    .quiz-content {
        padding: 2rem 1.25rem;
        gap: 1rem;
    }
    .quiz-step.quiz-loading.active,
    .quiz-step.quiz-final.active {
        min-height: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-step h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .quiz-step h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.02);
}

.quiz-option:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.quiz-option input {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.quiz-option.selected {
    border-color: var(--accent-primary);
    background: rgba(74, 222, 128, 0.05);
}

.form-group {
    margin-bottom: 1.25rem;
}

.final-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
}

.final-actions a,
.final-actions button {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .final-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}

.quiz-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.2rem !important;
    padding-right: 3rem !important;
}

.quiz-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.quiz-final {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon i {
    width: 40px;
    height: 40px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "visual"
            "actions";
        text-align: center;
        gap: 1rem 4rem;
    }

    .hero-subtitle {
        margin-bottom: 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .dashboard-stack {
        aspect-ratio: 16/7.5;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .dash-img {
        width: 75%;
    }

    .dash-img.pos-prev {
        transform: translateX(-30%) scale(0.85);
    }

    .dash-img.pos-active {
        transform: translateX(0) scale(1);
    }

    .dash-img.pos-next {
        transform: translateX(30%) scale(0.85);
    }
}

@media (max-width: 992px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem 4rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 4rem;
        --container-padding: 1rem;
    }

    .header {
        padding: 1rem 0;
    }

    .logo img {
        height: 32px !important;
    }

    .nav .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .hero {
        padding-top: 5rem;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem 4rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .dashboard-stack {
        width: 100%;
        margin-top: 0;
        aspect-ratio: 16/7.5;
    }

    .dash-img {
        width: 90%;
    }

    .dash-img.pos-prev {
        transform: translateX(-10%) scale(0.85);
    }

    .dash-img.pos-active {
        transform: translateX(0) scale(1);
    }

    .dash-img.pos-next {
        transform: translateX(10%) scale(0.85);
    }

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

    .section-header {
        margin-bottom: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .timeline-item {
        gap: 1.25rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .timeline-item.active {
        margin-top: 40px;
    }

    .diff-card {
        padding: 1.5rem;
    }

    .timeline::after {
        /* Item padding (1rem) + Half circle (30px) */
        left: calc(1rem + 30px); 
        z-index: 0;
        transform: translateX(-50%);
    }

    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        flex-shrink: 0;
        margin: 0;
        background: var(--bg-primary);
    }
    
    /* Gradient is now in base styles */
    
    .timeline-content {
        padding-top: 0;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .timeline-stamp {
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        padding: 6px 12px;
        top: -50px;
        background: var(--accent-primary);
        color: var(--bg-primary);
    }
    
    /* Arrow removed */

    .cta-title {
        font-size: 2.25rem;
    }

    .cta-subtitle {
        font-size: 1.125rem;
    }

    .quiz-content {
        padding: 1.5rem;
    }

    .quiz-step h3 {
        font-size: 1.375rem;
    }

    .quiz-footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-footer .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .footer-links {
        text-align: left;
    }

    .services-flex .service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

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

    .cta-subtitle {
        font-size: 1rem;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

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

    .cta-title {
        font-size: 1.875rem;
    }

    /* Quiz Responsive Refinements */
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .quiz-content {
        padding: 1.5rem 1rem;
    }

    .quiz-step h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .quiz-option {
        padding: 1rem;
        align-items: flex-start;
    }

    .quiz-option input {
        margin-top: 0.2rem;
    }

    .quiz-option span {
        font-size: 0.9rem;
    }

    .mini-timeline {
        gap: 0.5rem !important;
    }

    .timeline-item {
        gap: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .mini-timeline .timeline-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }

    .timeline-content h4 {
        font-size: 0.95rem !important;
    }

    .timeline-content p {
        font-size: 0.75rem !important;
    }

    .consultant-profile {
        padding: 0.5rem 1rem 0.5rem 0.5rem !important;
        border-radius: 100px !important;
        flex-direction: row !important;
        text-align: left !important;
        gap: 0.75rem !important;
        margin: 0 auto 1rem auto !important;
        width: fit-content !important;
    }

    .consultant-img {
        width: 50px !important;
        height: 50px !important;
    }

    .consultant-profile h4 {
        font-size: 1rem !important;
    }

    .consultant-profile p {
        font-size: 0.75rem !important;
    }

    .quiz-footer {
        padding: 1rem;
        gap: 0.75rem;
    }

    .quiz-footer .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}