:root {
    /* Brand Colors - Dark Theme (Black/Teal/Cyan/Ice White) */
    --color-bg: #030712;
    /* Very dark blue/black */
    --color-surface: rgba(15, 23, 42, 0.4);
    --color-surface-hover: rgba(30, 41, 59, 0.6);

    --color-cyan: #22d3ee;
    --color-teal: #14b8a6;
    --color-cyan-glow: rgba(34, 211, 238, 0.5);

    --color-text: #f8fafc;
    --color-text-dim: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.08);

    --glass-border: 1px solid var(--color-border);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Spacing system with clamp for responsiveness */
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(1.5rem, 4vw, 3rem);
    --space-lg: clamp(3rem, 6vw, 5rem);
    --space-xl: clamp(4rem, 8vw, 7rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fallback background if browser disables WEBGL */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.15), transparent 50%),
        radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 50%),
        var(--color-bg);
    z-index: -2;
    pointer-events: none;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    /* Let the stars shine */
}

.font-sora {
    font-family: 'Sora', sans-serif;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pt-20 {
    padding-top: 5rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.px-4 {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.p-6 {
    padding: var(--space-sm);
}

.p-8 {
    padding: var(--space-md);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Removed min-h-screen to avoid huge empty gaps on mobile */
.bg-black {
    background-color: #000;
}

.bg-bg {
    background-color: var(--color-bg);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff, var(--color-cyan) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan {
    color: var(--color-cyan);
}

.text-white {
    color: #fff;
}

.text-gray-400 {
    color: var(--color-text-dim);
}

.text-gray-500 {
    color: #64748b;
}

.text-gray-600 {
    color: #475569;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.1;
}

.font-bold {
    font-weight: 700;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.inline-flex {
    display: inline-flex;
}

.rounded-xl {
    border-radius: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

.leading-relaxed {
    line-height: 1.625;
}

.border-t {
    border-top: 1px solid var(--color-border);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Layouts */
.section-padding {
    padding: var(--space-xl) 0;
}

.grid {
    display: grid;
    gap: clamp(1rem, 4vw, 2rem);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero adjust */
    .hero {
        min-height: auto;
        /* Remove max(100vh, 600px) estrito */
        padding-top: 180px;
        /* Distância fixa, porém elegante do header */
        padding-bottom: var(--space-xl);
    }

    .hero-content {
        margin-top: 0;
        /* Remove a margem enorme do topo antiga */
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:text-6xl {
        font-size: 3.75rem;
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* Glassmorphism */
.glass {
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.glass {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    background: var(--color-surface-hover);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 10px 40px -10px rgba(34, 211, 238, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
}

.brand-logo {
    height: clamp(32px, 6vw, 42px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Remove force-fundos pretos */
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* Buttons & CTA */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-cyan), var(--color-teal));
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.btn-large {
    padding: clamp(1rem, 3vw, 1.25rem) clamp(2rem, 5vw, 3rem);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    border-radius: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cta-button {
        width: 100%;
        text-align: center;
    }

    .header .cta-button {
        width: auto;
    }

    /* Compensa o header fixo no mobile */
    .hero {
        padding-top: 140px;
        min-height: auto;
    }

    /* Hero content forces height */
}

/* 3D Button Effect */
.btn-3d {
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transform: perspective(1px) translateZ(0);
}

.btn-3d:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.btn-3d:active {
    transform: translateY(1px);
}

/* Shine sweep animation inside button */
.shine-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine 3.5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Misc UI Elements */
.bullet {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    border: 1px solid var(--color-cyan);
    padding: 0.35rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    background: rgba(34, 211, 238, 0.1);
    color: var(--color-cyan);
    font-weight: 500;
}

.feature-icon {
    font-size: 2.5rem;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

/* Steps Line */
.steps-container {
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--color-cyan);
    margin-left: auto;
    margin-right: auto;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), inset 0 0 10px rgba(34, 211, 238, 0.2);
}

@media (min-width: 1024px) {
    .step-line {
        position: absolute;
        top: 35px;
        left: 16%;
        width: 68%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
        z-index: 1;
        opacity: 0.4;
    }
}

/* FAQ Details */
details {
    transition: all 0.3s ease;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(34, 211, 238, 0.4);
}

details[open] .toggle-icon {
    transform: rotate(45deg);
    color: #fff;
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Glow Orb (Bottom CTA) */
.glow-orb {
    width: clamp(200px, 50vw, 400px);
    height: clamp(200px, 50vw, 400px);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    position: absolute;
    bottom: -10vw;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Scroll Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.heading-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}