/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--text); background: var(--surface-alt); }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== VARIABLES ===== */
:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --primary-50: #ecfeff;
    --primary-100: #cffafe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --surface-dim: #e2e8f0;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --max-w: 1200px;
}

/* ===== DARK MODE ===== */
html.dark {
    --primary: #22d3ee;
    --primary-dark: #06b6d4;
    --primary-light: #67e8f9;
    --primary-50: #083344;
    --primary-100: #164e63;
    --accent: #fbbf24;
    --accent-dark: #f59e0b;
    --surface: #0f172a;
    --surface-alt: #1e293b;
    --surface-dim: #334155;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --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.5);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
}
html.dark body { background: #0a0f1a; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); }
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }
.gap-8 { gap: 4rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-4 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 4rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ===== COMPONENTS ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: var(--shadow-lg);
}
.card-highlight {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.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.05em;
}
.badge-primary { background: var(--primary-100); color: var(--primary-dark); }
.badge-accent { background: #fef3c7; color: #92400e; }
html.dark .badge-accent { background: #78350f; color: #fbbf24; }

.divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
    color: var(--primary);
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}
.theme-toggle:hover {
    background: var(--surface-alt);
    color: var(--text);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--primary-50) 0%, transparent 70%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (max-width: 768px) {
    .hero { padding: 6rem 0 3rem; }
    .hero-cta { flex-direction: column; }
}

/* ===== SCREENSHOT MOCKUP ===== */
.mockup-container {
    margin-top: 4rem;
    position: relative;
}
.mockup-browser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}
.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}
.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #f59e0b; }
.mockup-dot-green { background: #10b981; }
.mockup-url {
    flex: 1;
    margin-left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-family: monospace;
}
.mockup-body {
    padding: 0;
    background: #f9fafb;
}
html.dark .mockup-body { background: #1e293b; }
.mockup-body svg { width: 100%; height: auto; display: block; }

/* ===== FEATURES ===== */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.feature-icon-primary { background: var(--primary-50); color: var(--primary); }
.feature-icon-accent { background: #fef3c7; color: #d97706; }
html.dark .feature-icon-accent { background: #78350f; color: #fbbf24; }
.feature-icon-green { background: #d1fae5; color: #059669; }
html.dark .feature-icon-green { background: #064e3b; color: #34d399; }
.feature-icon-purple { background: #ede9fe; color: #7c3aed; }
html.dark .feature-icon-purple { background: #2e1065; color: #a78bfa; }

/* ===== PRICING ===== */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}
.pricing-card.popular::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
}
.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.pricing-amount small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.pricing-free {
    font-size: 3rem;
    font-weight: 800;
    color: var(--success);
}
.pricing-feature-list {
    text-align: left;
    margin: 1.5rem 0;
}
.pricing-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.pricing-feature-list li svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--success);
}
.pricing-feature-list li.disabled {
    opacity: 0.4;
}

/* ===== SCREENSHOT GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.gallery-label {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text);
}
.gallery-label small {
    display: block;
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--surface);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
}
.faq-question:hover {
    background: var(--surface-alt);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.85); }
.btn-white {
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
}
.btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ===== STAT COUNTER ===== */
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 99;
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--primary); }

/* ===== TESTIMONIAL ===== */
.testimonial {
    padding: 1.5rem;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}
.testimonial-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}
.testimonial-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease-out both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ===== DARK MODE CONTRAST FIXES ===== */
html.dark .card h3 { color: var(--text) !important; }
html.dark .card p { color: var(--text-secondary) !important; }
html.dark .card .text-secondary { color: var(--text-secondary) !important; }
html.dark .pricing-card .pricing-amount { color: var(--text) !important; }
html.dark .pricing-card .pricing-amount small { color: var(--text-secondary) !important; }
html.dark .faq-chevron { color: var(--text-secondary) !important; }
html.dark .gallery-label { color: var(--text) !important; }
html.dark .gallery-label small { color: var(--text-secondary) !important; }
html.dark .mockup-toolbar { color: var(--text-secondary) !important; }
html.dark .mockup-dot-red { background: #ef4444 !important; }
html.dark .mockup-dot-yellow { background: #f59e0b !important; }
html.dark .mockup-dot-green { background: #10b981 !important; }
html.dark .stat-number { color: var(--primary-light) !important; }
html.dark .stat-label { color: var(--text-secondary) !important; }
html.dark .badge-primary { color: #ecfeff !important; background: #083344 !important; }
html.dark .footer-title { color: var(--text-secondary) !important; }
html.dark .footer-bottom { color: var(--text-muted) !important; }
html.dark .footer-brand { color: var(--primary-light) !important; }
html.dark .navbar-brand { color: var(--primary-light) !important; }
html.dark .pricing-free { color: #34d399 !important; }
html.dark .pricing-feature-list li svg { color: #34d399 !important; }
html.dark .btn-primary { background: #083344 !important; color: #ffffff !important; }
html.dark .btn-outline { border-color: #22d3ee !important; color: #22d3ee !important; }
html.dark .btn-outline:hover { background: #083344 !important; color: #ffffff !important; }
html.dark .btn-white { background: #ffffff !important; color: #0e7490 !important; }

/* Ponto hero badge dark */
html.dark .hero .badge-primary { background: #083344 !important; color: #ecfeff !important; }

/* How it works step numbers */
html.dark .card div[style*="font-size:3rem"] { color: var(--primary-light) !important; }

/* Section background overrides for dark */
html.dark section[style*="background:var(--surface-alt)"],
html.dark .section[style*="background:var(--surface-alt)"] { background: #111827 !important; }
