/*
Theme Name: PBN Brasil Clean Dark
Theme URI: https://pbnbrasil.com.br
Description: Tema clean e minimalista dark para PBN Brasil
Version: 1.0.0
Author: PBN Brasil
*/

/* ============================================
   DESIGN SYSTEM
============================================ */
:root {
    --black: #000000;
    --bg: #09090b;
    --bg-subtle: #0f0f11;
    --card: #141416;
    --card-hover: #1a1a1d;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --white: #fafafa;
    --gray-100: #e4e4e7;
    --gray-200: #a1a1aa;
    --gray-300: #71717a;
    --gray-400: #52525b;
    --gray-500: #3f3f46;
    
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.15);
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

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

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--black);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 0.9rem;
    color: var(--gray-200);
    transition: color 0.2s;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-200);
}

.btn-ghost:hover {
    color: var(--white);
    background: var(--card);
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: var(--black);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--card);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .nav, .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ============================================
   HERO
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--gray-200);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

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

.hero-stat-value {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--gray-300);
}

@media (max-width: 600px) {
    .hero-stats { gap: 32px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
}

/* Hero Split (com imagem) */
.hero-split .hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-split .hero-content {
    max-width: 560px;
}

.hero-split .hero-desc {
    margin: 0 0 40px;
}

.hero-split .hero-buttons {
    justify-content: flex-start;
    margin-bottom: 48px;
}

.hero-split .hero-stats {
    justify-content: flex-start;
    max-width: none;
    margin: 0;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    filter: blur(60px);
    opacity: 0.8;
}

.hero-image img {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 80px rgba(16, 185, 129, 0.2);
}

@media (max-width: 900px) {
    .hero-split .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-split .hero-content {
        max-width: 100%;
        order: 2;
    }
    .hero-image {
        order: 1;
        margin-bottom: 40px;
    }
    .hero-split .hero-desc {
        margin: 0 auto 40px;
    }
    .hero-split .hero-buttons {
        justify-content: center;
    }
    .hero-split .hero-stats {
        justify-content: center;
    }
}

/* ============================================
   SECTION BASE
============================================ */
.section {
    padding: 120px 24px;
}

.section-alt {
    background: var(--bg-subtle);
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto;
}

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

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

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--gray-200);
    line-height: 1.6;
}

/* ============================================
   PRICING
============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .pricing-grid { 
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.pricing-card {
    padding: 40px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--card) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.pricing-card.featured:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-sites {
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 32px;
}

.pricing-currency {
    font-size: 1.2rem;
    color: var(--gray-300);
    vertical-align: top;
}

.pricing-value {
    font-size: 3.5rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 0.95rem;
    color: var(--gray-300);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 600;
}

.pricing-card .btn {
    width: 100%;
}

/* ============================================
   STEPS / HOW IT WORKS
============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

@media (max-width: 600px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent);
    margin: 0 auto 24px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--gray-200);
    line-height: 1.6;
}

/* ============================================
   FAQ
============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gray-400);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-inner {
    padding-bottom: 24px;
    color: var(--gray-200);
    line-height: 1.7;
}

/* ============================================
   CTA
============================================ */
.cta {
    padding: 120px 24px;
    text-align: center;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 64px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--gray-200);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 500px) {
    .cta-box { padding: 40px 24px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* ============================================
   FOOTER
============================================ */
.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
}

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

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--gray-400);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .footer-links { gap: 24px; }
}

/* ============================================
   DASHBOARD
============================================ */
.dashboard {
    min-height: 100vh;
    padding: 100px 24px 60px;
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-subtitle {
    font-size: 0.95rem;
    color: var(--gray-300);
    margin-top: 4px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 800px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .stats-row { grid-template-columns: 1fr; }
}

.stat-box {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-box-label {
    font-size: 0.8rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-box-value {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.stat-box-value.accent {
    color: var(--accent);
}

.sites-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.sites-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sites-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.sites-table {
    width: 100%;
}

.sites-table th {
    padding: 14px 32px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-subtle);
}

.sites-table td {
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
}

.sites-table tr:last-child td {
    border-bottom: none;
}

.sites-table tr:hover td {
    background: var(--card-hover);
}

.site-link {
    font-weight: 500;
}

.site-link:hover {
    color: var(--accent);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.site-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--gray-300);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-only:hover {
    background: var(--card-hover);
    color: var(--white);
    border-color: var(--border-hover);
}

.btn-icon-only.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.sites-empty {
    padding: 80px 32px;
    text-align: center;
}

.sites-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.sites-empty p {
    color: var(--gray-300);
    margin-bottom: 24px;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-200);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.modal-actions .btn {
    flex: 1;
}

/* WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Utilities */
.text-accent { color: var(--accent); }
.text-muted { color: var(--gray-300); }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
