:root {
    /* Core Colors - Ótima Inovações Digitais Brand */
    --primary: #3A86FF;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --primary-glow: rgba(58, 134, 255, 0.25);
    
    --secondary: #6a0dad;
    --secondary-dark: #5B0BA3;
    --secondary-light: #8B5CF6;
    
    --accent: #00D4FF;
    --accent-dark: #00B4DB;
    
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --danger: #EF4444;
    --error: #EF4444;
    
    /* Light Theme (Default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F0F4FF;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(58, 134, 255, 0.03);
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --border: rgba(58, 134, 255, 0.12);
    --border-glow: rgba(58, 134, 255, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3A86FF 0%, #6a0dad 100%);
    --gradient-secondary: linear-gradient(135deg, #00D4FF 0%, #3A86FF 100%);
    --gradient-accent: linear-gradient(135deg, #6a0dad 0%, #3A86FF 50%, #00D4FF 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(58, 134, 255, 0.1) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, rgba(106, 13, 173, 0.08) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, rgba(0, 212, 255, 0.06) 0px, transparent 50%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(58, 134, 255, 0.2);
    --shadow-card: 0 4px 20px rgba(58, 134, 255, 0.1);
    
    /* Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #070B14;
    --bg-secondary: #0D1424;
    --bg-card: rgba(13, 20, 36, 0.9);
    --bg-glass: rgba(58, 134, 255, 0.05);
    
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    
    --border: rgba(58, 134, 255, 0.15);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(58, 134, 255, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(58, 134, 255, 0.2) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, rgba(106, 13, 173, 0.15) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, rgba(0, 212, 255, 0.1) 0px, transparent 50%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.tomorrow-regular{
    font-family: "Tomorrow", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-mesh {
    position: fixed;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: -1;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(58, 134, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 134, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .bg-grid {
    background-image: 
        linear-gradient(rgba(58, 134, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 134, 255, 0.06) 1px, transparent 1px);
}

.bg-noise {
    position: fixed;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .bg-noise {
    opacity: 0.03;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-toggle:hover {
    border-color: var(--primary);
}

.theme-toggle-thumb {
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.theme-toggle-thumb svg {
    width: 14px;
    height: 14px;
    color: white;
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(20px);
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 999;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-text {
    font-family: "Tomorrow", sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.12);
    top: -200px;
    right: -200px;
}

[data-theme="dark"] .hero-orb-1 {
    background: rgba(99, 102, 241, 0.15);
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(236, 72, 153, 0.08);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

[data-theme="dark"] .hero-orb-2 {
    background: rgba(236, 72, 153, 0.1);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    max-width: 600px;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    z-index: 1;
}

.hero-mockup {
    position: relative;
    perspective: 1000px;
}

.hero-mockup-main {
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s var(--ease-out-expo);
    background: var(--bg-card);
}

[data-theme="dark"] .hero-mockup-main {
    filter: brightness(0.9);
}

.hero-mockup:hover .hero-mockup-main {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-mockup-float {
    position: absolute;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.hero-mockup-float-1 {
    width: 170px;
    top: 30%;
    right: -20px;
    animation-delay: 0s;
}

.hero-mockup-float-2 {
    width: 175px;
    bottom: 15%;
    left: -40px;
    animation-delay: -2s;
}

.hero-mockup-float-3 {
    width: 200px;
    bottom: 5%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.float-card {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.float-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-card-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.float-card-content {
    flex: 1;
    min-width: 0;
}

.float-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
}

.float-card-value {
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 0 2rem;
    line-height: 1.7;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hero-btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.hero-btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.hero-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== MAIN INPUT CARD ===== */
.input-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.input-section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.input-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.input-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
    pointer-events: none;
}

.input-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

[data-theme="dark"] .input-card-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.input-wrapper {
    position: relative;
    z-index: 1;
}

.input-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.input-field-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 1.25rem 1.5rem;
    padding-left: 3.5rem;
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.analyze-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.analyze-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.analyze-btn:hover::before {
    opacity: 1;
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.analyze-btn.loading .btn-text { display: none; }
.analyze-btn.loading .btn-loader { display: block; }

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.trust-item i {
    color: var(--success);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 8rem 2rem;
    position: relative;
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.features-illustration {
    position: relative;
}

.features-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.features-content {
    max-width: 500px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
}

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

/* Feature card with image */
.feature-card-illustrated {
    display: flex;
    flex-direction: column;
}

.feature-card-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
}

[data-theme="dark"] .feature-card-image {
    filter: brightness(0.85);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.feature-icon i,
.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #f9f9f9;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.how-it-works-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-illustration {
    position: relative;
    display: flex;
    justify-content: center;
}

.process-illustration {
    width: 100%;
    max-width: 450px;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    align-items: start;
}

.step-image {
    width: 180px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

[data-theme="dark"] .step-image {
    filter: brightness(0.9);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 80px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

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

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .loading-overlay {
    background: var(--bg-primary);
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.loading-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loading-ring:nth-child(1) {
    border-top-color: var(--primary);
    animation: spin 1.5s linear infinite;
}

.loading-ring:nth-child(2) {
    inset: 15px;
    border-right-color: var(--secondary);
    animation: spin 2s linear infinite reverse;
}

.loading-ring:nth-child(3) {
    inset: 30px;
    border-bottom-color: var(--accent);
    animation: spin 2.5s linear infinite;
}

.loading-center {
    position: absolute;
    inset: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.loading-center i {
    width: 48px;
    height: 48px;
    color: white;
    animation: pulse 1s ease-in-out infinite;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-status {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.loading-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    width: 0%;
    transition: width 0.5s ease;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.loading-step.active {
    color: var(--text-primary);
}

.loading-step.completed {
    color: var(--success);
}

.loading-step i {
    width: 20px;
    height: 20px;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    display: none;
    padding: 8rem 2rem 4rem;
}

.results-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.company-info {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.company-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.company-details h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

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

.company-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.meta-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
}

/* Score Cards */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    position: relative;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s var(--ease-out-expo);
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-max {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.score-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.score-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Recommendations */
.recommendations {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.recommendations h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recommendations h3 i {
    color: var(--warning);
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateX(4px);
}

.recommendation-priority {
    width: 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.recommendation-priority.high { background: var(--error); }
.recommendation-priority.medium { background: var(--warning); }
.recommendation-priority.low { background: var(--success); }

.recommendation-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.recommendation-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.cta-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-illustration {
        order: -1;
    }
    
    .hero-mockup-main {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-layout,
    .how-it-works-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        grid-template-columns: auto 1fr;
    }
    
    .step-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .input-card {
        padding: 2rem 1.5rem;
    }

    .features,
    .how-it-works {
        padding: 4rem 1rem;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .hero-mockup-float {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SOCIAL PROOF SECTION ===== */
.social-proof {
    padding: 4rem 2rem;
    background: var(--bg-primary);
    overflow: hidden;
}

.logos-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.logos-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.logo-item {
    opacity: 0.4;
    transition: opacity 0.3s ease;
    color: var(--text-muted);
}

.logo-item:hover {
    opacity: 0.8;
}

.logo-item svg {
    height: 30px;
    width: auto;
}

/* ===== RESULTS INFO CARDS ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.back-btn i, .back-btn svg {
    width: 16px;
    height: 16px;
}

/* Company Badges */
.company-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.badge-info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.badge-neutral {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

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

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.info-card-wide {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .info-card-wide {
        grid-column: span 1;
    }
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.info-card-header i, .info-card-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.info-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-card-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-card-content p {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-content i, .info-card-content svg {
    color: var(--text-muted);
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
}

/* Address Styles */
.address-main {
    font-weight: 500;
    color: var(--text-primary);
}

.address-city {
    font-weight: 500;
}

.address-cep, .address-ibge {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tax Styles */
.tax-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--bg-glass);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.tax-badge {
    font-weight: 600;
    font-size: 0.875rem;
}

.tax-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tax-regime {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tax-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tax-value {
    font-weight: 600;
    color: var(--primary);
}

/* Partners Styles */
.partner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.partner-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.partner-item:last-child {
    margin-bottom: 0;
}

.partner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.partner-info {
    flex: 1;
}

.partner-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.partner-role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.partner-since, .partner-age {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CNAEs Styles */
.cnae-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    padding: 0.75rem;
    background: var(--bg-glass);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    align-items: center;
}

.cnae-item:last-child {
    margin-bottom: 0;
}

.cnae-principal {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    grid-template-columns: auto auto 1fr;
}

.cnae-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.cnae-code {
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.cnae-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cnaes-secondary-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 1rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cnaes-secondary-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cnaes-secondary-list::-webkit-scrollbar {
    width: 4px;
}

.cnaes-secondary-list::-webkit-scrollbar-track {
    background: var(--bg-glass);
    border-radius: 2px;
}

.cnaes-secondary-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.cnaes-secondary-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== ADDITIONAL UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

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

/* Smooth transitions for theme change */
body,
.nav,
.input-card,
.feature-card,
.score-card,
.company-info,
.recommendations,
.cta-section,
.info-card,
footer {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.mb-2{
    margin-bottom: 2rem;
}
.mt-2{
    margin-top: 2rem;
}