/* ================================
   CSS Variables & Theme
   ================================ */
:root {
    /* Brand Colors */
    --color-primary: #dc9852;
    --color-primary-dark: #c4863f;
    --color-primary-light: #e8b577;
    --color-secondary: #805e88;
    --color-secondary-dark: #6a4d71;
    --color-accent: #4a9a8a;
    --color-accent-light: #6bb5a7;
    --color-manufacturers: #4a8ab5;
    --color-manufacturers-dark: #3a7199;
    --color-retail: #dc9852;
    --color-retail-dark: #c4863f;
    --color-retail-light: #e8b577;
    --color-distributors: #805e88;
    --color-distributors-dark: #6a4d71;
    --color-services: #4a9a8a;
    --color-services-light: #6bb5a7;
    --color-error: #d6776b;

    /* Neutrals */
    --color-dark: #2f2b36;
    --color-dark-lighter: #3d3845;
    --color-gray-900: #1a1721;
    --color-gray-800: #2a2633;
    --color-gray-700: #3d3845;
    --color-gray-600: #4d4857;
    --color-gray-500: #6b6574;
    --color-gray-400: #8a8494;
    --color-gray-300: #aba6b3;
    --color-gray-200: #d4d0da;
    --color-gray-100: #eceaf0;
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #d6776b 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, #d6776b 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-gray-900) 0%, var(--color-dark) 100%);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(220, 152, 82, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-300);
    background-color: var(--color-gray-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(26, 23, 33, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(26, 23, 33, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Roboto', var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
}

.logo-cust {
    color: var(--color-primary);
}

.logo-pilot {
    color: var(--color-white);
}

.nav-logo .logo-icon {
    color: var(--color-primary);
}

.logo-icon img,
.chat-avatar img {
    display: block;
    height: 100%;
    object-fit: contain;
}

.nav-logo sup {
    font-size: 0.5em;
    color: var(--color-gray-400);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-300);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-white);
}

.nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-dark);
    box-shadow: 0 4px 20px rgba(220, 152, 82, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 152, 82, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220, 152, 82, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(128, 94, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(74, 154, 138, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(220, 152, 82, 0.1);
    border: 1px solid rgba(220, 152, 82, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-400);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}
.hero-subtitle span {
    display: block;
}
.hero-subtitle span + span {
    margin-top: var(--space-sm);
}
.hero-subtitle strong {
    color: var(--color-white);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    justify-content: flex-start;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    justify-content: flex-start;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--color-gray-500);
}

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

/* Hero Visual / Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
}

.hero-mockup {
    width: 100%;
    max-width: 450px;
    /* height: 550px; */
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    will-change: height;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 60px -20px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(220, 152, 82, 0.15);
    animation: float-gentle 6s ease-in-out infinite;
}

.hero-mockup.height-animate {
    transition: height 0.45s ease;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.mockup-header {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: var(--space-sm);
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-700);
}

.mockup-dots span:first-child { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27ca40; }

.mockup-content {
    position: relative;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-md);
    overflow: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.mockup-content-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

.mockup-content.fade-out {
    opacity: 0;
    transform: translateY(6px);
}

.chat-message {
    display: flex;
    gap: var(--space-sm);
    animation: messageSlide 0.5s ease forwards;
    animation-fill-mode: both;
    will-change: opacity, transform;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    border-radius: 50%;
    color: var(--color-dark);
}

.chat-bubble {
    max-width: 280px;
    padding: var(--space-sm);
    background: var(--color-gray-800);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-gray-200);
}

.chat-message.user .chat-bubble {
    background: var(--color-secondary);
    color: var(--color-white);
}

.chat-message.has-side-image {
    align-items: center;
}

.chat-side-image {
    width: 90px;
    height: auto;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.chat-products {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.mini-product {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(220, 152, 82, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--color-primary-light);
}

/* Product Cards for Hero Chat */
.chat-product-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.product-card {
    border-left: 3px solid rgba(220, 152, 82, 0.7);
    background: rgba(220, 152, 82, 0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 6px 8px;
    transition: background 0.2s ease;
}

.product-card:hover {
    background: rgba(220, 152, 82, 0.15);
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
}

.product-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.product-card-specs {
    font-size: 0.7rem;
    color: var(--color-gray-400);
    margin-top: 2px;
    line-height: 1.3;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: var(--space-md);
    width: fit-content;
    background: var(--color-gray-800);
    border-radius: var(--radius-lg);
    opacity: 0;
    animation: messageSlide 0.5s ease forwards;
    animation-fill-mode: both;
}

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

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

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

/* Chat Table Styling */
.chat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-table th {
    background: rgba(220, 152, 82, 0.15);
    color: var(--color-primary-light);
    font-weight: 600;
    padding: 0.25rem 0.375rem;
    text-align: left;
    border-bottom: 1px solid rgba(220, 152, 82, 0.3);
}

.chat-table td {
    padding: 0.25rem 0.375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-gray-300);
}

.chat-table tr:last-child td {
    border-bottom: none;
}

.chat-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* ================================
   Section Styles (Common)
   ================================ */
section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.features .section-header {
    margin-bottom: var(--space-2xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(220, 152, 82, 0.1);
    border: 1px solid rgba(220, 152, 82, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-400);
}

/* ================================
   Features Section
   ================================ */
.features {
    position: relative;
    overflow: hidden;
}

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

.feature-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(220, 152, 82, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    line-height: 1.6;
}

/* Features Toggle */
.features-grid.features-collapsed .feature-card:nth-child(n+5) {
    display: none;
}

.features-toggle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: var(--space-xl) auto 0;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(220, 152, 82, 0.08);
    border: 1px solid rgba(220, 152, 82, 0.35);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.features-toggle:hover {
    background: rgba(220, 152, 82, 0.1);
    border-color: rgba(220, 152, 82, 0.4);
}

.features-toggle-icon {
    transition: transform var(--transition-base);
}

.features-toggle.expanded .features-toggle-icon {
    transform: rotate(180deg);
}

/* ================================
   Analytics Gallery Preview Strip
   ================================ */
.gallery-preview-strip {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-thumbnails {
    display: block;
    max-width: 50%;
    margin: 0 auto var(--space-sm);
}

.preview-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-gray-800);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 43, 54, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    color: var(--color-primary);
}

.preview-thumb:hover {
    border-color: rgba(220, 152, 82, 0.3);
    transform: translateY(-2px);
}

.preview-thumb:hover img {
    transform: scale(1.05);
}

.preview-thumb:hover .preview-overlay {
    opacity: 1;
}

.preview-thumb:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.preview-hint {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    font-style: italic;
}

/* ================================
   Mockup Pause Overlay
   ================================ */
.mockup-pause-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 43, 54, 0.2);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    color: var(--color-primary);
    cursor: pointer;
    z-index: 10;
    border-radius: inherit;
}

.mockup-content.show-pause-overlay .mockup-pause-overlay {
    opacity: 1;
    pointer-events: auto;
}

.mockup-pause-overlay svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-fast);
}

.mockup-pause-overlay:hover svg {
    transform: scale(1.1);
}

.mockup-pause-overlay:focus {
    outline: none;
}

.mockup-pause-overlay:focus-visible {
    outline: 1px solid var(--color-primary);
    outline-offset: -2px;
}

/* ================================
   Gallery Modal
   ================================ */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 23, 33, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    z-index: 1;
    transform: scale(0.9);
    transition: transform var(--transition-slow);
}

.gallery-modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.gallery-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.gallery-caption {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    color: var(--color-gray-300);
    text-align: center;
    max-width: 600px;
}

.gallery-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-nav:hover:not(:disabled) {
    background: rgba(220, 152, 82, 0.2);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.1);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-thumbnails {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.gallery-thumb {
    width: 120px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.5;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(220, 152, 82, 0.3);
}

.gallery-counter {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    color: var(--color-gray-400);
}

.counter-current {
    color: var(--color-primary);
    font-weight: 600;
}

/* ================================
   Market Comparison Modal
   ================================ */

/* Modal Overlay */
.comparison-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.comparison-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.comparison-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Modal Container */
.comparison-modal-container {
    position: relative;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
    background: rgba(47, 43, 54, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.comparison-modal.active .comparison-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.comparison-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.comparison-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transform: rotate(90deg);
}

/* Header */
.comparison-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.comparison-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.comparison-market-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Side-by-Side Content */
.comparison-content {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Individual Panels */
.comparison-panel {
    flex: 1;
    min-width: 0;
}

/* Panel Headings */
.comparison-panel-heading {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 var(--space-sm) 0;
}

.comparison-panel-heading--old {
    color: var(--color-gray-400);
}

.comparison-panel-heading--new {
    color: var(--color-primary);
}

/* Mockup Styling */
.comparison-mockup {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.comparison-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
}

.mockup-label-old {
    color: var(--color-gray-400);
}

.mockup-label-custpilot {
    color: var(--color-primary);
}

/* Mockup Content */
.comparison-mockup-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Custom Scrollbar for Mockup Content */
.comparison-mockup-content::-webkit-scrollbar {
    width: 6px;
}

.comparison-mockup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.comparison-mockup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.comparison-mockup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Firefox scrollbar */
.comparison-mockup-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Visual Differentiation */
.comparison-panel-custpilot .comparison-mockup {
    border-color: rgba(220, 152, 82, 0.3);
    box-shadow: 0 0 30px rgba(220, 152, 82, 0.1);
}

/* ================================
   Windows XP Luna - Old Chatbot Panel
   ================================ */

/* Window frame: XP Luna blue border, rounded top corners */
.comparison-panel-old .comparison-mockup {
    background: #ece9d8;
    border: 2px solid #0054e3;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Title bar: XP Luna blue gradient, white text */
.comparison-panel-old .legacy-titlebar {
    background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #1569f0 88%, #1b6cf2 93%, #3a8cf4 95%, #7cbcf8 100%);
    border-bottom: none;
    padding: 3px 5px 3px 4px;
    height: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px 6px 0 0;
}

.comparison-panel-old .legacy-titlebar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.comparison-panel-old .legacy-titlebar-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.comparison-panel-old .mockup-label-old {
    color: #ffffff;
    font-family: 'Trebuchet MS', 'Tahoma', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Legacy titlebar buttons */
.comparison-panel-old .legacy-titlebar-buttons {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 4px;
}

.comparison-panel-old .legacy-btn {
    width: 21px;
    height: 21px;
    background: linear-gradient(180deg, #e89768 0%, #d55442 45%, #c5210f 46%, #e16041 100%);
    border: 1px solid #ffffff40;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    padding: 0;
    cursor: default;
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.comparison-panel-old .legacy-btn:active {
    background: linear-gradient(180deg, #c5210f 0%, #d55442 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Content area: white with simple inset border */
.comparison-panel-old .comparison-mockup-content {
    background: #ffffff;
    border: 1px solid #aca899;
    margin: 3px;
    box-shadow: inset 1px 1px 0 #d6d2c2;
    padding: 8px;
    gap: 6px;
}

/* Legacy scrollbar - Firefox */
.comparison-panel-old .comparison-mockup-content {
    scrollbar-width: thin;
    scrollbar-color: #c4c0b4 #ece9d8;
}

/* Legacy scrollbar - WebKit */
.comparison-panel-old .comparison-mockup-content::-webkit-scrollbar {
    width: 10px;
}

.comparison-panel-old .comparison-mockup-content::-webkit-scrollbar-track {
    background: #ece9d8;
    border-left: 1px solid #d6d2c2;
}

.comparison-panel-old .comparison-mockup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #d6d2c2 0%, #c4c0b4 50%, #d6d2c2 100%);
    border-radius: 2px;
    border: 1px solid #aca899;
}

.comparison-panel-old .comparison-mockup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #c4c0b4 0%, #b4b0a4 50%, #c4c0b4 100%);
}

.comparison-panel-old .comparison-mockup-content::-webkit-scrollbar-button {
    display: none;
}

/* Chat bubbles: XP-era style */
.comparison-panel-old .chat-bubble {
    background: #e8e8e0;
    color: #000000;
    border-radius: 4px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 6px 8px;
    max-width: 260px;
    border: 1px solid #c0bdb5;
}

.comparison-panel-old .chat-message.user .chat-bubble {
    background: #d6e7ff;
    color: #000000;
    border: 1px solid #a4c4e8;
    border-radius: 4px;
}

/* Avatar: slightly rounded, soft gray */
.comparison-panel-old .chat-avatar {
    background: #ece9d8;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    border: 1px solid #aca899;
}

.comparison-panel-old .chat-avatar-robot {
    color: #0054e3;
}

.comparison-panel-old .chat-avatar-robot svg {
    width: 18px;
    height: 18px;
}

/* Typing indicator: legacy text style */
.comparison-panel-old .chat-typing {
    background: none;
    border-radius: 0;
    border: none;
    padding: 2px 4px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    font-size: 11px;
    color: #808080;
    font-style: italic;
}

.comparison-panel-old .chat-typing span {
    display: none;
}

/* Controls */
.comparison-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.comparison-replay {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.comparison-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Robot Avatar for Traditional Chatbot */
.chat-avatar-robot {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
}

.chat-avatar-robot svg {
    width: 20px;
    height: 20px;
}

/* Animation States for Messages in Comparison Modal */
.comparison-mockup-content .chat-message {
    opacity: 0;
    transform: translateY(10px);
}

.comparison-mockup-content .chat-message.visible {
    animation: messageSlide 0.5s ease forwards;
}

/* Mini Product Cards for Comparison */
.chat-products {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.mini-product {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .comparison-mockup {
        height: 300px;
    }

    .comparison-modal-container {
        padding: var(--space-lg);
        max-height: 95vh;
        overflow-y: auto;
    }

    .comparison-header {
        margin-bottom: var(--space-lg);
    }

    .comparison-title {
        font-size: 1.25rem;
    }

    .comparison-panel-heading {
        font-size: 0.75rem;
    }

    .comparison-modal .comparison-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 36px;
        height: 36px;
    }

    /* Legacy responsive - tablet */
    .comparison-panel-old .legacy-titlebar {
        height: 24px;
        min-height: 24px;
        padding: 2px 4px;
    }

    .comparison-panel-old .legacy-btn {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .comparison-panel-old .mockup-label-old {
        font-size: 11px;
    }

    .comparison-panel-old .chat-bubble {
        font-size: 0.8125rem;
        max-width: 220px;
    }

    .comparison-panel-old .comparison-mockup-content::-webkit-scrollbar {
        width: 8px;
    }
}

@media (max-width: 480px) {
    .comparison-mockup {
        height: 250px;
    }

    .comparison-controls {
        flex-direction: column;
    }

    .comparison-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .comparison-modal-container {
        padding: var(--space-md);
        border-radius: var(--radius-xl);
    }

    /* Legacy responsive - mobile */
    .comparison-panel-old .legacy-titlebar {
        height: 22px;
        min-height: 22px;
    }

    .comparison-panel-old .legacy-btn {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .comparison-panel-old .chat-bubble {
        max-width: 180px;
        padding: 3px 5px;
    }

    .comparison-panel-old .comparison-mockup-content::-webkit-scrollbar {
        width: 7px;
    }
}

/* ================================
   Implementation Section
   ================================ */
.implementation-steps {
    background: var(--color-dark);
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 50% at 0% 50%, rgba(128, 94, 136, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 100% 50% at 100% 50%, rgba(220, 152, 82, 0.1) 0%, transparent 50%);
    transform: translateY(0);
    will-change: transform;
}

.parallax-bg-gray-900 {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 50% at 0% 50%, rgba(128, 94, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 100% 50% at 100% 50%, rgba(220, 152, 82, 0.08) 0%, transparent 50%),
        var(--color-gray-900);
    transform: translateY(0);
    will-change: transform;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    max-width: 350px;
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(220, 152, 82, 0.3);
    line-height: 1;
    margin-bottom: var(--space-lg);
}

.step-content {
    position: relative;
}

.step-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background: rgba(220, 152, 82, 0.1);
    border: 1px solid rgba(220, 152, 82, 0.2);
    border-radius: var(--radius-xl);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.step:hover .step-icon {
    background: var(--gradient-primary);
    color: var(--color-dark);
    transform: scale(1.1);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    line-height: 1.6;
}

.step-connector {
    flex-shrink: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(220, 152, 82, 0.3) 0%, rgba(220, 152, 82, 0.1) 100%);
    margin-top: 140px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(220, 152, 82, 0.3);
}

/* ================================
   Benefits Section
   ================================ */
.benefits {
    /* background: var(--color-dark); */
    background: var(--color-gray-900);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.benefits-text .section-tag,
.benefits-text .section-title,
.benefits-text .section-subtitle {
    text-align: left;
}

.benefits-text .section-subtitle {
    margin-bottom: var(--space-2xl);
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(220, 152, 82, 0.2);
}

.benefit-check {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 152, 82, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
}

.benefit-content h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.benefit-content p {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
}

/* Stats Card */
.benefits-visual {
    display: flex;
    justify-content: center;
}

.stats-card {
    width: 100%;
    max-width: 450px;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--color-dark);
}

.stats-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

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

.stats-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stats-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stats-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-400);
    margin-top: var(--space-xs);
}

.stats-disclaimer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--color-gray-500);
    line-height: 1.4;
}

/* ================================
   Testimonials Section
   ================================ */
.testimonials {
    background: var(--color-gray-900);
}

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

.testimonial-card {
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.testimonial-content {
    flex: 1;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
}

.author-role {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ================================
   Business Model Carousel Section
   ================================ */
.business-model-carousel {
    background: var(--color-dark);
    /* background: var(--color-gray-900); */
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.business-model-carousel .section-header {
    margin-bottom: var(--space-lg);
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) 0 var(--space-xl);
    margin-top: var(--space-lg);
}

.carousel-track {
    position: relative;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    touch-action: pan-y pinch-zoom;
}

/* Business Model Card */
.business-model-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 380px;
    padding: var(--space-lg);
    transform: translateX(-50%) translateY(-50%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity, filter;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Position classes for circular rotation */
.business-model-card.position-center {
    transform: translateX(-50%) translateY(-50%) scale(1);
    z-index: 10;
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

.business-model-card.position-left {
    transform: translateX(calc(-50% - 300px)) translateY(calc(-50% + 15px)) scale(0.75);
    z-index: 5;
    opacity: 0.5;
    filter: blur(2px);
}

.business-model-card.position-right {
    transform: translateX(calc(-50% + 300px)) translateY(calc(-50% + 15px)) scale(0.75);
    z-index: 5;
    opacity: 0.5;
    filter: blur(2px);
}

.business-model-card.position-back {
    transform: translateX(-50%) translateY(calc(-50% + 15px)) scale(0.7);
    z-index: 4;
    opacity: 0.4;
    filter: blur(3px);
    pointer-events: none;
}

/* Legacy .active class for backward compatibility */
.business-model-card.active {
    opacity: 1;
    pointer-events: auto;
}

.business-model-card .business-model-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Business Model Visual */
.business-model-visual {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.business-model-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 152, 82, 0.1);
    border: 2px solid rgba(220, 152, 82, 0.2);
    border-radius: var(--radius-xl);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.business-model-icon svg {
    width: 28px;
    height: 28px;
}

.business-model-card.position-center .business-model-icon {
    background: rgba(220, 152, 82, 0.15);
    border-color: rgba(220, 152, 82, 0.4);
    box-shadow: 0 0 40px rgba(220, 152, 82, 0.2);
}

/* Business Model Content */
.business-model-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--space-md);
}

.business-model-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.business-model-benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.business-model-card.position-center .business-model-benefits li {
    background: rgba(255, 255, 255, 0.03);
}

.business-model-benefits li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(220, 152, 82, 0.2);
    transform: translateX(4px);
}

.business-model-benefits li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.business-model-benefits li span {
    font-size: 0.875rem;
    color: var(--color-gray-300);
    line-height: 1.5;
}

/* Business Model CTA */
.business-model-cta {
    display: inline-flex;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    overflow: visible;
    position: relative;
}

.business-model-card.position-center .business-model-cta {
    opacity: 1;
    transform: translateY(0);
    animation: pulseRing 2.5s ease-out infinite, subtleGlow 3s ease-in-out infinite;
}
.business-model-card[data-business-model="distributors"].position-center .business-model-cta {
    animation: pulseRingPurple 2.5s ease-out infinite, subtleGlowPurple 3s ease-in-out infinite;
}
.business-model-card[data-business-model="services"].position-center .business-model-cta {
    animation: pulseRingTeal 2.5s ease-out infinite, subtleGlowTeal 3s ease-in-out infinite;
}
.business-model-card[data-business-model="manufacturers"].position-center .business-model-cta {
    animation: pulseRingBlue 2.5s ease-out infinite, subtleGlowBlue 3s ease-in-out infinite;
}

.business-model-card:not(.position-center) .business-model-cta {
    pointer-events: none;
}

.business-model-cta:hover {
    animation: none !important;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 32px rgba(220, 152, 82, 0.5);
    filter: drop-shadow(0 0 12px rgba(220, 152, 82, 0.4));
}

/* === Per-card color overrides (matching accordion legend colors) === */

/* Distributors — var(--color-secondary) #805e88 purple */
.business-model-card[data-business-model="distributors"] .business-model-icon {
    background: rgba(128, 94, 136, 0.1);
    border-color: rgba(128, 94, 136, 0.2);
    color: var(--color-distributors);
}
.business-model-card[data-business-model="distributors"].position-center .business-model-icon {
    background: rgba(128, 94, 136, 0.15);
    border-color: rgba(128, 94, 136, 0.4);
    box-shadow: 0 0 40px rgba(128, 94, 136, 0.2);
}
.business-model-card[data-business-model="distributors"] .business-model-benefits li svg {
    color: var(--color-distributors);
}
.business-model-card[data-business-model="distributors"] .business-model-benefits li:hover {
    border-color: rgba(128, 94, 136, 0.2);
}
.business-model-card[data-business-model="distributors"] .business-model-cta {
    background: linear-gradient(135deg, var(--color-distributors) 0%, var(--color-distributors-dark) 100%);
    box-shadow: 0 4px 20px rgba(128, 94, 136, 0.3);
}
.business-model-card[data-business-model="distributors"] .business-model-cta:hover {
    box-shadow: 0 8px 32px rgba(128, 94, 136, 0.5);
    filter: drop-shadow(0 0 12px rgba(128, 94, 136, 0.4));
}

/* Services — var(--color-accent) #4a9a8a teal */
.business-model-card[data-business-model="services"] .business-model-icon {
    background: rgba(74, 154, 138, 0.1);
    border-color: rgba(74, 154, 138, 0.2);
    color: var(--color-services);
}
.business-model-card[data-business-model="services"].position-center .business-model-icon {
    background: rgba(74, 154, 138, 0.15);
    border-color: rgba(74, 154, 138, 0.4);
    box-shadow: 0 0 40px rgba(74, 154, 138, 0.2);
}
.business-model-card[data-business-model="services"] .business-model-benefits li svg {
    color: var(--color-services);
}
.business-model-card[data-business-model="services"] .business-model-benefits li:hover {
    border-color: rgba(74, 154, 138, 0.2);
}
.business-model-card[data-business-model="services"] .business-model-cta {
    background: linear-gradient(135deg, var(--color-services) 0%, var(--color-services-light) 100%);
    box-shadow: 0 4px 20px rgba(74, 154, 138, 0.3);
}
.business-model-card[data-business-model="services"] .business-model-cta:hover {
    box-shadow: 0 8px 32px rgba(74, 154, 138, 0.5);
    filter: drop-shadow(0 0 12px rgba(74, 154, 138, 0.4));
}

/* Manufacturers — #4a8ab5 steel blue */
.business-model-card[data-business-model="manufacturers"] .business-model-icon {
    background: rgba(74, 138, 181, 0.1);
    border-color: rgba(74, 138, 181, 0.2);
    color: var(--color-manufacturers);
}
.business-model-card[data-business-model="manufacturers"].position-center .business-model-icon {
    background: rgba(74, 138, 181, 0.15);
    border-color: rgba(74, 138, 181, 0.4);
    box-shadow: 0 0 40px rgba(74, 138, 181, 0.2);
}
.business-model-card[data-business-model="manufacturers"] .business-model-benefits li svg {
    color: var(--color-manufacturers);
}
.business-model-card[data-business-model="manufacturers"] .business-model-benefits li:hover {
    border-color: rgba(74, 138, 181, 0.2);
}
.business-model-card[data-business-model="manufacturers"] .business-model-cta {
    background: linear-gradient(135deg, var(--color-manufacturers) 0%, var(--color-manufacturers-dark) 100%);
    box-shadow: 0 4px 20px rgba(74, 138, 181, 0.3);
}
.business-model-card[data-business-model="manufacturers"] .business-model-cta:hover {
    box-shadow: 0 8px 32px rgba(74, 138, 181, 0.5);
    filter: drop-shadow(0 0 12px rgba(74, 138, 181, 0.4));
}

/* Tooltip label */
.business-model-cta::after {
    content: 'Open CustPilot';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: linear-gradient(135deg, #dc9852, #d6776b);
    color: #2f2b36;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tooltip arrow */
.business-model-cta::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 5px solid transparent;
    border-top-color: #dc9852;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-model-cta:hover::after,
.business-model-cta:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.carousel-nav:hover:not(:disabled) {
    background: rgba(220, 152, 82, 0.2);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.indicator:hover {
    background: rgba(220, 152, 82, 0.3);
    border-color: var(--color-primary);
}

.indicator.active {
    width: 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    border-color: var(--color-primary);
}

/* Drag disabled - default cursor */
.carousel-track {
    cursor: default;
}

/* ================================
   Business Model Carousel - Responsive
   ================================ */
@media (max-width: 1024px) {
    .business-model-carousel {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-lg);
    }

    .business-model-carousel .section-header {
        margin-bottom: var(--space-md);
    }

    .carousel-wrapper {
        max-width: 1000px;
        padding: var(--space-md) 0 var(--space-lg);
        margin-top: var(--space-md);
    }

    .carousel-track {
        height: 380px;
    }

    .business-model-card {
        width: 340px;
    }

    .business-model-card.position-left {
        transform: translateX(calc(-50% - 260px)) translateY(calc(-50% + 15px)) scale(0.72);
    }

    .business-model-card.position-right {
        transform: translateX(calc(-50% + 260px)) translateY(calc(-50% + 15px)) scale(0.72);
    }

    .business-model-card.position-back {
        transform: translateX(-50%) translateY(calc(-50% + 15px)) scale(0.68);
    }

    .carousel-prev {
        left: -16px;
    }

    .carousel-next {
        right: -16px;
    }

    .business-model-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .business-model-carousel {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-md);
    }

    .business-model-carousel .section-header {
        margin-bottom: var(--space-sm);
    }

    .carousel-wrapper {
        padding: var(--space-sm) 0 var(--space-md);
        margin-top: var(--space-sm);
    }

    .carousel-track {
        height: 420px;
    }

    .business-model-card {
        width: min(85vw, 380px);
        padding: var(--space-md);
    }

    .business-model-card.position-left {
        transform: translateX(calc(-50% - 300px)) translateY(-50%) scale(0.85);
        opacity: 0;
        pointer-events: none;
    }

    .business-model-card.position-right {
        transform: translateX(calc(-50% + 300px)) translateY(-50%) scale(0.85);
        opacity: 0;
        pointer-events: none;
    }

    .business-model-card.position-back {
        opacity: 0;
        pointer-events: none;
    }

    .business-model-icon {
        width: 48px;
        height: 48px;
    }

    .business-model-icon svg {
        width: 24px;
        height: 24px;
    }

    .business-model-title {
        font-size: 1.125rem;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }

    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }

    .business-model-benefits li {
        flex-direction: row;
        gap: var(--space-xs);
    }

    .carousel-indicators {
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .business-model-carousel {
        padding-top: var(--space-md);
        padding-bottom: var(--space-sm);
    }

    .carousel-wrapper {
        padding: var(--space-xs) 0 var(--space-sm);
        margin-top: var(--space-xs);
    }

    .carousel-track {
        height: 400px;
    }

    .business-model-card {
        width: calc(100vw - 4rem);
        max-width: 340px;
        padding: var(--space-sm) var(--space-md);
    }

    .business-model-card.position-left {
        transform: translateX(calc(-50% - 250px)) translateY(-50%) scale(0.8);
        opacity: 0;
        filter: none;
        pointer-events: none;
    }

    .business-model-card.position-right {
        transform: translateX(calc(-50% + 250px)) translateY(-50%) scale(0.8);
        opacity: 0;
        filter: none;
        pointer-events: none;
    }

    .business-model-card.position-back {
        opacity: 0;
        filter: none;
        pointer-events: none;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .carousel-prev {
        left: var(--space-xs);
    }

    .carousel-next {
        right: var(--space-xs);
    }

    .business-model-icon {
        width: 40px;
        height: 40px;
    }

    .business-model-icon svg {
        width: 20px;
        height: 20px;
    }

    .business-model-benefits {
        gap: var(--space-xs);
    }

    .business-model-benefits li {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8125rem;
    }

    .business-model-benefits li svg {
        width: 16px;
        height: 16px;
    }

    .business-model-title {
        font-size: 1rem;
    }

    .business-model-cta {
        width: 100%;
    }

    .business-model-card.position-center .business-model-cta {
        animation: none;
    }

    .business-model-cta::after,
    .business-model-cta::before {
        display: none;
    }

    .carousel-indicators {
        margin-top: var(--space-md);
    }
}

/* ================================
   Market Matrix Section
   ================================ */
.market-matrix {
    /* background: var(--color-gray-900); */
    background: var(--color-dark);
    position: relative;
    padding: var(--space-4xl) 0;
}

.market-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 152, 82, 0.3), transparent);
}

/* Legend */
.matrix-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    user-select: none;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.legend-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.legend-item.filter-active {
    background: rgba(220, 152, 82, 0.15);
    border-color: rgba(220, 152, 82, 0.4);
}

.legend-item.filter-active .legend-badge {
    transform: scale(1.3);
    box-shadow: 0 0 10px currentColor;
}

.matrix-legend.has-active-filters .legend-item:not(.filter-active) {
    opacity: 0.5;
}

.matrix-legend.has-active-filters .legend-item:not(.filter-active):hover {
    opacity: 0.8;
}

.legend-badge {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.legend-retail,
.model-retail {
    background: var(--color-retail);
}

.legend-distributors,
.model-distributors {
    background: var(--color-distributors);
}

.legend-services,
.model-services {
    background: var(--color-services);
}

.legend-manufacturers,
.model-manufacturers {
    background: var(--color-manufacturers);
}

/* Accordion */
.market-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.market-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: visible;
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.market-item.expanded {
    border-color: rgba(220, 152, 82, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Filter hidden state */
.market-item.filter-hidden {
    display: none;
}

.market-accordion.no-matches::after {
    content: 'Brak branż pasujących do wybranych filtrów.';
    display: block;
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-gray-500);
    font-style: italic;
}

/* Header Button */
.market-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    text-align: left;
    transition: background var(--transition-fast);
}

.market-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.market-header:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.market-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.market-icon-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 152, 82, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.market-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
}

.market-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Model Badges */
.model-badges {
    display: flex;
    gap: var(--space-sm);
}

.model-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
    transition: transform var(--transition-fast);
}

.market-item:hover .model-badge {
    transform: scale(1.2);
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0px rgba(220, 152, 82, 0.4); }
    50%  { box-shadow: 0 0 0 12px rgba(220, 152, 82, 0); }
    100% { box-shadow: 0 0 0 0px rgba(220, 152, 82, 0); }
}

@keyframes subtleGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(220, 152, 82, 0.3)); }
    50%      { filter: drop-shadow(0 0 10px rgba(220, 152, 82, 0.5)); }
}

@keyframes pulseRingPurple {
    0%   { box-shadow: 0 0 0 0px rgba(128, 94, 136, 0.4); }
    50%  { box-shadow: 0 0 0 12px rgba(128, 94, 136, 0); }
    100% { box-shadow: 0 0 0 0px rgba(128, 94, 136, 0); }
}

@keyframes subtleGlowPurple {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(128, 94, 136, 0.3)); }
    50%      { filter: drop-shadow(0 0 10px rgba(128, 94, 136, 0.5)); }
}

@keyframes pulseRingTeal {
    0%   { box-shadow: 0 0 0 0px rgba(74, 154, 138, 0.4); }
    50%  { box-shadow: 0 0 0 12px rgba(74, 154, 138, 0); }
    100% { box-shadow: 0 0 0 0px rgba(74, 154, 138, 0); }
}

@keyframes subtleGlowTeal {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(74, 154, 138, 0.3)); }
    50%      { filter: drop-shadow(0 0 10px rgba(74, 154, 138, 0.5)); }
}

@keyframes pulseRingBlue {
    0%   { box-shadow: 0 0 0 0px rgba(74, 138, 181, 0.4); }
    50%  { box-shadow: 0 0 0 12px rgba(74, 138, 181, 0); }
    100% { box-shadow: 0 0 0 0px rgba(74, 138, 181, 0); }
}

@keyframes subtleGlowBlue {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(74, 138, 181, 0.3)); }
    50%      { filter: drop-shadow(0 0 10px rgba(74, 138, 181, 0.5)); }
}

/* Accordion CTA - round button positioned outside the card border */
.accordion-cta {
    position: absolute;
    right: -70px;
    top: calc(var(--space-lg) + 4px);
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulseRing 2.5s ease-out infinite, subtleGlow 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.accordion-cta span {
    display: none;
}

.accordion-cta svg {
    pointer-events: none;
    width: 22px;
    height: 22px;
}

.accordion-cta:hover {
    animation: none;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 32px rgba(220, 152, 82, 0.5);
    filter: drop-shadow(0 0 12px rgba(220, 152, 82, 0.4));
}

/* Tooltip label */
.accordion-cta::after {
    content: 'Play Demo';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: linear-gradient(135deg, #dc9852, #d6776b);
    color: #2f2b36;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tooltip arrow */
.accordion-cta::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 5px solid transparent;
    border-top-color: #dc9852;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-cta:hover::after,
.accordion-cta:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Staggered animation delays for cascading wave */
.market-item:nth-child(1) .accordion-cta { animation-delay: 0s, 0s; }
.market-item:nth-child(2) .accordion-cta { animation-delay: 0.3s, 0.3s; }
.market-item:nth-child(3) .accordion-cta { animation-delay: 0.6s, 0.6s; }
.market-item:nth-child(4) .accordion-cta { animation-delay: 0.9s, 0.9s; }
.market-item:nth-child(5) .accordion-cta { animation-delay: 1.2s, 1.2s; }
.market-item:nth-child(6) .accordion-cta { animation-delay: 1.5s, 1.5s; }
.market-item:nth-child(7) .accordion-cta { animation-delay: 1.8s, 1.8s; }
.market-item:nth-child(8) .accordion-cta { animation-delay: 2.1s, 2.1s; }

/* Play hint - one-time contextual hint */
.play-hint {
    position: absolute;
    right: -230px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    animation: slideInHint 0.6s ease-out forwards;
}

.play-hint-arrow {
    font-size: 1.1rem;
    color: #dc9852;
    animation: bounceArrow 1s ease-in-out infinite;
}

.play-hint-text {
    background: rgba(220, 152, 82, 0.12);
    border: 1px solid rgba(220, 152, 82, 0.25);
    color: #dc9852;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

@keyframes slideInHint {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-6px); }
}

.play-hint.fade-out {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Chevron */
.accordion-chevron {
    color: var(--color-gray-500);
    transition: transform 0.3s ease;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.market-item.expanded .accordion-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Panel */
.market-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    padding: 0 var(--space-xl) var(--space-xl);
}

.panel-item {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border-left: 3px solid transparent;
}

.panel-item.panel-retail {
    border-left-color: var(--color-retail);
}

.panel-item.panel-distributors {
    border-left-color: var(--color-distributors);
}

.panel-item.panel-services {
    border-left-color: var(--color-services);
}

.panel-item.panel-manufacturers {
    border-left-color: var(--color-manufacturers);
}

.panel-item h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.panel-item p {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    line-height: 1.5;
    margin: 0;
}

.panel-item .custpilot-help {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    color: var(--color-primary);
}

.panel-item .custpilot-help svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.9;
}

/* Responsive - Market Matrix */
@media (max-width: 768px) {
    .matrix-legend {
        gap: var(--space-sm);
    }

    .market-header {
        padding: var(--space-md);
    }

    .market-header-left {
        min-width: 0;
    }

    .market-name {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .market-header-right {
        gap: var(--space-sm);
    }

    .accordion-cta {
        position: static;
        width: 100%;
        height: auto;
        padding: var(--space-xs) var(--space-md);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        justify-content: center;
        animation: none;
    }

    .accordion-cta span {
        display: inline;
    }

    .accordion-cta svg {
        width: 16px;
        height: 16px;
    }

    .accordion-cta::after,
    .accordion-cta::before {
        display: none;
    }

    .play-hint {
        display: none;
    }

    .panel-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md) var(--space-md);
    }

}

@media (max-width: 480px) {
    .legend-item {
        padding: var(--space-xs);
        gap: 4px;
    }

    .legend-item span:last-child {
        font-size: 0.75rem;
    }

    .legend-badge {
        width: 8px;
        height: 8px;
    }

    .market-icon-small {
        width: 32px;
        height: 32px;
    }

    .market-icon-small svg {
        width: 18px;
        height: 18px;
    }

    .market-name {
        font-size: 0.9375rem;
    }
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: var(--color-dark);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 152, 82, 0.3), transparent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.contact-content .section-tag,
.contact-content .section-title,
.contact-content .section-subtitle {
    text-align: left;
}

.contact-content .section-subtitle {
    margin-bottom: var(--space-2xl);
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-gray-300);
}

.contact-feature svg {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-300);
}

.form-group:has([required]) > label::after {
    content: ' *';
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(220, 152, 82, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* ================================
   GDPR Consent Checkbox
   ================================ */
.consent-group {
    gap: 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-gray-400);
    position: relative;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.consent-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.consent-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid var(--color-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--transition-fast);
    margin-top: -2px;
}

.consent-label input[type="checkbox"]:checked ~ .consent-checkmark {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
}

.consent-label input[type="checkbox"]:checked ~ .consent-checkmark::after {
    transform: rotate(45deg) scale(1);
}

.consent-label input[type="checkbox"]:focus-visible ~ .consent-checkmark {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 152, 82, 0.1);
}

.consent-label:hover .consent-checkmark {
    border-color: rgba(255, 255, 255, 0.25);
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.consent-link:hover {
    color: var(--color-primary-light, #e8b07a);
}

/* Validation error state */
.consent-group.error .consent-checkmark {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(214, 119, 107, 0.15);
}

.consent-error {
    display: none;
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: var(--space-xs);
    padding-left: 28px;
}

.consent-group.error .consent-error {
    display: block;
}

/* Google reCAPTCHA v3 - hide badge, use text attribution instead */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: var(--space-xs);
    line-height: 1.4;
}

.recaptcha-notice a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

/* ================================
   Privacy Notice Modal
   ================================ */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.privacy-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.privacy-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy-modal-container {
    position: relative;
    width: 95%;
    max-width: 720px;
    max-height: 85vh;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
    background: rgba(47, 43, 54, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.privacy-modal.active .privacy-modal-container {
    transform: scale(1) translateY(0);
}

.privacy-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.privacy-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transform: rotate(90deg);
}

.privacy-header {
    padding: var(--space-2xl) var(--space-2xl) 0;
    flex-shrink: 0;
}

.privacy-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 var(--space-sm);
}

.privacy-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    line-height: 1.5;
    margin: 0;
}

.privacy-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.privacy-section {
    margin-bottom: var(--space-xl);
    padding: 0;
}

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

.privacy-section h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.privacy-section p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    margin-bottom: var(--space-sm);
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0;
}

.privacy-section ul li {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-gray-300);
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-xs);
}

.privacy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.6;
}

.privacy-section a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.privacy-section a:hover {
    color: var(--color-primary-light, #e8b07a);
}

@media (max-width: 768px) {
    .privacy-modal-container {
        width: 95%;
        max-height: 90vh;
        border-radius: var(--radius-xl);
    }

    .privacy-header {
        padding: var(--space-xl) var(--space-lg) 0;
    }

    .privacy-content {
        padding: var(--space-lg);
    }

    .privacy-title {
        font-size: 1.25rem;
        padding-right: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .privacy-modal-container {
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .privacy-header {
        padding: var(--space-lg) var(--space-md) 0;
    }

    .privacy-content {
        padding: var(--space-md);
    }

    .privacy-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 36px;
        height: 36px;
    }
}

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--color-gray-900);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Roboto', var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    color: var(--color-primary);
}

.footer-logo sup {
    font-size: 0.45em;
    color: var(--color-gray-400);
}

.footer-tagline {
    color: var(--color-gray-400);
    margin-bottom: var(--space-sm);
    max-width: 280px;
}

.footer-company {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer-company a {
    color: var(--color-primary);
}

.footer-company a:hover {
    text-decoration: underline;
}

.footer-partner-badge {
    display: inline-block;
    margin-top: var(--space-md);
}

.footer-partner-badge img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-partner-badge:hover img {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: var(--space-4xl);
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--color-gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    color: var(--color-gray-600);
    font-size: 0.875rem;
}

/* ================================
   Animations
   ================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

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

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 90px 0 50px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
    }

    .hero-mockup {
        max-width: 100%;
    }

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

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 450px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
        background: linear-gradient(180deg, rgba(220, 152, 82, 0.3) 0%, rgba(220, 152, 82, 0.1) 100%);
    }

    .step-connector::after {
        right: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(50%);
        border: 6px solid transparent;
        border-top-color: rgba(220, 152, 82, 0.3);
        border-left-color: transparent;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .benefits-text .section-tag,
    .benefits-text .section-title,
    .benefits-text .section-subtitle {
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .contact-content .section-tag,
    .contact-content .section-title,
    .contact-content .section-subtitle {
        text-align: center;
    }

    .contact-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        background: var(--color-gray-900);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        transition: right var(--transition-base);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .hero {
        padding: 90px 0 40px;
        min-height: 100svh;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 2rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-badge {
        margin-bottom: var(--space-md);
    }

    .hero-title {
        margin-bottom: var(--space-md);
    }

    .hero-subtitle {
        margin-bottom: var(--space-lg);
    }

    .hero-cta {
        margin-bottom: var(--space-xl);
    }

    .hero-visual {
        max-width: 100%;
    }

    .hero-mockup {
        animation: none;
        height: 360px;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-2xl);
    }

    /* Gallery Modal Responsive */
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-content {
        padding: var(--space-lg);
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav svg {
        width: 24px;
        height: 24px;
    }

    .gallery-thumbnails {
        gap: var(--space-sm);
    }

    .gallery-thumb {
        width: 80px;
    }

    .modal-close {
        top: -40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(70px + var(--space-2xl));
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        padding: var(--space-md) var(--space-xl);
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    /* Gallery Preview Strip Responsive */
    .preview-thumbnails {
        max-width: 60%;
    }

    .preview-thumb {
        aspect-ratio: 16 / 9;
    }
}

/* ================================
   Floating Live Demo Button
   ================================ */
.floating-demo {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 9998;
}

.floating-demo-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding: 8px;
}

/* Main pill button — always shows icon + label */
.floating-demo-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: 48px;
    padding: 0 20px 0 16px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--color-dark);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow:
        0 4px 24px rgba(220, 152, 82, 0.35),
        0 0 0 0 rgba(220, 152, 82, 0.4);
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
    animation: floatingDemoGlow 3s ease-in-out infinite, floatingDemoFloat 4s ease-in-out infinite;
    flex-shrink: 0;
}

/* Icon wrapper — fixed 20x20, icons stacked via absolute */
.floating-demo-icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.floating-demo-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.floating-demo-icon-play {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.floating-demo-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Label — always visible */
.floating-demo-label {
    white-space: nowrap;
    line-height: 1;
}

/* Hover — lift + enhanced glow, no shape change */
.floating-demo-btn:hover {
    transform: translateY(-3px);
    animation-play-state: paused;
    box-shadow:
        0 8px 32px rgba(220, 152, 82, 0.45),
        0 0 60px rgba(220, 152, 82, 0.15);
}

/* Expanded state — swap icons, hold enhanced glow */
.floating-demo.expanded .floating-demo-btn {
    animation: none;
    box-shadow:
        0 8px 32px rgba(220, 152, 82, 0.45),
        0 0 60px rgba(220, 152, 82, 0.15);
}

.floating-demo.expanded .floating-demo-icon-play {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.floating-demo.expanded .floating-demo-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.floating-demo-btn:active {
    transform: scale(0.97);
}

/* Menu items — collapsed by default */
.floating-demo-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px 10px 14px;
    border-radius: var(--radius-full);
    background: rgba(47, 43, 54, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-gray-200);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    /* Collapsed: hidden behind button */
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition:
        opacity var(--transition-base),
        transform var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1),
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.floating-demo-item svg {
    flex-shrink: 0;
    transition: stroke var(--transition-fast);
}

/* Retail — orange */
.floating-demo-item[data-business-model="retail"] svg {
    stroke: var(--color-retail);
}
.floating-demo-item[data-business-model="retail"]:hover {
    background: rgba(220, 152, 82, 0.15);
    border-color: rgba(220, 152, 82, 0.3);
}
.floating-demo-item[data-business-model="retail"]:hover svg {
    stroke: var(--color-retail-light);
}

/* Distributors — purple */
.floating-demo-item[data-business-model="distributors"] svg {
    stroke: var(--color-distributors);
}
.floating-demo-item[data-business-model="distributors"]:hover {
    background: rgba(128, 94, 136, 0.15);
    border-color: rgba(128, 94, 136, 0.3);
}
.floating-demo-item[data-business-model="distributors"]:hover svg {
    stroke: var(--color-distributors-dark);
}

/* Services — teal */
.floating-demo-item[data-business-model="services"] svg {
    stroke: var(--color-services);
}
.floating-demo-item[data-business-model="services"]:hover {
    background: rgba(74, 154, 138, 0.15);
    border-color: rgba(74, 154, 138, 0.3);
}
.floating-demo-item[data-business-model="services"]:hover svg {
    stroke: var(--color-services-light);
}

/* Manufacturers — steel blue */
.floating-demo-item[data-business-model="manufacturers"] svg {
    stroke: var(--color-manufacturers);
}
.floating-demo-item[data-business-model="manufacturers"]:hover {
    background: rgba(74, 138, 181, 0.15);
    border-color: rgba(74, 138, 181, 0.3);
}
.floating-demo-item[data-business-model="manufacturers"]:hover svg {
    stroke: var(--color-manufacturers-dark);
}

.floating-demo-item:hover {
    color: var(--color-white);
    transform: translateY(0) scale(1.04);
}

.floating-demo-item:active {
    transform: translateY(0) scale(0.97);
}

/* Expanded state — items become visible with stagger */
.floating-demo.expanded .floating-demo-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Staggered delays — bottom-up reveal (item 4 = retail = closest to button) */
.floating-demo.expanded .floating-demo-item:nth-child(4) {
    transition-delay: 0ms;
}

.floating-demo.expanded .floating-demo-item:nth-child(3) {
    transition-delay: 50ms;
}

.floating-demo.expanded .floating-demo-item:nth-child(2) {
    transition-delay: 100ms;
}

.floating-demo.expanded .floating-demo-item:nth-child(1) {
    transition-delay: 150ms;
}

/* Collapse stagger — reversed */
.floating-demo:not(.expanded) .floating-demo-item:nth-child(1) {
    transition-delay: 0ms;
}

.floating-demo:not(.expanded) .floating-demo-item:nth-child(2) {
    transition-delay: 30ms;
}

.floating-demo:not(.expanded) .floating-demo-item:nth-child(3) {
    transition-delay: 60ms;
}

.floating-demo:not(.expanded) .floating-demo-item:nth-child(4) {
    transition-delay: 90ms;
}

/* Keyframes */
@keyframes floatingDemoGlow {
    0%, 100% {
        box-shadow:
            0 4px 24px rgba(220, 152, 82, 0.35),
            0 0 0 0 rgba(220, 152, 82, 0);
    }
    50% {
        box-shadow:
            0 4px 24px rgba(220, 152, 82, 0.45),
            0 0 0 6px rgba(220, 152, 82, 0.08);
    }
}

@keyframes floatingDemoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Mobile */
@media (max-width: 768px) {
    .floating-demo {
        bottom: var(--space-lg);
        right: var(--space-lg);
    }

    .floating-demo-btn {
        height: 44px;
        padding: 0 16px 0 12px;
        font-size: 0.8125rem;
    }

    .floating-demo-icon-wrapper {
        width: 18px;
        height: 18px;
    }

    .floating-demo-icon {
        width: 18px;
        height: 18px;
    }

    .floating-demo-item {
        font-size: 0.8125rem;
        padding: 9px 16px 9px 12px;
    }
}

@media (max-width: 480px) {
    .floating-demo {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .floating-demo-btn {
        height: 40px;
        padding: 0 14px 0 10px;
        font-size: 0.75rem;
    }

    .floating-demo-icon-wrapper {
        width: 16px;
        height: 16px;
    }

    .floating-demo-icon {
        width: 16px;
        height: 16px;
    }
}

/* ================================
   Case Study / Success Story Section
   ================================ */
.case-study {
    background: var(--color-gray-900);
    position: relative;
    padding: var(--space-4xl) 0;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 152, 82, 0.3), transparent);
}

.case-study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

/* Image placeholder */
.case-study-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.case-study-image-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-700) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

/* Text content */
.case-study-text .section-tag,
.case-study-text .section-title,
.case-study-text .section-subtitle {
    text-align: left;
}

.case-study-text .section-subtitle {
    margin-bottom: var(--space-2xl);
}

/* Stat badges */
.case-study-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.case-study-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-align: center;
}

.case-study-stat .stats-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.case-study-stat-label {
    font-size: 0.8125rem;
    color: var(--color-gray-300);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-stat-sub {
    font-size: 0.6875rem;
    color: var(--color-gray-500);
    margin-top: 2px;
}

/* Logo overlay on image */
.case-study-logo {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
}

.case-study-logo img {
    max-height: 28px;
    width: auto;
    display: block;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-base);
}

.case-study-logo img:hover {
    opacity: 1;
}

/* CTA group */
.case-study-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: gap var(--transition-base), color var(--transition-base);
}

.case-study-link:hover {
    color: var(--color-primary-light);
    gap: var(--space-md);
}

/* ================================
   Case Study Responsive
   ================================ */
@media (max-width: 1024px) {
    .case-study-content {
        gap: var(--space-3xl);
    }

    .case-study-stat .stats-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .case-study-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .case-study-text .section-tag,
    .case-study-text .section-title,
    .case-study-text .section-subtitle {
        text-align: center;
    }

    .case-study-stats {
        justify-content: center;
    }

    .case-study-cta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .case-study-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

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

    .case-study-cta {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ================================
   Mid-Page CTA Banner
   ================================ */
.mid-cta {
    max-width: 900px;
    margin: var(--space-4xl) auto;
    padding: var(--space-2xl) var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    background: rgba(220, 152, 82, 0.04);
    border: 1px solid rgba(220, 152, 82, 0.2);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.mid-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(220, 152, 82, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mid-cta-text {
    position: relative;
}

.mid-cta-text h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.mid-cta-text p {
    color: var(--color-gray-400);
    font-size: 0.9375rem;
}

.mid-cta .btn {
    position: relative;
    flex-shrink: 0;
}

/* Mid-CTA Responsive */
@media (max-width: 768px) {
    .mid-cta {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl) var(--space-lg);
    }

    .mid-cta-text h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .mid-cta {
        padding: var(--space-lg) var(--space-md);
    }

    .mid-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   Markets Toggle
   ================================ */
.market-accordion.markets-collapsed .market-item:nth-child(n+5) {
    display: none;
}

.markets-toggle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: var(--space-xl) auto 0;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(220, 152, 82, 0.08);
    border: 1px solid rgba(220, 152, 82, 0.35);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.markets-toggle:hover {
    background: rgba(220, 152, 82, 0.1);
    border-color: rgba(220, 152, 82, 0.4);
}

.markets-toggle-icon {
    transition: transform var(--transition-base);
}

.markets-toggle.expanded .markets-toggle-icon {
    transform: rotate(180deg);
}
