/**
 * FunilQIC - Estilos Principais
 * Design System Profissional para SaaS
 */

/* ==================== Reset & Variables ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f1f5f9;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

/* ==================== Layout ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* ==================== Header ==================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-login {
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 0.5rem;
}

/* ==================== Hero ==================== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    color: var(--primary);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* ==================== Problem Section ==================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    color: var(--danger);
    margin-bottom: 1rem;
}

/* ==================== QIC Cards ==================== */
.qic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.qic-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid;
}

.qic-q { border-color: #3b82f6; }
.qic-i { border-color: #f59e0b; }
.qic-c { border-color: #10b981; }

.qic-letter {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.qic-q .qic-letter {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.qic-i .qic-letter {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.qic-c .qic-letter {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.qic-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.qic-metrics {
    list-style: none;
}

.qic-metrics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
}

/* ==================== Dashboard Preview ==================== */
.dashboard-preview {
    margin-top: 3rem;
}

.dashboard-frame {
    background: var(--dark-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--gray-light);
}

.tab.active {
    background: var(--primary);
    color: var(--white);
}

.dashboard-content {
    padding: 2rem;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--gray-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.kpi-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: var(--success);
}

.kpi-change.negative {
    color: var(--danger);
}

.chart-placeholder {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.funnel-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.funnel-step {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
}

/* ==================== Features ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-number {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* ==================== Results ==================== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.result-before, .result-after {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.result-metric {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-arrow {
    font-size: 2rem;
    margin: 1rem 0;
}

.result-impact {
    color: var(--success);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-form input,
.cta-form select {
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    font-family: var(--font-main);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    
    .nav-menu { display: none; }
    .section { padding: 3rem 0; }
}

