/* ================================================
   LANDING BUILDER - GLOBAL CSS
   Modern, Mobile First, Clean
   ================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #475569;
    --success: #10b981;
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --radius: 1rem;
    --radius-sm: 0.75rem;
}

/* Base */
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.lead { font-weight: 400; }

/* Buttons */
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-lg { border-radius: var(--radius); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}
.btn-primary:hover { opacity: 0.95; transform: translateY(-1px); }

/* Cards */
.card { border-radius: var(--radius); transition: all 0.2s ease; }
.hover-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important; }

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-label { font-size: 0.85rem; margin-bottom: 0.35rem; }

/* Hero */
.hero-section { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.py-lg-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* Icon Circle */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Step Number */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Dashboard */
.stat-card {
    border: none;
    border-radius: var(--radius);
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    background: #e2e8f0; color: #64748b;
    transition: all 0.3s;
}
.step-dot.active {
    background: var(--primary); color: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.step-dot.completed {
    background: var(--success); color: #fff;
}
.step-line {
    width: 24px; height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
}
.step-line.completed {
    background: var(--success);
}

/* Theme Preview */
.theme-card {
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}
.theme-card:hover { border-color: #cbd5e1; }
.theme-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* Sticky Bottom Action */
.sticky-action {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    z-index: 1030;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}

/* Preview Panel */
.preview-panel {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

/* Tables */
.table-modern thead th {
    background: #f8fafc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.75rem;
}
.table-modern tbody td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Chart placeholder */
.chart-container {
    position: relative;
    height: 260px;
}

/* Badge */
.badge-soft {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.5rem;
}

/* Responsive helpers */
@media (max-width: 576px) {
    .display-5 { font-size: 1.75rem; }
    .btn-lg { padding: 0.6rem 1rem; font-size: 1rem; }
    .py-lg-6 { padding-top: 2rem; padding-bottom: 2rem; }
    .card-body { padding: 1rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Loader */
.btn-loader {
    pointer-events: none;
    opacity: 0.75;
}
