/* ============================================================
   LEXRAYS — DESIGN SYSTEM
   Professional B2B labour law compliance website
   Apple-inspired simplicity, trust-building aesthetic
============================================================ */

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

/* ---- Design Tokens ---- */
:root {
    --blue-900: #001F5B;
    --blue-800: #003080;
    --blue-700: #0044AA;
    --blue-600: #0055CC;
    --blue: #0066EE;
    --blue-400: #3388FF;
    --blue-300: #66AAFF;
    --blue-100: #E8F0FE;
    --blue-50:  #F0F5FF;

    --teal: #00C2CB;
    --teal-dark: #009AA3;
    --teal-light: #E0FAFB;

    --green: #10B981;
    --green-light: #D1FAE5;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --amber: #F59E0B;
    --amber-light: #FEF3C7;

    --ink: #0A0F1E;
    --ink-80: #1D2433;
    --ink-60: #3D4A60;
    --ink-40: #6B7A99;
    --ink-20: #A8B3CC;
    --ink-10: #D6DCE8;
    --ink-5:  #EEF1F7;
    --white:  #FFFFFF;
    --canvas: #F7F9FC;

    --font-display: 'Outfit', 'DM Sans', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
    --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
    --space-8: 32px;  --space-10: 40px; --space-12: 48px;
    --space-16: 64px; --space-20: 80px; --space-24: 96px;
    --space-32: 128px;

    --r-sm: 6px;   --r-md: 10px;  --r-lg: 16px;
    --r-xl: 24px;  --r-2xl: 32px; --r-full: 9999px;

    --shadow-xs:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl:  0 16px 48px rgba(0,0,0,0.14), 0 8px 20px rgba(0,0,0,0.08);
    --shadow-2xl: 0 24px 64px rgba(0,0,0,0.18), 0 12px 28px rgba(0,0,0,0.10);
    --shadow-blue: 0 8px 28px rgba(0,102,238,0.30);
    --shadow-blue-sm: 0 4px 14px rgba(0,102,238,0.25);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 250ms var(--ease);
    --t-slow: 400ms var(--ease-out);

    --section-dark: #060C1E;
    --section-light-a: #FFFFFF;
    --section-light-b: #F4F7FF;
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }
ul, ol { list-style: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   UTILITIES
============================================================ */
.gradient-text,
.hero-gradient {
    background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 60%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue);
    background: var(--blue-50);
    border: 1px solid rgba(0,102,238,0.18);
    padding: 5px 12px;
    border-radius: var(--r-full);
    margin-bottom: var(--space-4);
    font-family: var(--font-body);
}

.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.section-intro,
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-12);
}
.section-intro h2,
.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.875rem);
    margin-bottom: var(--space-4);
}
.section-intro p,
.section-header p {
    font-size: 1.0625rem;
    color: var(--ink-40);
    line-height: 1.75;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    border-radius: var(--r-full);
    padding: 13px 28px;
    transition: transform 0.35s var(--ease-spring), background 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--shadow-blue-sm);
}
.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 1.5px solid var(--ink-10);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    border-color: var(--blue-300);
    background: var(--blue-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-60);
    padding: 10px 20px;
}
.btn-ghost:hover { color: var(--blue); background: var(--blue-50); }

.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 1rem; }

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--t-base);
}

.nav-bg {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--t-slow);
}

.nav.scrolled .nav-bg {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1;
    text-decoration: none;
}

.nav-logo-img {
    height: 93px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 1;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-60);
    padding: 8px 16px;
    border-radius: var(--r-full);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
    color: var(--blue);
    background: var(--blue-50);
}

.nav-cta { z-index: 1; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1;
}
.nav-hamburger span {
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--t-base);
    display: block;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 100px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-10);
    padding: var(--space-4) var(--space-6) var(--space-6);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    gap: var(--space-2);
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
    padding: 12px var(--space-4);
    font-weight: 500;
    color: var(--ink-60);
    border-radius: var(--r-md);
    transition: var(--t-fast);
}
.nav-mobile a:hover {
    background: var(--blue-50);
    color: var(--blue);
}
.nav-mobile .btn {
    margin-top: var(--space-2);
    justify-content: center;
    width: 100%;
}

/* ============================================================
   HERO V2 — Dark compliance dashboard
============================================================ */
.hv2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 130px 0 90px;
    background-color: #12275C;
    background-image:
        radial-gradient(ellipse 65% 55% at 78% 38%, rgba(90,140,255,0.30) 0%, transparent 65%),
        radial-gradient(ellipse 50% 45% at 12% 78%, rgba(0,194,203,0.20) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 50% 10%, rgba(120,90,255,0.15) 0%, transparent 60%),
        linear-gradient(155deg, #152d6a 0%, #1a3578 35%, #12275c 65%, #0f2050 100%),
        radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: auto, auto, auto, auto, 28px 28px;
}

.hv2-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hv2-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
}
.hv2-orb-1 {
    width: 700px; height: 700px;
    top: -200px; right: -150px;
    background: radial-gradient(circle, rgba(0,102,238,0.45) 0%, transparent 70%);
    animation: hv2-drift 20s ease-in-out infinite;
}
.hv2-orb-2 {
    width: 500px; height: 500px;
    bottom: -150px; left: -100px;
    background: radial-gradient(circle, rgba(0,194,203,0.35) 0%, transparent 70%);
    animation: hv2-drift 26s ease-in-out infinite reverse;
}
.hv2-orb-3 {
    width: 300px; height: 300px;
    top: 40%; left: 40%;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    animation: hv2-drift 34s ease-in-out infinite;
}
@keyframes hv2-drift {
    0%,100% { transform: translate(0,0); }
    33%     { transform: translate(-40px,-30px); }
    66%     { transform: translate(30px, 40px); }
}

.hv2-inner {
    display: grid;
    grid-template-columns: 54fr 46fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hv2-left, .hv2-right { min-width: 0; }

/* Left column */
.hv2-left { display: flex; flex-direction: column; gap: 0; }

.hv2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,102,238,0.12);
    border: 1px solid rgba(0,102,238,0.3);
    color: #6BB3FF;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 16px 6px 10px;
    border-radius: 999px;
    margin-bottom: 28px;
    width: fit-content;
    letter-spacing: 0.02em;
}
.hv2-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
    animation: hv2-pulse 2.4s ease infinite;
}
@keyframes hv2-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hv2-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}
.hv2-grad {
    background: linear-gradient(130deg, #4DA6FF 0%, #00C2CB 55%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hv2-sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 36px;
}

.hv2-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.hv2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0066EE;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 10px;
    transition: transform 0.35s var(--ease-spring), background 0.25s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,102,238,0.4);
    text-decoration: none;
}
.hv2-btn-primary:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,102,238,0.5);
}
.hv2-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.18);
    transition: transform 0.35s var(--ease-spring), background 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}
.hv2-btn-ghost:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.35);
}

.hv2-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.hv2-stat-num {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.hv2-stat-lbl {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hv2-stat-sep {
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* Trusted by belt */
.hv2-trusted { display: flex; flex-direction: column; gap: 10px; }
.hv2-trusted-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.hv2-belt-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
}
.hv2-belt {
    display: flex;
    gap: 28px;
    align-items: center;
    animation: hv2-belt-scroll 22s linear infinite;
    width: max-content;
}
.hv2-belt:hover { animation-play-state: paused; }
@keyframes hv2-belt-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hv2-belt-fade {
    position: absolute;
    top: 0; bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}
.hv2-belt-fade-l { left: 0;  background: linear-gradient(to right, #152d6a, transparent); }
.hv2-belt-fade-r { right: 0; background: linear-gradient(to left,  #152d6a, transparent); }

.hv2-logo-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hv2-logo-fav {
    width: 42px; height: 42px;
    border-radius: 7px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}
.hv2-logo-fav.loaded { opacity: 1; }

/* Right column — Dashboard */
.hv2-right {
    position: relative;
    padding: 20px 16px 20px 0;
}

.hv2-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.97);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: hv2-bob 5s ease-in-out infinite;
}
.hv2-float-1 { top: -18px; right: -12px; animation-delay: 0s; }
.hv2-float-2 { bottom: 40px; left: -24px; animation-delay: 2.5s; }
@keyframes hv2-bob {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}
.hv2-float-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hv2-fi-green { background: #D1FAE5; color: #059669; }
.hv2-fi-blue  { background: #DBEAFE; color: #2563EB; }
.hv2-float-val { font-size: 0.8125rem; font-weight: 700; color: #0A0F1E; line-height: 1.2; }
.hv2-float-sub { font-size: 0.6875rem; color: #6B7A99; margin-top: 1px; }

/* Dashboard card */
.hv2-dash {
    background: rgba(15, 24, 50, 0.85);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(0,102,238,0.15),
        0 32px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

.hv2-dash-bar {
    height: 3px;
    background: linear-gradient(90deg, #0066EE 0%, #00C2CB 50%, #7C3AED 100%);
}
.hv2-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hv2-dash-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.9);
}
.hv2-dash-title svg { color: #6BB3FF; }
.hv2-health {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 600; color: #10B981;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 3px 10px; border-radius: 999px;
}
.hv2-health-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10B981; animation: hv2-pulse 2s ease infinite;
}

.hv2-score-row {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hv2-score-ring-wrap { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.hv2-ring-svg { width: 44px; height: 44px; }
.hv2-ring-pct {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem; font-weight: 800; color: #10B981;
}
.hv2-score-info { flex: 1; }
.hv2-score-label { font-size: 0.8125rem; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.2; }
.hv2-score-sub { font-size: 0.6875rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.hv2-audit-badge {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.6875rem; font-weight: 700; color: #10B981;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.hv2-tabs {
    display: flex; gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hv2-tab {
    flex: 1;
    padding: 7px 10px;
    font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.4);
    background: transparent; border: none; border-radius: 8px;
    cursor: pointer; transition: all 0.2s ease; text-align: center;
}
.hv2-tab:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }
.hv2-tab.active { color: #fff; background: rgba(0,102,238,0.25); }

.hv2-list { padding: 8px 0; transition: opacity 0.18s ease; }
.hv2-list-fade { opacity: 0; }

.hv2-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 20px; transition: background 0.15s ease;
}
.hv2-row:hover { background: rgba(255,255,255,0.04); }

.hv2-row-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.hv2-dot-green { background: #10B981; }
.hv2-dot-amber { background: #F59E0B; }

.hv2-row-name {
    flex: 1; font-size: 0.8125rem; color: rgba(255,255,255,0.8);
    font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hv2-row-tag {
    font-size: 0.6875rem; font-weight: 600;
    padding: 3px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap;
}
.hv2-tag-green { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
.hv2-tag-amber { background: rgba(245,158,11,0.12); color: #FCD34D; border: 1px solid rgba(245,158,11,0.2); }

.hv2-dash-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.15);
}
.hv2-next {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: rgba(255,255,255,0.45); font-weight: 500;
}
.hv2-next svg { color: rgba(255,255,255,0.3); }
.hv2-dash-cta {
    font-size: 0.8125rem; font-weight: 700; color: #6BB3FF;
    text-decoration: none; transition: color 0.2s ease;
    padding: 5px 12px; background: rgba(0,102,238,0.15);
    border: 1px solid rgba(0,102,238,0.3); border-radius: 7px;
}
.hv2-dash-cta:hover { color: #fff; background: rgba(0,102,238,0.3); }

/* ============================================================
   SECTION SEPARATOR SYSTEM
   Clean visual separation without heavy gradient overlays
============================================================ */
section { position: relative; }

/* Alternating backgrounds — gentle rhythm */
.quiz-section   { background: var(--section-light-b); }
.about          { background: var(--section-light-a); }
.why-us         { background: var(--section-light-b); }
.services       { background: var(--section-light-a); position: relative; }
.clients        { background: var(--section-light-a); }
.contact        { background: var(--section-light-b); }

/* Dark sections share same deep navy */
.statutes       { background: var(--section-dark); }
.footer         { background: linear-gradient(160deg, #050A18 0%, #060C1E 60%, #050810 100%); }

/* Thin decorative line between light sections */
.quiz-section::before,
.about::before,
.why-us::before,
.services::before,
.clients::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: min(80%, 800px);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ink-10) 30%, var(--ink-10) 70%, transparent 100%);
    pointer-events: none;
}

/* Hero → Quiz soft fade bridge */
.hv2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--section-light-b));
    z-index: 2;
    pointer-events: none;
}

/* Light → Dark transitions (subtle gradient bleed) */
.services::after,
.why-us::after,
.contact::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    z-index: 5;
    pointer-events: none;
}
.services::after { background: linear-gradient(to bottom, transparent, var(--section-dark)); }
.contact::after  { background: linear-gradient(to bottom, transparent, #050A18); }

/* Dark → Light transitions */
.statutes::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--section-light-a));
    z-index: 5;
    pointer-events: none;
}

/* Extra bottom padding for transition space */
.services,
.contact { padding-bottom: calc(var(--space-24) + 60px); }
.statutes { padding-bottom: calc(var(--space-24) + 60px); }

/* Uniform top padding */
.quiz-section, .about, .why-us, .services, .clients, .contact {
    padding-top: var(--space-24);
}

/* Eyebrow colors on dark sections */
.statutes .eyebrow {
    color: var(--teal);
    background: rgba(0,194,203,0.10);
    border-color: rgba(0,194,203,0.25);
}
.statutes .eyebrow::before { background: var(--teal); }

/* ============================================================
   QUIZ SECTION
============================================================ */
.quiz-section { padding: var(--space-24) 0; }

.quiz-container { max-width: 780px; margin: 0 auto; }

.quiz-header {
    text-align: center;
    margin-bottom: var(--space-10);
}
.quiz-header h2 { font-size: clamp(1.875rem, 4vw, 2.625rem); margin-bottom: var(--space-4); }
.quiz-header p { font-size: 1.0625rem; color: var(--ink-40); line-height: 1.7; }

.quiz-progress-wrap {
    max-width: 440px;
    margin: var(--space-6) auto 0;
}
.quiz-progress-bar {
    height: 6px;
    background: var(--ink-5);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}
.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    border-radius: var(--r-full);
    transition: width 0.5s var(--ease-out);
}
.quiz-progress-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
}

.quiz-questions-slider {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.quiz-track { position: relative; width: 100%; }

.quiz-question-slide {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--white);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    pointer-events: none;
}
.quiz-question-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}
.quiz-question-slide.answered {
    opacity: 0;
    transform: translateX(-60px);
}

.question-num {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--blue); margin-bottom: var(--space-3);
}
.question-text {
    font-size: 1.375rem; font-weight: 700;
    margin-bottom: var(--space-6); color: var(--ink); line-height: 1.35;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--canvas);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-spring);
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
    position: relative;
}
.quiz-option:hover {
    border-color: var(--blue-300);
    background: var(--blue-50);
    transform: translateX(6px);
}
.quiz-option.selected {
    border-color: var(--blue);
    background: var(--blue-50);
}

.option-radio {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--ink-10);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t-fast);
}
.quiz-option:hover .option-radio { border-color: var(--blue); }
.quiz-option.selected .option-radio {
    border-color: var(--blue);
    background: var(--blue);
}
.quiz-option.selected .option-radio::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white);
}

.option-label { flex: 1; font-weight: 500; color: var(--ink-60); }
.quiz-option.selected .option-label { color: var(--blue); font-weight: 600; }

.option-check {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--blue);
    flex-shrink: 0;
}
.quiz-option.selected .option-check { opacity: 1; }

/* Results */
.quiz-results {
    background: var(--white);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
}

.results-score {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--r-lg);
    border: 2px solid;
    margin-bottom: var(--space-8);
}
.score-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.score-level { font-size: 1.375rem; font-weight: 700; margin-bottom: var(--space-2); }
.score-message { font-size: 1rem; color: var(--ink-40); margin-bottom: var(--space-4); }
.score-number { font-size: 3rem; font-weight: 700; font-family: var(--font-display); }

.results-analysis h3 { font-size: 1.375rem; margin-bottom: var(--space-6); }
.status-bars { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }
.status-bar { display: flex; flex-direction: column; gap: var(--space-2); }
.status-label { font-size: 0.9375rem; font-weight: 600; }
.status-track { height: 10px; background: var(--ink-5); border-radius: var(--r-full); overflow: hidden; }
.status-fill { height: 100%; border-radius: var(--r-full); transition: width 1s var(--ease-out); }

.results-recommendations h3 { font-size: 1.375rem; margin-bottom: var(--space-2); }
.results-recommendations > p { color: var(--ink-40); margin-bottom: var(--space-5); }

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}
.recommendation-card {
    background: var(--canvas);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-lg);
    padding: var(--space-5);
    position: relative;
}
.recommendation-card.urgent { border-color: var(--red); background: var(--red-light); }
.urgent-badge {
    position: absolute; top: -10px; right: var(--space-4);
    background: var(--red); color: var(--white);
    padding: 3px 10px; border-radius: var(--r-full);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.recommendation-card h4 { font-size: 1rem; margin-bottom: var(--space-2); }
.recommendation-card p { font-size: 0.875rem; color: var(--ink-40); margin: 0; }

.results-cta { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ABOUT SECTION
============================================================ */
.about {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-visual-card {
    background: var(--white);
    border: 1px solid var(--ink-10);
    border-radius: var(--r-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.about-visual-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.about-stat-box {
    background: var(--canvas);
    border: 1px solid var(--ink-10);
    border-radius: var(--r-lg);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s ease;
}
.about-stat-box:hover {
    border-color: var(--blue-300);
    box-shadow: 0 12px 36px rgba(0,102,238,0.10);
    transform: translateY(-4px);
}

.about-stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}
.about-stat-label {
    font-size: 0.8rem; color: var(--ink-40);
    margin-top: 6px; font-weight: 500;
}

.about-certification {
    display: flex; align-items: center; gap: var(--space-3);
    background: var(--green-light);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--r-md);
    padding: var(--space-3) var(--space-4);
}
.about-certification-icon {
    width: 36px; height: 36px;
    background: var(--green); border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-certification p { font-size: 0.875rem; font-weight: 600; color: #065F46; margin: 0; }

.about-content h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    margin-bottom: var(--space-4);
}
.about-content > p {
    font-size: 1.0625rem; color: var(--ink-40); line-height: 1.75;
    margin-bottom: var(--space-8);
}

.about-pillars { display: flex; flex-direction: column; gap: var(--space-4); }

.about-pillar {
    display: flex; gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--ink-10);
    border-radius: var(--r-lg);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}
.about-pillar:hover {
    border-color: rgba(0,102,238,0.25);
    box-shadow: 0 12px 36px rgba(0,102,238,0.10);
    background: #f8fbff;
    transform: translateY(-4px);
}

.about-pillar-icon {
    width: 44px; height: 44px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-pillar-body h4 {
    font-size: 1rem; font-family: var(--font-body);
    font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.about-pillar-body p { font-size: 0.875rem; color: var(--ink-40); margin: 0; line-height: 1.6; }

/* ============================================================
   WHY US — Comparison
============================================================ */
.why-us {
    padding: var(--space-24) 0;
    position: relative; overflow: hidden;
}
.why-us::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,102,238,0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.comparison-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-5);
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-col {
    background: var(--white);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1.5px solid var(--ink-10);
}
.comparison-col.good {
    border-color: rgba(0,102,238,0.2);
    background: linear-gradient(180deg, #f0f7ff 0%, var(--white) 100%);
    box-shadow: 0 12px 40px rgba(0,102,238,0.12);
}

.comparison-header {
    padding: var(--space-5) var(--space-6);
    display: flex; align-items: center; gap: var(--space-3);
}
.comparison-col.bad .comparison-header { background: var(--red-light); }
.comparison-col.good .comparison-header { background: linear-gradient(135deg, var(--blue), var(--teal)); }

.comparison-header-label { font-size: 0.875rem; font-weight: 700; font-family: var(--font-body); }
.comparison-col.bad .comparison-header-label { color: var(--red); }
.comparison-col.good .comparison-header-label { color: var(--white); }

.comparison-header-sub { font-size: 0.75rem; opacity: 0.7; font-weight: 500; }
.comparison-col.bad .comparison-header-sub { color: var(--red); }
.comparison-col.good .comparison-header-sub { color: rgba(255,255,255,0.75); }

.comparison-items {
    padding: var(--space-5) var(--space-6);
    display: flex; flex-direction: column; gap: var(--space-3);
}

.comparison-item {
    display: flex; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-md);
    font-size: 0.9rem; font-weight: 500; color: var(--ink-60);
    background: var(--canvas); border: 1px solid var(--ink-5);
}

.comparison-item-icon {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.comparison-col.bad .comparison-item-icon { background: var(--red-light); }
.comparison-col.good .comparison-item-icon { background: var(--green-light); }

.comparison-vs {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.vs-pill {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--ink-10);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; color: var(--ink-40);
    box-shadow: var(--shadow-sm); flex-shrink: 0;
}

/* ============================================================
   SERVICES
============================================================ */
.services { padding: var(--space-24) 0; }

.services-tabs {
    display: flex; justify-content: center; gap: var(--space-2);
    margin-bottom: var(--space-4); flex-wrap: wrap;
}

.stab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--canvas);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: 0.875rem; font-weight: 600; color: var(--ink-40);
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.stab svg { flex-shrink: 0; transition: var(--t-fast); }
.stab:hover { border-color: var(--blue-300); color: var(--blue); background: var(--blue-50); }
.stab.active {
    background: var(--blue); border-color: var(--blue); color: var(--white);
    box-shadow: var(--shadow-blue-sm);
}
.stab.active svg { stroke: var(--white); }

.services-sub {
    text-align: center; font-size: 0.9375rem; color: var(--ink-40);
    margin-bottom: var(--space-10); font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.scard {
    background: var(--white);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-xl);
    display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.scard:hover {
    border-color: rgba(0,102,238,0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,102,238,0.14), 0 6px 16px rgba(0,0,0,0.06);
}

.scard-top { padding: var(--space-8) var(--space-8) var(--space-5); flex: 1; }

.scard-icon {
    width: 52px; height: 52px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-5);
}
.scard h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem; font-weight: 700; color: var(--ink);
    margin-bottom: var(--space-3); line-height: 1.35;
}
.scard-desc { font-size: 0.9rem; color: var(--ink-40); line-height: 1.7; margin: 0; }

.scard-divider { height: 1px; background: var(--ink-5); margin: 0 var(--space-8); }

.scard-features {
    padding: var(--space-5) var(--space-8);
    display: flex; flex-direction: column; gap: 8px;
}
.scard-features li {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: 0.8375rem; color: var(--ink-60); font-weight: 500;
}
.scard-features li svg { flex-shrink: 0; }

.scard-cta {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-4) var(--space-8) var(--space-6);
    text-decoration: none;
    font-size: 0.875rem; font-weight: 600; color: var(--blue);
    transition: var(--t-fast);
}
.scard-cta:hover { gap: var(--space-3); }

.scard-cta-arrow {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--blue-50);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s var(--ease-spring), color 0.3s ease;
}
.scard:hover .scard-cta-arrow {
    background: var(--blue); color: var(--white); transform: translateX(2px);
}
.scard:hover .scard-cta-arrow svg { stroke: var(--white); }

.services-banner {
    margin-top: var(--space-12);
    background: linear-gradient(135deg, #001f5b 0%, #003080 35%, #0a1830 65%, #050d20 100%);
    border-radius: var(--r-xl);
    padding: var(--space-10) var(--space-12);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-8);
    position: relative; overflow: hidden;
}
.services-banner::before {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,194,203,0.2), transparent 70%);
    border-radius: 50%;
}
.services-banner-text h3 { color: var(--white); font-size: 1.375rem; margin-bottom: var(--space-2); }
.services-banner-text p { color: rgba(255,255,255,0.6); font-size: 0.9375rem; margin: 0; }
.services-banner .btn-primary {
    background: var(--white); color: var(--blue); flex-shrink: 0;
}
.services-banner .btn-primary:hover { background: var(--blue-50); color: var(--blue-700); }

/* ============================================================
   STATUTES / ACTS COVERED
============================================================ */
.statutes {
    padding: var(--space-24) 0;
    position: relative; overflow: hidden;
}
.statutes::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.statutes-glow {
    position: absolute;
    top: -20%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(0,102,238,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.statutes .section-intro { position: relative; z-index: 1; }
.statutes .section-intro h2 { color: var(--white); }
.statutes .section-intro p { color: rgba(255,255,255,0.5); }

.statutes-filters {
    display: flex; justify-content: center; gap: var(--space-2);
    margin-bottom: var(--space-10);
    position: relative; z-index: 1;
}

.statute-filter {
    padding: 9px 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-full);
    font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: var(--font-body);
}
.statute-filter:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.statute-filter.active {
    background: var(--blue); border-color: var(--blue); color: var(--white);
    box-shadow: var(--shadow-blue-sm);
}

.statutes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    position: relative; z-index: 1;
}

.statute-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-lg);
    padding: var(--space-5);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s ease;
    cursor: default;
    position: relative; overflow: hidden;
}
.statute-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,102,238,0) 0%, rgba(0,102,238,0.08) 100%);
    opacity: 0; transition: opacity 0.3s ease;
}
.statute-card:hover {
    border-color: rgba(0,102,238,0.5);
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(0,102,238,0.3), 0 16px 40px rgba(0,102,238,0.2);
}
.statute-card:hover::before { opacity: 1; }

.statute-card-icon {
    width: 40px; height: 40px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-3); flex-shrink: 0;
}
.statute-card-year {
    font-size: 0.6875rem; font-weight: 700; color: var(--teal);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-1);
}
.statute-card-name { font-size: 0.9rem; font-weight: 600; color: var(--white); line-height: 1.4; }

.statute-card-type {
    display: inline-block; margin-top: var(--space-3);
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 3px 8px; border-radius: var(--r-full);
}
.statute-card-type.central { background: rgba(0,102,238,0.2); color: var(--blue-300); }
.statute-card-type.state { background: rgba(0,194,203,0.15); color: var(--teal); }

.statutes-cta {
    margin-top: var(--space-12); text-align: center;
    position: relative; z-index: 1;
}
.statutes-cta p { color: rgba(255,255,255,0.5); font-size: 0.9375rem; margin-bottom: var(--space-4); }

/* ============================================================
   CLIENTS
============================================================ */
.clients {
    padding: var(--space-20) 0;
    overflow: hidden;
}
.clients .container { text-align: center; }

.clients-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    margin-bottom: var(--space-3);
}
.clients-subtitle {
    text-align: center;
    font-size: 1rem; color: var(--ink-40);
    max-width: 520px; margin: 0 auto var(--space-10); line-height: 1.7;
}

.logo-slider { position: relative; overflow: hidden; }

.logo-fade-left, .logo-fade-right {
    position: absolute; top: 0; bottom: 0;
    width: 120px; z-index: 2; pointer-events: none;
}
.logo-fade-left  { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.logo-fade-right { right: 0; background: linear-gradient(to left, var(--white), transparent); }

.logo-track {
    display: flex; gap: var(--space-4);
    animation: ticker 90s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-card {
    display: flex; align-items: center; gap: var(--space-3);
    background: var(--canvas);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-lg);
    padding: 12px 20px;
    flex-shrink: 0;
    min-width: 196px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.client-logo-card:hover {
    border-color: var(--blue-300);
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.client-logo-icon-wrap {
    position: relative;
    width: 42px; height: 42px; flex-shrink: 0;
}
.client-logo-avatar {
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8125rem;
    flex-shrink: 0; letter-spacing: 0.02em;
}
.client-logo-img {
    position: absolute; inset: 0;
    width: 42px; height: 42px;
    object-fit: contain; border-radius: var(--r-sm);
    background: #fff; padding: 4px;
    image-rendering: -webkit-optimize-contrast;
    opacity: 0; transition: opacity 0.3s ease;
}
.client-logo-img.loaded { opacity: 1; }

.client-logo-name {
    font-weight: 600; font-size: 0.875rem; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 130px; display: block;
}
.client-logo-industry {
    font-size: 0.7rem; color: var(--ink-40); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
    display: block; margin-top: 2px;
}

.clients-industries {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: var(--space-2); margin-top: var(--space-10);
}
.industry-tag {
    padding: 6px 14px;
    background: var(--blue-50);
    border: 1px solid rgba(0,102,238,0.15);
    border-radius: var(--r-full);
    font-size: 0.8rem; font-weight: 600; color: var(--blue);
    transition: var(--t-fast); cursor: default;
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
    padding: var(--space-24) 0;
    position: relative; overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-info h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); margin-bottom: var(--space-4); }
.contact-info > p { font-size: 1.0625rem; color: var(--ink-40); line-height: 1.75; margin-bottom: var(--space-8); }

.contact-details {
    display: flex; flex-direction: column; gap: var(--space-4);
    margin-bottom: var(--space-8);
}
.contact-detail-item {
    display: flex; align-items: flex-start; gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--ink-10);
    border-radius: var(--r-lg);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.3s ease;
}
.contact-detail-item:hover {
    border-color: rgba(0,102,238,0.22);
    box-shadow: 0 12px 36px rgba(0,102,238,0.10);
    transform: translateY(-4px);
}

.contact-detail-icon {
    width: 44px; height: 44px;
    background: var(--blue-50);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-detail-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ink-40); margin-bottom: 4px;
}
.contact-detail-value { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

.contact-form-card {
    background: var(--white);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-xl);
    padding: var(--space-8);
    box-shadow: 0 20px 60px rgba(0,102,238,0.08), 0 4px 16px rgba(0,0,0,0.05);
    position: relative; overflow: hidden;
}
.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}
.contact-form-title {
    font-size: 1.25rem; font-weight: 700; color: var(--ink);
    margin-bottom: var(--space-6); font-family: var(--font-body);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { margin-bottom: var(--space-4); }
.form-group label {
    display: block; font-size: 0.8375rem; font-weight: 600;
    color: var(--ink-60); margin-bottom: var(--space-2);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    background: var(--canvas);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.9375rem; color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none; -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-20); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,102,238,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
    color: rgba(255,255,255,0.65);
    padding: var(--space-16) 0 var(--space-6);
    position: relative; overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-logo { display: flex; align-items: center; margin-bottom: var(--space-5); }
.footer-logo-img {
    height: 40px; width: auto; display: block;
    filter: brightness(0) invert(1);
    object-fit: contain;
}
.footer-tagline {
    font-size: 0.9rem; line-height: 1.7;
    margin-bottom: var(--space-6);
    color: rgba(255,255,255,0.45);
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--white); margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul li a {
    font-size: 0.9rem; color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: flex; align-items: center; gap: var(--space-2);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
    display: flex; align-items: flex-start; gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.footer-contact-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.footer-contact-text {
    font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.5;
}
.footer-contact-text strong {
    color: rgba(255,255,255,0.8); display: block;
    margin-bottom: 2px; font-size: 0.8125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: var(--space-6);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-4); flex-wrap: wrap;
}
.footer-bottom-left { font-size: 0.8375rem; color: rgba(255,255,255,0.35); }
.footer-bottom-left a { color: var(--teal); text-decoration: none; }
.footer-bottom-left a:hover { text-decoration: underline; }

.footer-bottom-right { display: flex; gap: var(--space-5); }
.footer-bottom-right a {
    font-size: 0.8125rem; color: rgba(255,255,255,0.35);
    text-decoration: none; transition: color 0.2s ease;
}
.footer-bottom-right a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   FLOATING ELEMENTS
============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 88px; right: 28px;
    width: 52px; height: 52px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform 0.3s var(--ease-spring), background 0.25s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    background: #1EBE5C;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
    50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0); }
}

.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--blue); color: var(--white);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-spring), background 0.25s ease;
    box-shadow: var(--shadow-blue-sm);
    z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--blue-700); transform: translateY(-3px); }

/* Floating help widget */
.floating-widget {
    position: fixed;
    bottom: 28px; right: 90px;
    z-index: 998;
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s var(--ease-spring);
}
.floating-widget.show { opacity: 1; visibility: visible; transform: translateY(0); }

.widget-trigger {
    display: flex; align-items: center; gap: var(--space-2);
    padding: 12px 20px;
    background: var(--blue); color: var(--white);
    border: none; border-radius: var(--r-full);
    cursor: pointer;
    box-shadow: var(--shadow-blue);
    transition: transform 0.3s var(--ease-spring), background 0.25s ease;
    font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
}
.widget-trigger:hover { background: var(--blue-700); transform: translateY(-2px); }

.widget-panel {
    position: absolute;
    bottom: 58px; right: 0;
    width: 300px;
    background: var(--white);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-spring);
    overflow: hidden;
}
.floating-widget.open .widget-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.widget-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--ink-5);
    background: var(--canvas);
}
.widget-header h4 { font-size: 1rem; margin: 0; font-family: var(--font-body); font-weight: 700; }

.widget-close {
    width: 28px; height: 28px;
    border: none; background: var(--ink-5); border-radius: 50%;
    cursor: pointer; font-size: 1.25rem; line-height: 1;
    color: var(--ink-40);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.widget-close:hover { background: var(--blue); color: var(--white); }

.widget-content { padding: var(--space-4) var(--space-5); }
.widget-content > p { font-size: 0.875rem; color: var(--ink-40); margin-bottom: var(--space-3); }

.widget-options { display: flex; flex-direction: column; gap: var(--space-2); }
.widget-option {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--canvas);
    border: 1.5px solid var(--ink-10);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--ink-60);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.3s var(--ease-spring);
    font-size: 0.9rem; font-weight: 500;
}
.widget-option:hover {
    border-color: var(--blue-300); background: var(--blue-50);
    color: var(--blue); transform: translateX(3px);
}

/* ============================================================
   SCROLL REVEAL SYSTEM
============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring);
}
.fade-up.animate-in { opacity: 1; transform: none; }

.fade-up:nth-child(1) { transition-delay: 0.04s; }
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.20s; }
.fade-up:nth-child(4) { transition-delay: 0.28s; }
.fade-up:nth-child(5) { transition-delay: 0.36s; }
.fade-up:nth-child(6) { transition-delay: 0.42s; }

[data-reveal] { opacity: 0; will-change: opacity, transform; }
[data-reveal="up"]    { transform: translateY(48px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="scale"] { transform: scale(0.93) translateY(16px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].r-in    { opacity: 1; transform: none; }

/* Widget pulse */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,102,238,0.55); }
    60%  { box-shadow: 0 0 0 12px rgba(0,102,238,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,102,238,0); }
}

/* ============================================================
   TESTIMONIALS (kept for compatibility even though section is commented out)
============================================================ */
.testimonials-section {
    padding: var(--space-24) 0 var(--space-20);
    background: linear-gradient(160deg, #060C1E 0%, #070F28 50%, #050A18 100%);
    position: relative; overflow: hidden;
}
.testimonials-section::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--white));
    z-index: 5; pointer-events: none;
}
.tscroll-fade-left  { background: linear-gradient(to right, #060C1E, transparent); }
.tscroll-fade-right { background: linear-gradient(to left,  #060C1E, transparent); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .statutes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .hv2-inner { grid-template-columns: 1fr; gap: 48px; }
    .hv2-right { max-width: 560px; margin: 0 auto; }
    .hv2-float-2 { left: -10px; }
}

@media (max-width: 960px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .about-visual { order: -1; }

    .comparison-wrap { grid-template-columns: 1fr; }
    .comparison-vs { flex-direction: row; padding: var(--space-2) 0; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .nav-inner { height: 80px; }
    .nav-logo-img { height: 70px; }
    .nav-mobile { top: 80px; }

    .services-grid { grid-template-columns: 1fr; }
    .statutes-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; }
    .logo-fade-left, .logo-fade-right { width: 48px; }
    .services-banner { padding: var(--space-8); }
    .statutes-filters { flex-wrap: wrap; }
    .comparison-items { padding: var(--space-4); }

    /* Reduce transition overlays on mobile */
    .hv2::after,
    .services::after,
    .statutes::after,
    .contact::after {
        height: 48px;
    }
    .services, .contact { padding-bottom: calc(var(--space-20) + 32px); }
    .statutes { padding-bottom: calc(var(--space-20) + 32px); }
}

@media (max-width: 600px) {
    .hv2 { padding: 100px 0 60px; }
    .hv2-h1 { font-size: 2.4rem; }
    .hv2-stats { gap: 16px; }
    .hv2-stat-num { font-size: 1.5rem; }
    .hv2-float-1 { right: 0; top: -14px; }
    .hv2-float-2 { display: none; }
    .hv2-actions { flex-direction: column; }
    .hv2-btn-primary, .hv2-btn-ghost { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .statutes-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .hv2-h1 { font-size: 2rem; }
    .hv2-stats { gap: 12px; }
    .hv2-stat-num { font-size: 1.25rem; }
    .hv2-stat-sep { height: 24px; }
    .hv2-btn-primary, .hv2-btn-ghost { padding: 12px 22px; font-size: 0.875rem; width: 100%; }
    .quiz-question-slide { padding: var(--space-5); }
    .question-text { font-size: 1.125rem; }
    .scard-top { padding: var(--space-5); }
    .scard-features { padding: var(--space-4) var(--space-5); }
    .scard-cta { padding: var(--space-3) var(--space-5) var(--space-5); }
    .services-tabs { gap: var(--space-1); }
    .stab { padding: 8px 14px; font-size: 0.75rem; }
    .nav-inner { padding: 0 20px; height: 72px; }
    .nav-logo-img { height: 60px; }
    .nav-mobile { top: 72px; }
    .about-visual-card { padding: var(--space-6); }
    .contact-form-card { padding: var(--space-5); }
    .whatsapp-float { bottom: 76px; right: 16px; width: 48px; height: 48px; }
    .scroll-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
    .floating-widget { right: 72px; bottom: 20px; }
    .widget-panel { width: 260px; }
    .footer { padding: var(--space-10) 0 var(--space-4); }
    .results-score { padding: var(--space-5); }
    .score-number { font-size: 2rem; }
    .quiz-results { padding: var(--space-6); }
    .section-header h2, .section-intro h2 { font-size: 1.625rem; }
    .clients-title { font-size: 1.5rem; }
}

@media (max-width: 360px) {
    .container { padding: 0 16px; }
    .hv2 { padding: 88px 0 48px; }
    .hv2-h1 { font-size: 1.75rem; }
    .hv2-stats { flex-direction: column; gap: 8px; align-items: flex-start; }
    .hv2-stat-sep { display: none; }
    .hv2-stat { display: flex; align-items: baseline; gap: 8px; }
    .hv2-stat-lbl { margin-top: 0; }
    .nav-inner { height: 64px; }
    .nav-logo-img { height: 50px; }
    .nav-mobile { top: 64px; }
    .about-stats-grid { grid-template-columns: 1fr; }
    .services-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; justify-content: flex-start; }
    .stab { flex-shrink: 0; }
}

/* ============================================================
   OLD ANDROID / WEBKIT COMPAT
============================================================ */
@supports not (display: grid) {
    .hv2-inner, .about-grid, .contact-grid, .services-grid, .statutes-grid, .footer-grid, .form-row {
        display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
    }
    .hv2-inner > *, .about-grid > *, .contact-grid > * { -webkit-flex: 1 1 300px; flex: 1 1 300px; }
    .services-grid > *, .statutes-grid > * { -webkit-flex: 1 1 280px; flex: 1 1 280px; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .nav-bg { background: rgba(255,255,255,0.98); }
    .hv2-dash { background: rgba(15, 24, 50, 0.95); }
    .hv2-float { background: rgba(255,255,255,1); }
}

/* Touch targets */
@media (pointer: coarse) {
    .nav-links a, .stab, .statute-filter, .quiz-option, .widget-option, .footer-col ul li a { min-height: 44px; }
    .hv2-tab { min-height: 40px; }
}

/* Safe areas */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .whatsapp-float { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .scroll-top { bottom: calc(20px + env(safe-area-inset-bottom)); }
    .footer { padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hv2-orb, .hv2-float { animation: none; }
    .whatsapp-float { animation: none; }
    .logo-track, .hv2-belt { animation: none; }
    [data-reveal], .fade-up { opacity: 1; transform: none; }
}
