:root,
[data-bs-theme="light"] {
    color-scheme: light;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #a855f7;
    --brand-dark: #0f172a;
    --brand-dark-soft: #1e293b;
    --brand-footer: #020617;
    --body-muted: #64748b;
    --shell-bg: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-alt: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --navbar-height: 76px;
}

[data-bs-theme="dark"] {
    color-scheme: dark;
    --shell-bg: #020617;
    --surface: #1e293b;
    --surface-muted: #0f172a;
    --surface-alt: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--shell-bg);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
}

body.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--shell-bg);
}

.site-main {
    flex: 1 0 auto;
    padding-top: var(--navbar-height);
    background: var(--shell-bg);
}

.site-main--flush {
    padding-top: 0;
}

/* Hero/page header bleed under fixed nav */
.site-main--flush > .hero,
.site-main--flush > .page-header {
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 5rem);
}

.site-main--flush > .hero {
    padding-bottom: 3rem;
}

.site-main--flush > .page-header {
    padding-top: calc(var(--navbar-height) + 3.5rem);
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background: var(--brand-dark);
}

h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Outfit', sans-serif; }

.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar-brand { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav-link { font-weight: 500; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}
.btn-outline-primary { border-width: 2px; font-weight: 600; border-radius: 10px; transition: all 0.2s; }
.btn-outline-primary:hover { transform: translateY(-2px); }

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    padding: 3rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(168, 85, 247, 0.2), transparent);
    pointer-events: none;
}
.hero h1 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.hero .lead { opacity: 0.9; font-size: 1.15rem; }
.hero .btn-light { font-weight: 600; padding: 0.75rem 1.75rem; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.hero-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.hero-image-wrap img { width: 100%; height: auto; display: block; }
.hero-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.875rem;
}

.stats-bar {
    background: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 0;
}
.stat-item { text-align: center; color: #fff; }
.stat-number { font-family: 'Outfit', sans-serif; font-size: 2.25rem; font-weight: 700; line-height: 1; color: #c7d2fe; }
.stat-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); margin-top: 0.35rem; }

.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.service-card-img { height: 200px; object-fit: cover; width: 100%; display: block; background: var(--surface-alt); }
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.service-icon.bg-indigo { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.service-icon.bg-violet { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.service-icon.bg-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.feature-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.15); }
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-step { position: relative; text-align: center; padding: 0 1rem; }
.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.process-connector { display: none; }
@media (min-width: 768px) {
    .process-connector {
        display: block;
        position: absolute;
        top: 28px;
        left: calc(50% + 36px);
        width: calc(100% - 72px);
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        opacity: 0.25;
    }
    .process-step:last-child .process-connector { display: none; }
}

.cta-section { background: linear-gradient(180deg, var(--surface-muted) 0%, var(--shell-bg) 100%); }
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(168, 85, 247, 0.25), transparent);
    pointer-events: none;
}

.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 2rem 0 3.5rem;
}
.service-detail-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}
.service-detail-img img { width: 100%; height: auto; display: block; }

.values-grid .value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: var(--surface-muted);
    height: 100%;
    border: 1px solid var(--border);
}

.footer-main { background: var(--brand-dark); padding: 4.5rem 0 0; flex-shrink: 0; margin-bottom: 0; }
.footer-bottom { background: var(--brand-footer); padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); flex-shrink: 0; margin-bottom: 0; }
.footer-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #fff; }

.theme-toggle {
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
}

.text-indigo-200 { color: #c7d2fe; }
.text-muted { color: var(--text-muted) !important; }
.section-label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
}

.py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

.card-body .pagination { margin-bottom: 0; flex-wrap: wrap; justify-content: center; }
.card-body nav[role="navigation"] { width: 100%; }
.card-body nav[role="navigation"] .small.text-muted { text-align: center; margin-bottom: 0.75rem; }

.marketing-checklist-item.is-done { background: var(--surface-muted); }
.marketing-checklist-item.is-done .fw-semibold { text-decoration: line-through; color: var(--text-muted); }
.marketing-check-input { width: 1.15rem; height: 1.15rem; cursor: pointer; }
.marketing-check-icon { font-size: 1.15rem; line-height: 1; margin-top: 0.1rem; }

/* Dark mode: content sections & Bootstrap overrides */
[data-bs-theme="dark"] section.bg-light {
    background-color: var(--surface-muted) !important;
}

[data-bs-theme="dark"] hr {
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] a.text-dark {
    color: var(--text) !important;
}

[data-bs-theme="dark"] .service-detail-img {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .card.shadow-sm,
[data-bs-theme="dark"] .card.border-0.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

@media (max-width: 768px) {
    .site-main--flush > .hero {
        padding-top: calc(var(--navbar-height) + 3.5rem);
    }
    .site-main--flush > .page-header {
        padding-top: calc(var(--navbar-height) + 2.5rem);
    }
    .hero { padding-bottom: 3rem; }
    .hero h1 { font-size: 2rem; }
    .stat-number { font-size: 1.75rem; }
    .footer-bottom .theme-toggle { order: -1; }
}
