/* ===================================
   SAFITRACK LANDING PAGE - PROFESSIONAL
   Dark Mode | Clean Design | No Gradients
   =================================== */

:root {
    /* CRM Colors - Pure Black & White theme */
    --color-primary: #000000;
    --color-primary-dark: #111111;
    --color-primary-light: #222222;

    /* Light Theme Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f6f8;
    --bg-elevated: #ffffff;

    /* Text */
    --text-primary: #0b1220;
    /* near-black */
    --text-secondary: #4b5563;
    /* dark gray */
    --text-muted: #6b7280;

    /* Borders */
    --border-color: #e6e9ef;
    --border-light: #f0f2f5;
    /* Divider used between page sections */
    --section-divider: rgba(11, 18, 32, 0.12);

    /* Shadows (subtle on white) */
    --shadow-sm: 0 1px 0 rgba(16, 24, 40, 0.02);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.08);
    --shadow-xl: 0 28px 80px rgba(16, 24, 40, 0.12);

    /* Spacing */
    --spacing-unit: 8px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* PREMIUM V2 TOKENS */
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-strong: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(11, 18, 32, 0.06);
    --surface-sunken: #f6f7f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #000000 0%, #444444 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(16, 24, 40, 0.06) 0%, transparent 70%);
    --gradient-text: linear-gradient(180deg, #0b1220 0%, #4b5563 100%);

    /* 3D & Depth */
    --depth-subtle: 0 1px 0 rgba(16, 24, 40, 0.02) inset;
    --shadow-premium: 0 16px 36px -10px rgba(16, 24, 40, 0.12), 0 0 0 1px var(--border-glass);
}

/* Additional mobile tweaks: lift hero badge and tighten spacing */
@media (max-width: 480px) {

    /* Compact the hero on very small screens: reduce top/bottom spacing */
    .hero {
        padding: 80px 0 60px !important;
    }


    .premium-testimonials .container {
        padding: 50px 0 !important;
        margin-bottom: 0px !important;
    }


    .premium-testimonials {
        padding: 0px !important;
    }


    /* Nudge the badge upward and tighten its gap to the title */
    .hero-badge,
    .hero-ai-badge {
        transform: translateY(-6px);
        margin-bottom: 6px;
        padding: 6px 10px;
    }

    /* Reduce vertical spacing around the main title and description */
    .hero-title {
        margin-bottom: 12px;
    }

    .hero-description {
        margin-bottom: 16px;
    }

    .hero-actions {
        gap: 8px;
        margin-top: 4px;
    }
}

/* ===================================
   RESET
   =================================== */

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ===================================
   UTILITIES
   =================================== */

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

/* ===================================
   BUTTONS
   =================================== */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    letter-spacing: 0.3px;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.btn-primary:hover {
    /* slightly lighter dark-gray hover for black primary buttons */
    background: #2a2a2a;
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

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

.btn-lg {
    height: 38px;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-block {
    width: 100%;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
    /* Anchor for mega-menu */
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

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

.logo img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(0) contrast(120%);
    /* force logos to black/gray on white nav */
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

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

.nav-link-sign-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    border: 1px solid #0b1220;
    border-radius: 10px;
    transition: color var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.nav-link-sign-in:hover {
    color: var(--text-primary);
    border-color: #0b1220;
    background: rgba(11, 18, 32, 0.08);
}

/* Mega-dropdown (desktop) for Features / Platform */
.nav-item {
    position: relative;
}

@media (min-width: 901px) {

    .nav-item.nav-features,
    .nav-item.nav-resources {
        position: static;
    }
}

.nav-link-toggle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-caret {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.nav-caret svg {
    width: 12px;
    height: 8px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.nav-item:hover .nav-caret {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 72px;
    left: 80px;
    width: 960px;
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 200;
    overflow: hidden;
    transform: translateY(10px);
}

.nav-features:hover .mega-menu,
.nav-resources:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-resources .mega-menu {
    width: 640px;
    top: 72px;
    /* Matching features dropdown height */
    left: 80px;
    /* Aligned with features dropdown left */
}

.nav-resources .mega-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Content Grid */
.mega-content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 24px 32px;
    /* Reduced vertical padding */
}

.mega-category-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    /* Reduced margin */
    padding-left: 12px;
}

.mega-items-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 12px;
    /* Reduced vertical padding */
    border-radius: 12px;
    transition: background-color var(--transition-fast);
}

.mega-item:hover {
    background: var(--bg-secondary);
}

.mega-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.mega-item:hover .mega-icon {
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}

.mega-icon i,
.mega-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.mega-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mega-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Sidebar */
.mega-sidebar {
    width: 260px;
    background: var(--surface-sunken);
    border-left: 1px solid var(--border-color);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

.mega-sidebar-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.mega-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.mega-sidebar-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mega-sidebar-list li a:hover {
    color: var(--color-primary);
}

.mega-sidebar-list li a i {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
}

.mega-sidebar-list li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.mega-sidebar-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.mega-sidebar-footer p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hide mega-menu on smaller screens */
@media (max-width: 900px) {
    .mega-menu {
        display: none;
    }
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(11, 18, 32, 0.06);
    transition: background-color var(--transition-base);
}

.btn-hero-primary.btn-lg {
    height: 38px;
    padding: 0 20px;
}

.btn-hero-primary:hover {
    /* slightly lighter dark-gray hover for black hero buttons */
    background: #2a2a2a;
}

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

.hero {
    padding: 180px 0 100px;
    background: var(--gradient-glow), var(--bg-primary);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    border: 1px solid #0b1220;
    border-radius: 10px;
    background: transparent;
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    color: var(--text-primary);
    border-color: #0b1220;
    background: rgba(11, 18, 32, 0.08);
}

/* Hero actions take the global 48px height from .btn-lg */

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    overflow: hidden;
    z-index: 1;
}

/* The "Rotating" Border Layer */
.hero-badge::before {
    content: '';
    position: absolute;
    inset: -150%;
    /* rotating border uses site blue */
    background: conic-gradient(transparent,
            rgba(47, 95, 208, 0.96),
            transparent 30%);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

/* The Internal Mask (Inner Background) */
.hero-badge::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: var(--bg-primary);
    border-radius: inherit;
    z-index: -1;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Text fill animation: makes text appear to fill in with full black */
.hero-title .fill-animate {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--text-primary) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: fillText 900ms ease forwards;
}

@keyframes fillText {
    to {
        background-size: 100% 100%;
    }
}

.dynamic-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #ffffff;
    padding: 10px 10px;
    /* Uniform padding as requested */
    border-radius: 12px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 8px 32px rgba(16, 24, 40, 0.06);
    white-space: nowrap;
    overflow: hidden;
    vertical-align: bottom;
    text-transform: lowercase;
    transform: translateY(6px);
}

.dynamic-word span {
    transition:
        opacity 0.5s ease,
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.5s ease;
    display: inline-block;
    color: inherit;
    will-change: transform, opacity, filter;
}

/* Kinetic Spring Entry/Exit */
.dynamic-word.exit span {
    opacity: 0;
    transform: translateY(-15px) scale(0.8);
    filter: blur(4px);
}

.dynamic-word.enter span {
    opacity: 0;
    transform: translateY(15px) scale(1.1);
    filter: blur(4px);
    transition: none;
    /* Reset state instantly */
}

/* Base state - smooth spring back */
.dynamic-word span {
    filter: blur(0);
}

/* Ensure the text is fat */
.dynamic-word span,
.hero-title {
    font-weight: 900;
}

.hero-description {
    font-size: 28px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-ai-launch {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 540px;
    padding: 14px 16px;
    border: 1px solid rgba(138, 149, 163, 0.2);
    background: rgba(18, 25, 35, 0.66);
    border-radius: 14px;
}

/* Showcase Section */
.showcase {
    padding: 0 0 100px;
    background: var(--bg-primary);
}

@media (max-width: 640px) {
    .showcase {
        padding: 0 0 48px;
    }
}

.showcase-tabs {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 10px 0;
}

/* ── Mobile showcase layout ───────────────────────────────── */
@media (max-width: 640px) {
    .showcase {
        padding: 0 0 40px;
    }

    /* Tab strip: 3-column pill grid, tight spacing */
    .showcase-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 14px 14px 0;
        max-width: 100%;
        overflow: visible;
        margin-bottom: 10px;
    }

    /* Hide all dividers */
    .tab-divider {
        display: none;
    }

    /* Pill chip — unselected */
    .showcase-tab {
        flex: unset;
        padding: 7px 6px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.09);
        color: var(--text-secondary);
        text-align: center;
        width: 100%;
        transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
        /* room for progress bar at bottom */
        padding-bottom: 9px;
    }

    /* Pill chip — selected: same look, progress bar is the indicator */
    .showcase-tab.active {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.09);
        color: var(--text-primary);
    }

    /* Thin progress bar inside the chip, at the bottom edge */
    .tab-progress-wrap {
        display: block;
        position: absolute;
        bottom: 3px;
        left: 8px;
        right: 8px;
        width: auto;
        height: 2px;
        background: rgba(0, 0, 0, 0.08);
        border-radius: 2px;
        overflow: hidden;
    }

    .showcase-tab.active .tab-progress-wrap {
        background: rgba(0, 0, 0, 0.08);
    }

    .showcase-tab .tab-progress {
        background: var(--color-primary);
    }

    /* Hide full-width desktop border lines */
    .showcase-tabs::before,
    .showcase-tabs::after {
        display: none;
    }

    /* Browser frame: rely on container padding for gutters, thin border */
    .browser-frame {
        margin: 0;
        border-radius: 10px;
        border: 1px solid rgba(0, 0, 0, 0.07);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    /* Slimmer toolbar */
    .browser-header {
        height: 30px;
        padding: 0 10px;
        gap: 10px;
    }

    .browser-dots span {
        width: 7px;
        height: 7px;
    }

    .browser-address {
        font-size: 10px;
        height: 20px;
    }
}

.showcase-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0 16px;
    cursor: pointer;
    position: relative;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center;
}

.tab-divider {
    width: 1px;
    height: 28px;
    background: rgba(11, 18, 32, 0.18);
    margin-bottom: 4px;
    /* Align visually with text baseline */
}

.showcase-tab.active {
    color: var(--text-primary);
}

.tab-progress-wrap {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
}

.showcase-tab.active .tab-progress-wrap {
    background: rgba(255, 255, 255, 0.05);
}

.tab-progress {
    height: 100%;
    width: 0;
    background: var(--color-primary);
}

/* Full-width top/bottom dividers for the tab strip (span viewport width) */
.showcase-tabs::before,
.showcase-tabs::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(11, 18, 32, 0.12);
    pointer-events: none;
}

.showcase-tabs::before {
    top: 0;
}

.showcase-tabs::after {
    bottom: 0;
}

/* Browser Frame Styling */
.browser-frame {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.browser-header {
    height: 44px;
    background: #e4e4e4;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #febc2e;
}

.browser-dots span:nth-child(3) {
    background: #28c840;
}

.browser-address {
    flex: 1;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    color: #555;
    font-family: 'JetBrains Mono', monospace;
}

.showcase-image-container {
    padding: 0;
    background: #ffffff;
    line-height: 0;
    position: relative;
}

#showcase-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#showcase-video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    user-select: none;
}

#showcase-video.fade-out {
    opacity: 0;
}

/* Covers any watermark / org name in the bottom-left of the CRM recordings */
.showcase-cover-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 14%;
    height: 11%;
    background: #fbfbfb;
    pointer-events: none;
    z-index: 2;
}

/* Ensure the showcase image scales well on small screens and keep aspect ratio */
@media (max-width: 900px) {
    .browser-frame {
        max-width: 720px;
    }

    #showcase-image {
        border-radius: 10px;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 480px) {
    .browser-frame {
        margin: 0;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.07);
    }

    .browser-header .browser-address {
        display: none;
    }

    .browser-dots span {
        width: 6px;
        height: 6px;
    }

    #showcase-video {
        width: 100%;
        height: auto;
    }
}

#showcase-image.fade-out {
    opacity: 0;
}

.hero-ai-visual {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    background: rgba(8, 12, 20, 0.8);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-ai-orb-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.hero-ai-content {
    display: grid;
    gap: 6px;
    transform: translateY(-10px);
}

.hero-ai-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-ai-badge {
    width: fit-content;
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 24, 40, 0.18);
    background: rgba(16, 24, 40, 0.02);
    color: #c7d8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-ai-badge-inline {
    margin-left: auto;
    transform: translateY(7px);
}

.hero-ai-title {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-ai-copy {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .hero-ai-orb-gif {
        animation: none;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.hero-image-wrapper {
    position: relative;
}

.hero-screenshot {
    width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
}

/* ===================================
   COMPANIES SECTION
   =================================== */

.companies {
    padding: 72px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.companies-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 48px;
    align-items: center;
    justify-items: center;
}

/* Ensure every section pair has a clear divider */
section+section {
    border-top: 1px solid var(--section-divider);
}

/* Make company logos darker so white/light logos remain visible on white background */
.companies-grid .company-logo {
    max-height: 44px;
    width: auto;
    display: inline-block;
    object-fit: contain;
    /* darken light/white logos while preserving shape */
    filter: grayscale(100%) brightness(0.18) contrast(1.05);
    transition: filter 180ms var(--transition-fast), opacity 160ms ease;
}

/* Reveal original colored logos on hover for emphasis */
.companies-grid .company-logo:hover {
    /* Make logos fully black on hover for clear contrast */
    filter: grayscale(100%) brightness(0) contrast(100%);
    opacity: 1;
}

.company-logo {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.62;
    transition: all var(--transition-base);
}

.company-logo:hover {
    opacity: 0.92;
    transform: scale(1.03);
}

/* Make company logos and grid more compact on smaller screens */
@media (max-width: 900px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .company-logo {
        height: 48px;
        max-width: 140px;
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 12px;
    }

    .company-logo {
        height: 40px;
        max-width: 100px;
        opacity: 0.9;
    }
}

/* ── Mobile marquee carousel ──────────────────────────────── */
.companies-marquee {
    display: none;
    /* hidden on desktop */
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {

    /* Hide the static grid, show the marquee */
    .companies-grid {
        display: none;
    }

    .companies-marquee {
        display: block;
        overflow: hidden;
        /* Fade edges out */
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    }

    .companies-track {
        display: flex;
        align-items: center;
        gap: 36px;
        width: max-content;
        animation: marquee-scroll 18s linear infinite;
    }

    .companies-track .company-logo {
        height: 36px;
        width: auto;
        max-width: none;
        flex-shrink: 0;
        filter: grayscale(100%) brightness(0.18) contrast(1.05);
        opacity: 1;
    }
}

/* Specific logo size adjustments for visual balance */
.logo-dd {
    height: 68px;
}

.logo-ente {
    height: 64px;
}

/* ===================================
   SCROLL MANIFESTO SECTION
   =================================== */

.scroll-manifesto {
    position: relative;
    height: 240vh;
    background: radial-gradient(circle at 50% 12%, rgba(16, 24, 40, 0.04), transparent 46%), var(--bg-primary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* dotted overlay for manifesto quote section */
.scroll-manifesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(107, 112, 128, 0.4) 1px, transparent 1px);
    /* gray (#6b7080) at 40% opacity for neutral dots */
    background-size: 24px 24px;
    background-attachment: fixed;
    /* keep pattern static while scrolling */
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.scroll-manifesto-stage {
    position: relative;
    z-index: 2;
    /* background removed to avoid boxed appearance; text now sits directly on dotted background */
    padding: 84px 0;
    /* preserve existing vertical spacing */
}

.scroll-manifesto-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.scroll-manifesto-stage {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    padding: 84px 0;
}

.sm-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.sm-quote {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: rgba(182, 192, 204, 0.28);
}

.sm-word {
    display: inline-block;
    color: var(--text-secondary);
    opacity: 0.16;
    transform: translateY(2px);
    transition: opacity 180ms linear, transform 180ms linear, text-shadow 180ms linear, color 180ms linear;
}

.sm-word.active {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-primary);
    /* black when fully revealed */
    text-shadow: 0 0 18px rgba(16, 24, 40, 0.06);
}

/* ===================================
   TRANSFORMATION SECTION — 3-STEP
   =================================== */

.transformation-split {
    padding: 96px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Left-aligned header variant for this section */
.section-header.tf-header-left {
    text-align: center;
    max-width: none;
    margin-bottom: 40px;
}

.section-header.tf-header-left .section-title {
    max-width: 820px;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin-left: auto;
    margin-right: auto;
}

/* Second sentence — same size, lighter weight */
.tf-title-light {
    font-weight: 400;
    color: var(--text-secondary);
}

/* =========================================================
   3-STEP PROGRESS INDICATOR
   ========================================================= */
.tf-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 44px;
}

.tf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}

.tf-step-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.tf-step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    transition: opacity 0.15s ease;
}

.tf-step-check {
    position: absolute;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.tf-step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.35;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.tf-step.is-active .tf-step-node {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.tf-step.is-active .tf-step-num {
    color: #fff;
}

.tf-step.is-active .tf-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.tf-step.is-done .tf-step-node {
    border-color: #10b981;
    background: #10b981;
    box-shadow: none;
}

.tf-step.is-done .tf-step-num {
    opacity: 0;
}

.tf-step.is-done .tf-step-check {
    opacity: 1;
}

.tf-step.is-done .tf-step-label {
    color: var(--text-secondary);
}

.tf-step-conn {
    flex: 1;
    max-width: 72px;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 14px;
    flex-shrink: 0;
}

.tf-step-conn-fill {
    height: 100%;
    width: 0%;
    background: #10b981;
    border-radius: 1px;
    transition: width 0.55s ease;
}

.tf-step-conn-fill.is-filled {
    width: 100%;
}

/* =========================================================
   STAGE CANVAS
   ========================================================= */
.tf-stage-wrap {
    width: 100%;
    height: 340px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.tf-stage {
    position: relative;
    width: 960px;
    height: 340px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.08);
    flex-shrink: 0;
}

/* =========================================================
   COLUMN HEADERS
   ========================================================= */
.tf-col-headers {
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.tf-col-headers.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tf-ch {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.tf-ch.is-accepting {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
}

.tf-ch-won {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.04);
}

.tf-ch-won.is-accepting {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
}

.tf-ch-count {
    background: var(--bg-secondary);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 16px;
    text-align: center;
    display: inline-block;
}

.tf-ch-count.is-bumping {
    animation: tfCountBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.tf-ch-count-won {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

@keyframes tfCountBump {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.55);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================================
   DEAL CARDS — states: is-hidden (ph1) → is-chaotic (ph2, scattered) → organized (ph3)
   ========================================================= */
.tf-card {
    position: absolute;
    width: 190px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px 9px;
    z-index: 3;
    opacity: 1;
    transition:
        left 0.58s cubic-bezier(0.34, 1.44, 0.64, 1),
        top 0.58s cubic-bezier(0.34, 1.44, 0.64, 1),
        transform 0.58s cubic-bezier(0.34, 1.44, 0.64, 1),
        opacity 0.3s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* PHASE 1: invisible at scatter position — no transitions */
.tf-card.is-chaotic.is-hidden {
    opacity: 0;
    transform: rotate(var(--cr)) scale(0.48) translateY(10px);
    transition: none !important;
}

/* PHASE 2: visible at scatter position */
.tf-card.is-chaotic:not(.is-hidden) {
    left: var(--cx);
    top: var(--cy);
    transform: rotate(var(--cr));
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.13);
    transition:
        left 0.48s cubic-bezier(0.4, 0, 0.8, 1),
        top 0.48s cubic-bezier(0.4, 0, 0.8, 1),
        transform 0.48s cubic-bezier(0.4, 0, 0.8, 1),
        opacity 0.3s ease,
        box-shadow 0.3s ease;
}

/* PHASE 3: organized positions — 4 columns on 820px stage */
/* col0=Qualified: 12px, col1=Proposal: 214px, col2=Negotiation: 416px, col3=Won: 618px */
.tf-c1 {
    left: 12px;
    top: 42px;
}

.tf-c4 {
    left: 12px;
    top: 178px;
}

.tf-c2 {
    left: 254px;
    top: 42px;
}

.tf-c5 {
    left: 254px;
    top: 178px;
}

.tf-c6 {
    left: 496px;
    top: 42px;
}

.tf-c3 {
    left: 738px;
    top: 42px;
}

.tf-card-won {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-elevated) 60%);
}

/* PHASE 2: pop-in spring animation from scatter position */
@keyframes tfExtract {
    from {
        opacity: 0;
        transform: rotate(var(--cr)) scale(0.52) translateY(10px);
    }

    to {
        opacity: 1;
        transform: rotate(var(--cr)) scale(1) translateY(0);
    }
}

.tf-card.is-extracting {
    animation: tfExtract 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* PHASE 3: landing pulse ring */
.tf-card.is-landing {
    animation: tfLandPulse 0.65s ease forwards;
}

@keyframes tfLandPulse {
    0% {
        box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.35), 0 4px 12px rgba(16, 24, 40, 0.07);
    }

    35% {
        box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15), 0 6px 18px rgba(16, 24, 40, 0.10);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.00), 0 4px 12px rgba(16, 24, 40, 0.07);
    }
}

.tf-card-won.is-landing {
    animation: tfLandPulseGreen 0.65s ease forwards;
}

@keyframes tfLandPulseGreen {
    0% {
        box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.40), 0 4px 12px rgba(16, 24, 40, 0.07);
    }

    35% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18), 0 6px 20px rgba(16, 24, 40, 0.10);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.00), 0 4px 12px rgba(16, 24, 40, 0.07);
    }
}

/* ---- Card anatomy ---- */
.tf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.tf-ctag {
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tf-tag-hot {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.tf-tag-won {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.tf-card-tick {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease 0.38s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.38s;
    flex-shrink: 0;
}

.tf-card:not(.is-chaotic):not(.is-hidden) .tf-card-tick {
    opacity: 1;
    transform: scale(1);
}

.tf-cname {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.tf-cavatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--av-color, var(--color-primary));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    flex-shrink: 0;
}

.tf-cval {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.tf-cprog {
    height: 3px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.tf-cprog-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: var(--color-primary);
    transition: width 0.55s ease 0.2s;
}

.tf-card-won .tf-cprog-fill {
    background: #10b981;
}

/* =========================================================
   CHAOS LAYER — 3 opacity states across the phases
   ========================================================= */
.tf-chaos-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Phase 2: ghosted backdrop while cards are out */
.tf-chaos-layer.is-ghosted {
    opacity: 0.18;
}

/* Phase 3: fully gone */
.tf-chaos-layer.is-dissolving {
    opacity: 0;
    transform: scale(0.97);
}

/* Reset: snap back instantly with no transition */
.tf-chaos-layer.is-resetting {
    opacity: 1;
    transform: scale(1);
    transition: none !important;
}

.tf-sticky {
    position: absolute;
    width: 124px;
    padding: 9px 10px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    font-family: 'Segoe Print', cursive, sans-serif;
    font-size: 12px;
    color: #1f2937;
    line-height: 1.45;
}

.tf-note-text {
    font-weight: 500;
    margin-bottom: 4px;
}

.tf-note-sub {
    font-size: 11px;
    color: #6b7280;
}

.tf-note-urgent {
    font-size: 11px;
    color: #dc2626;
    font-weight: 700;
}

.tf-s1 {
    background: #fef3c7;
    top: 14px;
    left: 14px;
    transform: rotate(-8deg);
}

.tf-s2 {
    background: #fed7aa;
    top: 248px;
    left: 800px;
    transform: rotate(6deg);
}

.tf-s3 {
    background: #d1fae5;
    top: 18px;
    left: 836px;
    transform: rotate(-5deg);
}

.tf-s4 {
    background: #ede9fe;
    top: 210px;
    left: 360px;
    transform: rotate(7deg);
}

.tf-sheet {
    position: absolute;
    left: 172px;
    top: 88px;
    width: 176px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    transform: rotate(3deg);
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.1);
}

.tf-sheet-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-sheet-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3px;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 3px 0;
}

.tf-sheet-row.tf-row-err {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 2px;
    padding: 3px 3px;
}

.tf-alert {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    white-space: nowrap;
}

.tf-alert-1 {
    top: 280px;
    left: 28px;
}

.tf-alert-2 {
    top: 16px;
    left: 420px;
}

.tf-alert-3 {
    top: 148px;
    left: 812px;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

.tf-chatbubble {
    position: absolute;
    left: 670px;
    top: 158px;
    width: 164px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px 10px 3px 10px;
    padding: 8px 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(-4deg);
    font-size: 11px;
}

.tf-chat-sender {
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 3px;
}

.tf-chat-msg {
    font-size: 11.5px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.tf-chat-time {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
}

.tf-checklist {
    position: absolute;
    left: 24px;
    top: 126px;
    width: 148px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
    transform: rotate(-3deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 11px;
}

.tf-check-title {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 4px;
}

.tf-check-item {
    color: var(--text-secondary);
    padding: 2px 0;
    line-height: 1.4;
}

.tf-check-done {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* =========================================================
   AI BADGE
   ========================================================= */
.tf-ai-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    z-index: 5;
    opacity: 0;
    transform: translateY(4px) scale(0.94);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tf-ai-badge.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================================
   STATS ROW
   ========================================================= */
.tf-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 36px;
    flex-wrap: wrap;
}

.tf-fstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}

.tf-fstat strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.tf-fstat span {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
    text-align: center;
}

.tf-fstat-pos strong,
.tf-fstat-pos span {
    color: #10b981;
}

.tf-fstat-sep {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .transformation-split {
        padding: 64px 0;
    }
}

/* Scale stage down once viewport is narrower than the stage + container padding */
@media (max-width: 900px) {
    .tf-stage-wrap {
        height: calc((100vw - 40px) * 340 / 960);
    }

    .tf-stage {
        transform: scale(calc((100vw - 40px) / 960px));
        transform-origin: top center;
    }
}

@media (max-width: 480px) {
    .transformation-split {
        padding: 48px 0;
    }
}

/* Legacy features section (kept for other uses) */
.features {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 24, 40, 0.03);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===================================
   PREMIUM ROLES SHOWCASE (Compact & Interactive)
   =================================== */

.roles-showcase {
    position: relative;
    padding: 80px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.roles-showcase .container.compact-container {
    max-width: 1000px;
}

.roles-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 24, 40, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.roles-header.condensed {
    margin-bottom: 40px;
}

.roles-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.roles-dock.condensed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto 48px;
}

.dock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.dock-item.active {
    background: var(--bg-elevated);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--border-light);
}

.dock-icon {
    display: flex;
    align-items: center;
    color: currentColor;
}

.dock-indicator {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-left: 8px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item.active .dock-indicator {
    opacity: 1;
    transform: scale(1);
}

.dock-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* Role Scenes */
.role-scene {
    display: none;
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-scene.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Compact Scene Grid */
/* Compact Scene Grid */
.scene-grid.compact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Gave visual more space */
    gap: 60px;
    /* Increased gap */
    align-items: center;
    max-width: 1200px;
    /* Constrain width */
    margin: 0 auto;
}

.scene-text h3 {
    font-size: 32px;
    /* A bit larger */
    margin-bottom: 16px;
}

.scene-text p {
    font-size: 15px;
    margin-bottom: 24px;
}

.scene-features li {
    font-size: 14px;
    margin-bottom: 8px;
}

.app-window {
    height: 420px;
    background: #171B21;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.window-header.small {
    height: 36px;
}

.window-content {
    flex: 1;
    overflow: hidden;
    padding: 24px;
}

/* Sales Kanban - Interactive Look */
.kanban-board {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

.kanban-col {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-card.draggable {
    cursor: grab;
    transition: transform 0.12s ease, box-shadow 0.16s ease, opacity 0.12s ease;
    user-select: none;
}

.kanban-card.draggable:active {
    cursor: grabbing;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.kanban-drop-zone {
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin-top: auto;
}

/* Technician Split View */
.split-view {
    display: grid;
    grid-template-rows: auto 1fr;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.map-side {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.map-interface.small {
    height: 100%;
}

.map-point {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.map-point.p1 {
    top: 50px;
    left: 50px;
}

.map-point.p2 {
    top: 100px;
    left: 100px;
}

.map-point.p3 {
    top: 50px;
    left: 150px;
}

.log-side {
    padding: 20px;
    background: #131519;
}

.job-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.job-status {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.job-time {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 12px;
}

.job-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.job-address {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.job-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-job {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-job.primary {
    background: var(--color-primary);
}

.btn-job:hover {
    opacity: 0.9;
}

.job-log-feed {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-item {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.log-time {
    opacity: 0.5;
    margin-left: 4px;
}

/* Manager Dashboard Stylings */
.dashboard-layout {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
}

.dash-card.primary {
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.06) 0%, rgba(23, 27, 33, 0) 100%);
    border-color: rgba(16, 24, 40, 0.06);
}


/* Pulse Dashboard */
.pulse-dashboard {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.04) 0%, rgba(23, 27, 33, 0) 100%);
}

.pulse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 100px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: flash 1.5s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.pulse-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
}

/* Gauge Section */
.quota-section {
    display: flex;
    justify-content: center;
}

.gauge-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.pulse-gauge {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-dasharray: 283;
    /* 2 * PI * 45 */
    stroke-dashoffset: 283;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.2, 0, 0, 1);
}

.gauge-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.g-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.g-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Feed Section */
.feed-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    /* for scrollbar */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.live-feed::-webkit-scrollbar {
    display: none;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    animation: slideInLeft 0.4s cubic-bezier(0.2, 0, 0, 1) backwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.feed-details {
    flex: 1;
    line-height: 1.4;
    color: var(--text-secondary);
}

.feed-user {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

.feed-action strong {
    color: var(--text-primary);
}

.feed-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.badge.positive {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* Floating Widget */
/* ===================================
   ROLES SHOWCASE - REDESIGN (50/50 SPLIT)
   =================================== */

.roles-showcase {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(16, 24, 40, 0.04) 0%, transparent 40%);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: flex-start;
}

/* LEFT COLUMN: Navigation & Context */
.role-nav-col {
    position: sticky;
    top: 120px;
}

.nav-sticky-content {
    display: flex;
    flex-direction: column;
}

.section-label {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.role-heading {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 48px;
    color: var(--text-primary);
    /* Remove gradient text fill to ensure solid neutral heading */
}

/* Vertical Dock */
.role-dock.vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.dock-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    text-align: left;
    width: 100%;
}

.dock-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dock-btn.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.d-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dock-btn.active .d-icon {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(16, 24, 40, 0.06);
}

.d-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.d-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.dock-btn.active .d-title {
    color: var(--text-primary);
}

.d-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Dynamic Context */
.role-context {
    display: none;
    animation: fadeIn 0.5s ease;
}

.role-context.active {
    display: block;
}

.context-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.context-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.context-tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* RIGHT COLUMN: App Window */
.role-view {
    display: none;
    /* Hide all views by default */
    height: 100%;
}

.role-view.active {
    display: block;
    /* Only show active */
    animation: fadeInScale 0.4s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

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

.saas-window {
    background: #17191f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 32px 64px -16px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: 600px;
    /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
}

.saas-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.saas-controls {
    display: flex;
    gap: 8px;
}

.saas-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.saas-controls span:nth-child(1) {
    background: #ff5f56;
}

.saas-controls span:nth-child(2) {
    background: #ffbd2e;
}

.saas-controls span:nth-child(3) {
    background: #27c93f;
}

.saas-bar {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.saas-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #0f1117;
}

/* Make One OS role views light-style (manager, salesrep, technician) */
.role-visual-col .saas-content,
.role-visual-col .saas-content .role-view,
.role-visual-col .saas-content .role-view .dashboard-grid,
.role-visual-col .saas-content .role-view .dash-widget,
.role-visual-col .saas-content .role-view .pipeline-board,
.role-visual-col .saas-content .role-view .pipe-col,
.role-visual-col .saas-content .role-view .pipe-card {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06) !important;
}

/* Specific tweaks for pipeline layout inside the saas window */
.role-visual-col .saas-content .role-view .pipeline-board {
    background: var(--bg-primary) !important;
}

.role-visual-col .saas-content .role-view .pipe-col {
    background: var(--bg-elevated) !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

.role-visual-col .saas-content .role-view .pipe-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04) !important;
    color: var(--text-primary) !important;
}

/* Make avatars and text dark-friendly */
.role-visual-col .saas-content .role-view .av {
    border: 2px solid var(--bg-elevated) !important;
}

/* Manager rev price should be dark text */
.role-visual-col .saas-content .role-view .rev-big-price {
    color: var(--text-primary) !important;
}

/* --- MANAGER VIEW (GRID) --- */
.dashboard-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 24px;
    height: 100%;
}

.dash-widget {
    background: #1e2129;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.w-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.revenue-main {
    grid-column: 1 / -1;
    /* Full width */
    height: 200px;
    position: relative;
    overflow: hidden;
}

.rev-big-price {
    font-size: 42px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.trend {
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0;
}

.trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.rev-chart-area {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 80px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.team-avatars {
    display: flex;
    margin-bottom: auto;
}

.av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    border: 3px solid #1e2129;
    margin-right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.av:nth-child(1) {
    background: #3b82f6;
}

.av:nth-child(2) {
    background: #444444;
}

.av:nth-child(3) {
    background: #10b981;
}

.av.count {
    background: #334155;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.activity-feed-scroller {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.act-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.act-icon {
    font-size: 16px;
}

.act-text strong {
    color: white;
    font-weight: 600;
}

.act-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===================================
   PRODUCT SECTIONS
   =================================== */

.product {
    padding: 120px 0;
    position: relative;
}

.product:nth-child(even) {
    background: var(--bg-secondary);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-reverse .product-content {
    direction: rtl;
    /* Flip grid order */
}

.product-reverse .product-text {
    direction: ltr;
    /* Reset text direction */
}

.product-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 24, 40, 0.03);
    padding: 6px 12px;
    border-radius: 100px;
}

.product-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
}

.product-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.product-features svg {
    color: var(--color-primary);
    flex-shrink: 0;
    background: rgba(16, 24, 40, 0.03);
    padding: 4px;
    border-radius: 6px;
    width: 28px;
    height: 28px;
}

.product-visual {
    position: relative;
}

.product-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 24, 40, 0.04) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.product-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.product-img:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   AI FEATURE SHOWCASE
   =================================== */
.pipeline-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 24px;
    height: 100%;
    background: #f8fafc;
    /* Light bg inside? No, keep it dark saas */
    background: #13151a;
}

.pipe-col {
    background: #1c1e26;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pipe-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

.pipe-card {
    background: #262933;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: grab;
    transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pipe-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.pipe-card.active-drag {
    border: 1px solid #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.pc-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.pc-tag.urgent {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.pc-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.pc-val {
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-insight {
    margin-top: 8px;
    font-size: 11px;
    color: #111111;
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* --- TECHNICIAN VIEW (MAP) --- */
.tech-map-interface {
    height: 100%;
    width: 100%;
    position: relative;
    /* softer two‑tone background instead of harsh grid */
    background: linear-gradient(135deg, #101217 0%, #0d1017 100%);
    overflow: hidden;
}

/* subtle noise/paper texture instead of full grid */
.map-layer {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23f)' opacity='0.2'/%3E%3C/svg%3E");
    pointer-events: none;
}

.route-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tech-top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(30, 33, 41, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.route-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* route line styling improvements */
.route-overlay path {
    stroke: #10b981;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.ri-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ri-title {
    font-weight: 700;
    color: white;
    display: block;
}

.ri-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-marker:hover {
    transform: translate(-50%, -100%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50% 50% 50% 0;
    border: 3px solid white;
    transform: rotate(-45deg);
    /* Shape fix */
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.map-marker.current .mm-avatar {
    /* Since the image is inside, we rotate the container */
    transform: rotate(45deg);
}

/* Wait, shape logic: .map-marker is container. */
.map-marker.current {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.map-marker.current img {
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
    /* Counter rotate image */
    object-fit: cover;
}

.mm-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.map-marker.dest {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.mm-dot {
    width: 24px;
    height: 24px;
    background: #10b981;
    border: 4px solid #064e3b;
    border-radius: 50%;
}

.mm-label {
    margin-top: 8px;
    background: white;
    color: black;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.tech-job-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 280px;
    background: #1e2129;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.tjc-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-pill {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.time-pill {
    font-size: 11px;
    color: var(--text-secondary);
}

.tjc-title {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.tjc-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tjc-btn {
    width: 100%;
    padding: 10px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}


/* ===================================
   MOBILE RESPONSIVENESS (CONSOLIDATED)
   =================================== */

/* Hide Mobile Elements on Desktop */
.mobile-menu-btn,
.mobile-nav-overlay {
    display: none;
}

@media (max-width: 900px) {

    /* 1. Global Container & Typography */
    .container {
        padding: 0 20px;
        /* Ensure no horizontal overflow at root */
        max-width: 100%;
        overflow-x: hidden;
    }

    h1.hero-title {
        font-size: 36px;
        /* Scaled down further for narrow devices */
        line-height: 1.1;
    }

    h2.role-heading,
    .section-title {
        font-size: 28px;
    }

    p {
        font-size: 15px;
        /* Default readable size */
    }

    /* 2. Navigation */
    .nav-content {
        padding: 0;
        /* Container handles padding */
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    /* Burger Menu Fix */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2000;

        /* Hit Area & Alignment */
        padding: 12px;
        margin-right: -12px;
        /* Align visual right edge with container */
        width: 48px;
        height: 48px;
        align-items: center;
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: #000;
        /* make burger bars black for visibility */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    /* Animate Burger Button */
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile Overlay */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        /* white background */
        backdrop-filter: none;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: all;
        display: flex;
    }

    .mobile-close-btn {
        position: absolute;
        top: 24px;
        right: 24px;
        background: rgba(0, 0, 0, 0.06);
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        /* dark close icon */
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-nav-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        /* Slightly tighter gap for compact layout */
        text-align: center;
        width: 100%;
        padding: 28px;
    }

    .mobile-link {
        font-size: 20px;
        font-weight: 700;
        color: #000;
        /* dark text on white background */
    }

    .mobile-divider {
        width: 60px;
        border: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin: 10px auto;
    }

    /* Ensure burger remains dark when open */
    .mobile-menu-btn.open span {
        background: #000;
    }

    /* 3. Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding-top: 40px;
    }

    .hero-description {
        margin: 0 auto 24px;
        font-size: 16px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        /* Stack buttons on very small screens */
        gap: 16px;
    }

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

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-visual {
        margin-top: 20px;
    }

    /* 4. Roles Showcase (Stacked & Robust) */
    .roles-showcase {
        padding: 52px 0;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .role-nav-col {
        position: static;
        width: 100%;
        margin-bottom: 0;
    }

    .role-heading {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .section-label {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .context-desc {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .context-tags span {
        padding: 6px 12px;
        font-size: 12px;
    }

    .context-tags {
        gap: 8px;
    }

    /* Roles Switcher: 3-Col Grid (No Scroll) */
    .role-dock.vertical {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        /* Force 3 cols */
        gap: 8px;

        width: 100%;
        margin: 0 0 24px 0;
        padding: 0;

        overflow: visible;
        /* Disable scroll */
    }

    .dock-btn {
        flex-direction: column;
        /* Stack stack icon top */
        align-items: center;
        text-align: center;
        justify-content: center;
        padding: 12px 8px;
        gap: 8px;
        min-width: 0;
        /* Allow shrinking */
        width: 100%;

        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .d-icon {
        margin: 0;
        /* Center it */
        width: 24px;
        height: 24px;
        font-size: 16px;
        order: -1;
    }

    .d-text {
        align-items: center;
        gap: 0;
    }

    .d-title {
        font-size: 12px;
        /* Smaller text to fit */
        font-weight: 600;
        white-space: nowrap;
    }

    .d-desc {
        display: none;
    }

    /* Reduce Window Height */
    .saas-window {
        height: 46vh;
        min-height: 320px;
        max-height: 480px;
    }

    /* Dashboard Stack - Manager */
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 16px;
        padding: 16px;
        overflow-y: auto;
    }

    .rev-main {
        height: 160px;
    }

    .rev-big-price {
        font-size: 28px;
    }

    /* Dashboard - Sales (Horizontal Scroll) */
    .pipeline-board {
        display: flex;
        /* Flex is easier for horizontal scroll than grid here */
        overflow-x: auto;
        gap: 16px;
        padding: 16px;
        scroll-snap-type: x mandatory;
    }

    .pipe-col {
        min-width: 85%;
        /* Shows peeking next column */
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Technician Mobile Adjust */
    .tech-job-card {
        width: auto;
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    /* 5. General Stacking & Features */
    .features-grid,
    .product-content,
    .pricing-grid,
    .ai-feature-content,
    .cta-content,
    .footer-content,
    .companies-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 col for logos */
        gap: 20px;
    }

    .product-content {
        gap: 32px;
    }

    .product-reverse .product-content {
        direction: ltr;
        /* Reset direction */
    }

    .product-visual {
        order: -1;
        /* Image first always */
    }

    .product-title {
        font-size: 32px;
    }

    /* Footer Polishing */
    .footer {
        padding: 60px 0;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        /* 2 col links */
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.ai-feature {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.ai-feature::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 24, 40, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ai-feature-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.ai-feature-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.ai-feature-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.ai-demo-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.ai-input-section,
.ai-output-section {
    flex: 1;
}

.ai-input-label,
.ai-output-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ai-input-box,
.ai-output-box {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 180px;
}

.ai-input-box {
    position: relative;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    animation: fadeIn 1s ease-in-out;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

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

    30% {
        opacity: 1;
        transform: scale(1);
    }
}

.ai-input-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    animation: typeIn 2s ease-in-out;
}

@keyframes typeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ai-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
}

.ai-arrow svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

.ai-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 4px 10px;
    background: rgba(16, 24, 40, 0.03);
    border-radius: 100px;
    white-space: nowrap;
}

.ai-summary-item {
    margin-bottom: 16px;
    animation: slideIn 0.5s ease-out backwards;
}

.ai-summary-item:nth-child(1) {
    animation-delay: 0.3s;
}

.ai-summary-item:nth-child(2) {
    animation-delay: 0.5s;
}

.ai-summary-item:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.ai-summary-item:last-child {
    margin-bottom: 0;
}

.summary-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(47, 95, 208, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.ai-summary-item p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* ===================================
   TESTIMONIAL QUOTE
   =================================== */

.testimonial-quote {
    padding: 120px 0;
    background: var(--bg-primary);
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.quote-author {
    font-size: 16px;
    color: var(--text-secondary);
}

.quote-author strong {
    color: var(--text-primary);
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing {
    padding: 30px 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    /* tighter grid so 4 cards sit inline on wide screens and feel smaller */
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px 28px;
    margin-bottom: 40px;
    margin-top: 40px;
    justify-content: center;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 360px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    margin: 0 auto;
}

.price-card:hover {
    border-color: var(--border-light);
}

.price-card-featured {
    border-color: var(--color-primary);
    border-width: 1px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--color-primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
}

.price-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.price-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.price-amount {
    margin-bottom: 6px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-currency {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
}

.price-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
}

.price-custom {
    font-size: 40px;
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

/* tighten spacing when the period sits beneath the large price */
.price-amount+.price-period {
    margin-top: 4px;
    margin-bottom: 8px;
}

.price-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
}

.price-features svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Custom select (site-controlled dropdown) */
.custom-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
}

.custom-select__selected {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid rgba(11, 18, 32, 0.12);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.custom-select__selected::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    display: inline-block;
    margin-left: 8px;
}

.custom-select__options {
    position: absolute;
    z-index: 60;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-elevated);
    border: 1px solid rgba(11, 18, 32, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
    max-height: 220px;
    overflow: auto;
    padding: 6px 0;
    display: none;
}

.custom-select.open .custom-select__options {
    display: block;
}

.custom-select__option {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
}

.custom-select__option:hover {
    background: rgba(11, 18, 32, 0.02);
}

.custom-select__option.selected {
    background: rgba(11, 18, 32, 0.04);
    font-weight: 700;
}

.custom-select__option.disabled {
    color: var(--text-secondary);
    cursor: default;
}

/* Focus state for keyboard users */
.custom-select__selected:focus {
    outline: none;
    border-color: rgba(11, 18, 32, 0.18);
    box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.04);
}


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

.cta {
    padding: 108px 0;
    background: var(--bg-primary);
}

.cta-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer {
    padding: 72px 0 36px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    /* Desktop layout: brand column on the left, link columns across the rest
       Brand column has a fixed width to match the visual spacing in the reference */
    grid-template-columns: 240px repeat(4, minmax(140px, 1fr));
    gap: 64px;
    margin-bottom: 48px;
    align-items: start;
}

/* Ensure desktop-only footer layout (protect mobile from accidental overrides) */
@media (min-width: 1025px) {
    .footer-content {
        display: grid;
        grid-template-columns: 240px repeat(4, minmax(140px, 1fr));
        gap: 64px;
        margin-bottom: 48px;
        align-items: start;
    }

    .footer-links {
        grid-column: 2 / -1;
        grid-template-columns: repeat(4, minmax(140px, 160px));
        gap: 12px 48px;
        align-items: start;
        justify-content: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    /* Desktop: make the .footer-links block span columns 2..end so the four
        link lists sit in the remaining grid area (centered visually). */
    grid-column: 2 / -1;
    grid-template-columns: repeat(4, minmax(140px, 160px));
    gap: 12px 48px;
    align-items: start;
    justify-content: center;
}

/* Improve tap targets and stacking on small screens */
.footer-column a {
    display: inline-block;
    padding: 8px 0;
}

/* Make sure logo and tagline scale down gracefully */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: none;
    /* keep natural capitalization */
    letter-spacing: 0.02em;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column a {
    font-size: 15px;
    color: var(--text-secondary);
    transition: color var(--bg-primary);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-social a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

/* Force footer into light mode for better contrast */
.footer {
    background: #000000 !important;
    /* full black */
    border-top: 1px solid #000000 !important;
    /* flush black divider */
    color: #ffffff !important;
}



.footer-bottom {
    border-top: 1px solid rgba(11, 18, 32, 0.06) !important;
}

.footer-bottom p {
    color: var(--text-muted) !important;
}

.footer-social a {
    color: var(--text-primary) !important;
}

.footer-content {
    color: #ffffff !important;
}

.footer-heading {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
}



/* Override: make all footer headings a neutral gray for better consistency */
.footer .footer-heading,
.footer-links .footer-column .footer-heading {
    color: rgba(255, 255, 255, 0.72) !important;
}

.footer-column a {
    color: #ffffff !important;
}

.footer-column a:hover {
    color: var(--color-primary) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-social a {
    color: #ffffff !important;
}

.footer-logo-text {
    color: #ffffff !important;
}

/* Footer link colors: muted gray by default, white on hover */
.footer-column a {
    color: rgba(255, 255, 255, 0.72) !important;
    transition: color var(--transition-base);
}

.footer-column a:hover,
.footer-column a:focus {
    color: #ffffff !important;
}


.hero {
    padding-top: 180px;
    padding-bottom: 104px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-description {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 800px;
}

.hero-stats {
    gap: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(138, 149, 163, 0.2);
    background: rgba(18, 25, 35, 0.66);
    border-radius: 14px;
    width: fit-content;
}

.hero-ai-launch {
    width: fit-content;
}

.stat-value {
    font-size: 28px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-image-wrapper {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(138, 149, 163, 0.18);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-screenshot {
    border: none;
    border-radius: 0;
}

.companies {
    border-top: 1px solid rgba(138, 149, 163, 0.12);
    border-bottom: 1px solid rgba(138, 149, 163, 0.12);
}

.companies-label {
    font-size: 12px;
    letter-spacing: 0.14em;
}

.section-header {
    margin-bottom: 64px;
}

.section-title,
.cta-title {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.section-subtitle,
.cta-description {
    font-size: 1.03rem;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.split-side,
.feature-card,
.price-card,
.recent-activity-card,
.chart-card,
.stat-card {
    border-color: rgba(138, 149, 163, 0.22);
    background: linear-gradient(180deg, rgba(22, 30, 42, 0.96), rgba(18, 25, 35, 0.96));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.feature-card:hover,
.price-card:hover,
.split-side:hover {
    border-color: rgba(16, 24, 40, 0.12);
}

/* Force light card appearance inside the transformation section specifically
   (overrides the global dark card rule above) */
.transformation-split .split-side,
.transformation-split .split-side .pipeline-preview,
.transformation-split .split-side .spreadsheet,
.transformation-split .split-side .deal-card {
    background: var(--bg-elevated) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06) !important;
}

/* Force pricing cards to use light card styling (override global dark card rule) */
.pricing .price-card,
.pricing .price-card-featured {
    background: var(--bg-elevated) !important;
    background-image: none !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04) !important;
}

.pricing .price-card-featured {
    border-color: var(--color-primary) !important;
}

.pricing .price-card .price-header {
    border-bottom: 1px solid rgba(11, 18, 32, 0.06) !important;
}

/* Slightly darker border for standard pricing cards (non-featured) for stronger separation */
.pricing .price-card:not(.price-card-featured) {
    border-color: rgba(11, 18, 32, 0.20) !important;
    border-width: 2px !important;
    box-shadow: 0 14px 34px rgba(11, 18, 32, 0.08) !important;
}

/* Make the standard card CTA outline match the darker border for visual parity */
.pricing .price-card:not(.price-card-featured) .btn-secondary {
    border-color: rgba(11, 18, 32, 0.20) !important;
    border-width: 2px !important;
    background: #ffffff !important;
    color: var(--text-primary) !important;
    box-shadow: 0 6px 14px rgba(11, 18, 32, 0.06) !important;
}

.pricing .price-features li,
.pricing .price-card .price-description,
.pricing .price-card .price-name,
.pricing .price-card .price-amount {
    color: var(--text-primary) !important;
}

/* CTA styles: non-featured = white button with dark text; featured = dark button with white text */
.pricing .price-card .btn-secondary {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
    box-shadow: 0 4px 10px rgba(11, 18, 32, 0.04) !important;
}

.pricing .price-card-featured .btn-secondary {
    background: rgba(11, 18, 32, 0.98) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}


.price-card-featured {
    background: linear-gradient(180deg, rgba(30, 42, 58, 0.98), rgba(22, 30, 42, 0.98));
}

.price-badge {
    letter-spacing: 0.02em;
}

.cta {
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(16, 24, 40, 0.06), transparent 62%);
    pointer-events: none;
}

.cta .cta-content {
    position: relative;
    z-index: 1;
}


@media (max-width: 1024px) {
    .hero {
        padding-top: 126px;
        padding-bottom: 88px;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-between;
    }

    .hero-ai-launch {
        width: 100%;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

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

    .product-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .product-reverse .product-content {
        direction: ltr;
    }

    .ai-feature-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ai-demo-container {
        flex-direction: column;
    }

    .ai-arrow {
        transform: rotate(90deg);
    }

    .quote-text {
        font-size: 28px;
    }

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

    /* Ensure pricing cards span the full container on tablet/mobile so
       pricing and main pages match exactly */
    .pricing .price-card {
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .section-subtitle {
        font-size: 18px;
    }

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

    .product-title {
        font-size: 32px;
    }

    .ai-feature-title {
        font-size: 32px;
    }

    .ai-demo-container {
        padding: 24px;
    }

    .quote-text {
        font-size: 24px;
    }

    .cta-title {
        font-size: 36px;
    }

    .footer-content {
        /* On small screens, use 2-column compact layout: brand + links */
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

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

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

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

    .ai-feature-title {
        font-size: 28px;
    }

    .quote-text {
        font-size: 20px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Compact hero for small screens: reduce top/bottom spacing and normalize CTA buttons */
    .hero {
        padding: 40px 0 40px;
    }

    .hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-top: 8px;
    }

    /* Ensure hero CTAs share the same visual size and feel on mobile */
    .hero-actions .btn-hero-primary,
    .hero-actions .btn-hero-secondary,
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 320px;
        height: 44px;
        border-radius: 12px;
        font-size: 16px;
        padding: 0 18px;
        box-sizing: border-box;
    }

    /* Slight visual separation when stacked */
    .hero-actions .btn-hero-primary {
        order: 0;
    }

    .hero-actions .btn-hero-secondary {
        order: 1;
    }

    /* Tighter hero badge spacing specifically for very small screens */
    .hero-badge {
        margin-bottom: 7px;
        padding: 6px 10px;
        font-size: 13px;
    }

    /* If the AI badge variant is used, tighten it similarly */
    .hero-ai-badge {
        margin-bottom: 8px;
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Reduce space under the badge before the main title/heading */
    .hero-title {
        margin-bottom: 10px;
    }

    .hero-description {
        margin-bottom: 10px;
    }
}

/* Extra small / mobile overrides for footer */
@media (max-width: 640px) {
    .footer {
        padding: 40px 0 24px;
    }

    /* Mobile: stack brand (logo + tagline) first, then place link groups under it */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        /* make link groups appear below the brand; arrange as two columns for better density */
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 12px 24px;
        margin-top: 8px;
    }

    .footer-tagline {
        margin-bottom: 8px;
        color: var(--text-secondary);
    }

    .footer-bottom {
        gap: 12px;
        text-align: center;
    }
}


/* ===================================
   PREMIUM CONTACT MODAL
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.premium-split {
    background: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 32px;
    width: 100%;
    max-width: 900px;
    height: auto;
    min-height: 560px;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* Light-mode overrides for premium modal (force light card appearance) */
.modal.light,
.modal-content.premium-split.light,
.modal.light .modal-content.premium-split,
.modal-content.premium-split {
    /* Keep selector broad but use !important to override the dark theme */
}

.modal {
    /* slightly lighten overlay so modal card stands out as light */
    background: rgba(11, 18, 32, 0.45) !important;
}

.modal-content.premium-split {
    background: var(--bg-elevated) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
    box-shadow: 0 20px 60px rgba(11, 18, 32, 0.06) !important;
    color: var(--text-primary) !important;
}

.close-modal {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
    color: var(--text-primary) !important;
}

.modal-sidebar {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-primary) 100%) !important;
    border-right: 1px solid rgba(11, 18, 32, 0.06) !important;
}

.sidebar-badge {
    background: rgba(47, 95, 208, 0.08) !important;
    color: var(--color-primary) !important;
}

.sidebar-title {
    color: var(--text-primary) !important;
}

.sidebar-desc,
.v-text span,
.trust-avatars span {
    color: var(--text-muted) !important;
}

.v-text strong {
    color: var(--text-primary) !important;
}

.modal-form-area {
    background: var(--bg-primary) !important;
}

.form-header h3 {
    color: var(--text-primary) !important;
}

.step-dot {
    background: rgba(11, 18, 32, 0.06) !important;
}

.step-dot.active {
    background: var(--color-primary) !important;
    box-shadow: 0 0 10px rgba(47, 95, 208, 0.25) !important;
}

.step-line {
    background: rgba(11, 18, 32, 0.06) !important;
}

.form-group label {
    color: var(--text-muted) !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff !important;
    border: 1.5px solid rgba(11, 18, 32, 0.16) !important;
    color: var(--text-primary) !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 6px rgba(47, 95, 208, 0.06) !important;
}

/* Stronger borders specifically for the premium modal form inputs */
.modal-content.premium-split .form-group input,
.modal-content.premium-split .form-group select,
.modal-content.premium-split .form-group textarea {
    border: 2px solid rgba(11, 18, 32, 0.20) !important;
}

.checkbox-container,
.checkmark {
    color: var(--text-muted) !important;
    border-color: rgba(11, 18, 32, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Make the agree-to-terms checkbox border match modal input darkness */
.modal-content.premium-split .checkbox-container .checkmark,
.modal-content.premium-split .checkmark {
    border: 2px solid rgba(11, 18, 32, 0.20) !important;
    background-color: #ffffff !important;
}

.modal-content.premium-split .checkbox-container:hover input~.checkmark {
    border-color: rgba(11, 18, 32, 0.22) !important;
}

.modal-content.premium-split .checkbox-container input:checked~.checkmark {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.form-fineprint,
.form-feedback p {
    color: var(--text-muted) !important;
}

.form-feedback h3 {
    color: var(--text-primary) !important;
}

.modal-content.premium-split .btn-primary,
.modal-content.premium-split .btn-secondary {
    box-shadow: 0 6px 18px rgba(11, 18, 32, 0.06) !important;
}

.modal-content.premium-split .btn-primary {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

.modal-content.premium-split .btn-secondary {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(11, 18, 32, 0.08) !important;
}


.modal.active .modal-content.premium-split {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Sidebar Styling */
.modal-sidebar {
    flex: 1;
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(48, 54, 61, 0.8);
    position: relative;
}

.modal-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 129, 247, 0.3), transparent);
}

.sidebar-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(47, 129, 247, 0.1);
    color: #58a6ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #f0f6fc;
}

.sidebar-desc {
    color: #8b949e;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.modal-value-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-value-list li {
    display: flex;
    gap: 16px;
}

.v-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.v-text strong {
    display: block;
    color: #f0f6fc;
    font-size: 15px;
    margin-bottom: 4px;
}

.v-text span {
    color: #8b949e;
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 40px;
}

.trust-avatars {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #30363d;
    border: 2px solid #0d1117;
    margin-right: -12px;
}

.t-av:nth-child(1) {
    background: #2f81f7;
}

.t-av:nth-child(2) {
    background: #3fb950;
}

.t-av:nth-child(3) {
    background: #f85149;
}

/* Hide the three colored trust avatars (dots) — kept for layout but visually removed */
.t-av {
    display: none !important;
}

.trust-avatars span {
    margin-left: 8px;
    font-size: 13px;
    color: #8b949e;
}

/* Form Area */
.modal-form-area {
    flex: 1.1;
    padding: 48px;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 16px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #30363d;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #2f81f7;
    box-shadow: 0 0 10px rgba(47, 129, 247, 0.5);
    transform: scale(1.2);
}

.step-dot.completed {
    background: #3fb950;
}

.step-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: #30363d;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #30363d;
    padding: 12px 16px;
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
    outline: none;
    transition: all 0.2s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
    padding-right: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2f5fd0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 24, 40, 0.06);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Multi-step Form Logic */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-actions-step {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.form-actions-step.split button {
    flex: 1;
}

/* Custom Checkbox */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 13px;
    color: #8b949e;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #30363d;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: #2f81f7;
}

.checkbox-container input:checked~.checkmark {
    background-color: #2f81f7;
    border-color: #2f81f7;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: #58a6ff;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.form-fineprint {
    margin-top: 20px;
    font-size: 12px;
    color: #484f58;
    text-align: center;
}

.form-fineprint a {
    color: #58a6ff;
    text-decoration: none;
}

/* Success/Error Overrides */
.form-feedback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-feedback h3 {
    font-size: 24px;
    color: #f0f6fc;
    margin-bottom: 12px;
}

.form-feedback p {
    color: #8b949e;
    margin-bottom: 32px;
    max-width: 320px;
    line-height: 1.6;
}

/* Responsive Overrides */
@media (max-width: 850px) {
    .modal-content.premium-split {
        flex-direction: column;
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-sidebar {
        display: none;
    }

    .modal-form-area {
        padding: 40px;
        flex: 1;
    }

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

/* ===================================
   PREMIUM TESTIMONIAL CAROUSEL
   =================================== */


/* ===================================
   PREMIUM TESTIMONIAL CAROUSEL (CINEMATIC)
   =================================== */

.premium-testimonials {
    padding: 100px 0;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.t-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 500px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    border-radius: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.t-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, transform 1.2s ease;
    display: grid;
    grid-template-columns: 40% 60%;
    transform: scale(1.05);
    /* Slight zoom out effect */
}

.t-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 5;
}

/* Cinematic Image Side */
.t-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.t-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No border radius or circle - full cinematic bleed */
    filter: saturate(0);
    /* Black and white initially */
    transition: filter 1.5s ease;
}

.t-slide.active .t-image-wrapper img {
    filter: saturate(1);
    /* Colorize on active */
}

/* Gradient Overlay on Image */
.t-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, var(--bg-primary) 100%);
}

/* Content Side */
.t-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 20;
}

.t-quote {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 32px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.t-slide.active .t-quote {
    opacity: 1;
    transform: translateY(0);
}

.t-author {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.t-slide.active .t-author {
    opacity: 1;
    transform: translateY(0);
}

.t-avatar-mini {
    display: none;
    /* Hidden on desktop since we have big image */
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-size: 20px;
    font-weight: 700;
    /* Use primary text color for better contrast on light backgrounds */
    color: var(--text-primary);
}

.t-role {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Controls & Pagination */
.t-controls-bar {
    position: absolute;
    bottom: 0;
    left: 40%;
    /* Align with the start of content logic roughly */
    right: 0;
    padding: 32px 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 30;
}

.t-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.t-current,
.t-total {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.t-current {
    color: white;
}

.t-segments {
    flex-grow: 1;
    display: flex;
    gap: 6px;
}

.t-seg {
    flex-grow: 1;
    height: 4px;
    background: rgba(11, 18, 32, 0.12);
    /* darker track for visibility */
    border-radius: 4px;
    overflow: hidden;
}

.t-seg-fill {
    height: 100%;
    background: var(--color-primary);
    /* site blue fill for contrast */
    width: 0%;
    transform-origin: left;
    transition: width 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive */
@media (max-width: 900px) {
    .t-carousel-container {
        height: auto;
        /* Allow flexible height */
        min-height: 600px;
        flex-direction: column;
    }

    .t-controls-bar {
        left: 0;
        justify-content: center;
        padding: 24px;
        bottom: 0;
    }

    .t-slide {
        display: flex;
        /* Stack on mobile */
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .t-image-wrapper {
        height: 300px;
        width: 100%;
        order: -1;
    }

    .t-image-wrapper::after {
        background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    }

    .t-content {
        padding: 40px 32px 80px;
        /* Extra bottom padding for controls */
        text-align: center;
    }

    .t-quote {
        font-size: 24px;
    }

    .t-author {
        justify-content: center;
    }
}

/* ===================================
   PRODUCT EXPERIENCE (INTERACTIVE)
   =================================== */

.product-experience {
    padding: 108px 0;
    background: var(--bg-primary);
}

.px-shell {
    margin-top: 56px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(19, 27, 39, 0.94), rgba(15, 21, 30, 0.96));
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
}

/* Make the product experience shell light (override dark gradient) */
.product-experience .px-shell {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06) !important;
    color: var(--text-primary) !important;
}

.product-experience .px-shell .px-nav {
    background: var(--bg-primary) !important;
    border-right: 1px solid var(--border-light) !important;
}

/* Stronger overrides to ensure the left nav (Relationship Hub / AI Assistant) is light */
.product-experience .px-shell .px-nav {
    background-image: none !important;
    box-shadow: none !important;
}

.product-experience .px-shell .px-nav .px-tab,
.product-experience .px-shell .px-nav .px-tab * {
    color: var(--text-secondary) !important;
}

.product-experience .px-shell .px-nav .px-tab.active {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Remove any dark overlays inside nav */
.product-experience .px-shell .px-nav::before,
.product-experience .px-shell .px-nav::after {
    display: none !important;
}

.product-experience .px-shell .px-tab {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-color: transparent !important;
}

.product-experience .px-shell .px-tab:hover {
    background: rgba(16, 24, 40, 0.04) !important;
    border-color: var(--border-light) !important;
}

.product-experience .px-shell .px-tab.active {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.product-experience .px-shell .px-stage,
.product-experience .px-shell .px-view,
.product-experience .px-shell .px-kanban {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.product-experience .px-shell .px-kanban .px-col,
.product-experience .px-shell .px-kanban .px-col .px-card,
.product-experience .px-shell .px-kanban .px-col .px-card:hover {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04) !important;
    color: var(--text-primary) !important;
}

/* Override remaining dark px components */
.product-experience .px-shell .px-card,
.product-experience .px-shell .px-profile,
.product-experience .px-shell .px-timeline li,
.product-experience .px-shell .px-avatar {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light) !important;
}

.product-experience .px-shell .px-card span,
.product-experience .px-shell .px-timeline li {
    color: var(--text-secondary) !important;
}

.product-experience .px-shell .px-timeline li {
    background: var(--bg-primary) !important;
}

.px-nav {
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    padding: 14px;
    display: grid;
    gap: 10px;
    background: rgba(13, 19, 28, 0.55);
}

.px-tab {
    text-align: left;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    padding: 12px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.px-tab:hover {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.06);
}

.px-tab.active {
    border-color: rgba(16, 24, 40, 0.12);
    background: rgba(16, 24, 40, 0.04);
    color: var(--text-primary);
}

.px-tab-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.px-tab-meta {
    display: block;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.px-stage {
    padding: 24px;
}

.px-view {
    display: none;
    animation: pxFadeIn 240ms ease;
}

.px-view.active {
    display: block;
}

@keyframes pxFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.px-headline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.px-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.px-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
    animation: pxPulse 1.8s ease-in-out infinite;
}

@keyframes pxPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.34);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }
}

.px-chip {
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.px-chip.success {
    /* Use site blue for AI dynamic chip with strong contrast */
    border-color: rgba(47, 95, 208, 0.9);
    background: #2f5fd0;
    color: #ffffff;
}

/* Ensure any dynamic ai chip variant also follows blue styling */
.px-dynamic-chip[data-chip="ai"],
.px-chip.px-dynamic-chip[data-chip="ai"] {
    border-color: rgba(47, 95, 208, 0.9) !important;
    background: #2f5fd0 !important;
    color: #ffffff !important;
}

.px-chip.flash {
    animation: pxChipFlash 420ms ease;
}

@keyframes pxChipFlash {
    0% {
        transform: translateY(1px);
        filter: brightness(0.9);
    }

    100% {
        transform: translateY(0);
        filter: brightness(1);
    }
}

.px-kanban {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.px-col {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(13, 19, 28, 0.54);
    padding: 10px;
    min-height: 220px;
}

.px-col.active-target {
    border-color: rgba(16, 24, 40, 0.12);
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.06);
}

.px-col-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.px-col-title span {
    color: var(--text-primary);
    font-weight: 700;
}

.px-count {
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.px-count.is-updating {
    color: var(--text-secondary);
    text-shadow: 0 0 12px rgba(16, 24, 40, 0.06);
}

.px-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(21, 30, 42, 0.9);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.86rem;
}

.px-card span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.px-card.moving {
    animation: pxFloatCard 2.4s ease-in-out infinite;
}

.px-card.highlighted {
    border-color: rgba(16, 24, 40, 0.12);
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06);
}

@keyframes pxFloatCard {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.px-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(18, 25, 35, 0.86);
    padding: 12px;
    margin-bottom: 12px;
}

.px-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(16, 24, 40, 0.06);
    color: #b7cdff;
}

.px-profile h4 {
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.px-profile p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.px-timeline {
    display: grid;
    gap: 8px;
}

.px-timeline li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(13, 19, 28, 0.56);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.px-timeline span {
    color: var(--text-muted);
    font-weight: 600;
}

.px-ai-chat {
    display: grid;
    gap: 10px;
}

.px-bubble {
    border-radius: 12px;
    padding: 12px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.px-bubble.user {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(13, 19, 28, 0.56);
    color: var(--text-secondary);
}

.px-bubble.ai {
    border: 1px solid rgba(16, 24, 40, 0.06);
    background: rgba(16, 24, 40, 0.03);
    color: var(--text-primary);
}

.px-bubble.ai>div+div {
    margin-top: 8px;
}

.px-type {
    color: var(--text-secondary);
}

.px-type.typing::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.95em;
    background: rgba(16, 24, 40, 0.12);
    margin-left: 3px;
    vertical-align: -1px;
    animation: pxCursorBlink 0.8s step-end infinite;
}

@keyframes pxCursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.px-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.px-mini-btn {
    height: 30px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(18, 25, 35, 0.86);
    color: var(--text-secondary);
    font-size: 0.77rem;
    font-weight: 600;
}

.px-mini-btn:hover {
    border-color: rgba(125, 162, 248, 0.35);
    color: var(--text-primary);
}

/* Force AI Assistant / Relationship Hub to light cards inside product-experience */
.product-experience .px-ai-chat,
.product-experience .px-bubble,
.product-experience .px-bubble.user,
.product-experience .px-bubble.ai,
.product-experience .px-timeline li,
.product-experience .px-mini-btn {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-color: rgba(11, 18, 32, 0.06) !important;
}

.product-experience .px-timeline li {
    background: var(--bg-primary) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 2px 6px rgba(11, 18, 32, 0.03) !important;
}

.product-experience .px-bubble.user {
    background: var(--bg-primary) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
    color: var(--text-primary) !important;
}

.product-experience .px-bubble.ai {
    background: var(--bg-elevated) !important;
    border: 1px solid rgba(11, 18, 32, 0.04) !important;
    color: var(--text-primary) !important;
}

.product-experience .px-mini-btn {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(11, 18, 32, 0.06) !important;
}


@media (max-width: 1024px) {
    .scroll-manifesto {
        height: 185vh;
    }

    .scroll-manifesto-stage {
        padding: 64px 0;
    }

    .sm-quote {
        line-height: 1.14;
    }

    .px-shell {
        grid-template-columns: 1fr;
    }

    .px-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .px-nav .px-tab {
        flex: 0 0 auto;
        padding: 10px 14px;
    }

    .px-tab-meta {
        display: none;
    }

    /* Lock the stage height so switching tabs never causes layout shift */
    .px-stage {
        min-height: 320px;
    }

    /* Horizontal scrollable kanban on mobile keeps all tab panels roughly equal height */
    .px-kanban {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
        gap: 10px;
    }

    .px-kanban::-webkit-scrollbar {
        display: none;
    }

    .px-col {
        min-height: 160px;
    }
}

@media (max-width: 720px) {
    .scroll-manifesto {
        height: 165vh;
    }

    .sm-kicker {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .hero-ai-launch {
        max-width: 100%;
        grid-template-columns: 64px 1fr;
        gap: 12px;
        padding: 12px 14px;
    }

    .hero-ai-visual {
        width: 64px;
        height: 64px;
        transform: translateY(-6px);
    }

    .hero-ai-content {
        transform: translateY(-6px);
        gap: 5px;
    }

    .hero-ai-title {
        font-size: 20px;
    }

    .hero-ai-copy {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .hero-ai-badge-inline {
        transform: translateY(4px);
    }

    .scroll-manifesto {
        height: 150vh;
    }

    .scroll-manifesto-stage {
        padding: 52px 0;
    }

    .sm-quote {
        font-size: clamp(1.85rem, 8.5vw, 2.7rem);
        line-height: 1.18;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .mobile-nav-content {
        padding: 32px 24px;
        gap: 24px;
    }

    .mobile-link {
        font-size: 22px;
    }

    .hero {
        padding-top: 116px;
        padding-bottom: 72px;
    }

    .hero .container {
        gap: 38px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-ai-launch {
        grid-template-columns: 52px 1fr;
        gap: 10px;
        padding: 11px 12px;
    }

    .hero-ai-visual {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        transform: translateY(-4px);
    }

    .hero-ai-content {
        transform: translateY(-4px);
    }

    .hero-ai-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .hero-ai-copy {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .hero-ai-badge {
        height: 20px;
        padding: 0 8px;
        font-size: 10px;
    }

    .hero-ai-badge-inline {
        transform: translateY(2px);
    }

    .revenue-control {
        border-radius: 12px;
    }

    .split-side {
        padding: 24px 16px;
        min-height: auto;
    }

    .chaos-visualization,
    .success-visualization {
        min-height: 280px;
    }

    .roles-showcase {
        padding: 40px 0;
    }

    .role-heading {
        font-size: 26px;
    }

    .role-dock.vertical {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .dock-btn {
        padding: 10px 6px;
    }

    .d-title {
        font-size: 11px;
    }

    .saas-window {
        min-height: 280px;
        height: 44vh;
    }

    .dashboard-grid {
        padding: 12px;
        gap: 12px;
    }

    .px-stage {
        padding: 16px;
    }

    .px-headline-row {
        flex-wrap: wrap;
    }

    .px-timeline li {
        grid-template-columns: 44px 1fr;
        gap: 8px;
        padding: 8px;
    }

    .px-bubble {
        font-size: 0.82rem;
        padding: 10px;
    }

    .t-content {
        padding: 28px 18px 72px;
    }

    .t-quote {
        font-size: 20px;
        line-height: 1.35;
    }

    .pricing {
        padding: 84px 0;
    }

    .price-card {
        padding: 22px;
    }

    .cta {
        padding: 88px 0;
    }
}

@media (max-width: 420px) {
    .role-dock.vertical {
        grid-template-columns: 1fr;
    }

    .dock-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 12px;
        text-align: left;
    }

    .d-icon {
        order: 0;
    }

    .d-text {
        align-items: flex-start;
    }

    .d-desc {
        display: block;
        font-size: 11px;
    }
}

/* Scale & Performance Section */
.scale-performance {
    position: relative;
    padding: 100px 0 250px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* subtle vertical lines in background */
.scale-performance::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to right,
            rgba(11, 18, 32, 0.1) 0,
            rgba(11, 18, 32, 0.1) 1px,
            transparent 1px,
            transparent 100px);
    z-index: 1;
    pointer-events: none;
}

.scale-performance .container {
    position: relative;
    z-index: 2;
}

.scale-header {
    max-width: 900px;
    margin-bottom: 80px;
}

.scale-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.scale-title span {
    color: var(--text-secondary);
    font-weight: 500;
}

.scale-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    max-width: 800px;
}

.scale-metric {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 24px;
}

.metric-val {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: capitalize;
}

/* Growth Curve Visualization */
.scale-visual {
    position: absolute;
    bottom: 50px;
    /* Raised even more to create spacing under the line */
    left: 0;
    width: 100%;
    height: 400px;
    pointer-events: none;
    z-index: 1;
}

.growth-curve-svg {
    width: 100%;
    height: 100%;
}

.growth-curve-path {
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Final override: force footer headings to neutral gray regardless of earlier rules */
body .footer .footer-heading,
body .footer-links .footer-column .footer-heading {
    color: rgba(255, 255, 255, 0.72) !important;
    text-transform: none !important;
}


.grid-lines line {
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 1;
}

/* Responsive Scale Section */
@media (max-width: 1024px) {
    .scale-title {
        font-size: 32px;
    }
}

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

    .scale-performance {
        padding: 80px 0 120px;
    }
}

/* ============================================================
   ROLES SHOWCASE — FULL REDESIGN
   Overrides all old split-layout / role-nav-col styles
   ============================================================ */

.roles-showcase {
    padding: 96px 0 !important;
    background: var(--bg-secondary) !important;
    overflow: hidden;
    position: relative;
}

/* ── Header ── */
.rs-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
}

.rs-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.rs-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 14px;
}

.rs-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Tab pills row ── */
.rs-tab-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 5px;
    width: fit-content;
    margin: 0 auto 36px;
}

.rs-tab-row .dock-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 100px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    box-shadow: none !important;
    flex-direction: row !important;
    justify-content: center;
    width: auto !important;
    min-width: 0;
    text-align: center;
}

.rs-tab-row .dock-btn:hover {
    color: var(--text-primary) !important;
    background: rgba(16, 24, 40, 0.04) !important;
}

.rs-tab-row .dock-btn.active {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(47, 95, 208, 0.3) !important;
}

.rs-tab-icon {
    font-size: 15px;
    line-height: 1;
}

/* ── Main card ── */
.rs-card {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(16, 24, 40, 0.08);
}

/* ── Text area (left) ── */
.rs-text-area {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.role-context {
    display: none;
    animation: rsFadeUp 0.3s ease;
}

.role-context.active {
    display: flex;
    flex-direction: column;
}

@keyframes rsFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.rs-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
    width: fit-content;
}

.rs-badge-manager {
    background: rgba(47, 95, 208, 0.1);
    color: #2f5fd0;
}

.rs-badge-salesrep {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.rs-badge-tech {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.rs-panel-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.rs-panel-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.rs-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rs-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.rs-bullets li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Visual area (right) ── */
.rs-visual-area {
    padding: 24px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-visual-area .saas-window {
    width: 100%;
    height: 360px !important;
    min-height: unset !important;
    max-height: unset !important;
    border-radius: 12px;
    /* Light chrome */
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 32px rgba(16, 24, 40, 0.10) !important;
}

.rs-visual-area .saas-header {
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.rs-visual-area .saas-bar {
    color: var(--text-secondary) !important;
}

.rs-visual-area .saas-content {
    background: var(--bg-primary) !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .roles-showcase {
        padding: 72px 0 !important;
    }

    .rs-title {
        font-size: 32px;
    }

    .rs-card {
        grid-template-columns: 1fr 1.2fr;
    }

    .rs-text-area {
        padding: 36px 28px;
    }

    .rs-visual-area .saas-window {
        height: 320px !important;
    }
}

@media (max-width: 768px) {
    .roles-showcase {
        padding: 56px 0 !important;
    }

    .rs-header {
        margin-bottom: 28px;
    }

    .rs-title {
        font-size: 26px;
    }

    .rs-subtitle {
        font-size: 14px;
    }

    /* Tab row: scrollable on small screens */
    .rs-tab-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        width: 100%;
        border-radius: 100px;
        margin-bottom: 24px;
    }

    .rs-tab-row::-webkit-scrollbar {
        display: none;
    }

    .rs-tab-row .dock-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    /* Card stacks: text on top, visual below */
    .rs-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .rs-text-area {
        padding: 28px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .rs-panel-heading {
        font-size: 20px;
    }

    .rs-panel-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .rs-bullets li {
        font-size: 13px;
    }

    .rs-visual-area {
        padding: 16px;
    }

    .rs-visual-area .saas-window {
        height: 280px !important;
    }
}

@media (max-width: 420px) {
    .rs-title {
        font-size: 22px;
    }

    .rs-tab-row .dock-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .rs-visual-area .saas-window {
        height: 240px !important;
    }
}

/* ── Light-mode overrides for saas-window content inside the new rs-visual-area ── */
.rs-visual-area .saas-content,
.rs-visual-area .saas-content .role-view,
.rs-visual-area .saas-content .role-view .dashboard-grid,
.rs-visual-area .saas-content .role-view .dash-widget,
.rs-visual-area .saas-content .role-view .pipeline-board,
.rs-visual-area .saas-content .role-view .pipe-col,
.rs-visual-area .saas-content .role-view .pipe-card {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06) !important;
}

.rs-visual-area .saas-content .role-view .pipeline-board {
    background: var(--bg-primary) !important;
    border: none !important;
    box-shadow: none !important;
}

.rs-visual-area .saas-content .role-view .pipe-col {
    background: var(--bg-elevated) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: none !important;
}

.rs-visual-area .saas-content .role-view .pipe-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04) !important;
    color: var(--text-primary) !important;
}

.rs-visual-area .saas-content .role-view .av {
    border: 2px solid var(--bg-elevated) !important;
}

.rs-visual-area .saas-content .role-view .rev-big-price {
    color: var(--text-primary) !important;
}

/* ── Role view: make each view a flex column so actions sit at the bottom ── */
.rs-visual-area .saas-content {
    display: flex;
    flex-direction: column;
}

.rs-visual-area .role-view.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

/* dashboard-grid and pipeline-board should fill available space */
.rs-visual-area .role-view .dashboard-grid,
.rs-visual-area .role-view .pipeline-board {
    flex: 1;
    min-height: 0;
}

/* Technician image wrapper */
.rs-tech-img-wrap {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.rs-tech-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ── In-window action buttons ── */
.rs-view-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.rs-view-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}

.rs-view-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.rs-view-btn:active {
    transform: translateY(0);
}

.rs-view-btn:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

.rs-view-btn.rs-view-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.rs-view-btn.rs-view-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ── Tab progress bar ── */
.rs-tab-progress {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0 0 100px 100px;
    pointer-events: none;
}

/* The tab pill needs position:relative for the progress bar */
.rs-tab-row .dock-btn {
    position: relative;
    overflow: hidden;
}

/* Progress bar color when NOT active (shouldn't show) — already hidden by width:0 */
.rs-tab-row .dock-btn:not(.active) .rs-tab-progress {
    display: none;
}