/* ========================================
   DATA X SYSTEM - Modern Professional Theme v4.0
   Clean, Rounded, Tech-Forward, Premium UI/UX
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors - Modern SaaS Blue */
    --green: #2563eb; /* Primary Blue */
    --green-dark: #1d4ed8; /* Darker Blue */
    --green-light: #60a5fa; /* Lighter Blue */
    --green-glow: rgba(37, 99, 235, 0.4);
    --green-bg: rgba(37, 99, 235, 0.08);

    /* Neutrals - Premium Slate */
    --black: #0f172a; /* Slate 900 */
    --dark: #1e293b; /* Slate 800 */
    --grey: #475569; /* Slate 600 */
    --light-grey: #94a3b8; /* Slate 400 */
    --border: #e2e8f0; /* Slate 200 */
    --bg-grey: #f8fafc; /* Slate 50 */
    --bg-light: #ffffff;
    --white: #ffffff;

    /* Typography - Clean & Modern */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (Mobile-first) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;

    /* Modern Effects - Soft & Rounded */
    --radius: 16px; /* MORE ROUNDED */
    --radius-sm: 8px;
    --radius-lg: 24px;
    --border-width: 1px; /* THIN BORDERS */
    --border-width-lg: 2px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* ULTRA SOFT SHADOW */
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 0 15px rgba(37, 99, 235, 0.3); /* GLOW */
    --shadow-offset: 0px; /* No offset */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);
}

/* ========================================
   BASE STYLES (Mobile-First)
======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey);
    background: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(96, 165, 250, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(96, 165, 250, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--green);
    color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    /* SEMI-BOLD */
    color: var(--black);
    line-height: 1.2;
    /* RELAXED */
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    /* TIGHTER TRACKING */
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
}

p {
    margin-bottom: var(--space-sm);
}

strong {
    color: var(--black);
    font-weight: 600;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green-dark);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

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

/* ========================================
   MODULE SURFACES (Checkerboard sections)
======================================== */

.module {
    position: relative;
}

.module.surface-default {
    background: transparent;
}

/* Slightly darker (still modern + light) — no gradients */
.module.surface-alt {
    background: #f1f5f9; /* Slate 100 */
}

/* Dark conversion block — no gradients */
.module.surface-dark {
    background: #0b1220;
    color: #cbd5e1;
}

.module.surface-dark h1,
.module.surface-dark h2,
.module.surface-dark h3,
.module.surface-dark h4,
.module.surface-dark h5,
.module.surface-dark h6 {
    color: #f8fafc;
}

.module.surface-dark .section-badge {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.25);
}

/* ========================================
   HEADER - MODERN CONTAINED
======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.site-header.scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Header container with max-width */
.site-header>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
}

@media (min-width: 768px) {
    .site-header>.container {
        height: 64px;
        padding: 0 var(--space-lg);
    }
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--black);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo img {
    height: 28px;
    width: auto;
}

@media (min-width: 768px) {
    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 32px;
    }
}

.logo span:not(.logo-text) {
    display: none;
}

.logo .logo-text {
    display: inline;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--green);
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0.5rem;
}

.main-nav ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .main-nav ul {
        display: flex;
    }
}

.main-nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

/* ===== NAV LINKS ===== */
.main-nav a {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 0.875rem;
    text-decoration: none;
    color: var(--grey);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.main-nav a:hover {
    color: var(--green);
    background: var(--bg-grey);
}

.main-nav li.active a {
    color: var(--green);
    background: var(--green-bg);
    font-weight: 600;
}

/* ===== LOGIN CTA IN NAV ===== */
.main-nav .btn.btn-login {
    height: 36px;
    padding: 0 1rem;
    border-radius: var(--radius);
    white-space: nowrap;
}

.site-header .btn.btn-login {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-green) !important;
}

.site-header .btn.btn-login:hover,
.site-header .btn.btn-login:focus {
    background: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4) !important;
}

/* ===== MOBILE BURGER NAV ===== */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    box-shadow: var(--shadow-lg);
}

.nav-toggle-icon {
    position: relative;
    width: 18px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

body.nav-open .nav-toggle-icon {
    background: transparent;
}
body.nav-open .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}
body.nav-open .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

@media (max-width: 767px) {
    /* Header layout: keep burger aligned to the far right on mobile */
    .site-header > .container {
        justify-content: space-between;
    }

    .logo { order: 1; }
    .main-nav { order: 2; }
    .nav-toggle { order: 3; }

    /* Mobile header brand text: bolder + ~30% smaller */
    .logo .logo-text {
        font-weight: 700;
        font-size: 0.7em; /* ~30% smaller vs surrounding header type */
        letter-spacing: 0.01em;
    }

    /* hide panel by default on mobile; opened via body.nav-open */
    .nav-panel {
        display: none;
    }

    body.nav-open .nav-panel {
        display: flex;
        position: fixed;
        top: calc(56px + 10px);
        left: 50%;
        right: auto;
        width: min(520px, calc(100vw - 20px));
        transform: translateX(-50%);
        padding: 0.75rem 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        /* Override base header layout (.nav-panel { height: 100%; }) so the sheet can size to content */
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 16px;
        box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
        z-index: 999;
        /* Use dynamic viewport units where supported to avoid mobile URL-bar issues */
        max-height: calc(100vh - 56px - 40px);
        max-height: calc(100dvh - 56px - 40px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Scrim behind the menu so it doesn't look like "floating text" over content */
    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        backdrop-filter: blur(2px);
        z-index: 998;
    }

    /* Lock page scroll while menu is open */
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        height: auto;
    }

    body.nav-open .main-nav li {
        height: auto;
    }

    body.nav-open .main-nav a.nav-link {
        height: auto;
        padding: 0.9rem 1rem;
        border-radius: var(--radius);
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
        max-width: min(360px, 100%);
        margin: 0 auto;
        box-sizing: border-box;
    }

    body.nav-open .main-nav li.active a.nav-link {
        background: rgba(37, 99, 235, 0.08);
        border-color: rgba(37, 99, 235, 0.22);
    }

    /* Keep header CTAs nicely sized inside the menu (not full-bleed) */
    body.nav-open .nav-panel > .btn,
    body.nav-open .nav-panel a.btn {
        max-width: min(360px, 100%);
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* Make secondary CTA look like a real button inside the sheet (not "floating text") */
    body.nav-open .nav-panel .btn.btn-secondary {
        background: rgba(37, 99, 235, 0.10) !important;
        border-color: rgba(37, 99, 235, 0.24) !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
    }
}

@media (min-width: 992px) {
    .main-nav a {
        height: 40px;
        padding: 0 1.125rem;
        font-size: 0.8125rem;
    }
}

/* ===== HEADER CTA BUTTON ===== */
.site-header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.site-header .btn:hover {
    background: var(--dark);
    border-color: var(--dark);
    box-shadow: var(--shadow-lg);
}

.site-header .btn i {
    font-size: 0.75rem;
}

.site-header .btn span {
    display: none;
}

.site-header .btn.btn-secondary span {
    display: inline;
}

@media (min-width: 480px) {
    .site-header .btn span {
        display: inline;
    }

    .site-header .btn {
        padding: 0 1.25rem;
    }
}

@media (min-width: 768px) {
    .site-header .btn {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .site-header .btn {
        height: 40px;
        padding: 0 1.5rem;
    }
}

/* ===== HEADER SECONDARY BUTTON ===== */
.site-header .btn.btn-secondary {
    background: #ffffff !important;
    color: var(--black) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.site-header .btn.btn-secondary:hover,
.site-header .btn.btn-secondary:focus {
    background: var(--bg-grey) !important;
    border-color: var(--light-grey) !important;
    color: var(--green) !important;
}

.site-header .btn.btn-secondary:active {
    background: var(--border) !important;
}

/* ========================================
   BUTTONS - MODERN STYLE
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    /* ROUNDED */
    font-weight: 600;
    /* SEMI-BOLD */
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    /* THIN BORDER */
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--green);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--green-dark);
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    background: var(--green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--white);
    color: var(--green);
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.btn-outline:active {
    background: var(--bg-grey);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--bg-grey);
    color: var(--green);
    border-color: var(--light-grey);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:active {
    background: var(--border);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========================================
   MAIN CONTENT
======================================== */

main {
    margin-top: 0;
}

/* ========================================
   LOGIN PAGE (Premium SaaS Screen)
======================================== */
.login-screen {
    position: relative;
    padding: 80px 0 clamp(2rem, 4vw, 4rem) 0;
    min-height: 100vh;
}

.login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Match home page: subtle slate + very light brand wash (avoid “too blue”) */
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.035) 0%, transparent 58%),
        radial-gradient(circle at 85% 10%, rgba(96, 165, 250, 0.025) 0%, transparent 58%),
        radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.025) 0%, transparent 60%);
    filter: saturate(1.02);
}

.login-grid {
    position: relative;
    align-items: stretch;
}

.login-col--form .login-card {
    margin-left: 0;
    margin-right: auto;
}

.login-col--content .login-marketing {
    margin-left: auto;
}

.login-marketing {
    padding: clamp(0.5rem, 2vw, 2rem) 0;
    max-width: 52ch;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: var(--green);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    margin-bottom: var(--space-md);
}

.login-title {
    margin-bottom: var(--space-sm);
    letter-spacing: -0.04em;
}

.login-subtitle {
    color: var(--grey);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.login-bullets {
    display: grid;
    gap: 0.9rem;
    margin-bottom: var(--space-lg);
}

.login-bullet {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.login-dot {
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.login-bullet-title {
    font-weight: 800;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.login-bullet-text {
    color: var(--grey);
    font-size: 0.92rem;
    margin-top: 0.15rem;
}

.login-mini-trust {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.login-chip {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.login-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
    padding: clamp(1rem, 2.2vw, 1.5rem);
    max-width: 520px;
}

.login-card-top {
    margin-bottom: var(--space-md);
}

.login-card-title {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--black);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.login-card-caption {
    color: var(--grey);
    font-size: 0.92rem;
    margin-top: 0.25rem;
}

.login-message {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--dark);
    margin: 0 0 var(--space-md) 0;
}

.login-form {
    display: grid;
    gap: 0.9rem;
}

.login-field {
    display: grid;
    gap: 0.4rem;
}

.login-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

.login-input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.login-input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.login-password {
    position: relative;
}

.login-eye {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(248, 250, 252, 0.8);
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.login-eye:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--green-dark);
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.login-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
}

.login-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.login-muted {
    font-size: 0.85rem;
    color: var(--light-grey);
    font-weight: 600;
}

.login-submit {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
}

.login-foot {
    margin-top: 0.25rem;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.login-foot-title {
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--black);
    margin-bottom: 0.25rem;
}

.login-foot-text {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.6;
}

.login-foot-actions {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .login-card { margin-left: 0; }
    .login-col--form .login-card { margin-right: 0; }
    .login-col--content .login-marketing { margin-left: 0; }
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    padding: 80px 0 var(--space-xl) 0;
    /* Smooth, continuous hero backdrop (prevents "split rectangle" on mobile) */
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #eef6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    /* Full-width radial wash (no hard edge / no “block” look) */
    background: radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.hero-section .pure-g {
    align-items: center;
}

/* Legacy hero-badge (kept for backward compatibility) */
.hero-badge {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: var(--space-md);
    box-shadow: none;
    border: 1px solid var(--green-light);
    text-transform: none;
    letter-spacing: 0;
}

/* ----------------------------------------
   NEW HERO DESIGN (Conversion-Optimized)
   F-pattern scanning, scannable bullet points,
   trust signals for enterprise buyers
---------------------------------------- */

/* Trust Micro-Badge: Top of hero - establishes legitimacy */
.hero-trust-micro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 1.25rem;
    border: 1px solid #bbf7d0;
    letter-spacing: 0.01em;
}

.hero-trust-micro svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* Main Hero Title: Large, scannable, impactful */
.hero-title-main {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    font-family: var(--font-heading);
}

.hero-title-accent {
    color: #2563eb;
    display: inline;
}

/* Clarity Statement: One clear sentence about what Data X does */
.hero-clarity {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.hero-clarity strong {
    color: #0f172a;
    font-weight: 700;
}

/* Scannable Value List: Icons + clear benefits */
.hero-value-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.hero-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
}

.hero-value-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

.hero-value-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.hero-value-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.hero-value-text span {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* ----------------------------------------
   HERO TESTIMONIAL CAROUSEL
   Rotating social proof with fade transitions
---------------------------------------- */
.hero-testimonial-carousel {
    position: relative;
    max-width: 540px;
    margin-bottom: 1.75rem;
    min-height: 90px;
}

.hero-testimonial-track {
    position: relative;
    overflow: hidden;
    touch-action: pan-y; /* Allow vertical scroll, capture horizontal swipe */
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
}

.hero-testimonial-track:active {
    cursor: grabbing;
}

.hero-testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    position: relative;
}

.hero-testimonial-quote-icon {
    position: absolute;
    top: 12px;
    left: 16px;
    color: #cbd5e1;
    opacity: 0.6;
}

.hero-testimonial-text {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    padding-left: 24px;
    font-style: italic;
}

.hero-testimonial-author {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 24px;
    flex-wrap: wrap;
}

.hero-testimonial-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.hero-testimonial-divider {
    color: #94a3b8;
    font-size: 0.75rem;
}

.hero-testimonial-company {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Testimonial Indicator Dots */
.hero-testimonial-indicators {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.hero-testimonial-dot {
    /* Reset button defaults */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    background: #cbd5e1;
    outline: none;
    box-shadow: none;
    font-size: 0;
    line-height: 0;
    /* Explicit sizing */
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    max-height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hero-testimonial-dot:hover {
    background: #94a3b8;
}

.hero-testimonial-dot.active {
    background: #2563eb;
    width: 20px;
    min-width: 20px;
    border-radius: 4px;
}

/* Legacy trust statement (kept for compatibility) */
.hero-trust-statement {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.hero-trust-statement svg {
    flex-shrink: 0;
    color: #ca8a04;
}

.hero-trust-statement span {
    font-size: 0.875rem;
    color: #713f12;
    line-height: 1.5;
    font-weight: 500;
}

/* Legacy styles kept for compatibility */
.hero-title {
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-family: monospace;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.hero-points {
    margin: var(--space-lg) 0;
}

.hero-points p {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero Visual */
.hero-visual-container {
    padding: var(--space-md);
}

.hero-card-visual {
    padding: 0;
    margin: 0 auto;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    position: relative;
    max-width: 500px;
    width: 100%;
}

#d3-hero-viz {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 20px 35px -18px rgba(15, 23, 42, 0.18), 0 10px 18px -12px rgba(15, 23, 42, 0.14);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

/* Ensure the hero SVG always fills and stays crisp */
#d3-hero-viz > svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hide the “random glitch squares” drawn by the hero background layer
   (keeps the clean grid, removes the unprofessional blocks) */
#d3-hero-viz svg > g:first-of-type rect[opacity="0.3"] {
    display: none;
}

/* Subtle polish: soft vignette overlay (doesn't touch D3) */
#d3-hero-viz::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0) 0%, rgba(15,23,42,0.06) 100%);
}

.pipeline-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

/* ========================================
   SECTION HEADERS
======================================== */

.section-header {
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-icon {
    margin: 0 auto var(--space-md);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-radius: 24px;
    /* SOFT SQUIRCLE */
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.15);
    color: var(--green);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.section-header:hover .section-icon {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.25);
}

.section-icon svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.section-badge {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    /* ROUNDED PILL */
    font-size: 0.875rem;
    font-weight: 600;
    /* SEMI-BOLD */
    margin-bottom: var(--space-md);
    border: 1px solid var(--green-light);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--shadow);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-icon-small {
    font-size: 1.5rem;
    color: var(--green);
    margin-right: var(--space-sm);
    vertical-align: middle;
}

/* ========================================
   CARDS - MODERN ROUNDED
======================================== */

.card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    /* ROUNDED */
    box-shadow: var(--shadow);
    /* SOFT SHADOW */
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
    /* THIN BORDER */
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--green-light);
}

/* Shimmer Effect for Cards */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.4) 30%, transparent 60%);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.6s;
    pointer-events: none;
}

.card:hover::after {
    transform: translate3d(100%, 0, 0);
}

/* ========================================
   CAPABILITIES SECTION
======================================== */

.capabilities-section {
    padding: var(--space-lg) 0;
    background: transparent;
    color: var(--black);
    overflow-x: hidden;
    position: relative;
}

.module.surface-default.capabilities-section {
    background: #ffffff;
}

.module.surface-alt.capabilities-section {
    /* Slightly darker than the surrounding light sections for a clean checkerboard rhythm */
    background: #f1f5f9;
}

.module.surface-dark.capabilities-section {
    background: #0b1220;
    color: #cbd5e1;
}

.capabilities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.18;
    pointer-events: none;
}

.capabilities-section .pure-g {
    margin: 0 calc(var(--space-md) * -0.5);
}

.capabilities-section .pure-u-1,
.capabilities-section .pure-u-md-1-2 {
    padding: 0 var(--space-md);
    box-sizing: border-box;
    margin-bottom: var(--space-md);
}

.capabilities-section .pure-u-md-1-2 {
    margin-bottom: 0;
}

.capabilities-section h2,
.capabilities-section h3 {
    color: var(--black);
}

.capabilities-section .section-header {
    margin-bottom: var(--space-sm);
}

.capabilities-section .section-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--green);
    border-color: rgba(37, 99, 235, 0.2);
}

.capability-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: var(--space-md);
    border-radius: var(--radius);
    height: 100%;
    transition: var(--transition);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.capability-card:hover {
    border-color: var(--green-light);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.capability-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--green);
    transition: var(--transition);
}

.capability-card:hover .capability-icon-wrapper {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.capability-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.capability-header h3 {
    color: var(--black);
    margin: 0;
    font-size: 1.15rem;
}

.capability-card ul {
    list-style: none;
    padding: 0;
}

.capability-card li {
    padding: var(--space-xs) 0;
    color: var(--grey);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.capability-card li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.capabilities-intro {
    margin: var(--space-sm) auto 0;
    max-width: 820px;
    color: var(--grey);
    font-size: 1.05rem;
}

.capabilities-intro p {
    margin-top: var(--space-xs);
}

/* Capabilities Visual Animation */
.capabilities-visual {
    text-align: center;
    margin-top: 0;
    margin-bottom: var(--space-sm);
    padding: 0;
    width: 100%;
}

#d3-capabilities-viz {
    width: 100%;
    max-width: 800px;
    height: 180px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    min-height: 180px;
    display: block;
}

@media (max-width: 768px) {
    .capabilities-visual {
        margin-top: 0;
        margin-bottom: var(--space-xs);
    }
    
    #d3-capabilities-viz {
        height: 150px;
        min-height: 150px;
    }
}

/* ========================================
   VIDEO PROFESSIONAL PLAYER
======================================== */

.video_professional_player-section {
    padding: var(--space-xl) 0;
}

.video-pro-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.video-pro-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.video-pro-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.75rem;
}

.video-pro-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 750;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.15;
    color: #f8fafc;
}

.video-pro-subtitle {
    margin: 0.75rem auto 0;
    max-width: 52ch;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.video-pro-trust {
    margin: 2rem auto 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
}

.video-pro-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 999px; /* Rounded pill */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Thin border */
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.video-pro-trust li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-pro-trust li::before {
    content: "✓";
    font-family: inherit;
    font-weight: 900;
    color: #60a5fa; /* Light blue check */
}

.video-pro-player {
    border-radius: var(--radius-lg); /* Rounded 24px */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Thin border */
    background: #0f172a;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-xl); /* Soft deep shadow */
}

.video-pro-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-pro-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    padding: 0;
    border-radius: 50%; /* Perfect circle */
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.6); /* Glassy dark */
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-pro-play-inner {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #ffffff; /* White icon */
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.video-pro-play-inner::after {
    display: none;
}

.video-pro-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(37, 99, 235, 0.9); /* Solid blue on hover */
    border-color: rgba(37, 99, 235, 1);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.video-pro-play:hover .video-pro-play-inner {
    transform: scale(1.1);
}

.video-pro-play:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-pro-player.is-playing .video-pro-play {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.video-pro-runtime {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px; /* Rounded pill */
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #f1f5f9;
    z-index: 2;
}

.video-pro-under {
    padding-top: 2.5rem;
}

.video-pro-copy {
    margin: 2rem auto 0;
    text-align: center;
    max-width: 800px;
}

.video-pro-copy p {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

.video-pro-copy strong {
    color: #60a5fa; /* Soft blue highlight */
    font-weight: 600;
    padding: 0;
    background: none;
}

.video-pro-copy ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    display: inline-grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem 3rem;
    text-align: left;
    max-width: 900px;
    width: 100%;
}

.video-pro-copy li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.video-pro-copy li::before {
    content: "•";
    color: #3b82f6;
    position: absolute;
    left: 0;
    top: -0.1em;
    font-size: 1.5rem;
    line-height: 1;
}

.video-pro-copy strong {
    color: #f8fafc; /* White title */
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.video-pro-actions {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.video-pro-actions .btn {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius); /* 16px */
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow); /* Soft shadow */
}

.video-pro-actions .btn-primary {
    background: var(--green); /* Blue #2563eb */
    border: 1px solid var(--green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.video-pro-actions .btn-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    border-color: var(--green-dark);
}

.video-pro-actions .btn-outline {
    background: transparent;
    border: 1px solid #475569;
    color: #e2e8f0;
}

.video-pro-actions .btn-outline:hover {
    border-color: #cbd5e1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Single-column by design (desktop included) */

/* ========================================
   VIDEO ISLANDS SECTION - Modern Design
======================================== */

.video-islands-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Flow Island - Horizontal Steps */
.flow-island {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.flow-island-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    justify-content: center;
}

.flow-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-radius: 12px;
    color: #60a5fa;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.flow-label {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.flow-step {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
}

.flow-step:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.flow-step-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.flow-step svg {
    color: #60a5fa;
    flex-shrink: 0;
}

.flow-step.highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.flow-step.highlight .flow-step-number {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.flow-step.highlight svg {
    color: #4ade80;
}

.flow-step.highlight:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.12) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.flow-arrow {
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.flow-arrow svg {
    color: rgba(96, 165, 250, 0.6);
}

/* Benefits Islands Grid */
.benefits-islands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Flow Island Mobile Responsive */
@media (max-width: 768px) {
    .flow-island {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .flow-island-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .flow-label {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .flow-steps {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .flow-step {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }
    
    .flow-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .benefits-islands {
        grid-template-columns: 1fr;
    }
}

.benefit-island {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.benefit-island:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.get-island .benefit-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.keep-island .benefit-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 1rem 0;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.benefit-list li svg {
    flex-shrink: 0;
}

.get-island .benefit-list li svg {
    color: #60a5fa;
}

.keep-island .benefit-list li svg {
    color: #4ade80;
}

/* ========================================
   BUILDER SECTION
======================================== */

.builder-section {
    padding: var(--space-xl) 0;
    /* Calmer, more premium (less repetitive pale-blue blocks) */
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.builder-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    top: 0;
    left: 0;
    transform: translate(-20%, -20%);
    pointer-events: none;
    z-index: 0;
}

/* Builder Section - Dark Theme */
.builder-section.surface-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.builder-section.surface-dark::before {
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

.builder-section.surface-dark .section-badge {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.3);
}

.builder-section.surface-dark .section-title {
    color: #f8fafc;
}

.builder-section.surface-dark .section-subtitle {
    color: #94a3b8;
}

/* Builder Summary - Dark Theme */
.builder-summary-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.builder-summary-dark p {
    color: #94a3b8;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.builder-summary-dark p:last-child {
    margin-bottom: 0;
}

.builder-summary-dark strong {
    color: #f8fafc;
    font-weight: 600;
}

/* Compact Highlights with Tooltips */
.builder-highlights-compact {
    margin-top: 1.5rem;
}

.highlights-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem 0;
}

.highlight-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-bullet-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: default;
    position: relative;
    transition: all 0.2s ease;
}

.highlight-bullet-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.1);
    /* No transform - calm professional effect */
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    color: #60a5fa;
    flex-shrink: 0;
}

.highlight-bullet-item:hover .bullet-icon {
    background: rgba(37, 99, 235, 0.2);
}

.bullet-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

/* Tooltip for Highlights */
.bullet-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    width: 280px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bullet-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.highlight-bullet-item:hover .bullet-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile spacing for Key Capabilities */
@media (max-width: 1023px) {
    .builder-highlights-compact {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem; /* Add bottom spacing before stacked items */
    }
    
    .highlight-bullets {
        gap: 0.6rem; /* Slightly more gap on mobile */
    }
    
    .highlight-bullet-item {
        padding: 0.75rem 1rem; /* More padding on mobile */
    }
    
    /* Hide tooltips on mobile - use tap instead */
    .bullet-tooltip {
        display: none;
    }
}

/* Builder Animation - Dark Theme */
/* Builder Animation - Dark Theme (Flat Style) */
/* Override ALL base .builder-animation styles */
.builder-animation.builder-animation-dark {
    background: #0f172a !important;
    border: none !important; /* Remove ALL borders */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none !important; /* Flat style - no shadows */
}

.builder-animation-dark .builder-viz-header {
    background: #0f172a; /* Match D3.js animation background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
}

.builder-animation-dark .builder-animation__title {
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.builder-animation-dark .builder-viz-caption {
    color: #94a3b8;
}

/* D3 Builder Animation canvas - dark theme, match container background */
.builder-animation-dark .builder-animation__canvas {
    min-height: 350px;
    background: #0f172a !important; /* Same as container */
    aspect-ratio: 1 / 1;
}

/* SVG inside builder animation - no borders, transparent background */
.builder-animation-dark .builder-animation__canvas svg,
#d3-builder-viz svg {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ========================================
   WIZARD STEPPER - Modern 2025 Design
   Premium UI for tech startups
======================================== */

.wizard-stepper {
    margin-top: var(--space-lg);
    padding: 0 var(--space-md);
}

/* --- Navigation Pills --- */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--space-sm);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto var(--space-md);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wizard-nav::-webkit-scrollbar {
    display: none;
}

/* Tab Button */
.wizard-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    min-width: 90px;
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: #64748b;
    font-family: var(--font-heading);
}

.wizard-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.wizard-tab.active {
    background: var(--green);
    color: #ffffff;
    box-shadow: 
        0 4px 20px -4px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wizard-tab:focus-visible {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}

/* Tab Icon - Professional SVG Icons */
.wizard-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.wizard-tab-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.wizard-tab:hover .wizard-tab-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.wizard-tab.active .wizard-tab-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.wizard-tab.active .wizard-tab-icon svg {
    stroke: #ffffff;
}

/* Tab Label */
.wizard-tab-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-align: center;
}

/* Hide old connector class if any */
.wizard-connector {
    display: none;
}

/* Ensure proper display/hide for tab switching */
.wizard-panel:not(.active) {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: wizardFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Panel Cards --- */
.wizard-panels {
    position: relative;
}

.wizard-panel {
    animation: wizardFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-panel[hidden] {
    display: none;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Design - Glassmorphism Dark */
.wizard-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
    opacity: 0.8;
}

.wizard-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(37, 99, 235, 0.1);
}

/* Icon Container */
.wizard-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 16px;
    box-shadow: 
        0 8px 24px -6px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wizard-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 1.5;
}

.wizard-card-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: 2px solid var(--green-light);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

/* Card Content */
.wizard-card-content {
    flex: 1;
    min-width: 0;
}

.wizard-card-title {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.wizard-card-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* --- Responsive: Tablet (768px+) --- */
@media (min-width: 768px) {
    .wizard-stepper {
        padding: 0;
    }
    
    .wizard-nav {
        gap: 0.5rem;
        padding: var(--space-sm) var(--space-md);
        max-width: 600px;
    }
    
    .wizard-tab {
        flex-direction: row;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        min-width: auto;
    }
    
    .wizard-tab-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .wizard-tab-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .wizard-tab-label {
        font-size: 0.75rem;
    }
    
    .wizard-card {
        padding: var(--space-lg) var(--space-xl);
    }
    
    .wizard-card-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
    
    .wizard-card-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .wizard-card-title {
        font-size: 1.4rem;
    }
}

/* --- Responsive: Desktop (1024px+) --- */
@media (min-width: 1024px) {
    /* On desktop, show all cards in a grid, hide tabs */
    .wizard-nav {
        display: none !important;
    }
    
    .wizard-panels {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    /* Override tab-content hiding for desktop grid */
    .wizard-panel,
    .wizard-panel.tab-content,
    .wizard-panel:not(.active) {
        display: block !important;
        animation: none;
        opacity: 1 !important;
    }
    
    .wizard-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-xl);
        height: 100%;
    }
    
    .wizard-card-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        margin-bottom: var(--space-sm);
    }
    
    .wizard-card-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .wizard-card-number {
        top: -8px;
        right: -8px;
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .wizard-card-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .wizard-card-desc {
        font-size: 0.9rem;
    }
}

/* --- Light Theme Override (when not in dark surface) --- */
.builder-section:not(.surface-dark) .wizard-nav {
    background: rgba(248, 250, 252, 0.95);
    border-color: var(--border);
}

.builder-section:not(.surface-dark) .wizard-tab {
    color: var(--grey);
}

.builder-section:not(.surface-dark) .wizard-tab:hover {
    background: var(--bg-grey);
    color: var(--dark);
}

.builder-section:not(.surface-dark) .wizard-tab.active {
    background: var(--green);
    color: #ffffff;
}

.builder-section:not(.surface-dark) .wizard-card {
    background: #ffffff;
    border-color: var(--border);
}

.builder-section:not(.surface-dark) .wizard-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.builder-section:not(.surface-dark) .wizard-card-title {
    color: var(--dark);
}

.builder-section:not(.surface-dark) .wizard-card-desc {
    color: var(--grey);
}

/* ========================================
   LEGACY: Builder Steps (kept for compatibility)
======================================== */

.builder-grid {
    margin: 0 calc(var(--space-md) * -0.5);
    margin-bottom: var(--space-lg);
}

.builder-grid>div[class*="pure-u"] {
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.builder-summary {
    margin-bottom: var(--space-md);
}

.builder-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

/* Highlight List */
.highlight-list {
    margin-top: var(--space-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.highlight-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    transition: var(--transition);
    align-items: center;
    box-shadow: var(--shadow);
}

.highlight-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--green-light);
    background: rgba(255, 255, 255, 0.95);
}



.highlight-icon-wrapper {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Smaller icon variant for compact layouts */
.highlight-icon-wrapper--sm {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
}

.highlight-icon-svg {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
}

/* Smaller icon SVG variant */
.highlight-icon-svg--sm {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

.highlight-content {
    flex: 1;
    min-width: 0;
}

.highlight-content h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 2px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.highlight-content p {
    font-size: 0.8rem;
    color: var(--grey);
    margin: 0;
    line-height: 1.4;
}

/* Builder Process Visual */
.builder-process-visual {
    text-align: center;
    /* Compact vertical spacing: the animation reads horizontally */
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) 0;
    width: 100%;
}

.process-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-family: var(--font-heading);
}

#d3-pipeline-viz {
    width: 100%;
    max-width: 800px;
    height: 150px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    min-height: 150px;
    display: block;
}

.pipeline-viz-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.pipeline-visual-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

/* Builder Steps */
/* Builder Steps Container - Dark Theme Island Design */
.builder-steps-container {
    margin-top: var(--space-lg);
    margin-bottom: 0;
    overflow: visible;
    position: relative;
    /* Island wrapper - dark theme integration */
    background: var(--dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100% - var(--space-md) * 2);
}

/* Builder Steps Navigation - Transparent Tab Bar (inherits dark from container) */
.builder-steps-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: var(--space-xs);
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    background: transparent;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    z-index: 1;
}

.builder-steps-nav::-webkit-scrollbar {
    display: none;
}

.builder-step-tab {
    flex: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: var(--space-sm) var(--space-xs);
    min-width: 80px;
    height: auto;
    min-height: 4rem;
    background: transparent;
    border: none !important;
    outline: none !important;
    border-radius: var(--radius-sm);
    /* Rounded top corners */
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--grey);
    position: relative;
    box-shadow: none;
    margin: 0;
    margin-right: calc(var(--border-width-lg) * -1);
    /* Overlap borders */
    z-index: 1;
    transform: translateZ(0);
    /* Force hardware acceleration to prevent cutoff */
    will-change: transform;
    /* Optimize for transforms */
}

.builder-step-tab:last-child {
    margin-right: 0;
}

/* Inactive tabs - dark theme style */
.builder-step-tab:not(.active) {
    color: var(--light-grey);
}

/* Focus state */
.builder-step-tab:focus {
    outline: none !important;
    border: none !important;
}

.builder-step-tab:focus-visible {
    box-shadow: 0 0 0 2px var(--green);
    border-radius: var(--radius-sm);
}

.builder-step-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Active tab - highlighted pill style */
.builder-step-tab.active {
    background: var(--green);
    color: var(--white) !important;
    font-weight: 700;
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5);
    border: none !important;
    outline: none !important;
}

.builder-step-tab.active .builder-step-tab-label {
    color: var(--white) !important;
}

.builder-step-tab.active .builder-step-tab-icon {
    color: var(--white) !important;
}

.builder-step-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: inherit;
    opacity: 1;
    /* Always visible */
    transition: var(--transition-fast);
}

.builder-step-tab-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.builder-step-tab.active .builder-step-tab-icon {
    opacity: 1;
    color: var(--white);
}

.builder-step-tab:hover .builder-step-tab-icon {
    opacity: 1;
}

.builder-step-tab:not(.active) .builder-step-tab-icon {
    color: var(--grey);
    opacity: 0.7;
}

.builder-step-tab-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    /* CENTER ALIGNMENT */
    line-height: 1.3;
    white-space: nowrap;
    overflow: visible;
    /* Show text */
    text-overflow: clip;
    /* Don't ellipsis */
    flex: 1;
    min-width: 0;
    color: inherit;
    display: block;
    /* Ensure visibility */
    opacity: 1;
    /* Ensure visible */
}

/* Builder Steps Content - CONNECTED TO TABS */
.builder-steps-content {
    width: 100%;
    margin: 0;
    /* NO MARGIN - Seamless connection */
    margin-top: 0;
    padding: 0;
}

.builder-step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.builder-step-content.active {
    display: block;
    opacity: 1;
    animation: tabFadeIn 0.25s ease-out;
}

@keyframes tabFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Card inside the island - dark theme integration */
.builder-step-content.active .builder-step {
    border: none;
    border-radius: 0;
    margin: 0;
    background: var(--dark);
    box-shadow: none;
}

/* Last card gets bottom rounded corners */
.builder-step-content:last-child .builder-step {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Builder Steps (tab panels): card content styling */
.builder-steps-container .builder-step.card,
.builder-steps-container .builder-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
    padding: var(--space-lg);
    min-height: auto;
    border: none;
}

/* Remove the "tall card" top bar for tab panels */
.builder-steps-container .builder-step::before {
    display: none;
}

.builder-steps-container .builder-step .step-count {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
    flex: 0 0 auto;
}

.builder-steps-container .builder-step .builder-step-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}

.builder-steps-container .builder-step h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.builder-steps-container .builder-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--grey);
}

/* Mobile adjustments for card content */
@media (max-width: 767px) {
    .builder-steps-container {
        margin-left: var(--space-sm);
        margin-right: var(--space-sm);
        max-width: calc(100% - var(--space-sm) * 2);
    }
    
    .builder-steps-content {
        padding: 0;
    }
    
    .builder-step-content {
        padding: 0;
        margin: 0;
    }
    
    .builder-step-content .builder-step-item {
        padding: 0;
        margin: 0;
    }
    
    .builder-steps-container .builder-step.card,
    .builder-steps-container .builder-step {
        padding: var(--space-md);
        gap: var(--space-sm);
        margin: 0;
        background: var(--dark);
        color: var(--white);
        border-radius: 0;
    }

    .builder-steps-container .builder-step .step-count {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .builder-steps-container .builder-step h3 {
        font-size: 1rem;
        color: var(--white);
    }

    .builder-steps-container .builder-step p {
        font-size: 0.9rem;
        color: var(--light-grey);
    }
    
    /* Round bottom corners on active card */
    .builder-step-content.active .builder-step {
        border-radius: 0 0 var(--radius) var(--radius);
    }
}

@keyframes tabReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.builder-steps {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.builder-step {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius);
    /* ROUNDED */
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* THIN BORDER */
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.builder-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.builder-step:hover::before {
    opacity: 1;
}

.builder-step:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--green-light);
}

.step-count {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border-radius: 20px;
    /* ROUNDED SQUARE */
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
}

.builder-step:hover .step-count {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
}

/* ========================================
   OCR SECTION
======================================== */

/* ========================================
   OCR Section - Dark Theme (Video Module Style)
======================================== */
.ocr-section,
.ocr-section.surface-default,
.module.ocr-section {
    padding: var(--space-xl) 0;
    background: #0f172a !important; /* Match video section */
    position: relative;
}

.ocr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* OCR Section Dark Theme Text */
.ocr-section .section-header .section-title {
    color: #f8fafc !important;
}

.ocr-section .section-header .section-subtitle {
    color: #cbd5e1 !important;
}

.ocr-section .section-badge {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
}

/* ========================================
   PIPELINE SECTION (fix spacing + premium background)
======================================== */

.pipeline-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.pipeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 55%);
}

/* Prevent badge from feeling “stuck” to the top edge */
.pipeline-section .section-header {
    padding-top: var(--space-sm);
}

/* MODERN OCR VISUALIZATION HERO */
/* NOTE: Builder animation styles moved to builder-animation.css (BEM structure) */
.ocr-viz-hero {
    margin: var(--space-xl) 0;
    position: relative;
    padding: 0;
}

/* OCR Viz Title - Video Module Style */
.ocr-section .ocr-viz-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: block;
}

/* OCR Viz Caption - Video Module Style */
.ocr-section .ocr-viz-caption {
    margin: var(--space-xs) auto 0;
    max-width: 56ch;
    padding: 0 var(--space-sm);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #cbd5e1;
}

.ocr-viz-container {
    width: 100%;
    min-height: 400px;
    max-height: 450px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.ocr-process-labels {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.process-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
}

.label-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow);
}

.label-badge.label-chaos {
    background: var(--grey);
    color: var(--white);
}

.label-badge.label-order {
    background: var(--green);
    color: var(--white);
}

.label-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* OCR Stats Card - Compact Video Module Style */
.ocr-section .ocr-stats {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
}

.ocr-section .ocr-stats h3 {
    margin-bottom: var(--space-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #93c5fd;
    font-weight: 700;
}

.ocr-section .ocr-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ocr-section .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.ocr-section .stat-item:last-child {
    border-bottom: none;
}

.ocr-section .stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #60a5fa;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ocr-section .stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.ocr-grid {
    margin: 0 calc(var(--space-md) * -0.5);
    margin-bottom: var(--space-lg);
}

.ocr-grid>div[class*="pure-u"] {
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

/* OCR Details Card - Video Module Style */
.ocr-section .ocr-details.card,
.ocr-section .card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
}

/* Pillar - Video Module Style */
.ocr-section .pillar {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #60a5fa;
    box-shadow: none;
    transition: var(--transition);
}

.ocr-section .pillar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.ocr-section .pillar:last-child {
    margin-bottom: 0;
}

.ocr-section .pillar h3 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ocr-section .pillar p {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.ocr-section .pillar-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    background: rgba(96, 165, 250, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.ocr-timeline {
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius);
    /* ROUNDED */
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
    background: #ffffff;
}

.timeline-index {
    width: 50px;
    height: 50px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    /* CIRCLE */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-green);
}

/* OCR Timeline - Mobile header alignment (index inline with title) */
@media (max-width: 767px) {
    .ocr-timeline .timeline-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "index title"
            "index text"
            "index list";
        column-gap: var(--space-sm);
        row-gap: 0.35rem;
        align-items: start;
        padding: var(--space-md);
    }

    .ocr-timeline .timeline-card > .timeline-index {
        grid-area: index;
        margin: 0;
        align-self: start;
        margin-top: 0.1rem;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
        border: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow: 0 14px 26px -18px rgba(37, 99, 235, 0.55);
    }

    .ocr-timeline .timeline-card > h3 {
        grid-area: title;
        margin: 0;
        align-self: center;
        line-height: 1.2;
        font-size: 1.05rem;
        font-weight: 800;
    }

    .ocr-timeline .timeline-card > p {
        grid-area: text;
        margin: 0;
    }

    .ocr-timeline .timeline-card > ul {
        grid-area: list;
        margin: 0;
        padding-left: 1.1rem;
    }
}

/* QR Verification */
.qr-verification-modern {
    margin-top: var(--space-xl);
    background: linear-gradient(135deg, #eff6ff 0%, var(--white) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius);
    border: 2px solid #bfdbfe;
}

.qr-viz-container {
    width: 100%;
    height: 400px;
    background: #ffffff;
    border-radius: var(--radius);
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow-lg);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    box-sizing: border-box;
}

.qr-verification-svg-wrapper {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin: var(--space-xl) 0;
    border: var(--border-width) solid var(--border);
}

.qr-verification-svg {
    width: 100%;
    height: auto;
    min-height: 320px;
    margin: 0 auto;
    display: block;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-badge {
    text-align: center;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    border: var(--border-width) solid var(--border);
}

.feature-badge:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: var(--shadow-lg); */
    border-color: var(--green);
}

.feature-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

/* ========================================
   COMPARISON SECTION
======================================== */

.comparison-section {
    padding: var(--space-xl) 0;
    background: #ffffff;
    position: relative;
}

.comparison-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 55%);
}

/* ═══ NEW COMPARISON LAYOUT ═══ */
.comparison-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

@media (min-width: 992px) {
    .comparison-layout {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }
}

/* Race Card - Dark Theme (consistent with video section) */
.comparison-race-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    position: relative;
}

.comparison-race-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.comparison-race-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.race-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.race-titles h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
}

.race-titles p {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.race-body {
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Unified Before/After Card */
.comparison-unified-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.comparison-unified-card:hover {
    box-shadow: var(--shadow-lg);
}

.comparison-unified-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.comparison-unified-header h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.comparison-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.comparison-icon svg {
    width: 22px;
    height: 22px;
}

.comparison-unified-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
}

/* Comparison Columns */
.comparison-col {
    padding: var(--space-md);
}

.comparison-col.before {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}

.comparison-col.after {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.col-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid;
}

.comparison-col.before .col-header {
    border-color: #ef4444;
}

.comparison-col.after .col-header {
    border-color: var(--green);
}

.col-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.comparison-col.before .col-icon {
    background: #fecaca;
    color: #dc2626;
}

.comparison-col.after .col-icon {
    background: #dbeafe;
    color: var(--green);
}

.col-label {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-col.before .col-label {
    color: #dc2626;
}

.comparison-col.after .col-label {
    color: var(--green);
}

.comparison-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-col li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comparison-col li:last-child {
    border-bottom: none;
}

.comparison-col.before li i {
    color: #ef4444;
    font-size: 0.625rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.comparison-col.after li i {
    color: var(--green);
    font-size: 0.625rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Divider */
.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) 0;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    width: 40px;
}

.divider-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--light-grey) 50%, transparent 100%);
}

.divider-arrow {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-unified-body {
        grid-template-columns: 1fr;
    }
    
    .comparison-divider {
        flex-direction: row;
        width: 100%;
        padding: var(--space-xs) var(--space-md);
        height: 40px;
    }
    
    .divider-line {
        height: 2px;
        width: auto;
        flex: 1;
        background: linear-gradient(90deg, transparent 0%, var(--light-grey) 50%, transparent 100%);
    }
    
    .divider-arrow {
        transform: rotate(90deg);
    }
    
    .comparison-col {
        padding: var(--space-sm) var(--space-md);
    }
    
    .race-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .race-titles {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .race-titles p {
        margin: 0;
    }
}

/* Legacy support */
.comparison-grid {
    margin-top: var(--space-lg);
    margin-left: calc(var(--space-md) * -0.5);
    margin-right: calc(var(--space-md) * -0.5);
}

.comparison-grid>div[class*="pure-u"] {
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

#d3-comparison-viz {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: visible;
    background: transparent;
    border-radius: var(--radius);
    border: none;
}

@media (max-width: 768px) {
    #d3-comparison-viz {
        height: 180px;
    }
}

/* Comparison Chart Card - Legacy Support */
.comparison-chart-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: auto;
    height: auto;
    flex-grow: 1;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.comparison-chart-card:hover {
    border-color: var(--green-light);
    box-shadow: var(--shadow-lg);
}

.comparison-chart-card .chart-header {
    background: var(--bg-grey);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.chart-header .header-titles h3 {
    color: var(--black);
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.chart-header .header-titles p {
    color: var(--grey);
    margin: 2px 0 0;
    font-size: 0.75rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.comparison-chart-card .chart-body {
    padding: var(--space-lg);
    background: var(--white);
    position: relative;
    flex-grow: 1;
    /* Fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* #d3-comparison-viz moved to Race Card section above */

/* Replay Button - Dark Theme Style */
.btn-replay {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.btn-replay:hover {
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    border-color: rgba(37, 99, 235, 1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-replay i {
    color: #60a5fa;
}

.btn-replay:hover i {
    color: #ffffff;
}

/* ========================================
   PROCESS SECTION
======================================== */

.process-section {
    padding: var(--space-xl) 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Grid pattern overlay - subtle grid lines only, no radial gradient */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.process-flow-modern {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    padding: var(--space-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* ========================================
   SPECS SECTION
======================================== */

.specs-section {
    padding: var(--space-xl) 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Grid pattern overlay - subtle grid lines only, no radial gradient */
.specs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.specs-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.metric-large {
    text-align: center;
    flex: 1;
}

.metric-large .value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
    display: block;
}

.metric-large .unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.metric-large .label {
    font-size: 0.9rem;
    color: var(--grey);
}

.metric-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

.metric-chart-area h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-item {
    margin-bottom: 20px;
}

.chart-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chart-track {
    height: 8px;
    background: var(--bg-grey);
    border-radius: var(--radius);
    /* SQUARED */
    overflow: hidden;
}

.chart-bar-animated {
    height: 100%;
    background: var(--green);
    /* SOLID COLOR */
    border-radius: var(--radius);
    /* SQUARED */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.output-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.output-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: #eff6ff;
    border-radius: var(--radius);
    border: 2px solid #bfdbfe;
    transition: var(--transition);
}

.output-item:hover {
    /* transform: translateY(-3px); */
    /* box-shadow: var(--shadow); */
    border-color: var(--green);
    background: var(--white);
}

.output-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

/* ========================================
   ONELAYER SECTION - LIGHT MODE REFACTOR
======================================== */

.onelayer-section {
    padding: var(--space-xl) 0;
    background: #f8fafc;
    color: var(--black);
    position: relative;
    overflow: hidden;
}

/* Grid pattern overlay - subtle grid lines only, no radial gradient */
.onelayer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.onelayer-section .section-header {
    position: relative;
    z-index: 1;
}

.onelayer-section .section-title,
.onelayer-section .section-subtitle {
    color: var(--black);
}

.onelayer-section .section-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--green);
    border-color: rgba(37, 99, 235, 0.2);
}

/* NEW Onelayer layout (premium 2025) */
.onelayer-content {
    position: relative;
    z-index: 1;
    margin-top: var(--space-lg);
}

.onelayer-content > [class*="pure-u"] {
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

.onelayer-hero-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.85);
    padding: clamp(0.95rem, 1.8vw, 1.35rem);
    border-radius: 22px;
    box-shadow: 0 26px 55px -45px rgba(15, 23, 42, 0.25), 0 12px 22px -18px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.onelayer-hero-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 55%);
}

.onelayer-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--dark);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.onelayer-lede {
    position: relative;
    z-index: 1;
    margin-top: var(--space-md);
}

.onelayer-lede p {
    color: var(--grey);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-body);
}

/* Text content - clean card */
.onelayer-text {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    padding: var(--space-lg);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.onelayer-text p {
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.onelayer-text strong {
    color: var(--green);
    font-weight: 700;
}

/* Logo box - modern dark variant */
.onelayer-logo-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.18);
    transition: var(--transition);
}



.onelayer-logo {
    height: auto;
    width: 50px;
    flex-shrink: 0;
}

.onelayer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--black);
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Benefits container */
.onelayer-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Benefit cards - premium */
.benefit-item {
    display: flex;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.78);
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 30px -26px rgba(15, 23, 42, 0.18);
    transition: var(--transition);
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.benefit-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

/* Icon block - premium square badge */
.benefit-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    color: var(--green);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(96, 165, 250, 0.10) 60%, rgba(255,255,255, 1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 10px 18px -14px rgba(37, 99, 235, 0.35);
}

/* Benefit text */
.benefit-text h3 {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: var(--space-xs);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-heading);
}

.benefit-text p {
    font-size: 0.9375rem;
    color: var(--grey);
    margin-bottom: var(--space-xs);
    font-weight: 500;
    font-family: var(--font-body);
}

.benefit-detail {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
}

/* Mobile-first responsive */
@media (min-width: 768px) {
    .onelayer-logo-box {
        padding: var(--space-lg);
    }

    .onelayer-logo {
        width: 60px;
    }

    .onelayer-brand {
        font-size: 1.5rem;
    }

    .benefit-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .benefit-text h3 {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .onelayer-content {
        display: flex;
        flex-direction: row;
        gap: var(--space-lg);
        align-items: flex-start;
    }

    .onelayer-content>.pure-u-1.pure-u-lg-1-2 {
        flex: 1;
    }

    /* Let the left card size naturally (no forced stretch) */
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
    padding: var(--space-2xl) 0;
    background: #f8fafc;
    color: var(--black);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Grid pattern overlay - subtle grid lines only, no radial gradient */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

/* 2025 CTA layout */
.cta-shell {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-header {
    margin-bottom: var(--space-md);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--dark);
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.cta-title {
    color: var(--black);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    color: var(--grey);
    font-size: 1.15rem;
    max-width: 62ch;
    margin: var(--space-sm) auto 0;
    line-height: 1.55;
}

.cta-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: var(--space-md) auto var(--space-lg);
    max-width: 900px;
}

.cta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
}

.cta-surface {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    padding: clamp(1rem, 2.6vw, 1.6rem);
    box-shadow: 0 30px 70px -60px rgba(15, 23, 42, 0.32), 0 14px 26px -20px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    text-align: left;
}

.cta-option {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 34px -28px rgba(15, 23, 42, 0.18);
}

.cta-option::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 55%);
}

.cta-option-top {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.cta-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(96, 165, 250, 0.10) 60%, rgba(255,255,255, 1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 10px 18px -14px rgba(37, 99, 235, 0.35);
    flex: 0 0 auto;
}

.cta-option-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.cta-option-text {
    margin: 0.35rem 0 0;
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-option-bullets {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
    position: relative;
    z-index: 1;
}

.cta-option-bullets li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 0.35rem 0;
}

.cta-option-bullets li::before {
    content: "✓";
    color: var(--green);
    font-weight: 900;
    line-height: 1.1;
    margin-top: 2px;
}

.cta-option-actions {
    margin-top: 0.9rem;
    position: relative;
    z-index: 1;
}

.cta-footnote {
    margin-top: var(--space-lg);
    color: var(--grey);
    font-size: 0.95rem;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.cta-footnote p {
    margin: 0;
}

@media (max-width: 767px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-option {
        padding: 0.95rem;
    }
    .cta-subtitle {
        font-size: 1.05rem;
    }
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
}

.site-footer::before {
    display: none;
}

/* Footer 4-Column Grid Layout */
.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1.2fr 1fr 1.5fr 1fr;
        gap: var(--space-lg);
    }
}

/* Footer Columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Brand Column - Logo sizing fix */
.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: var(--space-xs);
}

.brand-col .footer-logo img,
.brand-col .footer-logo svg {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-shrink: 0;
}

.brand-col .footer-logo .logo-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-col .brand-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Footer Headings */
.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Links List */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links-list li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links-list li a:hover {
    color: #ffffff;
}

/* Newsletter Column */
.newsletter-col p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 var(--space-sm) 0;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0;
    max-width: 320px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #334155;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #1e293b;
    color: #ffffff;
    font-size: 0.9rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: #64748b;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--green);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    border: none;
    background: var(--green);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--green-dark);
}

/* Footer Actions (Download PDF button) */
.footer-actions {
    margin-top: var(--space-sm);
}

.footer-actions .btn-outline {
    border: 1px solid #334155;
    color: #94a3b8;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.footer-actions .btn-outline:hover {
    border-color: var(--green);
    color: #ffffff;
}

/* Micro Badges */
.micro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.micro-badge:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

.micro-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Stat badges within micro-badges */
.micro-badge.stat-badge {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.micro-badge .stat-val {
    font-weight: 700;
    color: #60a5fa;
}

/* Dynamic Stats - Tiny Inline Pills */
.dynamic-stats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    font-size: 0.6rem;
    white-space: nowrap;
    line-height: 1;
}

.stat-value {
    font-weight: 700;
    color: #60a5fa;
    font-size: 0.65rem;
}

.stat-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 0.55rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid #334155;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom .copyright,
.footer-bottom .made-with {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.footer-bottom .made-with {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom .made-with svg {
    color: var(--green);
}

/* Live Status Indicator */
.footer-bottom-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #22c55e;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

/* Mobile Footer Bottom */
@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.8);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6));
    }
}

@keyframes flow-dash {
    to {
        stroke-dashoffset: -24;
    }
}

/* ========================================
   TABLET (min-width: 768px)
======================================== */

@media (min-width: 768px) {
    :root {
        --space-xl: 5rem;
    }

    .main-nav ul {
        display: flex;
    }

    .hero-actions {
        flex-wrap: nowrap;
    }

    .highlight-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Builder steps - tablet grid */
    .builder-steps-container {
        margin: var(--space-lg) 0 0 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .builder-steps-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin: 0;
    }

    .builder-step-content {
        display: block !important;
        animation: none;
        opacity: 1 !important;
        margin: 0;
    }

    .builder-step-content .builder-step {
        border: var(--border-width) solid var(--border);
        border-radius: var(--radius);
        margin: 0;
        box-shadow: var(--shadow);
        padding: var(--space-md);
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
    }

    .builder-steps-nav {
        display: none !important;
    }

    .builder-step-tab {
        min-width: 0;
        height: 4rem;
        flex: 1;
    }

    .security-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-brand {
        align-items: flex-start;
    }
}

/* ========================================
   DESKTOP (min-width: 1024px)
======================================== */

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }

    /* Builder steps - desktop compact horizontal layout */
    .builder-steps-container {
        margin: var(--space-lg) 0 0 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    /* Hide tabs on desktop */
    .builder-steps-nav {
        display: none !important;
    }

    .builder-steps-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        margin: 0;
        align-items: stretch;
    }
    
    .builder-step-content {
        display: block !important;
        animation: none;
        opacity: 1 !important;
        transform: none !important;
        margin: 0;
    }
    
    /* Desktop cards - compact horizontal style with rounded corners */
    .builder-step-content .builder-step {
        height: 100%;
        border: var(--border-width) solid var(--border) !important;
        border-radius: var(--radius) !important;
        box-shadow: var(--shadow);
        padding: var(--space-sm) var(--space-md) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: var(--space-sm) !important;
        background: var(--white) !important;
        min-height: auto !important;
    }
    
    .builder-step-content .builder-step .step-count {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .builder-step-content .builder-step .builder-step-body {
        flex: 1 !important;
    }
    
    .builder-step-content .builder-step h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    .builder-step-content .builder-step p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    .security-features {
        grid-template-columns: repeat(4, 1fr);
    }

    /* OCR Section - Desktop Horizontal Layout */
    .ocr-section .ocr-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: var(--space-md);
        margin: 0 !important;
        align-items: stretch;
    }

    .ocr-section .ocr-grid > div[class*="pure-u"] {
        padding: 0 !important;
        display: block !important;
    }

    .ocr-section .ocr-grid > div[class*="pure-u"]:first-child {
        width: 70% !important;
        flex: none !important;
    }

    .ocr-section .ocr-grid > div[class*="pure-u"]:last-child {
        width: 30% !important;
        flex: none !important;
    }

    /* OCR Details - Horizontal Pillars on Desktop */
    .ocr-section .ocr-details.card {
        display: flex !important;
        flex-direction: row !important;
        gap: var(--space-md);
        padding: var(--space-md) !important;
        align-items: stretch;
        height: 100%;
    }

    .ocr-section .ocr-details.card .pillar {
        flex: 1;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-sm) var(--space-md);
    }

    .ocr-section .pillar h3 {
        font-size: 0.9rem;
    }

    .ocr-section .pillar p {
        font-size: 0.8rem;
    }

    /* OCR Stats - Compact Horizontal on Desktop */
    .ocr-section .ocr-stats.card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: var(--space-md) !important;
    }

    .ocr-section .ocr-stats h3 {
        text-align: center;
        margin-bottom: var(--space-sm);
    }

    .ocr-section .stat-item {
        padding: var(--space-xs) var(--space-sm);
        min-width: auto;
    }

    .ocr-section .stat-value {
        font-size: 1.25rem;
    }

    .ocr-section .stat-label {
        font-size: 0.6rem;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS (max-width: 767px)
======================================== */

@media (max-width: 767px) {
    /* ========================================
       MOBILE OPTIMIZATIONS - PROFESSIONAL & COMPACT
    ======================================== */

    /* Reduce section padding for mobile */
    .hero-section,
    .capabilities-section,
    .builder-section,
    .ocr-section,
    .comparison-section,
    .process-section,
    .onelayer-section,
    .specs-section {
        padding: var(--space-md) 0;
    }

    /* Hero needs extra top padding to clear fixed header on mobile */
    .hero-section {
        padding-top: 70px;
    }

    .cta-section {
        padding: var(--space-lg) 0;
    }

    /* OCR Section Mobile Optimizations */
    .ocr-section .ocr-grid {
        margin: 0;
    }

    .ocr-section .ocr-grid > div[class*="pure-u"] {
        padding: 0;
        margin-bottom: var(--space-md);
    }

    .ocr-section .ocr-details.card {
        padding: var(--space-sm);
    }

    .ocr-section .pillar {
        padding: var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .ocr-section .pillar h3 {
        font-size: 0.9rem;
    }

    .ocr-section .pillar p {
        font-size: 0.8rem;
    }

    .ocr-section .ocr-stats {
        padding: var(--space-md);
    }

    .ocr-section .stat-value {
        font-size: 1.5rem;
    }

    /* Compact cards with proper spacing */
    .card {
        padding: var(--space-md);
        margin-bottom: var(--space-sm) !important;
    }

    /* Ensure cards don't touch each other */
    .card+.card {
        margin-top: var(--space-sm);
    }

    /* Pure grid items need spacing */
    .pure-g>[class*="pure-u"] {
        margin-bottom: var(--space-sm) !important;
    }

    .pure-g>[class*="pure-u"]:last-child {
        margin-bottom: 0 !important;
    }

    /* Section headers - more compact */
    .section-header {
        margin-bottom: var(--space-md);
        padding: 0 var(--space-sm);
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    /* Hero section mobile */
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: var(--space-sm);
        background: transparent;
        border: 1px solid var(--green);
        border-radius: 0;
        font-family: monospace;
        letter-spacing: 2px;
        box-shadow: none;
    }

    /* NEW Hero Mobile Styles */
    .hero-trust-micro {
        padding: 5px 12px;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-title-main {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }

    .hero-clarity {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-value-list {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .hero-value-icon {
        width: 36px;
        height: 36px;
    }

    .hero-value-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero-value-text strong {
        font-size: 0.9rem;
    }

    .hero-value-text span {
        font-size: 0.8rem;
    }

    /* Testimonial Carousel Mobile */
    .hero-testimonial-carousel {
        min-height: 85px;
        margin-bottom: 1.25rem;
    }

    .hero-testimonial-content {
        padding: 12px 14px;
    }

    .hero-testimonial-text {
        font-size: 0.85rem;
        padding-left: 18px;
        line-height: 1.45;
    }

    .hero-testimonial-quote-icon {
        width: 12px;
        height: 12px;
        left: 12px;
        top: 10px;
    }

    .hero-testimonial-author {
        padding-left: 18px;
    }

    .hero-testimonial-name,
    .hero-testimonial-company {
        font-size: 0.7rem;
    }

    .hero-testimonial-indicators {
        margin-top: 8px;
        padding: 3px 6px;
        gap: 4px;
        background: transparent;
    }

    .hero-testimonial-dot {
        width: 6px !important;
        height: 6px !important;
        min-width: 6px;
        min-height: 6px;
        max-width: 6px;
        max-height: 6px;
    }

    .hero-testimonial-dot.active {
        width: 16px !important;
        max-width: 16px;
        height: 6px !important;
        max-height: 6px;
    }

    .hero-trust-statement {
        padding: 10px 14px;
        margin-bottom: 1.25rem;
    }

    .hero-trust-statement span {
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* D3 visualizations - ensure they fit and are touch-friendly */
    /* GPU Compositing & Performance Optimization */
    #d3-hero-viz,
    #d3-builder-viz,
    #d3-ocr-viz,
    #d3-pipeline-viz,
    #d3-comparison-viz,
    #d3-specs-viz,
    #d3-qr-viz,
    .ocr-viz-container,
    .builder-visual,
    .builder-animation-card {
        will-change: transform;
        contain: layout style paint;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
    }

    #d3-hero-viz {
        height: 420px !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100%;
        touch-action: pan-y;
    }

    .hero-visual-container,
    .hero-card-visual {
        margin: 0 !important;
        padding: 0 !important;
    }

    #d3-comparison-viz {
        height: 280px !important;
        max-width: 100%;
        overflow: visible !important;
    }

    .comparison-chart-card {
        padding: var(--space-md) !important;
        min-height: auto !important;
        border-radius: var(--radius) !important;
        /* SQUARED */
    }

    .comparison-chart-card h3 {
        font-size: 1.1rem !important;
    }

    .comparison-chart-card p {
        font-size: 0.85rem !important;
    }

    /* Builder Animation styles moved to builder-animation.css (BEM structure) */

    /* High-refresh-rate mobile optimization (iPhone 17 Pro 120Hz) */
    @media (prefers-reduced-motion: no-preference) {

        #d3-hero-viz,
        #d3-builder-viz,
        #d3-ocr-viz,
        #d3-pipeline-viz,
        #d3-comparison-viz,
        #d3-specs-viz {
            /* Optimize for 120Hz displays */
            transform: translateZ(0) scale(1);
        }
    }

    /* Respect user motion preferences */
    @media (prefers-reduced-motion: reduce) {

        #d3-hero-viz,
        #d3-builder-viz,
        #d3-ocr-viz,
        #d3-pipeline-viz,
        #d3-comparison-viz,
        #d3-specs-viz svg * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    .builder-visual svg,
    #d3-builder-viz svg {
        height: 100% !important;
        max-height: none !important;
        min-height: 480px !important;
    }

    .ocr-diagram,
    .process-d3-container,
    .specs-d3-container {
        max-height: 300px;
        padding: var(--space-md);
    }

    .ocr-diagram svg {
        max-height: 280px;
    }

    /* OCR Visualization Hero - Mobile */
    .ocr-viz-hero {
        margin: var(--space-md) 0;
    }

    /* Builder animation styles in builder-animation.css */

    .ocr-viz-title {
        font-size: 1.1rem;
        margin: 0;
        padding: 0 var(--space-sm);
        line-height: 1.2;
        display: block;
    }

    .ocr-viz-container {
        min-height: 350px !important;
        max-height: 380px !important;
        border-width: var(--border-width) !important;
        margin-bottom: var(--space-md) !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        /* Prevent cutoff */
    }

    .ocr-process-labels {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .process-label {
        width: 100%;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Capabilities grid - ensure proper spacing on mobile */
    .capabilities-section .pure-u-1 {
        margin-bottom: var(--space-lg) !important;
        padding: 0 var(--space-md) !important;
    }

    .capabilities-section .pure-u-1:last-child {
        margin-bottom: 0 !important;
    }

    .capability-card {
        margin-bottom: 0 !important;
        padding: var(--space-md);
    }

    /* Builder Steps - Hidden on desktop for now as requested */
    .builder-step-tab-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Builder Highlight Grid */
    .highlight-grid {
        margin-top: var(--space-lg);
        margin-left: calc(var(--space-md) * -0.5);
        margin-right: calc(var(--space-md) * -0.5);
    }

    .highlight-grid>[class*="pure-u"] {
        padding: 0 var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .highlight-card {
        background: var(--white);
        border: var(--border-width) solid var(--green);
        padding: var(--space-md);
    }

/* ==========================================================================
   DATA X HIGHLIGHTS (Builder module: 1–4 cards)
   Premium, theme-aligned, rounded, readable.
   ========================================================================== */

.data-x-highlight-card {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 18px;
    padding: 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.25), 0 10px 18px -16px rgba(15, 23, 42, 0.18);
    transition: transform 160ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1), border-color 160ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.data-x-highlight-card::before {
    content: "";
    position: absolute;
    /* Inset + radius prevents a visible “edge band” against the border */
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 55%);
}

@media (prefers-reduced-motion: no-preference) {
    .data-x-highlight-card:hover {
        border-color: rgba(37, 99, 235, 0.28);
        box-shadow: 0 26px 48px -36px rgba(15, 23, 42, 0.35), 0 16px 28px -22px rgba(15, 23, 42, 0.22);
    }
}

.data-x-highlight-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    width: 100%;
    min-height: 52px;
}

.data-x-highlight-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--green);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(96, 165, 250, 0.10) 55%, rgba(255,255,255, 1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px -14px rgba(37, 99, 235, 0.35);
}

.data-x-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 767px) {
    .data-x-highlight-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .data-x-icon-svg {
        width: 22px;
        height: 22px;
    }
}

.data-x-highlight-header h3 {
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: var(--black);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.data-x-highlight-content p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    color: #475569;
}

    /* Builder Animation Container - Single Clean Border */
.builder-animation {
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
}

.builder-viz-header {
    background: #ffffff;
    padding: var(--space-sm) var(--space-sm);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
}

.builder-viz-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.builder-animation__title {
    font-size: 0.9rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    color: var(--black);
    font-weight: 900;
    line-height: 1.1;
}

.builder-viz-caption {
    display: inline-block;
    max-width: 44ch;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.25;
    font-weight: 650;
}

.viz-status-indicators {
    display: flex;
    gap: 6px;
    padding-top: 2px;
    flex: 0 0 auto;
}

    .viz-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background: transparent;
    }

    .viz-dot:nth-child(1) {
        background: #ef4444;
    }

    .viz-dot:nth-child(2) {
        background: #fbbf24;
    }

    .viz-dot:nth-child(3) {
        background: var(--green);
    }

    .builder-animation__canvas {
        flex-grow: 1;
        position: relative;
        background: #0f172a !important; /* Match container background */
        border: none !important;
        box-shadow: none !important;
        height: auto !important;
        padding-bottom: 0 !important;
        min-height: 350px;
        aspect-ratio: 1 / 1; /* 1:1 aspect ratio on mobile */
    }

    /* Builder section */
    .builder-summary {
        margin-bottom: var(--space-sm) !important;
        border: none;
        box-shadow: none;
        padding-left: 0;
        background: transparent;
    }

    .builder-summary p,
    .builder-summary li {
        font-size: 1rem;
        max-width: 65ch;
        /* Readable line length */
    }

    .builder-text-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Prevent tabs from being cut off - HACK FIX */
    .builder-steps-container .builder-steps-nav {
        overflow-x: auto;
        /* Keep scrollable */
        overflow-y: visible;
        /* Allow vertical overflow */
        padding-left: var(--space-md);
        /* Extra left padding */
        padding-right: var(--space-md);
        /* Extra right padding */
        margin-left: calc(var(--space-md) * -1);
        /* Negative margin to compensate */
        margin-right: calc(var(--space-md) * -1);
        width: calc(100% + var(--space-md) * 2);
        /* Wider to accommodate */
        position: relative;
        z-index: 1;
    }

    /* Ensure first and last tabs have space */
    .builder-steps-container .builder-step-tab:first-child {
        margin-left: var(--space-xs);
    }

    .builder-steps-container .builder-step-tab:last-child {
        margin-right: var(--space-xs);
    }

    .builder-steps-content {
        display: block;
        margin: 0;
        /* NO MARGIN */
    }

    .builder-step-content {
        display: none;
        margin: 0;
    }

    .builder-step-content.active {
        display: block;
        margin: 0;
    }

    .builder-steps-nav {
        padding: var(--space-xs) var(--space-sm) 0 var(--space-sm);
        /* More padding on sides */
        margin: 0;
    }

    .builder-step-tab {
        height: 3.5rem;
        padding: var(--space-sm) var(--space-xs);
        gap: 0.4rem;
        flex: 1;
        min-width: 0;
        border-width: var(--border-width-lg);
        margin-right: calc(var(--border-width-lg) * -1);
        transform: translateZ(0);
        /* Prevent cutoff */
        will-change: auto;
    }

    /* First and last tabs need extra space */
    .builder-step-tab:first-child {
        margin-left: 0;
        padding-left: var(--space-sm);
    }

    .builder-step-tab:last-child {
        margin-right: 0;
        padding-right: var(--space-sm);
    }

    .builder-step-tab:last-child {
        margin-right: 0;
    }

    .builder-step-tab.active {
        border-bottom: none !important;
        /* No bottom border - clean look */
    }

    .builder-step-content.active .builder-step {
        margin: 0 !important;
        border: none !important;
        box-shadow: none;
    }

    .builder-step-tab-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .builder-step-tab-label {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
        white-space: normal;
        /* Allow wrapping if needed */
        overflow: visible;
        text-overflow: clip;
        display: block;
        opacity: 1;
        color: inherit !important;
    }

    /* Ensure active tab text is visible */
    .builder-step-tab.active .builder-step-tab-label {
        color: var(--white) !important;
        opacity: 1;
        font-weight: 800;
    }

    /* Ensure inactive tab text is visible */
    .builder-step-tab:not(.active) .builder-step-tab-label {
        color: var(--grey) !important;
        opacity: 1;
    }

    .builder-step {
        padding: var(--space-md);
        margin: 0;
        min-height: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-sm);
        border: none;
        background: var(--dark);
    }

    .builder-step-content.active .builder-step {
        border: none !important;
        margin: 0 !important;
        box-shadow: none;
    }

    .builder-step .step-count {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        margin: 0;
        flex-shrink: 0;
    }

    .builder-step h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        color: var(--white);
    }

    .builder-step p {
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--light-grey);
    }

    /* Specs dashboard */
    .specs-dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .metric-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: var(--space-xs);
        margin-bottom: var(--space-md);
        justify-content: space-around;
    }

    .metric-divider {
        display: none;
    }
    
    .metric-large {
        flex: 1;
        min-width: 0;
    }
    
    .metric-large .value {
        font-size: 1.75rem;
    }
    
    .metric-large .unit {
        font-size: 0.75rem;
    }
    
    .metric-large .label {
        font-size: 0.7rem;
    }

    .metric-large .value {
        font-size: 2.5rem;
    }

    /* Output results grid */
    .output-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    /* QR verification - simplified mobile */
    .qr-verification-modern {
        padding: var(--space-md);
        margin-top: var(--space-lg);
    }

    .qr-viz-container {
        height: 420px;
        padding: 4px;
        margin: var(--space-md) 0;
        overflow: hidden;
    }

    #d3-qr-viz svg {
        width: 100% !important;
        height: 100% !important;
    }

    .qr-verification-svg-wrapper {
        padding: var(--space-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .qr-verification-svg {
        min-width: 750px;
    }

    /* Comparison grid */
    .comparison-grid>div {
        margin-bottom: var(--space-lg) !important;
    }

    .comparison-grid>div:last-child {
        margin-bottom: 0 !important;
    }

    .comparison-card {
        margin-bottom: var(--space-lg) !important;
    }

    .comparison-card:last-child {
        margin-bottom: 0 !important;
    }

    /* Highlight list - single column on mobile */
    .highlight-list {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .highlight-item {
        padding: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .highlight-item:last-child {
        margin-bottom: 0;
    }

    /* Security features grid */
    .security-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    /* Process cards - stack vertically */
    .process-flow {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: var(--space-sm) 0;
    }

    /* Footer - stack items */
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Navigation - hide complex nav on mobile */
    .main-nav ul {
        display: none;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 32px;
    }

    /* Buttons - full width on mobile */
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .btn-sm {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* Container - reduce padding */
    .container {
        padding: 0 var(--space-sm);
    }

    /* Pure grid - ensure proper spacing */
    .pure-g {
        margin-left: 0;
        margin-right: 0;
        gap: 0;
    }

    /* Pure grid items - add spacing between cards */
    [class*="pure-u"] {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: var(--space-lg) !important;
    }

    [class*="pure-u"]:last-child {
        margin-bottom: 0 !important;
    }

    /* Builder grid specific spacing - compact on mobile */
    .builder-grid>[class*="pure-u"] {
        margin-bottom: var(--space-sm) !important;
    }

    .builder-grid>[class*="pure-u"]:last-child {
        margin-bottom: 0 !important;
    }
}

/* ========================================
   EXTRA SMALL MOBILE (max-width: 480px)
======================================== */

@media (max-width: 480px) {

    /* Even more compact for small phones */
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero-section,
    .capabilities-section,
    .builder-section,
    .ocr-section,
    .comparison-section,
    .process-section,
    .onelayer-section,
    .specs-section {
        padding: var(--space-md) 0;
    }

    /* Hero needs extra top padding to clear fixed header on mobile */
    .hero-section {
        padding-top: 70px;
    }

    #d3-hero-viz {
        height: 280px !important;
    }

    /* Builder Animation styles in builder-animation.css (BEM structure) */

    .security-features,
    .output-results-grid {
        grid-template-columns: 1fr;
    }

    .metric-large .value {
        font-size: 2rem;
    }

    .comparison-chart-card h3 {
        font-size: 1.1rem !important;
    }

    /* ===== MOBILE COMPACT SPACING FIXES ===== */
    
    /* Highlight Grid - Extra compact spacing */
    .highlight-grid {
        margin-top: var(--space-xs) !important;
        gap: 0 !important;
    }
    
    .highlight-grid > [class*="pure-u"] {
        padding: 0 var(--space-xs) !important;
        margin-bottom: var(--space-xs) !important;
    }
    
    .highlight-card,
    .data-x-highlight-card {
        padding: var(--space-sm) !important;
        margin-bottom: 0 !important;
    }
    
    /* Builder Process Visual - Compact spacing */
    .builder-process-visual {
        margin-top: var(--space-md) !important;
        margin-bottom: var(--space-sm) !important;
        padding: var(--space-xs) 0 !important;
    }
    
    .process-title {
        margin-bottom: var(--space-xs) !important;
        font-size: 1rem !important;
    }
    
    #d3-pipeline-viz {
        height: 140px !important;
        min-height: 140px !important;
    }
    
    /* OCR Timeline - Compact spacing */
    .ocr-timeline {
        margin-top: var(--space-sm) !important;
        gap: var(--space-sm) !important;
        grid-template-columns: 1fr !important;
    }
    
    .timeline-card {
        padding: var(--space-sm) !important;
        margin-bottom: 0 !important;
    }
    
    .timeline-index {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin: 0 !important;
    }

    /* OCR Timeline - Keep number inline with title on extra small screens */
    .ocr-timeline .timeline-card {
        display: grid !important;
        grid-template-columns: 40px 1fr !important;
        grid-template-areas: "index title" "index text" "index list" !important;
        column-gap: var(--space-sm) !important;
        row-gap: 0.25rem !important;
        align-items: start !important;
    }

    .ocr-timeline .timeline-card > .timeline-index {
        grid-area: index !important;
        align-self: start !important;
    }

    .ocr-timeline .timeline-card > h3 {
        grid-area: title !important;
        margin: 0 !important;
        align-self: center !important;
        line-height: 1.2 !important;
    }

    .ocr-timeline .timeline-card > p {
        grid-area: text !important;
        margin: 0 !important;
    }

    .ocr-timeline .timeline-card > ul {
        grid-area: list !important;
        margin: 0 !important;
        padding-left: 1.1rem !important;
    }
    
    /* Comparison viz - Fix horizontal fit */
    #d3-comparison-viz {
        height: 200px !important;
        min-height: 200px !important;
        overflow: visible !important;
    }
    
    /* Comparison card - unified look on mobile */
    .comparison-chart-card {
        border: var(--border-width) solid var(--black) !important;
        box-shadow: var(--shadow) !important;
    }
    
    .comparison-chart-card .chart-header {
        padding: var(--space-sm) !important;
        border-bottom: none !important;
        background: var(--white) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--space-xs) !important;
    }
    
    .comparison-chart-card .chart-header .header-titles h3 {
        font-size: 1rem !important;
    }
    
    .comparison-chart-card .chart-header .header-titles p {
        font-size: 0.65rem !important;
    }
    
    .comparison-chart-card .chart-body {
        padding: var(--space-xs) !important;
        background: var(--bg-grey) !important;
        border-radius: var(--radius) !important;
        margin: 0 var(--space-xs) var(--space-xs) !important;
    }
    
    /* General mobile compact adjustments */
    .module-content {
        padding: var(--space-sm) !important;
    }
    
    .pillars-grid {
        gap: var(--space-sm) !important;
    }
    
    .pillar-card {
        padding: var(--space-sm) !important;
    }
    
    /* Metric row - keep as row on mobile, make items fit */
    .metric-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: var(--space-xs) !important;
        justify-content: space-around !important;
        align-items: center !important;
    }
    
    .metric-large {
        text-align: center !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .metric-large .value {
        font-size: 1.5rem !important;
    }
    
    .metric-large .unit {
        font-size: 0.7rem !important;
    }
    
    .metric-large .label {
        font-size: 0.65rem !important;
    }
    
    .metric-divider {
        display: none !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {

    .site-header,
    .site-footer,
    #download-pdf-nav,
    #replay-btn {
        display: none !important;
    }

    main {
        margin-top: 0;
    }

    .module {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MOBILE: DISABLE ALL FADE/SCROLL ANIMATIONS
   Content loads instantly - no opacity/transform delays
======================================== */

@media (max-width: 767px) {

    /* Modules - instant visibility, no fade */
    .module {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .module.visible {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Fade-in utility - disabled on mobile */
    .fade-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* ===== TABLET/MOBILE COMPACT SPACING ===== */
    .highlight-grid {
        margin-top: var(--space-xs) !important;
        gap: 0 !important;
    }
    
    .highlight-grid > [class*="pure-u"] {
        margin-bottom: var(--space-xs) !important;
    }

    /* All sections - instant visibility */
    section.module,
    .hero-section,
    .capabilities-section,
    .builder-section,
    .ocr-section,
    .comparison-section,
    .process-section,
    .onelayer-section,
    .specs-section,
    .cta-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* Cards and containers - instant */
    .card,
    .capability-card,
    .builder-summary,
    .highlight-item,
    .builder-step,
    .comparison-card {
        opacity: 1 !important;
        transform: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    /* Lists - instant visibility */
    .hero-points li,
    .capability-points li,
    .highlight-item,
    .builder-step,
    .timeline-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ========================================
   ENGAGEMENT & INTERACTION POLISH
======================================== */

/* Smooth touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .card,
    .capability-card,
    .builder-step,
    .comparison-card,
    .benefit-item {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    }

    /* Prevent double-tap zoom on buttons */
    .btn {
        touch-action: manipulation;
    }
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

/* Improve touch targets on mobile */
@media (max-width: 767px) {

    .btn,
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Optimize animations for reduced motion preference */
@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;
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    /* Keep white theme even in dark mode - brand decision */
    /* Future: Add dark mode toggle if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .card,
    .capability-card,
    .comparison-card {
        border-width: 2px;
    }

    .btn {
        border-width: 3px;
    }
}

/* ========================================
   MODERN MICRO ELEMENTS & BADGES
======================================== */

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow);
}

.status-badge.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.status-badge.pending {
    background: #fbbf24;
    color: var(--black);
}

.status-badge.error {
    background: #ef4444;
    color: var(--white);
}

/* Micro Badge */
.micro-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--green);
    color: var(--white);
    border: 1px solid var(--green-dark);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Icon Badge */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    /* CIRCLE */
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.icon-badge:hover {
    background: var(--green);
    color: var(--white);
    transform: scale(1.1);
}

/* ========================================
   TAB-BASED MOBILE SYSTEM
   Icons as tabs that reveal content
======================================== */

/* Tab Container */
.tab-container {
    width: 100%;
}

/* Tab Navigation - Icon Row */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

/* Tab Button - Icon Style */
.tab-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: var(--space-sm);
    min-width: 4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--black);
}

.tab-btn:hover {
    background: var(--bg-grey);
    box-shadow: var(--shadow-lg);
}

.tab-btn.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: var(--shadow-green);
    font-weight: 600;
}

.tab-btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tab-btn-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: tabReveal 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes tabReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: Show all tabs content at once */
@media (min-width: 1024px) {
    .tab-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .tab-content {
        display: block !important;
        animation: none;
    }

    .tab-content-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-md);
    }
}

/* ========================================
   COMPACT ONE-ROW ICON VIEW
======================================== */

.icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    justify-content: flex-start;
}

.icon-row-compact {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: var(--space-sm) 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.icon-row-compact::-webkit-scrollbar {
    height: 4px;
}

.icon-row-compact::-webkit-scrollbar-track {
    background: var(--bg-grey);
}

.icon-row-compact::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 2px;
}

/* Icon Item */
.icon-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--space-md);
    min-width: 5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--black);
}

.icon-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.icon-item-icon {
    font-size: 2rem;
    color: var(--green);
}

.icon-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Grid Fallback for Small Elements */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-md);
}

@media (max-width: 767px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}


/* ========================================
   MODERN FEATURE CARDS
======================================== */

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--green-light);
    background: #ffffff;
}

.feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    /* SQUIRCLE */
    margin-bottom: var(--space-md);
    font-size: 2rem;
    color: var(--green);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.2);
    border-color: var(--green-light);
}

.feature-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   PAGE CONTENT - Default Pages
======================================== */

.page-content {
    padding: 80px 0 var(--space-xl) 0;
    background: var(--white);
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border-bottom: var(--border-width) solid var(--green);
    padding-bottom: var(--space-sm);
}

.page-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.page-content p {
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.page-content hr {
    border: none;
    border-top: var(--border-width) solid var(--border);
    margin: var(--space-lg) 0;
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.page-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.page-content blockquote {
    background: var(--bg-grey);
    border-left: var(--border-width-lg) solid var(--green);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
    font-style: italic;
}

.page-content blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-style: normal;
    font-weight: 700;
    color: var(--green);
}

.page-content code {
    background: var(--bg-grey);
    padding: 2px 6px;
    border: 2px solid var(--border);
    font-family: monospace;
    font-size: 0.9em;
}

.page-content pre {
    background: var(--dark);
    color: var(--green);
    padding: var(--space-md);
    overflow-x: auto;
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow);
    margin: var(--space-md) 0;
}

.page-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--green-light);
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow);
}

.page-content th {
    background: var(--black);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-content td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 2px solid var(--border);
}

.page-content tr:nth-child(even) {
    background: var(--bg-grey);
}

.page-content kbd {
    background: var(--dark);
    color: var(--white);
    padding: 2px 8px;
    border: 2px solid var(--black);
    font-family: monospace;
    font-size: 0.85em;
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.3);
}

.page-content mark {
    background: var(--green);
    color: var(--white);
    padding: 2px 6px;
}

/* ========================================
   NOTICES - Markdown Notices Plugin
======================================== */

.notices {
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notices p {
    margin: 0;
}

/* Yellow - Warning */
.notices.yellow {
    background: #fef9c3;
    border-left-color: #eab308;
}

/* Red - Error */
.notices.red {
    background: #fee2e2;
    border-left-color: #ef4444;
}

/* Blue - Info */
.notices.blue {
    background: #e0f2fe;
    border-left-color: #0ea5e9;
}

/* Green - Success */
.notices.green {
    background: #dbeafe;
    border-left-color: var(--green);
}

/* ========================================
   THEME REFERENCE - Showcase Styles
======================================== */

.theme-reference h2 {
    border-left: var(--border-width-lg) solid var(--green);
    padding-left: var(--space-md);
    background: var(--bg-grey);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

/* Color Palette Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

@media (min-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.color-swatch {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.color-swatch .color-name {
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.color-swatch .color-value {
    font-family: monospace;
    font-size: 0.75rem;
}

.color-green {
    background: var(--green);
    color: var(--white);
}

.color-green-dark {
    background: var(--green-dark);
    color: var(--white);
}

.color-black {
    background: var(--black);
    color: var(--white);
}

.color-dark {
    background: var(--dark);
    color: var(--white);
}

/* Button Showcase */
.button-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: var(--space-md) 0;
    padding: var(--space-lg);
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Card Showcase */
.card-showcase {
    margin: var(--space-md) 0;
}

.card-showcase .card {
    max-width: 400px;
}

/* Icon Showcase */
.icon-showcase {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-md) 0;
    padding: var(--space-lg);
    background: var(--bg-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Badge showcase inline */
.page-content .hero-badge,
.page-content .section-badge,
.page-content .micro-badge {
    margin-right: var(--space-sm);
}

/* ========================================
   MODAL - MODERN STYLE
======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: var(--space-md);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--grey);
    transition: all 0.15s ease;
}

.modal-close:hover {
    color: var(--black);
    border-color: var(--black);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-bg);
    border: 1px solid var(--green-light);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--green);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-text {
    font-size: 0.9375rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   DATA X HIGHLIGHTS (Desktop + Mobile)
   The desktop styles previously lived inside a mobile media query, which caused
   unstyled columns on desktop. This block re-establishes the intended design.
   ========================================================================== */

.data-x-highlight-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 18px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.25), 0 10px 18px -16px rgba(15, 23, 42, 0.18);
    transition: transform 160ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1), border-color 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.data-x-highlight-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 56%);
}

@media (prefers-reduced-motion: no-preference) {
    .data-x-highlight-card:hover {
        border-color: rgba(37, 99, 235, 0.28);
        box-shadow: 0 26px 48px -36px rgba(15, 23, 42, 0.35), 0 16px 28px -22px rgba(15, 23, 42, 0.22);
    }
}

.data-x-highlight-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    width: 100%;
    min-height: 52px;
}

.data-x-highlight-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--green);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(96, 165, 250, 0.10) 55%, rgba(255,255,255, 1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px -14px rgba(37, 99, 235, 0.35);
}

.data-x-highlight-icon .data-x-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
}

.data-x-highlight-header h3 {
    font-size: 0.98rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: var(--black);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.data-x-highlight-content p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    color: #475569;
}

@media (max-width: 767px) {
    .data-x-highlight-card {
        padding: var(--space-sm);
        border-radius: 16px;
    }

    .data-x-highlight-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .data-x-highlight-icon .data-x-icon-svg {
        width: 22px;
        height: 22px;
    }
}