/* ==========================================
   PRODUCTION-READY B2B PORTFOLIO STYLESHEET
   Refactored: Clean, DRY, Modern, Accessible
   Version: 2.1 (With Audit Fixes)
========================================== */

/* ==========================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
========================================== */
:root {
    --cb-grid-line: rgba(0, 0, 0, 0.05);
    /* --- Light Theme --- */
    --cb-bg: #f8fafc;
    --cb-surface: #ffffff;
    --cb-text-main: #0f172a;
    --cb-text-muted: #64748b;
    --cb-border: #e2e8f0;
    --cb-nav-bg: rgba(255, 255, 255, 0.85);

    /* Hero */
    --cb-hero-bg: #ffffff;
    --cb-hero-fg: #020617;
    --cb-hero-fg-muted: #475569;
    --cb-hero-blob: transparent; /* No blobs */

    /* Promise Box */
    --cb-promise-bg: #f8fafc;
    --cb-promise-border: #e2e8f0;

    /* Brand Colors */
    --cb-yellow: #f5b800;
    --cb-yellow-hover: #dca300;
    --clr-primary: #1e3a8a;
    --clr-primary-glow: #3b82f6;
    --clr-gold: #f5b800;
    --clr-gold-dark: #dca300;
    --clr-upwork: #10b981;
    --clr-whatsapp: #10b981;
    --clr-danger: #ef4444;

    /* Shape */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Semantic surface tokens */
    --cb-card-bg:    #ffffff;
    --cb-section-bg: #f8fafc;
    --cb-text:       #0f172a;

    /* Shadows — Softened, Apple-like */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hard: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-tab-active: inset 0 2px 4px rgba(0, 0, 0, 0.02);

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-spring: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Dark Theme Override --- */
body.dark-theme {
    --cb-grid-line: rgba(255, 255, 255, 0.02);
    --cb-bg: #030712; /* Obsidian */
    --cb-surface: #0f172a; /* Slate 900 */
    --cb-text-main: #f8fafc;
    --cb-text-muted: #94a3b8;
    --cb-border: #1e293b;
    --cb-nav-bg: rgba(3, 7, 18, 0.85);

    --cb-hero-bg: #030712;
    --cb-hero-fg: #ffffff;
    --cb-hero-fg-muted: #94a3b8;
    --cb-hero-blob: transparent;

    --cb-promise-bg: #0f172a;
    --cb-promise-border: #1e293b;

    /* Sharp dark mode shadows */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-hard: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.8);
    --shadow-tab-active: inset 0 2px 4px rgba(0, 0, 0, 0.3);

    --cb-card-bg:    #0f172a;
    --cb-section-bg: #030712;
    --cb-text:       #f8fafc;
}

/* ==========================================
   2. RESET & BASE
========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;       /* fallback for older browsers */
    overflow-x: clip;         /* modern: clips without creating a BFC, keeps position:fixed intact */
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: var(--cb-bg); /* This acts as the outer background */
    color: var(--cb-text-main);
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: var(--transition-theme);
}
.site-wrapper {
    /* No global constraints so backgrounds can be full-width */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base), transform var(--transition-base);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   SKIP TO CONTENT — WCAG 2.4.1 (Level A)
========================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--clr-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
    white-space: nowrap;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--cb-yellow);
    outline-offset: 2px;
}
body.dark-theme .skip-link {
    background: var(--cb-yellow);
    color: #111;
}

/* Accessibility: Visible focus for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

body.dark-theme :focus-visible {
    outline-color: var(--cb-yellow);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container, .page-wrapper {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 5vw, 100px);
    padding-right: clamp(1rem, 5vw, 100px);
    box-sizing: border-box;
}

/* Rule 4: Prevent horizontal overflow */
section, .cb-hero, .section-padding {
    overflow-x: hidden;
    max-width: 100%;
}

/* Rule 3: Ensure standard grids use width: 100% inside containers */
.dyn-grid, .cb-hero-grid, .holo-arena, .cards-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.container-read {
    max-width: 850px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 5vw, 100px);
    padding-right: clamp(1rem, 5vw, 100px);
    box-sizing: border-box;
}

.section-padding { padding-block: 5rem; }

/* ==========================================
   4. UTILITY CLASSES
========================================== */
.text-primary { color: var(--clr-primary); }
body.dark-theme .text-primary { color: var(--cb-yellow); }

.text-success { color: var(--clr-upwork); }
.text-danger  { color: var(--clr-danger); }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1.2rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }
.ml-1 { margin-left: 5px; }
.mt-1 { margin-top: 1.2rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mt-4 { margin-top: 3.5rem; }

.fw-bold      { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

.fs-lg { font-size: 1.8rem; }
.fs-md { font-size: 1.15rem; }
.fs-sm { font-size: 0.95rem; }

.text-center { text-align: center; }

/* ==========================================
   5. TYPOGRAPHY
========================================== */
.text-gradient {
    background: linear-gradient(to right, var(--clr-primary-glow), var(--clr-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.16);
    color: var(--clr-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    padding: 0.3rem 0.95rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
}
body.dark-theme .section-label {
    background: rgba(245, 184, 0, 0.1);
    border-color: rgba(245, 184, 0, 0.22);
    color: var(--cb-yellow);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
}
.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--cb-text-main);
}

/* ==========================================
   6. BUTTONS
========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
    gap: 8px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: transform var(--transition-spring), box-shadow var(--transition-spring), background-color var(--transition-base);
}

.btn-lg { padding: 0 28px; font-size: 1rem; }

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-cta-group,
.cta-btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Upwork Button */
.btn-upwork {
    background: var(--clr-upwork);
    color: #ffffff;
    box-shadow: 0 4px 0 #0f7a00, 0 10px 20px rgba(20, 168, 0, 0.2);
}
.btn-upwork:hover  { transform: translateY(-3px); box-shadow: 0 7px 0 #0f7a00, 0 15px 25px rgba(20, 168, 0, 0.3); color: #ffffff; }
.btn-upwork:active { transform: translateY(4px); box-shadow: none; }
.btn-upwork.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Upwork Large Standalone Button (no .btn base needed) */
.btn-upwork-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: var(--clr-upwork);
    color: #ffffff;
    box-shadow: 0 4px 0 #0f7a00, 0 10px 20px rgba(20, 168, 0, 0.2);
    transition: transform var(--transition-spring), box-shadow var(--transition-spring), color var(--transition-base);
}
.btn-upwork-large:hover  { transform: translateY(-3px); box-shadow: 0 7px 0 #0f7a00, 0 15px 25px rgba(20, 168, 0, 0.3); color: #ffffff; }
.btn-upwork-large:active { transform: translateY(4px); box-shadow: none; }

/* Yellow Button */
.btn-yellow {
    background: var(--cb-yellow);
    color: #231f20;
    box-shadow: 0 4px 16px rgba(245, 184, 0, 0.25);
    padding: 0.6rem 1.4rem;
    font-weight: 800;
    font-size: 0.9rem;
}
.btn-yellow:hover { background: var(--cb-yellow-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 184, 0, 0.35); color: #111; }

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--cb-text-main);
    border: 2px solid var(--cb-border);
    padding: 0.8rem 1.5rem;
}
.btn-outline:hover { border-color: var(--clr-primary); color: var(--clr-primary); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
body.dark-theme .btn-outline:hover { border-color: var(--cb-yellow); color: var(--cb-yellow); }

/* Submit Button */
.btn-submit {
    width: 100%;
    background: var(--clr-primary);
    color: #ffffff;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3); }
body.dark-theme .btn-submit { background: var(--cb-yellow); color: #111; }
body.dark-theme .btn-submit:hover { box-shadow: 0 10px 20px rgba(255, 204, 9, 0.3); }

.hero-grid,
.cb-hero-grid { position: relative; z-index: 10; margin-top: 100px !important;  
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cb-hero p {
    max-width: 42rem;
}

#hero-heading,
.cb-hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.cb-hero img,
.cb-hero picture img,
.cb-hero .hero-image,
.cb-hero .hero-img,
.cb-hero .hero-media img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ==========================================
   7. ANIMATIONS & MICRO-INTERACTIONS
========================================== */
@keyframes pulse-3d {
    0%   { transform: scale(1) translateY(0);    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.5), 0 0 0 0 rgba(30, 58, 138, 0.45); }
    50%  { transform: scale(1.05) translateY(-5px); box-shadow: 0 15px 30px rgba(30, 58, 138, 0.7), 0 0 0 16px rgba(30, 58, 138, 0); }
    100% { transform: scale(1) translateY(0);    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.5), 0 0 0 0 rgba(30, 58, 138, 0); }
}

@keyframes logo-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

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

@keyframes success-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(20, 168, 0, 0.4); }
    70%  { box-shadow: 0 0 0 25px rgba(20, 168, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 168, 0, 0); }
}

.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hard);
    z-index: 10;
}

.icon-pop {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color var(--transition-base);
}
.trigger-icon:hover .icon-pop,
.icon-pop:hover {
    transform: translateY(-3px) scale(1.12);
    color: var(--clr-primary);
}
body.dark-theme .trigger-icon:hover .icon-pop,
body.dark-theme .icon-pop:hover {
    color: var(--cb-yellow);
}

/* ==========================================
   8. WHATSAPP FAB
========================================== */
.fab-whatsapp {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 9999 !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.fab-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* ==========================================
   9. NAVIGATION
========================================== */
.cb-nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding-inline: 5% !important;
    background: var(--cb-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cb-border);
    transition: background var(--transition-base), border-color var(--transition-base);
}

/* 3D Animated Custom Logo (LS Vibe) */
.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    perspective: 800px;
    transform-style: preserve-3d;
}
.am-3d-logo {
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}
.logo-wrap:hover .am-3d-logo {
    transform: rotateY(18deg) rotateX(8deg) scale(1.08);
}
.logo-letter {
    fill: var(--cb-text-main);
    filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.15));
}
body.dark-theme .logo-letter {
    fill: #ffffff;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}


/* 3D Floating Nodes */
.network-nodes {
    transform-origin: 28px 20px;
    animation: floatNodes 5s ease-in-out infinite;
}
.node-center {
    animation: pulseOrange 2.5s infinite;
}
.node-1, .node-2, .node-3 {
    animation: pulseYellow 2.5s infinite 1.25s;
}

@keyframes floatNodes {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes pulseOrange {
    0% { filter: drop-shadow(0 0 2px #ea580c); }
    50% { filter: drop-shadow(0 0 8px #f97316); }
    100% { filter: drop-shadow(0 0 2px #ea580c); }
}
@keyframes pulseYellow {
    0% { filter: drop-shadow(0 0 1px #f59e0b); }
    50% { filter: drop-shadow(0 0 6px #fcd34d); }
    100% { filter: drop-shadow(0 0 1px #f59e0b); }
}

/* Swoop Arrow Animation */
.swoop-arrow {
    filter: drop-shadow(2px 4px 3px rgba(249, 115, 22, 0.3));
    animation: arrowGlow 2.5s infinite alternate ease-in-out;
}
@keyframes arrowGlow {
    0% { filter: drop-shadow(1px 2px 2px rgba(249, 115, 22, 0.3)); }
    100% { filter: drop-shadow(3px 6px 8px rgba(249, 115, 22, 0.8)); }
}

/* Logo Text Container */
.am-logo-text-ls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: -5px;
    transform: translateZ(20px);
    transition: transform 0.4s ease;
}
.logo-wrap:hover .am-logo-text-ls {
    transform: translateZ(30px) translateX(2px);
}
.ls-first-name {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    color: #f97316;
    letter-spacing: -0.2px;
    text-shadow: 1px 2px 0px #c2410c, 2px 4px 6px rgba(249,115,22,0.4);
    animation: text3Dglow 3s infinite alternate;
}
.ls-last-name {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    color: #1e3a8a; /* Deep blue instead of black */
    letter-spacing: -0.2px;
    text-shadow: 1px 2px 0px rgba(0,0,0,0.05), 2px 4px 6px rgba(30,58,138,0.2);
    margin-top: -2px;
    transition: color var(--transition-base), text-shadow var(--transition-base);
}
body.dark-theme .ls-last-name {
    color: #ffffff;
    text-shadow: 1px 2px 0px #0f172a, 2px 4px 6px rgba(0,0,0,0.5);
}
@keyframes text3Dglow {
    0% { filter: drop-shadow(0 0 2px rgba(249,115,22,0.2)); }
    100% { filter: drop-shadow(0 0 8px rgba(249,115,22,0.6)); }
}

.cb-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.cb-nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-primary, #1e3a8a);
    padding-block: 5px;
    display: inline-block;
    transition: color var(--transition-base), transform var(--transition-spring);
}
.cb-nav-links a:hover,
.cb-nav-links a.active {
    color: var(--clr-primary);
    font-weight: 800;
    transform: scale(1.05);
}
body.dark-theme .cb-nav-links a { color: #ffffff; }
body.dark-theme .cb-nav-links a:hover,
body.dark-theme .cb-nav-links a.active { color: var(--cb-yellow); }

/* Dropdown Styles */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    list-style: none;
    margin: 0;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    margin: 0;
    padding: 0;
}
.dropdown-menu a {
    display: block !important;
    padding: 0.6rem 1.25rem !important;
    font-weight: 500 !important;
    color: var(--cb-text-main) !important;
    transform: none !important;
    font-size: 0.85rem !important;
}
.dropdown-menu a:hover {
    background: rgba(30, 58, 138, 0.05);
    color: var(--clr-primary) !important;
}
body.dark-theme .dropdown-menu {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
body.dark-theme .dropdown-menu a:hover {
    background: rgba(245, 184, 0, 0.1);
    color: var(--cb-yellow) !important;
}
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
        padding-top: 0;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .dropdown-menu a {
        padding: 0.4rem 0 !important;
    }
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-text-muted);
    cursor: pointer;
    transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.theme-toggle:hover { color: var(--clr-primary); border-color: var(--clr-primary); transform: scale(1.1); }
body.dark-theme .theme-toggle:hover { color: var(--cb-yellow); border-color: var(--cb-yellow); }

.theme-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--cb-text-main);
    color: var(--cb-bg);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}
.theme-toggle::after {
    content: '';
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 8px 6px;
    border-style: solid;
    border-color: transparent transparent var(--cb-text-main) transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    pointer-events: none;
    z-index: 1000;
}
.theme-toggle:hover::before { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.theme-toggle:hover::after { opacity: 1; visibility: visible; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--cb-text-muted);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 992px) {
    .cb-nav {
        padding-inline: 1.25rem;
        height: 64px;
    }
    .cb-nav-links {
        display: none;
        position: absolute;
        inset-block-start: 64px;
        inset-inline: 0;
        background: var(--cb-surface);
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        border-bottom: 1px solid var(--cb-border);
        box-shadow: var(--shadow-hard);
        gap: 0.25rem;
    }
    .cb-nav-links.active { display: flex; }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
    }
    .desktop-btn { display: none !important; }
    .nav-actions { gap: 8px; }
    .logo-wrap { font-size: 1.4rem; }
    .cb-ticker-track > span:nth-child(n+10) { display: none; }
}

/* ==========================================
   9b. NAV SCROLLED — ENHANCED GLASS STATE
========================================== */
.cb-nav.scrolled {
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom-color: rgba(30, 58, 138, 0.1);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.09), 0 1px 0 rgba(30, 58, 138, 0.05);
}
body.dark-theme .cb-nav.scrolled {
    background: rgba(5, 9, 20, 0.95);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom-color: rgba(245, 184, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   10. HERO SECTION
========================================== */
.cb-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 95vh;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1800px;
    margin: 1rem auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cb-hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    background-image: radial-gradient(circle, var(--cb-border) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    transition: opacity var(--transition-base);
}

.cb-hero-blob-1,
.cb-hero-blob-2 {
    display: none;
}

.cb-hero-grid { position: relative; z-index: 10; margin-top: 100px !important;  
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.cb-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    color: var(--clr-primary);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.dark-theme .cb-hero-pill {
    background: rgba(255, 204, 9, 0.15);
    border-color: rgba(255, 204, 9, 0.3);
    color: var(--cb-yellow);
}

.cb-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--cb-hero-fg);
    transition: color 0.4s ease;
}

.cb-hero p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--cb-hero-fg-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    font-weight: 500;
    line-height: 1.6;
    transition: color 0.4s ease;
}

/* Promise Box */
.promise-box {
    background: var(--cb-promise-bg);
    padding: 3.5rem 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--cb-promise-border);
    border-top: 4px solid var(--clr-primary);
    transition: all 0.4s ease;
}
body.dark-theme .promise-box { border-top-color: var(--cb-yellow); }

.promise-box h2,
.promise-box h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 900;
    color: var(--cb-text-main);
}

.promise-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: var(--cb-text-main);
    cursor: default;
}
.promise-list i { color: var(--clr-whatsapp); margin-top: 4px; font-size: 1.4rem; }
.promise-box .sub-text {
    font-size: 0.9rem;
    color: var(--cb-text-muted);
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

/* Ticker / Logo Scroll */
.cb-ticker-section {
    margin-top: 1.5rem;
    overflow: hidden; /* Belt-and-suspenders: clips max-content track before it reaches the mask */
}
.cb-ticker-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cb-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cb-ticker-mask {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    width: 100%;
    max-width: 600px;
}
.cb-ticker-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    align-items: center;
    animation: logo-ticker 25s linear infinite;
}
.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cb-hero-fg-muted);
    opacity: 0.7;
    cursor: default;
    transition: color var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
}
.tool-item i { font-size: 1.6rem; }
.tool-item:hover { color: var(--clr-primary); opacity: 1; transform: scale(1.1); }
body.dark-theme .tool-item:hover { color: var(--cb-yellow); }

@media (max-width: 992px) {
    /* Fix 1: Safe container padding for ALL mobile/tablet sizes */
    .container,
    .container-read {
        padding-inline: 1.25rem;
    }

    .cb-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
    .cb-hero-grid { position: relative; z-index: 10; margin-top: 100px !important;  
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 100%;
    }
    .cb-hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .cb-hero p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        max-width: 100%;
    }
    .cb-hero-pill {
        margin-bottom: 1.25rem;
        font-size: 0.75rem;
    }
    .cb-ticker-section { margin-top: 1.25rem; }

    /* Fix: Contain the ticker at all mobile sizes */
    .cb-ticker-mask {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: hidden;
        max-width: 100%;
        width: 100%;
    }
    .cb-ticker-track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        justify-content: flex-start;
    }
    .tool-item {
        font-size: 0.9rem;
        gap: 6px;
        opacity: 1;
        white-space: nowrap;
    }
    .tool-item i { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    /* Fix 2: Tighter vertical rhythm on small phones */
    .cb-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
    .cb-hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
        margin-bottom: 0.875rem;
    }
    .cb-hero p {
        font-size: 0.975rem;
        margin-bottom: 1.5rem;
        line-height: 1.65;
    }
    .cb-hero-pill {
        margin-bottom: 1rem;
        font-size: 0.7rem;
        padding: 0.35rem 0.875rem;
    }
    .mb-3 { margin-bottom: 1.5rem; }
    .cb-ticker-section { margin-top: 1rem; }
    .tool-item { font-size: 0.875rem; }
    .tool-item i { font-size: 1rem; }

    /* Fix: Cards tighter on small phones */
    .promise-box { padding: 2rem 1.5rem; }
    .bento-card-3d { padding: 2rem 1.5rem; }
}

/* ==========================================
   10b. HERO — PREMIUM LIGHT & DARK OVERRIDES
   Light mode: pearl-white gradient, dark text
   Dark mode: deep ink, vivid luminance
========================================== */

/* ── LIGHT MODE — Pearl authority gradient ─── */
.cb-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 95vh;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1800px;
    margin: 1rem auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.cb-hero .cb-hero-dots {
    background-image: radial-gradient(circle, rgba(30, 58, 138, 0.10) 1.5px, transparent 1.5px) !important;
    opacity: 1 !important;
}
.cb-hero .cb-hero-blob-1 {
    background: radial-gradient(circle, rgba(30, 58, 138, 0.09) 0%, transparent 68%) !important;
}
.cb-hero .cb-hero-blob-2 {
    background: radial-gradient(circle, rgba(245, 184, 0, 0.08) 0%, transparent 68%) !important;
}
.cb-hero h1 { color: #0c1a3a !important; }
.cb-hero p  { color: #3d5280 !important; }
.cb-hero .cb-hero-pill {
    background: rgba(30, 58, 138, 0.07) !important;
    border-color: rgba(30, 58, 138, 0.20) !important;
    color: #1e3a8a !important;
}
.cb-hero .btn-outline {
    border-color: rgba(30, 58, 138, 0.32) !important;
    color: #1e3a8a !important;
    background: transparent !important;
}
.cb-hero .btn-outline:hover {
    border-color: var(--cb-yellow) !important;
    color: #0f172a !important;
    background: rgba(245, 184, 0, 0.07) !important;
}
.cb-hero .hero-proof-strip .proof-text { color: #3d5280 !important; }
.cb-hero .hero-proof-strip .proof-sep  { background: rgba(30, 58, 138, 0.18) !important; opacity: 1 !important; }
.cb-hero .hero-micro-trust { color: #3d5280 !important; }
.cb-hero .cb-ticker-label { color: #6b7fa3 !important; }
.cb-hero .tool-item { color: #4a608a !important; }
.cb-hero .tool-item:hover { color: #1e3a8a !important; opacity: 1 !important; }
.cb-hero .promise-box {
    background: rgba(255, 255, 255, 0.90) !important;
    border-color: rgba(30, 58, 138, 0.14) !important;
    border-top-color: var(--cb-yellow) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 64px rgba(30, 58, 138, 0.12), 0 1px 0 rgba(255,255,255,1) inset !important;
}
.cb-hero .promise-box h2,
.cb-hero .promise-box h3 { color: #0c1a3a !important; }
.cb-hero .promise-list li { color: #1e2d4a !important; }
.cb-hero .promise-box .sub-text { color: #6b7fa3 !important; }

/* ── DARK MODE — Deep ink with vivid luminance ─── */
body.dark-theme .cb-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
body.dark-theme .cb-hero .cb-hero-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1.5px, transparent 1.5px) !important;
}
body.dark-theme .cb-hero .cb-hero-blob-1 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.42) 0%, transparent 68%) !important;
}
body.dark-theme .cb-hero .cb-hero-blob-2 {
    background: radial-gradient(circle, rgba(245, 184, 0, 0.16) 0%, transparent 68%) !important;
}
body.dark-theme .cb-hero h1 { color: #ffffff !important; }
body.dark-theme .cb-hero p  { color: rgba(255,255,255,0.70) !important; }
body.dark-theme .cb-hero .cb-hero-pill {
    background: rgba(245, 184, 0, 0.13) !important;
    border-color: rgba(245, 184, 0, 0.35) !important;
    color: #f5b800 !important;
}
body.dark-theme .cb-hero .btn-outline {
    border-color: rgba(255,255,255,0.32) !important;
    color: rgba(255,255,255,0.90) !important;
    background: transparent !important;
}
body.dark-theme .cb-hero .btn-outline:hover {
    border-color: #f5b800 !important;
    color: #f5b800 !important;
    background: rgba(245,184,0,0.08) !important;
}
body.dark-theme .cb-hero .hero-proof-strip .proof-text { color: rgba(255,255,255,0.60) !important; }
body.dark-theme .cb-hero .hero-proof-strip .proof-sep  { background: rgba(255,255,255,0.28) !important; opacity: 1 !important; }
body.dark-theme .cb-hero .hero-micro-trust { color: rgba(255,255,255,0.60) !important; }
body.dark-theme .cb-hero .cb-ticker-label { color: rgba(255,255,255,0.40) !important; }
body.dark-theme .cb-hero .tool-item { color: rgba(255,255,255,0.52) !important; }
body.dark-theme .cb-hero .tool-item:hover { color: #f5b800 !important; opacity: 1 !important; }
body.dark-theme .cb-hero .promise-box {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.12) !important;
    border-top-color: #f5b800 !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.40), 0 1px 0 rgba(255,255,255,0.06) inset !important;
}
body.dark-theme .cb-hero .promise-box h2,
body.dark-theme .cb-hero .promise-box h3 { color: #ffffff !important; }
body.dark-theme .cb-hero .promise-list li { color: rgba(255,255,255,0.88) !important; }
body.dark-theme .cb-hero .promise-box .sub-text { color: rgba(255,255,255,0.48) !important; }

/* ==========================================
   11. BOTTLENECK / BENTO SECTION
========================================== */
.bento-card-3d {
    background: var(--cb-surface);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--cb-border);
}
.bento-card-3d h3 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fail-box    { border-top: 4px solid var(--clr-danger); }
.fail-box h3 { color: var(--clr-danger); }
.success-box    { border-top: 4px solid var(--clr-upwork); }
.success-box h3 { color: var(--clr-upwork); }

.list-3d li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cb-text-main);
}
.list-3d i { margin-top: 4px; font-size: 1.2rem; }

/* ==========================================
   12. ABOUT SECTION (Homepage)
========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 8px solid var(--cb-surface);
    object-fit: cover;
    width: 100%;
}

.highlight-box {
    background: var(--cb-surface);
    border-inline-start: 6px solid var(--clr-primary);
    padding: 1.8rem;
    border-radius: 0 16px 16px 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}
body.dark-theme .highlight-box { border-inline-start-color: var(--cb-yellow); }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ==========================================
   13. TABS SECTION
========================================== */
.tabs-container {
    background: var(--cb-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--cb-border);
    margin-top: 0 !important;
}

.tabs-header {
    display: flex;
    background: var(--cb-bg);
    border-bottom: 1px solid var(--cb-border);
    padding: 10px 10px 0;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 1rem;
    text-align: center;
    font-family: inherit;
    font-weight: 800;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--cb-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-bottom: none;
    background: var(--cb-bg);
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.02);
    transform: translateY(2px);
    transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.tab-btn:hover { color: var(--clr-primary); }
body.dark-theme .tab-btn:hover { color: var(--cb-yellow); }

.tab-btn.active {
    color: var(--cb-text-main);
    background: var(--cb-surface);
    border-color: var(--cb-border);
    border-top: 4px solid var(--clr-primary);
    box-shadow: var(--shadow-tab-active);
    transform: translateY(0);
    z-index: 2;
}
body.dark-theme .tab-btn.active { border-top-color: var(--cb-yellow); }

.tab-content {
    padding: 4rem 3rem;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
    background: var(--cb-surface);
    position: relative;
    z-index: 1;
}
.tab-content.active { display: block; }

.tab-inner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.tech-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cb-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--cb-border);
    color: var(--cb-text-main);
    cursor: default;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.tech-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); border-color: var(--clr-primary); }
body.dark-theme .tech-card:hover { border-color: var(--cb-yellow); }

.tab-image {
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--cb-border);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    width: 100%;
}

@media (max-width: 992px) {
    .tab-inner-grid { grid-template-columns: 1fr; gap: 3rem; }
    .tab-btn { padding: 1.2rem 0.5rem; flex-direction: column; gap: 5px; }
    .tab-content { padding: 3rem 2rem; }
}

/* ==========================================
   14. WORK SAMPLES (Homepage Stats Section)
========================================== */
.work-card {
    background: var(--cb-surface);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--cb-border);
    border-bottom: 5px solid var(--clr-primary);
    box-shadow: var(--shadow-soft);
}
body.dark-theme .work-card { border-bottom-color: var(--cb-yellow); }

.work-icon { font-size: 3rem; color: var(--clr-primary); margin-bottom: 1.5rem; }
body.dark-theme .work-icon { color: var(--cb-yellow); }

.work-card h3 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--cb-text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.work-card--green { border-bottom-color: var(--clr-upwork); }
.work-card--red   { border-bottom-color: var(--clr-danger); }

/* ==========================================
   15. FOOTER
========================================== */
.site-footer {
    background: var(--cb-hero-bg);
    color: var(--cb-text-muted);
    padding-block: 2rem;
    border-top: 1px solid var(--cb-border);
    position: relative;
}
/* Premium gradient accent bar at top of footer */
.site-footer::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #f5b800 100%);
    pointer-events: none;
}
/* Dark mode: deeper landing zone */
body.dark-theme .site-footer {
    background: #0b1527;
    border-top-color: rgba(255,255,255,0.07);
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--cb-surface);
    color: var(--cb-text-main);
    font-size: 1.2rem;
    margin-inline: 8px;
    border: 1px solid var(--cb-border);
    box-shadow: var(--shadow-soft);
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.social-circle:hover { background: var(--clr-primary); color: #ffffff; border-color: var(--clr-primary); transform: translateY(-5px); }
body.dark-theme .social-circle:hover { background: var(--cb-yellow); color: #111; border-color: var(--cb-yellow); }

/* .site-footer-minimal — removed (dead code, no longer used) */

/* ==========================================
   16. ABOUT PAGE
========================================== */
.about-hero {
    padding-block-start: 130px;
    padding-block-end: 4rem;
    background: var(--cb-hero-bg);
    position: relative;
    overflow: hidden;
}

.candid-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-hard);
    border: 1px solid var(--cb-border);
}
.candid-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}
.candid-img-wrapper img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.article-h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--cb-text-main);
    margin-bottom: 1.5rem;
}
.article-h2-large { font-size: clamp(2.2rem, 4vw, 3.2rem); }

.article-p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--cb-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.editorial-section {
    background: var(--cb-bg);
    border-top: 1px solid var(--cb-border);
    border-bottom: 1px solid var(--cb-border);
}

.quote-box {
    border-inline-start: 4px solid var(--clr-primary);
    padding-inline-start: 1.5rem;
    margin-block: 2rem;
    font-style: italic;
    color: var(--cb-text-main);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
}
body.dark-theme .quote-box { border-inline-start-color: var(--cb-yellow); }

.clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.clean-card {
    background: var(--cb-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--cb-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.clean-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.clean-card i { font-size: 2rem; color: var(--clr-primary); margin-bottom: 1.5rem; }
body.dark-theme .clean-card i { color: var(--cb-yellow); }
.clean-card h3,
.clean-card h4 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; color: var(--cb-text-main); }
.clean-card p  { font-size: 1.05rem; color: var(--cb-text-muted); line-height: 1.6; margin: 0; }

.personal-box {
    background: var(--cb-surface);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-top: 4rem;
    border: 1px dashed var(--cb-border);
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.personal-box h2 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--cb-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 992px) {
    .personal-box { padding: 2rem; }
}

/* ==========================================
   17. PORTFOLIO (WORK SAMPLES) PAGE
========================================== */
.page-banner {
    position: relative;
    padding: 10rem 0 5rem;
    overflow: hidden;
    background-color: var(--cb-hero-bg);
    transition: background-color 0.4s ease;
}

.portfolio-card {
    background: var(--cb-surface);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--cb-border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
/* Inner content wrapper fills available space as flex column */
.portfolio-card > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.card-chart-row {
    height: 110px !important;
    display: flex;
    align-items: center;
}

.portfolio-img-wrap {
    width: 100%;
    height: 220px !important;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--cb-border);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}
.portfolio-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: rgba(29, 78, 216, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(29, 78, 216, 0.2);
}
body.dark-theme .project-tag {
    background: rgba(255, 204, 9, 0.15);
    color: var(--cb-yellow);
    border-color: rgba(255, 204, 9, 0.3);
}

.portfolio-card h3 {
    color: var(--cb-text-main);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}
.portfolio-card p {
    color: var(--cb-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
    font-weight: 500;
}
.portfolio-result-badge {
    min-height: 56px !important;
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .page-banner { padding: 8rem 0 3rem; }
}

/* ==========================================
   18. REVIEWS PAGE
========================================== */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 168, 0, 0.1);
    color: var(--clr-upwork);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 168, 0, 0.2);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 5;
}

.review-card {
    background: var(--cb-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--cb-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.quote-icon-bg {
    position: absolute;
    top: 1.5rem;
    
    font-size: 3rem;
    color: var(--cb-border);
    opacity: 0.3;
    pointer-events: none;
}

.review-stars {
    color: var(--cb-yellow);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.review-rating-number { font-weight: 800; color: var(--cb-text-main); margin-inline-start: 8px; font-size: 1.2rem; }

.review-quote {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--cb-text-main);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 500;
}

.client-info {
    border-top: 1px solid var(--cb-border);
    padding-top: 1.5rem;
    margin-top: auto;
}
.client-info h4 { color: var(--cb-text-main); font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.4; }

.verified-contract {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-upwork);
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(20, 168, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   19. CONTACT PAGE
========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    position: relative;
    z-index: 5;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--cb-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--cb-border);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.info-card:hover { transform: translateX(10px); box-shadow: var(--shadow-hard); border-color: var(--clr-primary); }
body.dark-theme .info-card:hover { border-color: var(--cb-yellow); }

.info-icon {
    font-size: 1.6rem;
    color: var(--clr-primary);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cb-bg);
    border-radius: 50%;
    border: 1px solid var(--cb-border);
    flex-shrink: 0;
}
body.dark-theme .info-icon { color: var(--cb-yellow); }

.info-text h4 { font-size: 1.1rem; font-weight: 800; color: var(--cb-text-main); margin-bottom: 0.2rem; }
.info-text a,
.info-text p { color: var(--cb-text-muted); font-size: 0.95rem; font-weight: 600; }
.info-text a:hover { color: var(--clr-primary); }
body.dark-theme .info-text a:hover { color: var(--cb-yellow); }

.contact-form-panel {
    background: var(--cb-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--cb-border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; color: var(--cb-text-main); margin-bottom: 0.5rem; font-size: 0.95rem; }

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--cb-border);
    background: var(--cb-bg);
    color: var(--cb-text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-control:focus {
    border-color: var(--clr-primary);
    outline: none;
}
.form-control:focus-visible {
    border-color: var(--clr-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.22);
}
body.dark-theme .form-control:focus {
    border-color: var(--cb-yellow);
}
body.dark-theme .form-control:focus-visible {
    border-color: var(--cb-yellow);
    box-shadow: 0 0 0 4px rgba(255, 204, 9, 0.28);
}
.form-control.is-invalid {
    border-color: var(--clr-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-control.is-valid {
    border-color: var(--clr-upwork);
    box-shadow: 0 0 0 3px rgba(20, 168, 0, 0.12);
}
.field-msg {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.35rem;
    display: block;
    line-height: 1.4;
}
.field-msg.is-invalid { color: var(--clr-danger); }
.field-msg.is-valid   { color: var(--clr-upwork); }
textarea.form-control { min-height: 150px; resize: vertical; }

/* Form error alert box */
.form-error-box {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background-color: #fee2e2;
    color: #991b1b;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 600;
    border: 1px solid #fca5a5;
}
body.dark-theme .form-error-box {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.privacy-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--cb-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .contact-grid,
    .form-row { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-panel { padding: 2rem; }
    .info-card:hover { transform: translateY(-5px) translateX(0); }
}

/* ==========================================
   20. SUCCESS & ERROR PAGES (Shared Layout)
========================================== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

/* Consolidated Shared Card Base */
.status-card,
.success-card,
.error-card {
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--cb-border);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 5;
    margin-inline: auto;
    background: var(--cb-surface);
}

/* Modifiers */
.success-card { border-top: 5px solid var(--clr-upwork); }
.error-card   { border-top: 5px solid var(--clr-danger); }
body.dark-theme .error-card { border-top-color: var(--cb-yellow); }

/* Success check */
.check-circle {
    width: 100px;
    height: 100px;
    background: rgba(20, 168, 0, 0.1);
    color: var(--clr-upwork);
    border: 2px solid rgba(20, 168, 0, 0.2);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: success-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.success-card h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--cb-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.success-card p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--cb-text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Error icon */
.error-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--clr-danger);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
body.dark-theme .error-icon-wrap {
    background: rgba(255, 204, 9, 0.15);
    color: var(--cb-yellow);
    border-color: rgba(255, 204, 9, 0.3);
}

.error-code {
    font-size: clamp(5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--clr-primary-glow), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
body.dark-theme .error-code {
    background: linear-gradient(to right, var(--cb-yellow), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--cb-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.error-card p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--cb-text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .status-card,
    .success-card,
    .error-card { padding: 3rem 2rem; }
}

/* ==========================================
   21. AUDIT FIXES (DRY Utilities & Micro-interactions)
========================================== */

/* 1. Unified Auto Grid (Replaces separate .work-grid, .portfolio-grid, .bottleneck-grid rules) */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 300px), 1fr));
    gap: var(--grid-gap, 2rem);
    align-items: stretch;
}

/* 2. Auto-Cascade Animation Delays (Eliminates inline style="transition-delay: 0.1s") */
.cascade-item:nth-child(1) { transition-delay: 0.1s; animation-delay: 0.1s; }
.cascade-item:nth-child(2) { transition-delay: 0.2s; animation-delay: 0.2s; }
.cascade-item:nth-child(3) { transition-delay: 0.3s; animation-delay: 0.3s; }
.cascade-item:nth-child(4) { transition-delay: 0.4s; animation-delay: 0.4s; }
.cascade-item:nth-child(5) { transition-delay: 0.5s; animation-delay: 0.5s; }
.cascade-item:nth-child(6) { transition-delay: 0.6s; animation-delay: 0.6s; }

/* ==========================================
   22. RESPONSIVE DEAD-ZONE FIXES
========================================== */

/*
 * Fix 1: section-padding — scale down vertical rhythm on mobile.
 * The base value of 6.5rem (104px top + bottom) is excessive on small screens.
 * Stepped reductions keep proportions comfortable without touching desktop layout.
 */
@media (max-width: 768px) {
    .section-padding { padding-block: 4rem; }
}
@media (max-width: 480px) {
    .section-padding { padding-block: 3rem; }
}

/*
 * Fix 2: grid-auto-fit — force single column on sub-400px viewports.
 * minmax(320px, 1fr) breaks when the container is narrower than 320px
 * (e.g. iPhone SE at 320px with 1.25rem padding = ~280px content area).
 * Overriding grid-template-columns to 1fr guarantees a clean single column.
 */
@media (max-width: 400px) {
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
}

/*
 * Fix 3: grid-auto-fit — reduce stacked-card gap on mobile.
 * A 3rem (48px) gap between vertically stacked cards on a ~375px phone
 * consumes disproportionate scroll height. 1.5rem is visually balanced.
 */
@media (max-width: 768px) {
    .grid-auto-fit {
        gap: 1.5rem;
    }
}

/*
 * Fix 4: about-hero portrait image — constrain aspect ratio on mobile.
 * The candid image uses aspect-ratio: 4/5 (portrait). On a single-column
 * mobile layout it fills the full container width, making it ~600-750px tall
 * on a phone — taller than the viewport. Switching to 3/2 (landscape) at
 * mobile sizes keeps the image visually prominent without dominating the screen.
 */
@media (max-width: 768px) {
    .candid-img-wrapper img {
        aspect-ratio: 3 / 2;
    }
}

/* ==========================================
   23. UTILITY & COMPONENT FILLS
========================================== */

/* 3D lift hover — used on review cards and status cards */
.hover-3d {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-3d:hover {
    transform: translateY(-8px) perspective(800px) rotateX(2deg);
    box-shadow: var(--shadow-hard);
}

/* Muted paragraph colour utility */
.text-muted-para { color: var(--cb-text-muted); }

/* Surface-background section utility */
.section-surface {
    background: var(--cb-surface);
    border-top: 1px solid var(--cb-border);
    border-bottom: 1px solid var(--cb-border);
}

/* Compact section header — tighter bottom margin */
.section-header--compact { margin-bottom: 1.5rem; }

/* ==========================================
   24. PASS A MISSING UTILITY CLASSES
========================================== */

/* h3-level visual sizing — makes an h2 render at h3 scale (promise-box heading) */
.h3-style {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 900;
}

/* CTA button group — horizontal flex row with gap and wrap */
.cta-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer social links row — horizontal centered flex */
.social-links-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Stat Counter: completion micro-pop ──────────────────────────────── */
@keyframes counter-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.14); color: var(--clr-primary); }
    100% { transform: scale(1); }
}
.counter-done {
    animation: counter-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Online Status / Urgency Badge (Contact Page) ───────────────────── */
.online-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--cb-card-bg);
    border: 1px solid var(--cb-border);
    border-left: 3px solid #22c55e;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--cb-text);
}
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.response-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    padding: 0.2rem 0.65rem;
    background: var(--cb-section-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--cb-border);
    margin-left: auto;
}

/* ── Logo Enhancement ──────────────────────────────────────────────── */
.logo-text-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}
.logo-wordmark {
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
body.dark-theme .logo-wordmark {
    background: linear-gradient(135deg, var(--cb-yellow) 0%, #ffd43b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-tagline {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cb-text-muted);
    -webkit-text-fill-color: var(--cb-text-muted);
}

/* Custom SVG monogram mark */
.logo-svg-mark {
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.logo-wrap:hover .logo-svg-mark {
    transform: scale(1.18) rotate(-8deg);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.6));
}
body.dark-theme .logo-wrap:hover .logo-svg-mark {
    filter: drop-shadow(0 0 10px rgba(245, 184, 0, 0.7));
}

/* Legacy bolt (kept for graceful fallback) */
.logo-bolt {
    font-size: 1.4rem;
    color: var(--clr-primary);
    transition: filter 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
body.dark-theme .logo-bolt { color: var(--cb-yellow); }
.logo-wrap:hover .logo-bolt {
    filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.65));
    transform: scale(1.18) rotate(-10deg);
}
body.dark-theme .logo-wrap:hover .logo-bolt {
    filter: drop-shadow(0 0 8px rgba(255, 202, 9, 0.7));
}
@media (max-width: 560px) {
    .logo-wordmark { font-size: 1.02rem; letter-spacing: -0.6px; }
    .logo-tagline  { font-size: 0.53rem; letter-spacing: 1.4px; }
    .logo-bolt     { font-size: 1.15rem; }
}

/* ── Hero Social Proof Strip ───────────────────────────────────────── */
.hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.9rem;
    margin-top: 0.1rem;
    margin-bottom: 1.75rem;
}
.proof-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--clr-gold);
    font-size: 0.8rem;
}
.hero-proof-strip .proof-text {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--cb-text-muted);
}
.hero-proof-strip .proof-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cb-text-muted);
    opacity: 0.4;
    flex-shrink: 0;
}
.proof-upwork-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--clr-upwork);
    background: rgba(20, 168, 0, 0.07);
    border: 1px solid rgba(20, 168, 0, 0.22);
    border-radius: 100px;
    padding: 0.18rem 0.7rem;
}
body.dark-theme .proof-upwork-badge {
    background: rgba(20, 168, 0, 0.13);
    border-color: rgba(20, 168, 0, 0.32);
}
@media (max-width: 480px) {
    .hero-proof-strip { gap: 0.4rem 0.65rem; }
    .hero-proof-strip .proof-sep { display: none; }
}

/* ── FAQ Accordion ─────────────────────────────────────────────────── */
.faq-accordion {
    max-width: 860px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.faq-item {
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.faq-item:hover {
    border-color: var(--clr-primary-glow);
    box-shadow: var(--shadow-soft);
}
body.dark-theme .faq-item:hover { border-color: var(--cb-yellow); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--cb-text-main);
    text-align: left;
    transition: color var(--transition-base), background var(--transition-base);
}
.faq-question:hover { background: var(--cb-bg); }
.faq-question[aria-expanded="true"] {
    color: var(--clr-primary);
    border-bottom: 1px solid var(--cb-border);
}
body.dark-theme .faq-question[aria-expanded="true"] { color: var(--cb-yellow); }
.faq-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--clr-primary);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.dark-theme .faq-icon { color: var(--cb-yellow); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer.is-open { max-height: 600px; }
.faq-answer-inner { padding: 1.125rem 1.5rem; }
.faq-answer-inner p {
    font-size: 0.925rem;
    line-height: 1.78;
    color: var(--cb-text-muted);
    margin: 0;
}
@media (max-width: 640px) {
    .faq-question     { font-size: 0.875rem; padding: 1rem 1.125rem; }
    .faq-answer-inner { padding: 1rem 1.125rem; }
}

/* ── Form Trust Micro-Line ─────────────────────────────────────────── */
.form-trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.795rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    margin-top: 0.875rem;
    text-align: center;
    flex-wrap: wrap;
    line-height: 1.5;
}
.form-trust-line i {
    color: var(--clr-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}
body.dark-theme .form-trust-line i { color: var(--cb-yellow); }

/* ── Process Timeline (Contact Page) ──────────────────────────────── */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 3rem;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 1.95rem;
    left: calc(12.5% + 2rem);
    right: calc(12.5% + 2rem);
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-glow), var(--clr-primary));
    opacity: 0.25;
    pointer-events: none;
}
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem;
    position: relative;
}
.process-step-num {
    width: 3.9rem;
    height: 3.9rem;
    border-radius: 50%;
    background: var(--cb-surface);
    border: 2px solid var(--clr-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--clr-primary);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background 0.3s ease,
                color 0.3s ease;
    flex-shrink: 0;
}
body.dark-theme .process-step-num {
    border-color: var(--cb-yellow);
    color: var(--cb-yellow);
}
.process-step:hover .process-step-num {
    background: var(--clr-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.38);
}
body.dark-theme .process-step:hover .process-step-num {
    background: var(--cb-yellow);
    color: #0a0a0a;
    box-shadow: 0 0 22px rgba(255, 202, 9, 0.32);
}
.process-step-body { margin-top: 1.25rem; }
.process-step-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--cb-text-main);
    margin-bottom: 0.4rem;
}
.process-step-desc {
    font-size: 0.815rem;
    line-height: 1.65;
    color: var(--cb-text-muted);
}
@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    .process-timeline::before { display: none; }
    .process-step {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
        padding: 1.125rem 1.25rem;
        background: var(--cb-surface);
        border: 1px solid var(--cb-border);
        border-radius: var(--radius-lg);
        transition: border-color var(--transition-base), box-shadow var(--transition-base);
    }
    .process-step:hover {
        border-color: var(--clr-primary-glow);
        box-shadow: var(--shadow-soft);
    }
    body.dark-theme .process-step:hover { border-color: var(--cb-yellow); }
    .process-step-num { flex-shrink: 0; }
    .process-step-body { margin-top: 0; }
}

/* ── Portfolio Result Badge ─────────────────────────────────────────── */
.portfolio-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: #166534;
    background: rgba(22, 101, 52, 0.08);
    border: 1px solid rgba(22, 101, 52, 0.2);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    margin-top: 0.75rem;
    flex-shrink: 0;
}
body.dark-theme .portfolio-result-badge {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.22);
}
.portfolio-result-badge i { font-size: 0.72rem; }

/* ── Niche Landing Page Stats Box ────────────────────────────────────── */
.niche-stats-box {
    background: var(--cb-surface);
    border: 1px solid var(--clr-slate-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft-1);
}
.niche-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.niche-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--cb-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-slate-200);
    gap: 0.2rem;
}
.niche-stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--clr-primary);
    line-height: 1;
}
body.dark-theme .niche-stat-value { color: var(--cb-yellow); }
.niche-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cb-text-muted);
}

/* ── Bespoke Top Rated Seal ─────────────────────────────────────────── */
.top-rated-seal {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(30, 58, 138, 0.22);
    border-left: 3px solid var(--cb-yellow);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0.65rem 1.1rem 0.65rem 0.9rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.top-rated-seal:hover {
    box-shadow: 0 4px 18px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.38);
}
body.dark-theme .top-rated-seal {
    background: linear-gradient(135deg, rgba(245, 184, 0, 0.07) 0%, rgba(245, 184, 0, 0.03) 100%);
    border-color: rgba(245, 184, 0, 0.2);
    border-left-color: var(--cb-yellow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.seal-icon-wrap {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cb-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}
.seal-icon-wrap i {
    font-size: 0.9rem;
    color: #0f1e3c;
}
.seal-rank {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--clr-primary);
    line-height: 1.2;
}
body.dark-theme .seal-rank { color: var(--cb-yellow); }
.seal-platform {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--cb-text-muted);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ── Premium Footer ─────────────────────────────────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--cb-border);
    margin-bottom: 1.75rem;
    align-items: start;
}
.footer-brand {
    min-width: 0;
    text-align: left;
}
.footer-nav, .footer-contact {
    padding-top: 0;
    margin-top: 0;
    min-width: 0;
    text-align: left;
}
.footer-nav-heading { margin-top: 0; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--cb-text-muted);
    margin-bottom: 1rem;
    max-width: 260px;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.footer-upwork-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(20, 168, 0, 0.07);
    border: 1px solid rgba(20, 168, 0, 0.22);
    border-radius: var(--radius-lg);
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}
body.dark-theme .footer-upwork-badge {
    background: rgba(20, 168, 0, 0.12);
    border-color: rgba(20, 168, 0, 0.3);
}
.footer-upwork-badge i {
    font-size: 1.3rem;
    color: var(--clr-upwork);
}
.badge-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--clr-upwork);
    line-height: 1.2;
}
.badge-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--cb-text-muted);
    line-height: 1.3;
}
.footer-nav-heading {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cb-text-main);
    margin-bottom: 1rem;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-nav ul a {
    font-size: 0.875rem;
    color: var(--cb-text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}
.footer-nav ul a:hover { color: var(--clr-primary); }
body.dark-theme .footer-nav ul a:hover { color: var(--cb-yellow); }
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.845rem;
}
.footer-contact-list i {
    color: var(--clr-primary);
    font-size: 0.8rem;
    width: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
body.dark-theme .footer-contact-list i { color: var(--cb-yellow); }
.footer-contact-list a {
    color: var(--cb-text-muted);
    text-decoration: none;
    word-break: break-word;
    transition: color var(--transition-base);
}
.footer-contact-list a:hover { color: var(--clr-primary); }
body.dark-theme .footer-contact-list a:hover { color: var(--cb-yellow); }
.footer-social {
    display: flex;
    gap: 0.5rem;
}
.footer-bottom {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--cb-text-muted);
}
.footer-bottom a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}
.footer-bottom a:hover { color: var(--clr-primary-glow); }
body.dark-theme .footer-bottom a { color: var(--cb-yellow); }
.footer-legal {
    font-size: 0.715rem !important;
    opacity: 0.6;
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .footer-brand { grid-column: 1; }
    .footer-tagline { max-width: 100%; }
}

/* Track-record stat descriptive label */
.stat-label {
    color: var(--cb-text-muted);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Top spacing utility (mirrors mb-3 pattern) */
.mt-5 { margin-top: 5rem; }

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .hero-cta-group .btn { justify-content: center; }
}

/* ==========================================
   25. ELITE POLISH — SCROLLBAR & SELECTION
========================================== */

/* Custom brand-token scrollbar (Webkit / Blink) */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: var(--cb-bg); }
::-webkit-scrollbar-thumb        { background: var(--cb-border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover  { background: var(--clr-primary); }
body.dark-theme ::-webkit-scrollbar-thumb       { background: var(--cb-border); }
body.dark-theme ::-webkit-scrollbar-thumb:hover { background: var(--cb-yellow); }

/* Firefox scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--cb-border) var(--cb-bg); }
body.dark-theme * { scrollbar-color: var(--cb-border) var(--cb-bg); }

/* Brand-token text selection */
::selection              { background: var(--cb-yellow); color: #111111; }
::-moz-selection         { background: var(--cb-yellow); color: #111111; }
body.dark-theme ::selection      { background: var(--clr-primary); color: #ffffff; }
body.dark-theme ::-moz-selection { background: var(--clr-primary); color: #ffffff; }

/* ==========================================
   26. ICP QUALIFIER QUIZ
========================================== */
.quiz-wrap { max-width: 780px; margin-inline: auto; }

.quiz-progress-track {
    height: 4px;
    background: var(--cb-border);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.quiz-progress-fill {
    height: 100%;
    background: var(--clr-primary);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-theme .quiz-progress-fill { background: var(--cb-yellow); }

.quiz-step-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cb-text-muted);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.quiz-step-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cb-border);
}

.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: quizFadeUp 0.38s ease forwards; }

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

.quiz-question {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    color: var(--cb-text-main);
    margin-bottom: 0.6rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.quiz-hint {
    font-size: 1rem;
    color: var(--cb-text-muted);
    margin-bottom: 2.25rem;
    line-height: 1.55;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.quiz-option {
    background: var(--cb-surface);
    border: 2px solid var(--cb-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.35rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cb-text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: border-color var(--transition-spring), background var(--transition-spring), transform var(--transition-spring), box-shadow var(--transition-spring);
}
.quiz-option i {
    font-size: 1.15rem;
    color: var(--clr-primary);
    flex-shrink: 0;
    width: 1.3rem;
    text-align: center;
    transition: color var(--transition-base);
}
body.dark-theme .quiz-option i { color: var(--cb-yellow); }
.quiz-option span:not(.quiz-option-check) { flex: 1; }
.quiz-option:hover {
    border-color: var(--clr-primary);
    background: rgba(30, 58, 138, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.quiz-option.is-selected {
    border-color: var(--clr-primary);
    background: rgba(30, 58, 138, 0.06);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14);
}
body.dark-theme .quiz-option:hover,
body.dark-theme .quiz-option.is-selected {
    border-color: var(--cb-yellow);
    background: rgba(245, 184, 0, 0.06);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.14);
}
.quiz-option-check {
    margin-left: auto;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid var(--cb-border);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.quiz-option.is-selected .quiz-option-check {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    box-shadow: inset 0 0 0 2px #fff;
}
body.dark-theme .quiz-option.is-selected .quiz-option-check {
    background: var(--cb-yellow);
    border-color: var(--cb-yellow);
    box-shadow: inset 0 0 0 2px #111;
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
}
.quiz-btn-back {
    background: transparent;
    border: 2px solid var(--cb-border);
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--cb-text-muted);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quiz-btn-back:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.quiz-btn-back:disabled { opacity: 0.3; cursor: not-allowed; }
.quiz-btn-back:disabled:hover { border-color: var(--cb-border); color: var(--cb-text-muted); }

.quiz-btn-next {
    background: var(--clr-primary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.35;
    pointer-events: none;
    transition: all var(--transition-spring);
}
.quiz-btn-next.is-ready { opacity: 1; pointer-events: auto; }
.quiz-btn-next.is-ready:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30, 58, 138, 0.3); }
body.dark-theme .quiz-btn-next { background: var(--cb-yellow); color: #111; }

/* Result Card */
.quiz-result-card {
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-top: 4px solid var(--clr-primary);
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    box-shadow: var(--shadow-hard);
    animation: quizFadeUp 0.5s ease forwards;
}
body.dark-theme .quiz-result-card { border-top-color: var(--cb-yellow); }

.quiz-result-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 58, 138, 0.08);
    color: var(--clr-primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}
body.dark-theme .quiz-result-eyebrow { background: rgba(245, 184, 0, 0.12); color: var(--cb-yellow); }

.quiz-result-title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 900;
    color: var(--cb-text-main);
    margin-bottom: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.quiz-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 520px) { .quiz-result-grid { grid-template-columns: 1fr; } }

.quiz-result-stat {
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.1rem;
}
.quiz-result-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cb-text-muted);
    margin-bottom: 0.25rem;
}
.quiz-result-stat-value {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--cb-text-main);
}

.quiz-result-note {
    font-size: 0.97rem;
    color: var(--cb-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-style: italic;
    border-left: 3px solid var(--clr-primary);
    padding-left: 1rem;
}
body.dark-theme .quiz-result-note { border-left-color: var(--cb-yellow); }

.quiz-result-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.quiz-result-tool-tag {
    background: rgba(30, 58, 138, 0.08);
    color: var(--clr-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(30, 58, 138, 0.15);
}
body.dark-theme .quiz-result-tool-tag {
    background: rgba(245, 184, 0, 0.10);
    color: var(--cb-yellow);
    border-color: rgba(245, 184, 0, 0.20);
}

.quiz-result-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.quiz-restart-btn {
    background: transparent;
    border: 2px solid var(--cb-border);
    border-radius: 8px;
    padding: 0.8rem 1.4rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--cb-text-muted);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quiz-restart-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

/* Trust strip under quiz */
.quiz-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}
.quiz-trust-item { display: flex; flex-direction: column; gap: 0.3rem; }
.quiz-trust-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--clr-primary);
    line-height: 1;
}
body.dark-theme .quiz-trust-num { color: var(--cb-yellow); }
.quiz-trust-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cb-text-muted);
}
.quiz-trust-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--cb-border);
}
@media (max-width: 560px) { .quiz-trust-divider { display: none; } }

/* Nav qualify link accent */
.nav-qualify-link {
    color: var(--clr-primary) !important;
    font-weight: 800 !important;
    position: relative;
}
.nav-qualify-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--clr-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-qualify-link:hover::after,
.nav-qualify-link.active::after { transform: scaleX(1); }
body.dark-theme .nav-qualify-link { color: var(--cb-yellow) !important; }
body.dark-theme .nav-qualify-link::after { background: var(--cb-yellow); }

/* ==========================================
   27. PORTFOLIO CARD DATA VISUALIZATIONS
========================================== */
.card-chart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.9rem 0 0.8rem;
    padding: 0.85rem 1rem;
    background: var(--cb-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cb-border);
    overflow: hidden;
}
.chart-ring-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.chart-ring { display: block; }
.chart-ring-bg { stroke: var(--cb-border); transition: stroke var(--transition-theme); }
.chart-ring-fill {
    transition: stroke-dashoffset 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    stroke-linecap: round;
}
.chart-ring text {
    fill: var(--cb-text-main);
    font-family: 'Inter', sans-serif;
    transition: fill var(--transition-theme);
}
.chart-ring-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cb-text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chart-meta { flex: 1; min-width: 0; }
.chart-meta-title {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--cb-text-main);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chart-compare-row { display: flex; flex-direction: column; gap: 0.35rem; }
.chart-compare-item {
    display: grid;
    grid-template-columns: 80px 1fr 34px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
}
.chart-compare-label { font-weight: 600; color: var(--cb-text-muted); white-space: nowrap; }
.chart-compare-bar-track {
    height: 5px;
    background: var(--cb-border);
    border-radius: 100px;
    overflow: hidden;
}
.chart-compare-bar-fill {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chart-compare-val { font-weight: 800; color: var(--cb-text-main); text-align: right; }
.chart-bar-row {
    display: grid;
    grid-template-columns: 48px 1fr 32px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
}
.chart-bar-label { font-weight: 600; color: var(--cb-text-muted); }
.chart-bar-track { height: 6px; background: var(--cb-border); border-radius: 100px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 100px; width: 0; transition: width 1.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chart-bar-pct { font-weight: 800; color: var(--cb-text-main); text-align: right; }
.chart-multi-bars { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }

/* ==========================================
   29. NUDGE BAR — SCROLL-TRIGGERED CTA
========================================== */
.nudge-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--clr-primary);
    color: #ffffff;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.52s ease;
    box-shadow: 0 -6px 32px rgba(30, 58, 138, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.nudge-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.nudge-bar.is-dismissed {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.7, 0, 1, 1), opacity 0.32s ease;
}
.nudge-bar-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.nudge-bar-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    flex-wrap: wrap;
}
.nudge-bar-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cb-yellow);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nudge-bar-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}
.nudge-bar-text strong {
    color: #ffffff;
    font-weight: 800;
}
.nudge-bar-cta {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.875rem !important;
    padding: 0.55rem 1.35rem !important;
}
.nudge-bar-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color var(--transition-base), background var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}
.nudge-bar-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
body.dark-theme .nudge-bar {
    background: #1a3580;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 600px) {
    .nudge-bar-inner {
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .nudge-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        flex: 1;
    }
    .nudge-bar-cta {
        width: 100%;
        justify-content: center !important;
        text-align: center;
    }
    .nudge-bar-close {
        position: absolute;
        top: 0.75rem;
        right: 1rem;
    }
    .nudge-bar { position: fixed; }
}
/* ══════════════════════════════════════════════════
   PHASE 3 — CRO / NEUROMARKETING UTILITY CLASSES
   ══════════════════════════════════════════════════ */

/* C-01: Hero micro-trust row */
.hero-micro-trust {
    display: flex; flex-wrap: wrap;
    gap: 2rem; align-items: center;
    margin-top: 0.875rem;
    font-size: 0.78rem; font-weight: 600; color: var(--cb-text-muted);
}
.hero-micro-trust span { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.hero-micro-trust .fa-check-circle { color: #22c55e; }
.hero-micro-trust .fa-gift         { color: var(--clr-primary); }
.hero-micro-trust .fa-bolt         { color: var(--cb-yellow); }

.hero-trust-badges { margin-top: 0 !important; display: flex; flex-direction: column; gap: 1rem; }
.hero-trust-badges .trust-row-top, .hero-trust-badges .trust-row-bottom { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hero-trust-badges .trust-row-top { color: #475467; font-size: 0.95rem; }
.hero-trust-badges .trust-row-bottom { padding-top: 0.5rem; border-top: 1px solid #eaecf0; font-weight: 500; color: #475467; font-size: 0.95rem; }
.hero-trust-badges span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: #f8fafc; border: 1px solid #eaecf0; }
.hero-trust-badges .premium-blue { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
.hero-trust-badges .premium-gold { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.hero-trust-badges .stars { color: #fdb022; letter-spacing: 2px; background: #fffaeb; border-color: #fedf89; }
.hero-trust-badges .divider { color: #d0d5dd; background: transparent; border: 0; padding: 0; }
@media (max-width: 768px) {
    .hero-trust-badges .trust-row-top,
    .hero-trust-badges .trust-row-bottom { gap: 0.75rem; }
}

/* C-05/06: Availability badge (banners) */
.availability-badge-hero {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.78rem; font-weight: 700; color: #22c55e;
    background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35);
    border-radius: 100px; padding: 0.28rem 0.875rem;
    margin-bottom: 0.75rem; letter-spacing: 0.02em;
}
.availability-badge-hero .avail-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    animation: pulse-online 2s ease-in-out infinite;
}

/* C-06: Niche hero risk-reversal text */
.hero-risk-reversal {
    margin-top: 0.875rem; font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.72);
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.3rem; justify-content: center; letter-spacing: 0.01em;
}
.hero-risk-reversal .fa-check-circle { color: #4ade80; }
.hero-risk-reversal .fa-gift         { color: rgba(255,255,255,0.9); }
.hero-risk-reversal .fa-bolt         { color: var(--cb-yellow); }

/* C-03: Social proof bar above contact form */
.cro-proof-bar {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
    align-items: center; justify-content: center;
    padding: 0.7rem 1rem;
    background: var(--cb-section-bg); border: 1px solid var(--cb-border);
    border-radius: var(--radius-md); margin-bottom: 1.25rem;
    font-size: 0.78rem; font-weight: 600; color: var(--cb-text-muted);
}
.cro-proof-item { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.cro-proof-item .fa-star      { color: var(--cb-yellow); }
.cro-proof-item .fa-shield-alt{ color: var(--clr-primary); }
.cro-proof-sep  { color: var(--cb-border); display: none; }
@media (min-width: 480px) { .cro-proof-sep { display: block; } }

/* C-04: Triple guarantee block */
.guarantee-block {
    background: var(--cb-section-bg); border: 1px solid var(--cb-border);
    border-left: 3px solid var(--clr-primary);
    border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-top: 1.25rem;
}
.guarantee-title {
    font-size: 0.82rem; font-weight: 700; color: var(--cb-text);
    margin-bottom: 0.625rem; display: flex; align-items: center; gap: 0.4rem;
}
.guarantee-title .fa-shield-check { color: var(--clr-primary); }
.guarantee-item {
    font-size: 0.78rem; color: var(--cb-text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 0.4rem;
    margin-top: 0.35rem; line-height: 1.4;
}
.guarantee-item .fa-check { color: #22c55e; }

/* C-08: Aggregate rating bar (reviews page) */
.agg-rating-bar {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--cb-card-bg); border: 1px solid var(--cb-border);
    border-radius: var(--radius-lg); margin-bottom: 2.5rem;
    flex-wrap: wrap; row-gap: 0.75rem;
}
.agg-rating-score  { font-size: 2.75rem; font-weight: 900; color: var(--cb-text); line-height: 1; flex-shrink: 0; }
.agg-rating-detail { flex: 1; min-width: 160px; }
.agg-rating-stars  { font-size: 1.15rem; color: var(--cb-yellow); letter-spacing: 0.04em; line-height: 1; margin-bottom: 0.3rem; }
.agg-rating-meta   { font-size: 0.8rem; color: var(--cb-text-muted); font-weight: 500; }
.agg-rating-badge  {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: #14a800; color: #fff;
    font-size: 0.78rem; font-weight: 700;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm); white-space: nowrap;
}

/* C-07: Quiz social proof strip */
.quiz-social-proof {
    display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
    align-items: center; justify-content: center;
    padding: 0.875rem 1.25rem;
    background: var(--cb-section-bg); border: 1px solid var(--cb-border);
    border-radius: var(--radius-md); margin-bottom: 1.5rem;
    font-size: 0.8rem; font-weight: 600; color: var(--cb-text-muted);
}
.quiz-social-proof span { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.quiz-social-proof .fa-star         { color: var(--cb-yellow); }
.quiz-social-proof .fa-user-check   { color: var(--clr-primary); }
.quiz-social-proof .fa-circle-check { color: #22c55e; }

/* ══════════════════════════════════════════════════
   PAGE TRANSITIONS — Silk fade-in / fade-out
   Enter: 0.38s ease-out on every page load
   Exit:  0.29s triggered by JS .page-exiting class
   ══════════════════════════════════════════════════ */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════
   ELITE OVERHAUL — DARK MODE YELLOW GLOW ACCENTS
   Premium SaaS dashboard glow on key numbers
   ══════════════════════════════════════════════════ */
body.dark-theme .stat-counter {
    text-shadow: 0 0 24px rgba(245, 184, 0, 0.45), 0 0 52px rgba(245, 184, 0, 0.18);
}
body.dark-theme .synth-stat-value {
    text-shadow: 0 0 20px rgba(245, 184, 0, 0.55), 0 0 42px rgba(245, 184, 0, 0.22);
}
body.dark-theme .quiz-trust-num {
    text-shadow: 0 0 22px rgba(245, 184, 0, 0.4), 0 0 44px rgba(245, 184, 0, 0.15);
}
body.dark-theme .agg-rating-score {
    text-shadow: 0 0 20px rgba(245, 184, 0, 0.35);
}

/* ==========================================
   LIVE SAMPLE PREVIEW WIDGET
   3-step lead qualification drawer
========================================== */
.sample-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sample-drawer.is-open { opacity: 1; pointer-events: all; }
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 22, 0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.drawer-panel {
    position: relative;
    z-index: 1;
    background: var(--cb-card-bg);
    border: 1px solid var(--cb-border);
    border-top: 3px solid var(--clr-primary);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2.75rem 2rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transform: translateY(22px) scale(0.97);
    transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.dark-theme .drawer-panel {
    border-top-color: var(--cb-yellow);
    background: #1e293b;
    box-shadow: 0 40px 100px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07) inset;
}
.sample-drawer.is-open .drawer-panel { transform: translateY(0) scale(1); }
.drawer-close {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    width: 1.9rem; height: 1.9rem;
    border-radius: 50%;
    border: 1px solid var(--cb-border);
    background: var(--cb-surface);
    color: var(--cb-text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.76rem;
    transition: all 0.2s ease;
}
.drawer-close:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
/* Step indicator */
.drawer-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 2rem;
}
.drawer-step {
    width: 1.9rem; height: 1.9rem;
    border-radius: 50%;
    border: 2px solid var(--cb-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.74rem; font-weight: 800;
    color: var(--cb-text-muted);
    transition: all 0.3s ease; flex-shrink: 0;
}
.drawer-step.active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.drawer-step.done   { background: #22c55e; border-color: #22c55e; color: #fff; }
.drawer-step-line {
    flex: 1; height: 2px;
    background: var(--cb-border); max-width: 56px;
    transition: background 0.3s ease;
}
.drawer-step-line.done { background: #22c55e; }
/* Content states */
.drawer-content { display: block; }
.drawer-content.hidden { display: none; }
/* Eyebrow + headings */
.drawer-eyebrow {
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--clr-primary); margin-bottom: 0.4rem;
}
body.dark-theme .drawer-eyebrow { color: var(--cb-yellow); }
.drawer-title {
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 900; color: var(--cb-text-main);
    letter-spacing: -0.4px; margin-bottom: 0.4rem; line-height: 1.2;
}
.drawer-sub {
    font-size: 0.875rem; color: var(--cb-text-muted);
    margin-bottom: 1.5rem; line-height: 1.6;
}
/* Form + pills */
.drawer-form { display: flex; flex-direction: column; gap: 1.1rem; }
.drawer-field { display: flex; flex-direction: column; gap: 0.45rem; }
.drawer-label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--cb-text-muted);
}
.drawer-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.drawer-pill {
    padding: 0.4rem 0.85rem; border-radius: 100px;
    border: 1.5px solid var(--cb-border); background: var(--cb-surface);
    color: var(--cb-text-muted); font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.15s ease; font-family: inherit; line-height: 1;
}
.drawer-pill:active { transform: scale(0.96); }
.drawer-pill:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px; }
.drawer-pill:hover  { border-color: var(--clr-primary); color: var(--clr-primary); }
.drawer-pill.selected { border-color: var(--clr-primary); background: var(--clr-primary); color: #fff; }
body.dark-theme .drawer-pill.selected { border-color: var(--cb-yellow); background: var(--cb-yellow); color: #111; }
.drawer-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--clr-primary); color: #fff; border: none;
    border-radius: var(--radius-md); padding: 0.85rem 2rem;
    font-size: 0.92rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.22s ease; margin-top: 0.25rem;
}
.drawer-cta:hover:not(:disabled) {
    background: var(--clr-primary-glow);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}
.drawer-cta:disabled { opacity: 0.38; cursor: not-allowed; }
.drawer-cta:focus-visible { outline: 3px solid var(--cb-yellow); outline-offset: 3px; }
/* Research step */
.drawer-research {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 1.1rem; padding: 1.5rem 0 2rem;
}
.research-icon {
    width: 4rem; height: 4rem;
    background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(37,99,235,0.15));
    border: 1px solid rgba(30,58,138,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--clr-primary);
    animation: rPulse 1.8s ease-in-out infinite;
}
body.dark-theme .research-icon { border-color: rgba(245,184,0,0.22); color: var(--cb-yellow); }
@keyframes rPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(30,58,138,0.3); }
    50%      { box-shadow: 0 0 0 12px rgba(30,58,138,0); }
}
.research-title { font-size: 1.15rem; font-weight: 800; color: var(--cb-text-main); margin: 0; }
.research-bar {
    width: 100%; height: 4px;
    background: var(--cb-border); border-radius: 100px; overflow: hidden;
}
.research-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-primary), #2563eb);
    border-radius: 100px; width: 0%;
    transition: width 0.1s linear;
}
.research-status { font-size: 0.82rem; color: var(--cb-text-muted); min-height: 1.4em; margin: 0; }
.research-sources { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.research-source {
    font-size: 0.73rem; font-weight: 600; color: var(--cb-text-muted);
    display: flex; align-items: center; gap: 0.35rem;
    opacity: 0.35; transition: opacity 0.4s ease, color 0.4s ease;
}
.research-source.lit { opacity: 1; color: var(--clr-primary); }
body.dark-theme .research-source.lit { color: var(--cb-yellow); }
/* Lead preview table */
.drawer-preview-title {
    font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-weight: 900;
    color: var(--cb-text-main); margin-bottom: 0.3rem; letter-spacing: -0.3px;
}
.lead-preview-table {
    border: 1px solid var(--cb-border); border-radius: var(--radius-md);
    overflow: hidden; margin: 1rem 0; font-size: 0.78rem;
}
.lpt-header {
    display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.5fr;
    background: var(--cb-section-bg); padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--cb-border);
}
.lpt-header span {
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; color: var(--cb-text-muted);
}
.lpt-row {
    display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.5fr;
    padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--cb-border);
    align-items: center;
}
.lpt-row:last-of-type { border-bottom: none; }
.lpt-row span { color: var(--cb-text-main); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpt-visible { background: rgba(30,58,138,0.03); }
.lpt-visible .lpt-email { color: var(--clr-primary); font-weight: 700; }
.lpt-blurred span { filter: blur(4px); user-select: none; color: var(--cb-text-muted); }
.lpt-more {
    padding: 0.55rem 0.9rem; font-size: 0.73rem; font-weight: 700;
    color: var(--clr-primary); background: rgba(30,58,138,0.04);
    text-align: center; border-top: 1px solid var(--cb-border);
}
body.dark-theme .lpt-more { color: var(--cb-yellow); }
/* Email capture form */
.drawer-email-form { display: flex; flex-direction: column; gap: 0.65rem; }
.drawer-email-label { font-size: 0.85rem; font-weight: 600; color: var(--cb-text-main); }
.drawer-email-row { display: flex; gap: 0.45rem; }
.drawer-email-input {
    flex: 1; padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--cb-border); border-radius: var(--radius-md);
    background: var(--cb-surface); color: var(--cb-text-main);
    font-size: 0.875rem; font-family: inherit; outline: none;
    transition: border-color 0.2s ease;
}
.drawer-email-input:focus { border-color: var(--clr-primary); }
body.dark-theme .drawer-email-input:focus { border-color: var(--cb-yellow); }
.drawer-email-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--cb-yellow); color: #111; border: none;
    border-radius: var(--radius-md); padding: 0.7rem 1.2rem;
    font-size: 0.84rem; font-weight: 800; font-family: inherit;
    cursor: pointer; white-space: nowrap; transition: all 0.2s ease;
}
.drawer-email-btn:hover { background: #e6ad00; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,184,0,0.4); }
.drawer-disclaimer { font-size: 0.7rem; color: var(--cb-text-muted); text-align: center; margin: 0; }
/* Success state */
.drawer-success {
    display: none; flex-direction: column; align-items: center;
    text-align: center; gap: 1rem; padding: 2rem 1rem;
}
.drawer-success.visible { display: flex; }
.success-ring {
    width: 60px; height: 60px; background: #22c55e;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    animation: sPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes sPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.drawer-success h3 { font-size: 1.2rem; font-weight: 800; color: var(--cb-text-main); margin: 0; }
.drawer-success p { font-size: 0.875rem; color: var(--cb-text-muted); margin: 0; }
@media (max-width: 640px) {
    .drawer-panel { padding: 1.75rem 1.25rem 1.5rem; }
    .drawer-email-row { flex-direction: column; }
    .lpt-header, .lpt-row { grid-template-columns: 1.3fr 1fr 1.5fr; }
    .lpt-header span:nth-child(3), .lpt-row span:nth-child(3) { display: none; }
}

/* ==========================================
   BACK BUTTON & READ MORE
========================================== */
.back-btn-wrap {
    padding: 20px 0 0 0;
    margin-top: 80px;
    text-align: left;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cb-text-muted);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.btn-back:hover {
    color: var(--clr-primary);
    transform: translateX(-5px);
}
body.dark-theme .btn-back:hover {
    color: var(--cb-yellow);
}

.read-more-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease, margin 0.6s ease, padding 0.6s ease;
    font-size: 0.95rem;
    color: var(--cb-text-muted);
    margin-top: 0;
    border-top: 1px solid transparent;
}
.read-more-content.expanded {
    max-height: 1200px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top-color: var(--cb-border);
}
.read-more-content p {
    margin-bottom: 12px;
}
.read-more-content p strong {
    color: var(--cb-text-main);
}
.btn-read-more {
    background: none;
    border: none;
    color: var(--clr-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.btn-read-more i {
    transition: transform 0.3s ease;
}
.btn-read-more.active i {
    transform: rotate(180deg);
}
body.dark-theme .btn-read-more {
    color: var(--cb-yellow);
}

/* ==========================================
   POWERFUL FAQ ACCORDION (NEW STYLES)
========================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}
.faq-item {
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.dark-theme .faq-item {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249,115,22,0.15);
    border-color: rgba(249,115,22,0.4);
}
.faq-toggle {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cb-text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.faq-toggle:hover {
    color: var(--clr-primary);
}
body.dark-theme .faq-toggle:hover {
    color: var(--cb-yellow);
}
.faq-toggle i {
    font-size: 1rem;
    color: var(--clr-primary);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(249,115,22,0.1);
    padding: 10px;
    border-radius: 50%;
}
body.dark-theme .faq-toggle i {
    color: var(--cb-yellow);
    background: rgba(252,211,77,0.1);
}
.faq-toggle.active i {
    transform: rotate(45deg);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-content-inner {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--cb-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    border-top: 1px solid transparent;
    transition: border-top-color 0.5s ease, padding-top 0.5s ease;
}
.faq-toggle.active + .faq-content .faq-content-inner {
    border-top-color: var(--cb-border);
    padding-top: 1.5rem;
}

/* ===================== HERO BACKGROUND SLIDER (KEN BURNS) ===================== */
.cb-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 95vh;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1800px;
    margin: 1rem auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--cb-bg);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 25s infinite, kenburns 25s infinite;
}

/* 5 Images = 25s total */
.hero-slide:nth-child(1) { animation-delay: 0s, 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s, 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s, 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s, 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s, 20s; }

@keyframes heroFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}
    100% { transform: scale(1.15); }
}

/* Theme-Aware Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* In dark mode: dark overlay. In light mode: light overlay */
    background: var(--hero-overlay-color, rgba(11, 18, 32, 0.85));
}

@media (prefers-color-scheme: light) {
    :root {
    --cb-grid-line: rgba(0, 0, 0, 0.05);
        --hero-overlay-color: rgba(255, 255, 255, 0.88);
    }
}
[data-theme="light"] {
    --hero-overlay-color: rgba(255, 255, 255, 0.88);
}
[data-theme="dark"] {
    --hero-overlay-color: rgba(11, 18, 32, 0.85);
}

/* ===================== HERO WAVE DIVIDER ===================== */
.custom-shape-divider-bottom-1718012345 {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1718012345 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.custom-shape-divider-bottom-1718012345 .shape-fill {
    /* Matches competitor's orange wave */
    fill: #f97316;
}

/* Adjust layout so content doesn't get hidden under the wave */
.cb-hero-grid { position: relative; z-index: 10; margin-top: 100px !important;  
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

#hero-heading {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.cb-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 700px;
}


/* FINAL HERO FIXES TO MATCH REFERENCE */


.cb-hero-grid { position: relative; z-index: 10; margin-top: 100px !important;  
    display: block !important;
    width: 100% !important;
    padding-bottom: 0 !important;
    margin-top: 5vh !important; /* Slight push down to center perfectly over image */
}

#hero-heading {
    font-size: clamp(3rem, 5.5vw, 5rem) !important;
    max-width: 900px !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Powerful pop */
}

.cb-hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem) !important;
    max-width: 800px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 2rem !important;
}

/* Make sure overlay is dark enough */
.hero-overlay {
    background: var(--hero-overlay-color, rgba(11, 18, 32, 0.75)) !important;
}

/* Ensure the wave is completely flushed to the bottom of the 100vh container */
.custom-shape-divider-bottom-1718012345 {
    bottom: 0 !important;
    z-index: 10 !important;
}

/* Clean Hero Text Visibility */
.hero-title-clean {
    color: var(--cb-text-main) !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}
.hero-para-clean {
    color: var(--cb-text-main) !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
}
[data-theme="dark"] .hero-title-clean, [data-theme="dark"] .hero-para-clean {
    color: #ffffff !important;
}
/* In light mode, the overlay is white. So text must be dark without heavy black shadow. */
[data-theme="light"] .hero-title-clean, [data-theme="light"] .hero-para-clean {
    color: #0b1220 !important;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8) !important;
}

.hero-btn-clean { border: none !important; background: #f97316 !important; color: #ffffff !important; font-weight: 700 !important; padding: 15px 40px !important; transition: all 0.3s ease !important; border-radius: 50px !important; font-size: 1.1rem !important; }

/* === ULTIMATE HERO REFINEMENTS === */
/* Force Dark Overlay and White Text for Both Themes (Premium Look) */
.hero-overlay {
    background: rgba(5, 8, 15, 0.88) !important;
}
.hero-title-clean, .hero-para-clean, .hero-eyebrow {
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8) !important;
}
[data-theme="light"] .hero-title-clean, [data-theme="light"] .hero-para-clean, [data-theme="light"] .hero-eyebrow {
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8) !important;
}

/* Fix Width and Sizing */
.cb-hero-grid { position: relative; z-index: 10; margin-top: 100px !important;  
    padding-bottom: 120px !important; /* Push everything above the orange wave */
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#hero-heading {
    font-size: clamp(2.5rem, 4vw, 3.8rem) !important;
    max-width: 700px !important; /* Keep it on the left side */
    line-height: 1.15 !important;
}

.cb-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    max-width: 600px !important; /* Keep it on the left side */
}

.hero-eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #f97316 !important; /* Orange to match the wave */
}

/* Button Styling */
.hero-btn-clean { border: none !important; background: #f97316 !important; color: #ffffff !important; font-weight: 700 !important; padding: 15px 40px !important; transition: all 0.3s ease !important; border-radius: 50px !important; font-size: 1.1rem !important; }
.hero-btn-clean:hover { background: #ea580c !important; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(249,115,22,0.4) !important; color: #ffffff !important; }
.brand-logo {
    display: flex;
    align-items: center;
    line-height: 1;
}
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 15px;
}


/* --------------------------------------
   FINAL HERO SECTION FIX (USER REQUESTS)
--------------------------------------- */




.hero-bg-slider .orange-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.hero-overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(5,8,15,0.95) 0%, rgba(5,8,15,0.6) 50%, rgba(5,8,15,0.2) 100%) !important;
    z-index: 2 !important;
}

.hero-slide {
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

.cb-hero-content {
    position: relative !important;
    z-index: 20 !important; 
    padding: 2rem 5% !important;
    max-width: 800px !important;
    display: block !important;
    margin-top: 0 !important; 
}

.cb-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8) !important;
    margin-bottom: 1.5rem !important;
    font-weight: 900 !important;
}

.cb-hero p {
    font-size: clamp(0.95rem, 1vw, 1.05rem) !important;
    color: #e2e8f0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9) !important;
    max-width: 600px !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6 !important;
}

.hero-eyebrow {
    font-size: 0.85rem !important;
    color: #f97316 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

.hero-btn-clean {
    border: none !important; 
    background: #f97316 !important; 
    color: #ffffff !important; 
    font-weight: 700 !important; 
    padding: 15px 45px !important; 
    border-radius: 50px !important; 
    font-size: 1.15rem !important;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4) !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 30 !important;
}

/* ==========================================
   DYNAMIC VALUE PROPOSITION SECTION
========================================== */
.dynamic-value-section {
    background-color: var(--cb-surface);
    color: var(--cb-text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 4rem 1.5rem;
    width: 90%;
    max-width: 1800px;
    margin: 1rem auto 4rem auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5;
}

body.dark-theme .dynamic-value-section {
    background-color: #0b0f19; /* Deep dark background like screenshot */
}

.dyn-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.dyn-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.dyn-bullets li {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.dyn-bullets li i {
    color: var(--cb-yellow);
    font-size: 0.9rem;
}

.dyn-bullet-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--cb-yellow);
    border-radius: 50%;
}

.dyn-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 991px) {
    .dyn-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Left Slider Card --- */
.dyn-slider-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #1e1e2f;
}

.dyn-slides-container {
    position: absolute;
    inset: 0;
}

.dyn-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dyn-slide.active {
    opacity: 1;
    z-index: 2;
}

.dyn-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Darken image to make text pop */
}

body.light-theme .dyn-slide img {
    opacity: 0.8;
}

.dyn-slide-content {
    position: relative;
    z-index: 3;
    padding: 3rem;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.dyn-slide:nth-child(2) .dyn-slide-content,
.dyn-slide:nth-child(3) .dyn-slide-content {
    align-items: center;
    background: rgba(0,0,0,0.5);
}

.dyn-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.dyn-slide-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dyn-slide-desc {
    font-size: 1.1rem;
    max-width: 80%;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Floating Rating Badge */
.dyn-floating-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.dyn-avatar {
    font-size: 24px;
    color: #fff;
    background: #333;
    border-radius: 50%;
    border: 2px solid #111;
}

.dyn-rating-text {
    line-height: 1.2;
    color: #fff;
}

/* --- Right Hologram Card --- */
.dyn-hologram-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #000;
}

.dyn-hologram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dyn-hologram-card:hover img {
    transform: scale(1.05);
}

/* Removed global boxed layout that constrained backgrounds */

/* ==========================================
   PREMIUM DYNAMIC SECTION UPGRADES
========================================== */

/* Gradient Typography */
.dyn-gradient-text {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--cb-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .dyn-gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--cb-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features Glass Grid */
.dyn-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.dyn-feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.dark-theme .dyn-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.dyn-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.dark-theme .dyn-feature-card:hover {
    box-shadow: 0 10px 30px rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.dyn-feature-card .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 184, 0, 0.1); /* Yellow tint */
    color: var(--cb-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.dyn-feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--cb-text-main);
}

.dyn-feature-card p {
    font-size: 0.9rem;
    color: var(--cb-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Slider Glowing Border Effect */
.dyn-slider-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, var(--clr-primary), var(--cb-yellow), transparent, transparent);
    z-index: 0;
    animation: borderGlow 6s linear infinite;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dyn-slides-container {
    z-index: 1; /* Place over glow */
    border-radius: 20px;
    background: #111; /* Ensure background masks glow under it */
}

/* Ensure content sits above the video overlay */
.dyn-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

/* Ensure content sits above the video overlay */
.dyn-slide-content {
    z-index: 3 !important;
    background: transparent !important; /* Remove old background since overlay handles it */
}

/* UI Fixes added for FAQ and Upwork Cards */
.faq-item-3d {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 25px;
    transition: all 0.3s ease;
}
body.dark-theme .faq-item-3d {
    background: rgba(15, 20, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.upwork-card-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%) !important;
}
body.dark-theme .upwork-card-glass {
    background: linear-gradient(135deg, rgba(15,20,35,0.9) 0%, rgba(15,20,35,0.6) 100%) !important;
}


/* ==========================================================================
   Premium Service 3D Overhaul
   ========================================================================== */


/* ==========================================================================
   Premium Service 3D Overhaul
   ========================================================================== */
/* Premium 3D Typography & Gradients */
.service-hero-3d { position: relative; padding: 150px 0 120px 0; overflow: hidden; background: var(--cb-bg); border-bottom: 1px solid var(--cb-border); }
.glow-orb-primary { position: absolute; width: 800px; height: 800px; background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, rgba(0,0,0,0) 70%); top: -200px; left: -150px; filter: blur(70px); z-index: 0; }
.glow-orb-secondary { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(0,0,0,0) 70%); bottom: -100px; right: -50px; filter: blur(60px); z-index: 0; }
.container-3d { max-width: 1250px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

.text-gradient { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title-3d { font-size: 3.5rem; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 25px; color: var(--cb-text); line-height: 1.1; font-family: 'Outfit', 'Inter', sans-serif; }
.subtitle-3d { font-size: 1.3rem; line-height: 1.8; color: var(--cb-text-muted); margin-bottom: 45px; max-width: 850px; }

/* Glassmorphism 3D Cards */
.card-3d-glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.05); padding: 50px; margin-bottom: 60px; position: relative; overflow: hidden; }
body.dark-theme .card-3d-glass { background: rgba(15, 20, 35, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 25px 60px rgba(0,0,0,0.4); }

/* Content Styling */
.human-article { font-size: 1.15rem; line-height: 1.9; color: var(--cb-text-muted); margin-bottom: 30px; font-family: 'Inter', sans-serif; }
.human-article strong { color: var(--cb-text); font-weight: 700; }
.section-heading-3d { font-size: 2.2rem; font-weight: 800; margin-bottom: 30px; color: var(--cb-text); display: flex; align-items: center; gap: 15px; font-family: 'Outfit', 'Inter', sans-serif; }
.section-heading-3d i { color: #f97316; font-size: 1.8rem; }

/* Tools Bento Grid */
.tools-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 40px; }
.tool-card { background: var(--cb-surface); border: 1px solid var(--cb-border); padding: 30px; border-radius: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tool-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.3); }
.tool-icon { width: 60px; height: 60px; border-radius: 15px; background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(249,115,22,0.3); }
.tool-card h4 { font-size: 1.3rem; font-weight: 800; color: var(--cb-text); margin-bottom: 12px; }
.tool-card p { font-size: 1rem; color: var(--cb-text-muted); line-height: 1.7; }

/* Process Timeline */
.process-timeline { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 30px; }
.process-node { display: flex; gap: 30px; align-items: flex-start; background: var(--cb-surface); border: 1px solid var(--cb-border); padding: 35px; border-radius: 20px; }
.process-number { font-size: 3rem; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(249,115,22,0.3); line-height: 1; font-family: 'Outfit', sans-serif; }
.process-node h4 { font-size: 1.5rem; font-weight: 800; color: var(--cb-text); margin-bottom: 15px; }
.process-node p { font-size: 1.1rem; color: var(--cb-text-muted); line-height: 1.7; }

/* Deliverables Grid */
.deliverables-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.deliverable-item { background: rgba(249,115,22,0.05); border: 1px solid rgba(249,115,22,0.15); padding: 20px 25px; border-radius: 16px; font-weight: 700; color: var(--cb-text); display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.deliverable-item i { color: #f97316; font-size: 1.4rem; }

@media (max-width: 768px) {
    .process-node { flex-direction: column; gap: 15px; padding: 25px; }
    .section-title-3d { font-size: 2.5rem; }
    .card-3d-glass { padding: 30px; }
}


/* ==========================================================================
   Ultra Footer & Premium WhatsApp FAB
   ========================================================================== */
.ultra-footer {
    background: var(--cb-surface);
    color: var(--cb-text-muted);
    padding: 80px 0 0 0;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--cb-border);
}
.ultra-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}
@media (max-width: 992px) {
    .ultra-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .ultra-footer-grid { grid-template-columns: 1fr; }
}
.uf-col-title {
    color: #f97316;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}
.uf-link {
    color: var(--cb-text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.uf-link:hover {
    color: #f97316;
    padding-left: 5px;
}
.uf-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.uf-social-icon {
    width: 40px; height: 40px;
    background: #f97316;
    color: #ffffff !important;
    display: flex; justify-content: center; align-items: center;
    border-radius: 8px; text-decoration: none; font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}
.uf-social-icon:hover {
    transform: translateY(-3px);
    background: #ea580c;
}
.uf-bottom-bar {
    border-top: 1px solid var(--cb-border);
    padding: 25px 0;
    font-size: 0.9rem;
}
.uf-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%;
}
.uf-bottom-links { display: flex; gap: 20px; }
.uf-bottom-links a { color: var(--cb-text-muted); text-decoration: none; }
.uf-bottom-links a:hover { color: #f97316; }
@media (max-width: 768px) {
    .uf-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
}

.premium-wa-fab {
    position: fixed !important; bottom: 90px !important; right: 30px !important; left: auto !important;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    z-index: 999999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-wa-fab:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6), inset 0 2px 0 rgba(255,255,255,0.4);
    color: #ffffff;
}


/* ==========================================================================
   MOBILE LAYOUT HOTFIXES (Hero Wave & Footer Alignment)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Hero Section Wave Overlap Fix */
    .cb-hero {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 120px !important; /* Add space at the bottom for the wave */
        border-radius: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .cb-hero-grid {
        margin-top: 100px !important;
        padding-bottom: 0 !important;
    }
    .custom-shape-divider-bottom-1718012345 {
        height: 40px !important; 
    }
    .custom-shape-divider-bottom-1718012345 svg {
        height: 40px !important;
    }
    
    /* 2. Footer Bottom Bar Squashing Fix */
    .uf-bottom-inner {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        width: 100% !important;
    }
    .uf-bottom-inner > div:first-child {
        line-height: 1.8 !important;
        font-size: 0.85rem !important;
    }
    .uf-bottom-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .uf-bottom-links a {
        font-size: 0.85rem !important;
    }
}





/* ==========================================================================
   PRECISION MOBILE LAYOUT OVERHAUL (v5.0)
   ========================================================================== */
@media (max-width: 768px) {
    /* Safe Horizontal Scroll Fix - Apply only to main wrapper/body */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container, .container-3d, .container-fluid {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Reduce Giant Paddings Safely */
    .section-padding {
        padding: 50px 0 !important;
    }
    .card-3d-glass {
        padding: 30px 20px !important;
        margin-bottom: 25px !important;
        box-sizing: border-box !important;
    }

    /* Force Grids to Single Column */
    .bento-grid, 
    .tools-bento, 
    .deliverables-bento, 
    .process-timeline,
    .ultra-footer-grid,
    .grid-auto-fit {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Typography Scaling WITHOUT text-align override */
    .section-title-3d, #hero-heading {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
        line-height: 1.15 !important;
        word-wrap: break-word !important;
    }
    h2, .section-title, .dyn-heading {
        font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
        line-height: 1.3 !important;
    }
    .subtitle-3d {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }

    /* Specific Component Fixes */
    .process-node {
        padding: 20px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .process-number {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-bottom: 15px !important;
        display: inline-flex !important;
    }

    /* Hide Complex Desktop Orbs to save space and performance */
    .glow-orb-primary, .glow-orb-secondary {
        display: none !important;
    }

    /* Fix Hero Wave & Button Alignment */
    .cb-hero {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 120px !important;
    }
    .cb-hero-grid {
        margin-top: 50px !important;
        padding-bottom: 0 !important;
    }
    .custom-shape-divider-bottom-1718012345 {
        height: 50px !important;
    }
    .custom-shape-divider-bottom-1718012345 svg {
        height: 50px !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .hero-btn-clean {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Fix Footer Links Squashing */
    .uf-bottom-inner {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
    .uf-bottom-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
}

/* =========================================================================
   MOBILE RESPONSIVENESS FIXES (Targeted CSS per Audit)
   ========================================================================= */

@media (max-width: 992px) {
    /* 1. Fix global container fixed widths causing horizontal overflow */
    .container, .page-wrapper, .container-read, .section-header, 
    .cb-hero, .cb-ticker-mask, .error-card, .faq-accordion, 
    .nudge-bar-inner, .drawer-panel, .quiz-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Fix extreme paddings compressing mobile content */
    .main-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 3. Fix hardcoded grids and inline class grids */
    .dyn-grid, .promise-cards-grid, .tab-inner-grid, .about-grid, 
    .cb-hero-grid, .feature-grid, .vs-grid, .bottleneck-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        height: auto !important;
        display: grid !important;
    }
    
    /* 4. Fix hardcoded flex rows that don't wrap and overflow */
    .nav-actions, .cb-nav-links.active, .hero-buttons, .footer-links-row {
        flex-wrap: wrap !important;
    }
    
    /* 5. Ensure inline images and videos scale */
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Prevent page blowout */
    body, html {
        overflow-x: hidden !important;
    }
}
@media (max-width: 768px) {
    /* Ensure elements defined in HTML <style> tags stack properly on mobile */
    .bento-grid-full, .hero-grid-3d, .dyn-media-card {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix video card height overlapping content */
    .dyn-media-card {
        height: auto !important;
        min-height: 500px;
    }

    /* Fix video card bottom strip squishing and overlapping WhatsApp */
    .dyn-media-card > div[style*="bottom: 0"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    /* Fix testimonial avatars breaking out of cards */
    .review-card .client-info img {
        margin-left: 0 !important;
        position: static !important;
        display: block;
        margin-bottom: 10px;
    }
    
    /* Fix methodology icons shrinking when text wraps */
    .hero-grid-3d ul li > div {
        flex-shrink: 0 !important;
    }

    /* Fix Verified Expert badge overlap on Hero Portrait */
    .arch-portrait-wrapper {
        margin-bottom: 50px !important;
    }

    /* Fix narrow squeezed inline grids like Abdul Majeed bio */
    .card-3d-glass[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Fix WhatsApp FAB overlapping footer or bottom text on small devices */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px !important;
    }
}

/* =========================================================================
   PHASE 3: UNIVERSAL MOBILE SAFETY NETS (Ultra-small devices 320px - 480px)
   ========================================================================= */
@media (max-width: 480px) {
    /* 1. Prevent ultra-large inline fonts from breaking layout */
    h1, h2, h3, .hero-title, 
    [style*="font-size: 2.5"], [style*="font-size: 2.8"], 
    [style*="font-size: 3."], [style*="font-size: 4."] {
        font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
        line-height: 1.2 !important;
    }

    /* 2. Prevent large paddings from squeezing content on 320px screens */
    .card-3d-glass,
    .legal-content,
    .section-padding,
    [style*="padding: 40px"],
    [style*="padding: 50px"],
    [style*="padding: 140px"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 3. Global word-wrap enforcement to stop unbroken words/URLs pushing out */
    * {
        word-wrap: break-word !important;
        overflow-wrap: anywhere !important;
    }
}

/* =========================================================================
   FINAL 3 VISUAL BUGS FIX (Contact Cards, Tabs, Portrait Shift)
   ========================================================================= */
@media (max-width: 768px) {
    /* 1. Fix Contact Cards Cut-Off (Screenshot 1) */
    .contact-grid-3d .card-3d-glass {
        height: auto !important;
        padding: 20px !important;
    }

    /* 2. Fix Vertical Tabs Text (Screenshot 2) */
    .tabs-header {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .tabs-header .tab-btn {
        flex: 1 1 auto !important;
        white-space: nowrap !important;
    }

    /* 3. Fix Portrait Image Shift & Badge Overlap (Screenshot 3) */
    .arch-portrait-wrapper {
        flex-direction: column !important;
        align-items: center !important;
    }
    .arch-portrait-3d {
        max-width: 100% !important;
        aspect-ratio: auto !important;
        margin: 0 auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .arch-image-wrapper {
        position: relative !important;
        transform: none !important;
    }
    .arch-floating-badge {
        position: static !important;
        display: inline-block !important;
        margin: 20px auto 0 !important;
        text-align: center !important;
    }
}

/* =========================================================================
   POST-AUDIT PRODUCTION HARDENING
   ========================================================================= */
.drawer-form-error {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 10px 0 0;
}

@media (max-width: 768px) {
    .cb-hero {
        width: calc(100% - 24px) !important;
        min-height: auto !important;
        margin: 12px auto !important;
        border-radius: 20px !important;
    }

    .cb-hero-grid {
        margin-top: 72px !important;
        gap: 2rem !important;
    }

    .hero-buttons,
    .nav-actions,
    .footer-links-row {
        gap: 12px !important;
    }

    .drawer-email-row {
        align-items: stretch !important;
    }

    .drawer-email-input,
    .drawer-email-btn,
    .btn,
    button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================================
   RT STABLE LOCAL + MOBILE QA PATCH
   Keeps hero/media glass cards inside the visible mobile viewport.
   ========================================================================= */
@media (max-width: 768px) {
    .gs-slide-right,
    .gs-slide-left {
        transform: none !important;
    }

    .hero-grid-3d > .card-3d-glass,
    .bento-grid-full > .card-3d-glass,
    .tools-bento > .card-3d-glass,
    .deliverables-bento > .card-3d-glass,
    .grid-auto-fit > .card-3d-glass {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
    }

    .hero-grid-3d > .card-3d-glass img,
    .bento-grid-full > .card-3d-glass img,
    .tools-bento > .card-3d-glass img,
    .deliverables-bento > .card-3d-glass img,
    .grid-auto-fit > .card-3d-glass img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================================
   MOBILE VISUAL + LIGHTHOUSE REPAIR PASS
   Targeted mobile-only repairs for navbar, media cards, profile card, and FAB.
   ========================================================================= */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
    }

    body {
        padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    }

    .cb-nav {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        min-height: 58px !important;
        height: 58px !important;
        top: 8px !important;
        padding: 8px 14px !important;
        border-radius: 18px !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .logo-wrap {
        min-width: 0 !important;
        max-width: calc(100% - 104px) !important;
        overflow: hidden !important;
        flex: 1 1 auto !important;
    }

    .logo-wrap img,
    .logo-wrap picture,
    .logo-wrap .logo-img {
        width: auto !important;
        max-width: 148px !important;
        height: 44px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    .logo-wrap .am-3d-logo {
        width: 48px !important;
        height: 40px !important;
        flex: 0 0 auto !important;
    }

    .am-logo-text-ls {
        min-width: 0 !important;
        margin-left: -2px !important;
    }

    .ls-first-name,
    .ls-last-name {
        font-size: clamp(0.95rem, 4.5vw, 1.18rem) !important;
        line-height: 0.95 !important;
        letter-spacing: 0 !important;
    }

    .nav-actions {
        flex: 0 0 auto !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .theme-toggle,
    .mobile-menu-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

    .cb-nav-links {
        top: 66px !important;
        max-height: calc(100vh - 84px) !important;
        overflow-y: auto !important;
        border-radius: 0 0 18px 18px !important;
    }

    .premium-hero,
    .cb-hero,
    .dynamic-value-section,
    .arch-section-wrapper {
        overflow: hidden !important;
    }

    .hero-bg-slider .hero-slide {
        animation: none !important;
    }

    .hero-bg-slider .hero-slide:nth-child(n+2) {
        display: none !important;
    }

    .dynamic-value-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .dynamic-value-section .dyn-heading {
        font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
        line-height: 1.15 !important;
        text-align: left !important;
    }

    .dynamic-value-section .dyn-heading br {
        display: none;
    }

    .dyn-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-top: 28px !important;
    }

    .dyn-media-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        border-radius: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden !important;
    }

    .office-card.dyn-media-card {
        min-height: 0 !important;
        aspect-ratio: 9 / 14 !important;
        max-height: min(680px, calc(100vh - 120px)) !important;
        padding-bottom: 0 !important;
    }

    .office-card.dyn-media-card > div:first-child,
    .office-card.dyn-media-card video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .office-card.dyn-media-card > div[style*="bottom: 0"] {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 12px !important;
        padding: 18px 16px 20px !important;
        text-align: center !important;
    }

    .office-card.dyn-media-card > div[style*="bottom: 0"] > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(0.78rem, 3.7vw, 0.98rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        white-space: nowrap !important;
    }

    .office-card.dyn-media-card > div[style*="bottom: 0"] > div {
        width: 100% !important;
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    .office-card.dyn-media-card img[alt="Client"] {
        width: 32px !important;
        height: 32px !important;
    }

    #promoVideoSoundBtn {
        width: 44px !important;
        height: 44px !important;
        top: 14px !important;
        right: 14px !important;
    }

    .tech-card.dyn-media-card {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0 !important;
        background: #ffffff !important;
        padding: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .tech-card.dyn-media-card > img {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }

    .tech-card.dyn-media-card > div[style*="position: absolute"] {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 14px !important;
        width: 100% !important;
        transform: none !important;
    }

    .tech-card.dyn-media-card > div[style*="position: absolute"] > div {
        animation: none !important;
        transform: none !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }

    .arch-section-wrapper {
        padding: 42px 0 34px !important;
    }

    .arch-master-box {
        width: calc(100% - 28px) !important;
        border-radius: 24px !important;
        overflow: hidden !important;
    }

    .arch-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 18px 28px !important;
    }

    .arch-portrait-wrapper,
    .arch-content-wrapper,
    .arch-label-wrapper,
    .arch-title,
    .arch-text,
    .arch-quote-box,
    .arch-btn {
        transform: none !important;
    }

    .arch-portrait-3d {
        width: 100% !important;
        max-width: 280px !important;
        aspect-ratio: 1 / 1 !important;
        min-height: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .arch-card-bg {
        inset: 0 !important;
        border-radius: 24px !important;
    }

    .arch-image-wrapper {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 72% !important;
        height: 72% !important;
        transform: translate(-50%, -50%) !important;
        padding: 6px !important;
    }

    .arch-rings {
        width: 80% !important;
        height: 80% !important;
        margin-top: -40% !important;
        margin-left: -40% !important;
    }

    .arch-floating-badge {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        bottom: 10px !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: calc(100% - 24px) !important;
        padding: 10px 16px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        display: inline-flex !important;
    }

    .arch-label {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .arch-title {
        font-size: clamp(1.65rem, 7vw, 2.15rem) !important;
        line-height: 1.18 !important;
        text-align: left !important;
        letter-spacing: 0 !important;
    }

    .arch-quote-box {
        padding: 22px 18px !important;
        margin: 22px 0 !important;
        border-radius: 16px !important;
    }

    .arch-quote-box p,
    .arch-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    .premium-wa-fab,
    .fab-whatsapp {
        width: 52px !important;
        height: 52px !important;
        right: 14px !important;
        bottom: calc(18px + env(safe-area-inset-bottom)) !important;
        font-size: 1.75rem !important;
        z-index: 900 !important;
    }
}

@media (max-width: 360px) {
    .dynamic-value-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .logo-wrap img,
    .logo-wrap picture,
    .logo-wrap .logo-img {
        max-width: 128px !important;
    }

    .ls-first-name,
    .ls-last-name {
        font-size: 0.92rem !important;
    }

    .arch-portrait-3d {
        max-width: 250px !important;
    }

    .office-card.dyn-media-card {
        aspect-ratio: 9 / 15 !important;
    }
}

@media (max-width: 430px) {
    .hero-buttons {
        align-items: flex-start !important;
    }

    .hero-btn-clean {
        width: calc(100% - 74px) !important;
        max-width: 280px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

/* Mobile architect/profile visual correction */
@media (max-width: 768px) {
    .dynamic-value-section.section-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dynamic-value-section .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .arch-section-wrapper {
        padding: 28px 0 24px !important;
    }

    .arch-master-box {
        width: calc(100% - 32px) !important;
        max-width: 440px !important;
        border-radius: 26px !important;
    }

    .arch-container {
        padding: 22px 16px 26px !important;
        gap: 18px !important;
        align-items: center !important;
    }

    .arch-portrait-wrapper {
        width: 100% !important;
        min-height: 0 !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .arch-portrait-3d {
        width: min(72vw, 238px) !important;
        max-width: 238px !important;
        margin: 0 auto 10px !important;
        aspect-ratio: 1 / 1 !important;
        transform: none !important;
        overflow: visible !important;
    }

    .arch-card-bg {
        inset: 0 !important;
        border-radius: 24px !important;
    }

    .arch-image-wrapper {
        top: 45% !important;
        left: 50% !important;
        width: 74% !important;
        height: 74% !important;
        padding: 5px !important;
        transform: translate(-50%, -50%) !important;
    }

    .arch-rings {
        display: block !important;
        top: 45% !important;
        left: 50% !important;
        width: 82% !important;
        height: 82% !important;
        margin-top: -41% !important;
        margin-left: -41% !important;
        animation: none !important;
    }

    .arch-floating-badge {
        left: 50% !important;
        right: auto !important;
        bottom: 12px !important;
        max-width: calc(100% - 22px) !important;
        padding: 9px 14px !important;
        font-size: 0.78rem !important;
        gap: 8px !important;
        transform: translateX(-50%) !important;
        white-space: nowrap !important;
    }

    .arch-label-wrapper {
        width: 100% !important;
        margin-top: 4px !important;
        text-align: center !important;
    }
}

@media (max-width: 360px) {
    .arch-portrait-3d {
        width: 218px !important;
        max-width: 218px !important;
    }

    .arch-floating-badge {
        font-size: 0.74rem !important;
        padding: 8px 12px !important;
    }
}



/* ========================================================================== */
/* INNER PAGE VISUAL WIDTH FIX - 2026-06-24
   Purpose: Make inner page hero sections use the same professional side spacing
   as the homepage hero without changing page content, images, or layout order. */
.about-hero-3d,
.service-hero-3d,
.saas-hero-3d,
.ecom-hero-3d,
.re-hero-3d,
.cs-hero-3d,
.work-hero-3d,
.ins-hero-3d,
.reviews-hero-3d,
.legal-hero-3d {
    width: min(90%, 1800px) !important;
    max-width: 1800px !important;
    margin: 1rem auto 0 auto !important;
    border-radius: 30px !important;
    border: 1px solid var(--cb-border) !important;
    box-sizing: border-box !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10) !important;
}

body.dark-theme .about-hero-3d,
body.dark-theme .service-hero-3d,
body.dark-theme .saas-hero-3d,
body.dark-theme .ecom-hero-3d,
body.dark-theme .re-hero-3d,
body.dark-theme .cs-hero-3d,
body.dark-theme .work-hero-3d,
body.dark-theme .ins-hero-3d,
body.dark-theme .reviews-hero-3d,
body.dark-theme .legal-hero-3d {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26) !important;
}

/* Keep navbar CTA vertically aligned even where page-level button CSS is repeated. */
.cb-nav .nav-actions {
    display: flex !important;
    align-items: center !important;
}

.cb-nav .btn-3d-premium.desktop-btn {
    margin-top: 0 !important;
    align-self: center !important;
    line-height: 1 !important;
    min-height: 44px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Keep hero CTA buttons on the same line height and aligned inside inner pages. */
.about-hero-3d .btn-3d-premium,
.service-hero-3d .btn-3d-premium,
.saas-hero-3d .btn-3d-premium,
.ecom-hero-3d .btn-3d-premium,
.re-hero-3d .btn-3d-premium,
.cs-hero-3d .btn-3d-premium,
.work-hero-3d .btn-3d-premium,
.ins-hero-3d .btn-3d-premium,
.reviews-hero-3d .btn-3d-premium,
.legal-hero-3d .btn-3d-premium,
.about-hero-3d .btn-outline,
.service-hero-3d .btn-outline,
.saas-hero-3d .btn-outline,
.ecom-hero-3d .btn-outline,
.re-hero-3d .btn-outline,
.cs-hero-3d .btn-outline,
.work-hero-3d .btn-outline,
.ins-hero-3d .btn-outline,
.reviews-hero-3d .btn-outline,
.legal-hero-3d .btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1.1 !important;
    min-height: 50px !important;
}

@media (max-width: 768px) {
    .about-hero-3d,
    .service-hero-3d,
    .saas-hero-3d,
    .ecom-hero-3d,
    .re-hero-3d,
    .cs-hero-3d,
    .work-hero-3d,
    .ins-hero-3d,
    .reviews-hero-3d,
    .legal-hero-3d {
        width: calc(100% - 20px) !important;
        margin-top: 0.75rem !important;
        border-radius: 22px !important;
        padding-top: 120px !important;
        padding-bottom: 70px !important;
    }
}

@media (max-width: 420px) {
    .about-hero-3d,
    .service-hero-3d,
    .saas-hero-3d,
    .ecom-hero-3d,
    .re-hero-3d,
    .cs-hero-3d,
    .work-hero-3d,
    .ins-hero-3d,
    .reviews-hero-3d,
    .legal-hero-3d {
        width: calc(100% - 14px) !important;
        border-radius: 18px !important;
    }
}

/* ========================================================================== */
/* FULL PAGE WIDTH SHELL FIX - 2026-06-24
   Purpose: Keep all main page sections aligned with the hero width so inner
   pages do not become edge-to-edge after scrolling. This only changes the
   outer shell width; content, images, buttons, grids, and HTML remain untouched. */
main#main-content > section.section-padding,
.ultra-footer {
    width: min(90%, 1800px) !important;
    max-width: 1800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

main#main-content > section.section-padding {
    border-radius: 30px !important;
}

.ultra-footer {
    border-radius: 30px 30px 0 0 !important;
    margin-top: 1.25rem !important;
}

body.dark-theme main#main-content > section.section-padding,
body.dark-theme .ultra-footer {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
    main#main-content > section.section-padding,
    .ultra-footer {
        width: calc(100% - 20px) !important;
        border-radius: 22px !important;
    }

    .ultra-footer {
        border-radius: 22px 22px 0 0 !important;
    }
}

@media (max-width: 420px) {
    main#main-content > section.section-padding,
    .ultra-footer {
        width: calc(100% - 14px) !important;
        border-radius: 18px !important;
    }

    .ultra-footer {
        border-radius: 18px 18px 0 0 !important;
    }
}
