/* DEBATE IA - Landing Page Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2d4a;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
}

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

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

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

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: var(--text);
    text-decoration: none;
}
.logo i { color: var(--primary-light); font-size: 1.5rem; }
.logo strong { color: var(--primary-light); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.btn-ghost {
    background: transparent;
    color: var(--text-light);
}
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 40px;
}
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* DEBATE PREVIEW */
.debate-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.debate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border);
}
.debate-topic { font-weight: 600; font-size: 0.9rem; }
.debate-timer {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.85rem;
}
.debate-msg {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(45, 45, 74, 0.5);
    animation: fadeInMsg 0.5s ease;
}
.debate-msg:last-child { border-bottom: none; }
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.msg-content strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.msg-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
.section-how, .section-personas, .section-pricing {
    padding: 100px 0;
}
.section-how { background: var(--bg); }
.section-personas { background: var(--bg-card); }
.section-pricing { background: var(--bg); }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.step-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step-card p { color: var(--text-light); font-size: 0.9rem; }

/* MSG MODEL TAG */
.msg-model {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* PROVIDERS / MODELS */
.section-models {
    background: var(--bg-card);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.section-models::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.section-models .container { position: relative; z-index: 1; }
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.provider-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.provider-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, var(--primary));
    opacity: 0.7;
    transition: opacity 0.3s;
}
.provider-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent, var(--primary));
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 20px rgba(99,102,241,0.15);
}
.provider-card:hover::before { opacity: 1; }
.provider-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.provider-logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--accent, var(--primary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.provider-header h3 { font-size: 1.1rem; font-weight: 700; }
.model-list { display: flex; flex-direction: column; gap: 10px; }
.model-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.model-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}
.model-name { font-weight: 600; flex: 1; color: var(--text); }
.model-tier {
    padding: 3px 10px; border-radius: 8px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.3px;
}
.model-tier.economy { background: rgba(34,197,94,0.12); color: var(--accent-green); }
.model-tier.standard { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.model-tier.premium { background: rgba(139,92,246,0.12); color: var(--accent-purple); }
.model-tier.elite { background: rgba(245,158,11,0.12); color: var(--accent-amber); }
.model-price {
    font-weight: 700; font-size: 0.85rem;
    color: var(--accent, var(--primary-light));
    white-space: nowrap;
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 6px;
}
.pricing-example {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-example::before {
    content: '';
    position: absolute;
    top: -1px; left: 20%; right: 20%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}
.pricing-example h4 {
    margin-bottom: 14px;
    color: var(--primary-light);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pricing-example p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.7;
}
.pricing-example strong {
    color: var(--text);
    font-size: 1.05rem;
    background: rgba(99,102,241,0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

/* PUBLIC DEBATES */
.section-public { background: var(--bg); padding: 100px 0; }
.public-tabs {
    display: flex; gap: 8px; justify-content: center; margin-bottom: 32px;
}
.pub-tab {
    padding: 10px 24px; border: 1px solid var(--border); border-radius: 10px;
    background: transparent; color: var(--text-muted); font-size: 0.9rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; font-family: inherit;
}
.pub-tab:hover { border-color: var(--primary); color: var(--text); }
.pub-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.live-dot { font-size: 0.5rem; color: #ef4444; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.public-debates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    min-height: 120px;
}
.pub-debate-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.pub-debate-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.pub-debate-topic {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.pub-debate-participants {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pub-participant { font-weight: 600; }
.vs { color: var(--text-muted); font-size: 0.7rem; font-weight: 400; }
.pub-debate-meta {
    display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-muted);
}
.pub-debate-meta span { display: flex; align-items: center; gap: 4px; }
.live-badge {
    color: #ef4444 !important; font-weight: 700;
}
.live-badge i { font-size: 0.45rem; animation: blink 1.5s infinite; }

.loading-state {
    text-align: center; padding: 40px; color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-state {
    text-align: center; padding: 40px; color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-state i { font-size: 2rem; margin-bottom: 12px; display: block; opacity: 0.3; }

.public-cta {
    text-align: center; margin-top: 32px;
}
.public-cta p {
    font-size: 0.95rem; color: var(--text-light);
    display: flex; align-items: center; justify-content: center; gap: 12px;
}

/* FOOTER */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
    max-width: 300px;
}
.footer-links h4 {
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .personas-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { gap: 24px; }
    .steps-grid { grid-template-columns: 1fr; }
    .personas-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-content { grid-template-columns: 1fr; }
}
