:root {
    /* Colors */
    --bg-dark: #0f172a;
    --bg-darker: #0b1121;
    --bg-surface: #1e293b;
    --bg-surface-light: #334155;
    
    --primary: #f97316; /* Orange */
    --primary-hover: #ea580c;
    --primary-glow: rgba(249, 115, 22, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-detran: #22c55e; /* Green for Detran approval */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-darker: #e2e8f0;
    --bg-surface: #ffffff;
    --bg-surface-light: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    
    --primary-glow: rgba(249, 115, 22, 0.2);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Base */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

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

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

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
    --header-text: #f8fafc;
}

header.scrolled {
    background: var(--bg-surface);
    opacity: 0.95;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    --header-text: var(--text-main);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--header-text);
}

.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--header-text);
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge-detran {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-detran);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.detran-badge-img {
    height: 16px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border-radius: 4px;
}

.theme-toggle-btn {
    background: var(--bg-surface-light);
    color: var(--text-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05); /* for parallax or smooth entrance */
    animation: scaleBg 20s infinite alternate;
}

@keyframes scaleBg {
    from { transform: scale(1.05); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.7) 50%, rgba(15,23,42,0.3) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-text .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #f8fafc;
}

.hero-text h1 span {
    color: var(--primary);
    position: relative;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero .btn-secondary {
    color: #f8fafc;
    border-color: #94a3b8;
}

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

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: right;
    min-width: 250px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateX(-10px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 1rem;
    font-weight: 500;
    color: #f8fafc;
}

/* Section Title */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary);
}

/* Sobre */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    height: 500px;
    border-radius: 20px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-image-caption {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-image-caption i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-image-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.about-image-caption p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-list i {
    color: var(--accent-detran);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.cat-card {
    background: var(--bg-surface);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.05));
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.cat-card:hover .cat-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.cat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.cat-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.cat-card:hover .cat-link {
    opacity: 1;
    transform: translateY(0);
}

.cta-banner {
    background: linear-gradient(135deg, var(--bg-surface), #1e293b);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-banner p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-info p {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 400px;
}

.logo.footer-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: var(--text-main);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer ul li {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
}

.footer ul li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    background: var(--bg-dark);
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fluid Animations & Cursor */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* Scroll Reveal Classes */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="bottom"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(0.9); }

.revealed {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Comparison Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comp-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-card {
    border-top: 4px solid var(--accent-detran);
}

.illegal-card {
    border-top: 4px solid #ef4444;
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.legal-card .comp-header i {
    font-size: 2rem;
    color: var(--accent-detran);
}

.illegal-card .comp-header i {
    font-size: 2rem;
    color: #ef4444;
}

.comp-header h3 {
    font-size: 1.5rem;
}

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
}

.comp-list i {
    margin-top: 4px;
    color: var(--accent-detran);
}

.illegal-list i {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.95) 100%);
    }

    .hero-text .subtitle {
        margin: 0 auto 20px auto;
    }

    .hero-text p {
        margin: 0 auto 40px auto;
    }

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

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-card {
        text-align: center;
        min-width: 200px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .check-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-actions .btn-primary, .badge-detran {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
}
