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

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --text: #e8e8ed;
    --text-secondary: #8a8a9a;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --border: rgba(255,255,255,0.06);
    --shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
    --input-bg: #1a1a25;
    --input-text: #ffffff;
    --video-opacity: 0.25;
    --overlay-color: rgba(0,0,0,0.5);
    --card-opacity: 0.7;
    --card-blur: 10px;
    --transition: 0.35s;
}

[data-theme="light"] {
    --bg: #f8f8fc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #5a5a6e;
    --accent: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.2);
    --border: rgba(0,0,0,0.06);
    --shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
    --input-bg: #f0f0f5;
    --input-text: #1a1a2e;
    --video-opacity: 0.12;
    --overlay-color: rgba(255,255,255,0.6);
    --card-opacity: 0.75;
    --card-blur: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Fondo de vídeo */
.bg-video {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    opacity: var(--video-opacity);
    transition: opacity var(--transition);
    pointer-events: none;
}
.bg-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--overlay-color);
    z-index: 0; transition: background var(--transition);
}

/* Partículas sutiles */
.bg-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}
.particle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent);
    opacity: 0.12; animation: floatUp linear infinite; filter: blur(1px);
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.3) rotate(0deg); opacity: 0; }
    15% { opacity: 0.25; }
    100% { transform: translateY(-15vh) scale(1.3) rotate(40deg); opacity: 0; }
}

/* Toggle tema minimalista */
.theme-toggle {
    position: fixed; top: 1.25rem; left: 1.25rem;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border: 1px solid var(--border); border-radius: 14px;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; color: var(--text-secondary);
    transition: all 0.3s; z-index: 100;
    backdrop-filter: blur(12px); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.theme-toggle:hover {
    color: var(--accent); border-color: var(--accent);
    transform: scale(1.06);
}

/* Header flotante */
.header {
    position: relative; z-index: 10;
    padding: 1rem 2rem;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo-small {
    font-size: 1.6rem; font-weight: 600;
    color: var(--text); letter-spacing: -0.02em;
}
.nav a {
    color: var(--text-secondary); text-decoration: none;
    margin-left: 1.8rem; font-weight: 450; transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--accent); }

/* Main content */
.main-content {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 2rem;
}

/* Hero */
.hero {
    display: flex; align-items: center; gap: 3rem;
    padding: 4rem 0; flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 {
    font-size: 3rem; font-weight: 700; line-height: 1.2;
    margin-bottom: 1rem; letter-spacing: -0.02em;
}
.hero-text p {
    font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-premium {
    padding: 0.75rem 1.8rem; border-radius: 10px;
    font-weight: 500; text-decoration: none; display: inline-block;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--accent); color: white;
}
.btn-primary:hover { background: #7c3aed; transform: translateY(-1px); box-shadow: 0 6px 16px var(--accent-glow); }
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-premium {
    background: linear-gradient(135deg, #f472b6, #c084fc);
    color: white;
}
.btn-premium:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(244,114,182,0.3); }

.hero-visual { flex: 1; min-width: 280px; }
.mockup-window {
    background: var(--surface); border-radius: 18px;
    padding: 1.5rem; box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.mockup-title { font-weight: 500; margin-bottom: 1rem; color: var(--text-secondary); }
.mockup-line {
    height: 8px; background: var(--border); border-radius: 4px;
    margin-bottom: 0.8rem;
}
.mockup-line.short { width: 50%; }

/* Features */
.features {
    padding: 4rem 0; text-align: center;
}
.features h2 { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 1.8rem;
}
.feature-card {
    background: color-mix(in srgb, var(--surface) var(--card-opacity), transparent);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 2rem; backdrop-filter: blur(var(--card-blur));
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }

/* How it works */
.how-it-works {
    padding: 4rem 0; text-align: center;
}
.how-it-works h2 { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; }
.steps {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
}
.step {
    background: color-mix(in srgb, var(--surface) var(--card-opacity), transparent);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 2rem; flex: 1; min-width: 200px;
}
.step-number {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: white;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; margin-bottom: 1rem;
}

/* Pricing */
.pricing {
    padding: 4rem 0; text-align: center;
}
.pricing h2 { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; }
.pricing-grid {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
}
.plan {
    background: color-mix(in srgb, var(--surface) var(--card-opacity), transparent);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 2rem; flex: 1; min-width: 250px;
    position: relative;
}
.plan.popular { border-color: var(--accent); }
.badge {
    position: absolute; top: -10px; right: 20px;
    background: var(--accent); color: white;
    padding: 0.25rem 1rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 500;
}
.price {
    font-size: 2.5rem; font-weight: 700; margin: 1rem 0;
}
.price span { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
.plan ul {
    list-style: none; margin: 1.5rem 0; text-align: left; padding-left: 1rem;
}
.plan li { margin-bottom: 0.4rem; color: var(--text-secondary); }

/* Footer */
.footer {
    position: relative; z-index: 2;
    text-align: center; padding: 2rem;
    color: var(--text-secondary); opacity: 0.6;
    font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    z-index: 1000; display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-card {
    background: var(--surface); border-radius: 24px;
    padding: 2.5rem; max-width: 400px; width: 90%;
    box-shadow: var(--shadow); position: relative;
    animation: fadeInUp 0.3s ease;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.4rem;
    color: var(--text-secondary); cursor: pointer;
}
.modal-card h2 { font-weight: 600; margin-bottom: 1.5rem; }
.input-group {
    text-align: left; margin-bottom: 1.2rem;
}
.input-group label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text-secondary); }
.input-group input {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--input-bg); color: var(--input-text);
    border: 1px solid var(--border); border-radius: 10px;
    outline: none; transition: border 0.2s;
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.extra-links {
    display: flex; justify-content: center; gap: 0.5rem;
    margin-top: 1rem; font-size: 0.85rem; color: var(--text-secondary);
}
.extra-links a { color: var(--text-secondary); text-decoration: none; }
.extra-links a:hover { color: var(--accent); }
.premium-banner {
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

@media (max-width: 768px) {
    .hero { flex-direction: column; }
    .nav { display: none; }
}