/* ═══════════════════════════════════════════════════════════
   DBVC WEBSITE — Premium Dark Theme
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border: #1e293b;
    --border-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --gradient-primary: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-size: 28px;
}

.nav-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: #022c22 !important;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #22c55e, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeUp 0.8s ease-out 0.5s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-green);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #022c22;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
}

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

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    color: #1e293b;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn-apply {
    background: var(--gradient-primary);
    color: #022c22;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-apply:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
    padding: 100px 24px;
}

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

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Steps Grid ──────────────────────────────────────────── */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--gradient-blue);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-top: 80px;
}

.connector-arrow {
    font-size: 24px;
    color: var(--accent-green);
    font-weight: 800;
}

/* ── Demo Banner ─────────────────────────────────────────── */
.demo-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    text-align: center;
}

.demo-banner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.demo-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Download Card ───────────────────────────────────────── */
.download-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.download-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.download-icon {
    font-size: 56px;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.download-requirements {
    text-align: left;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
}

.download-requirements h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-requirements ul {
    list-style: none;
}

.download-requirements li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.download-requirements li i {
    color: var(--accent-green);
    margin-right: 10px;
    width: 16px;
}

.btn-download {
    width: 100%;
    justify-content: center;
    font-size: 17px;
    padding: 18px 36px;
}

.download-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.download-note i {
    color: var(--accent-green);
    margin-right: 6px;
}

.run-instructions {
    text-align: left;
    margin-top: 32px;
}

.run-instructions h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-block {
    background: #020617;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    background: var(--bg-secondary);
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.code-block pre {
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
    color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 22px;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   DEMO PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

.demo-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.demo-hero {
    text-align: center;
    margin-bottom: 40px;
}

.demo-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.demo-hero p {
    color: var(--text-secondary);
    font-size: 16px;
}

.demo-hint {
    color: var(--text-muted) !important;
    font-size: 13px !important;
    margin-top: 8px;
}

.demo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.demo-stats {
    display: flex;
    gap: 10px;
}

.stat-pill {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.stat-pill.missing {
    background: rgba(124, 45, 18, 0.5);
    color: #fed7aa;
}

.stat-pill.modified {
    background: rgba(30, 64, 175, 0.5);
    color: #bfdbfe;
}

/* ── Filter Tabs ─────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tabs button {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tabs button:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.filter-tabs button.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    font-weight: 600;
}

/* ── Diff Cards ──────────────────────────────────────────── */
.diff-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.diff-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diff-card-header small {
    color: var(--text-muted);
    font-weight: 400;
}

.diff-card-actions {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.4);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.missing_in_target { background: #7c2d12; color: #fed7aa; }
.badge.modified { background: #1e40af; color: #bfdbfe; }
.badge.missing_in_source { background: #14532d; color: #bbf7d0; }
.badge.applied { background: #065f46; color: #a7f3d0; }

/* ── Diff Editor ─────────────────────────────────────────── */
.diff-editor {
    border-radius: 0;
    overflow: hidden;
}

/* ── Demo Footer ─────────────────────────────────────────── */
.demo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
}

.toast {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 320px;
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    color: white;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-md);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }

.toast button {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-value {
        font-size: 24px;
    }

    .demo-footer {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
