/**
 * Glue Website — Premium Light Theme
 * Modern glassmorphism with sophisticated interactions
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --color-bg: #fafafa;
    --color-bg-alt: #ffffff;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* Brand Gradient */
    --color-primary: #6366f1;
    --color-secondary: #ec4899;
    --color-accent: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-dark-bg: rgba(15, 23, 42, 0.95);
    --glass-dark-border: rgba(255, 255, 255, 0.1);

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

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    opacity: 1;
    -webkit-overflow-scrolling: touch;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--glass-dark-border);
}

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

.gradient-bg {
    background: var(--gradient-primary);
}

.center {
    text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--space-sm) var(--space-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: navSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav.scrolled {
    padding: 0.75rem var(--space-md);
}

.nav-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.625rem var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-full);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating pill glassmorphism on scroll */
.nav.scrolled .nav-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
}

/* Subtle gradient border glow on scroll */
.nav-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-full);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.2) 0%,
        rgba(236, 72, 153, 0.15) 50%,
        rgba(99, 102, 241, 0.2) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav.scrolled .nav-container::before {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 95px;
    width: auto;
    display: block;
    transition: height 0.3s ease, filter 0.3s ease;
}

/* Shrink logo when scrolled */
.nav.scrolled .logo-img {
    height: 65px;
}

/* Shimmer effect on logo hover - uses brightness pulse */
.logo:hover .logo-img {
    animation: logoShimmer 0.8s ease-in-out;
}

@keyframes logoShimmer {
    0% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: brightness(1.15) drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
}

/* Nav entrance animation */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer logo adjustments */
.footer-logo-img {
    height: 38px;
    filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-full);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

/* Micro dot indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover::after {
    transform: translateX(-50%) scale(1);
}

.nav-link:active {
    transform: scale(0.97);
}

/* Active state for current section */
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-lg);
    padding: 0.625rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

/* Connector triangle */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(99, 102, 241, 0.08);
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.04) 100%);
    color: var(--color-text);
    transform: translateX(4px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-nav {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: var(--color-text);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-nav span {
    position: relative;
    z-index: 1;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.btn-nav:hover::before {
    opacity: 1;
}

.btn-primary {
    position: relative;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* Focus state for accessibility */
.btn-primary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Pulsing CTA button in CTA section */
.cta .btn-primary {
    animation: ctaPulse 2s ease-in-out infinite;
}

.cta .btn-primary:hover {
    animation: none;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5), 0 0 0 8px rgba(99, 102, 241, 0.1);
    }
}

.btn-glass {
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    background: white;
    transform: translateY(-2px);
}

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

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    overflow: visible;
}

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

.hero-gradient {
    display: none;
}

/* Stripe-inspired Gradient Background */
.hero-mesh {
    display: none;
}

.mesh-gradient {
    display: none;
}

@keyframes meshShift {
    0%, 100% {
        background:
            radial-gradient(ellipse 80% 50% at 70% 20%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 30% 70%, rgba(236, 72, 153, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 50% 50% at 80% 60%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    }
    50% {
        background:
            radial-gradient(ellipse 80% 50% at 60% 30%, rgba(168, 85, 247, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 40% 60%, rgba(236, 72, 153, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse 50% 50% at 70% 50%, rgba(99, 102, 241, 0.35) 0%, transparent 50%);
    }
}

.hero-grid-pattern {
    display: none;
}

.hero-orbs {
    display: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.2);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.15);
    top: 50%;
    right: 30%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.15);
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

/* Floating Particles */
.hero-particles {
    display: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: -2s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 60%; left: 10%; animation-delay: -4s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: -6s; width: 8px; height: 8px; }
.particle:nth-child(5) { top: 30%; left: 50%; animation-delay: -8s; width: 4px; height: 4px; }
.particle:nth-child(6) { top: 70%; left: 30%; animation-delay: -10s; }
.particle:nth-child(7) { top: 40%; left: 90%; animation-delay: -12s; width: 5px; height: 5px; }
.particle:nth-child(8) { top: 90%; left: 45%; animation-delay: -14s; width: 4px; height: 4px; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) translateX(-10px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-40px) translateX(20px);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero-particles {
        display: none;
    }
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-content {
    max-width: 580px;
    padding-left: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.6rem 1.25rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-line {
    display: block;
}

.hero-line:first-child {
    color: var(--color-text);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.15));
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-md);
}

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

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

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

/* Hero Visual / Product Preview */
.hero-visual {
    position: relative;
    overflow: visible;
    padding-left: 90px;
    padding-right: 10px;
    padding-top: 40px;
}

/* Gradient bridge - disabled */
.hero-visual::before {
    display: none;
}

/* Depth layer - disabled */
.hero-visual::after {
    display: none;
}

/* 3D Cube Container */
.hero-cube-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: visible;
    transform-style: preserve-3d;
}

.hero-cube-iframe {
    width: 160%;
    height: 160%;
    margin-left: -30%;
    margin-top: -30%;
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
}

.hero-cube-glow {
    display: none;
}

@keyframes cubeGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-product-preview {
    position: relative;
}

.preview-window {
    background: var(--glass-dark-bg);
    border: 1px solid var(--glass-dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-dark-border);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:last-child { background: #28c840; }

.preview-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.preview-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 300px;
}

.preview-sidebar {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-md);
    border-right: 1px solid var(--glass-dark-border);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-icon {
    font-size: 0.6rem;
}

.preview-main {
    padding: var(--space-md);
}

.preview-heatmap {
    display: grid;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.heatmap-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    animation: cellPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.2s);
}

.heatmap-cell.hot { background: rgba(99, 102, 241, 0.8); }
.heatmap-cell.warm { background: rgba(139, 92, 246, 0.5); }
.heatmap-cell.cold { background: rgba(255, 255, 255, 0.1); }

@keyframes cellPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.preview-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ==========================================================================
   Logo Marquee
   ========================================================================== */

.logos-section {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logos-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: var(--space-2xl);
    animation: marquee 30s linear infinite;
}

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

.logo-item {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.logo-item.value-divider {
    opacity: 0.3;
    font-weight: 400;
}

/* ==========================================================================
   Results Section
   ========================================================================== */

.results {
    padding: var(--space-3xl) 0;
}

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

.result-card {
    padding: var(--space-lg);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.08);
    background: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-xs);
}

.result-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Section Header
   ========================================================================== */

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

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
}

/* ==========================================================================
   Tools & Technology Section
   ========================================================================== */

.tools-trust {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.tools-carousel {
    margin-top: var(--space-2xl);
    overflow: hidden;
    position: relative;
}

.tools-track {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    animation: scroll 30s linear infinite;
    width: calc(200% + var(--space-xl) * 13);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - var(--space-xl) * 6.5));
    }
}

.tools-track:hover {
    animation-play-state: paused;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    opacity: 0.9;
    filter: grayscale(0);
    height: 80px;
    min-width: 140px;
    flex-shrink: 0;
}

.tool-item:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.05);
}

.tool-item img {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.tool-item:hover img {
    transform: scale(1.05);
}

/* Responsive design for tools carousel */
@media (max-width: 768px) {
    .tools-track {
        gap: var(--space-lg);
        animation: scroll 25s linear infinite;
    }
    
    .tool-item {
        height: 70px;
        min-width: 120px;
        padding: var(--space-sm);
    }
    
    .tool-item img {
        max-width: 100px;
        max-height: 32px;
    }
}

@media (max-width: 480px) {
    .tools-track {
        gap: var(--space-md);
        animation: scroll 20s linear infinite;
    }
    
    .tool-item {
        height: 60px;
        min-width: 100px;
        padding: var(--space-xs);
    }
    
    .tool-item img {
        max-width: 80px;
        max-height: 28px;
    }
}

/* ==========================================================================
   Demo Section
   ========================================================================== */

.demo {
    padding: var(--space-lg) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* ==========================================================================
   Demo Carousel Styles
   ========================================================================== */

.demo-carousel {
    position: relative;
    margin-top: var(--space-md);
}

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 var(--space-sm);
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--transition-base);
    color: var(--color-text);
}

.carousel-arrow:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

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

.carousel-arrow:disabled:hover {
    background: white;
    color: var(--color-text);
    transform: none;
}

/* Carousel Viewport & Track */
.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
    contain: inline-size;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide > * {
    max-width: 100%;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
}

/* Carousel Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.carousel-dot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
}

.carousel-dot:hover {
    background: white;
    border-color: rgba(99, 102, 241, 0.3);
}

.carousel-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.dot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-icon svg {
    width: 16px;
    height: 16px;
}

.dot-label {
    font-size: 0.85rem;
}

/* Legacy demo-tabs (kept for backwards compatibility) */
.demo-tabs {
    display: none;
}

.demo-tab.active {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.demo-tab .tab-icon {
    display: flex;
    opacity: 0.7;
}

.demo-tab.active .tab-icon {
    opacity: 1;
}

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

.demo-content {
    position: relative;
}

.demo-cta {
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
}

.demo-cta-note {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.demo-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.demo-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.demo-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.demo-window.glass-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hide macOS window dots for cleaner look */
.window-dots {
    display: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.window-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.window-content {
    padding: var(--space-lg);
    color: white;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Whitespace Visualizer Demo */
.viz-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-md);
    min-height: 350px;
}

.viz-sidebar {
    border-right: 1px solid var(--glass-dark-border);
    padding-right: var(--space-lg);
}

.viz-filter {
    margin-bottom: var(--space-lg);
}

.filter-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-xs);
}

.filter-options {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.viz-accounts {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.account-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.account-item:hover,
.account-item.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

.account-name {
    font-size: 0.85rem;
    color: white;
}

.account-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.viz-main {
    display: flex;
    flex-direction: column;
}

.viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.viz-header h3 {
    font-size: 1rem;
    color: white;
}

.viz-legend {
    display: flex;
    gap: var(--space-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-dot.adopted { background: #28c840; }
.legend-dot.opportunity { background: var(--color-primary); }
.legend-dot.none { background: rgba(255, 255, 255, 0.2); }

.viz-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.viz-product {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.viz-product.highlight {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.product-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.bar-fill.adopted { background: #28c840; }
.bar-fill.opportunity { background: var(--gradient-primary); }
.bar-fill.none { background: rgba(255, 255, 255, 0.2); }

.product-status {
    font-size: 0.75rem;
    text-align: right;
}

.product-status.adopted { color: #28c840; }
.product-status.opportunity { color: var(--color-primary); }
.product-status.none { color: rgba(255, 255, 255, 0.4); }

.viz-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-dark-border);
}

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

.summary-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-xs);
}

.summary-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Account Health Demo */
.health-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    min-height: 350px;
}

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

.health-score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
}

.health-score-ring svg {
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.ring-fill {
    stroke: url(#gradient);
    stroke: var(--color-primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

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

.score-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

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

.breakdown-item {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.breakdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.breakdown-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.breakdown-fill.warning {
    background: #f59e0b;
}

.breakdown-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: right;
}

.breakdown-value.warning {
    color: #f59e0b;
}

.health-accounts h4 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
}

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

.health-account {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid;
}

.health-account.at-risk {
    border-color: #ef4444;
}

.health-account.warning {
    border-color: #f59e0b;
}

.account-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.health-account.at-risk .account-indicator { background: #ef4444; }
.health-account.warning .account-indicator { background: #f59e0b; }

.account-info {
    flex: 1;
}

.account-info .account-name {
    display: block;
    font-size: 0.85rem;
}

.account-issue {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.account-score {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.health-account.at-risk .account-score { color: #ef4444; }
.health-account.warning .account-score { color: #f59e0b; }

/* ROI Calculator Demo */
.calc-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
    overflow: hidden;
}

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

.calc-input-group label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
}

.calc-slider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.calc-slider input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    appearance: none;
    cursor: pointer;
}

.calc-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.slider-value {
    min-width: 60px;
    font-family: var(--font-display);
    font-weight: 600;
    color: white;
    text-align: right;
}

.calc-number {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-sm);
}

.number-prefix {
    color: rgba(255, 255, 255, 0.4);
}

.calc-number input {
    flex: 1;
    background: none;
    border: none;
    padding: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    outline: none;
}

.calc-input-group select {
    width: 100%;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    outline: none;
}

.calc-input-group select option {
    background: var(--glass-dark-bg);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    min-width: 0; /* Prevent grid blowout */
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ROI Chart */
.calc-chart-container {
    margin-bottom: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-chart-container canvas {
    width: 100% !important;
    height: 160px !important;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.value {
    background: #a855f7;
}

.legend-dot.investment {
    background: #f472b6;
}

.legend-dot.breakeven {
    background: #22c55e;
}

.calc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.calc-metrics .calc-total {
    grid-column: span 2;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-result-item:last-of-type {
    border-bottom: none;
}

.calc-result-item.highlight {
    padding: var(--space-md);
    margin: var(--space-sm) 0;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
}

.calc-results .result-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.calc-results .result-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.calc-total {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.total-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-xs);
}

.total-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Work-back Planner Demo */
.workback-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    min-height: 400px;
}

.workback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workback-info h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: var(--space-sm);
}

.workback-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item svg {
    opacity: 0.6;
}

.meta-item.status {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.meta-item.status.on-track {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.meta-item.status.at-risk {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.workback-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.progress-ring {
    position: relative;
    width: 70px;
    height: 70px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring .ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring .ring-fill {
    stroke: var(--color-primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.progress-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workback-timeline {
    flex: 1;
}

/* Gantt Chart */
.gantt-chart {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.gantt-header {
    margin-left: 80px;
    margin-bottom: var(--space-xs);
}

.gantt-months {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.gantt-month {
    flex: 1;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gantt-month:nth-child(1) { flex: 4; }
.gantt-month:nth-child(2) { flex: 4; }
.gantt-month:nth-child(3) { flex: 2; }

.gantt-weeks {
    display: flex;
}

.gantt-weeks span {
    flex: 1;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.gantt-body {
    position: relative;
}

.gantt-row {
    display: flex;
    align-items: center;
    height: 28px;
    margin-bottom: 4px;
}

.gantt-label {
    width: 80px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    padding-right: var(--space-sm);
    flex-shrink: 0;
}

.gantt-track {
    flex: 1;
    height: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gantt-bar {
    position: absolute;
    top: 2px;
    height: 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.gantt-bar.completed {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.gantt-bar.in-progress {
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    animation: ganttPulse 2s ease-in-out infinite;
}

.gantt-bar.upcoming {
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.gantt-bar.milestone {
    background: linear-gradient(90deg, #f472b6, #ec4899);
    border-radius: 3px;
}

@keyframes ganttPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.gantt-today {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    left: calc(80px + 45%);
    pointer-events: none;
}

.gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
}

.gantt-today-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    white-space: nowrap;
}

.gantt-row:hover .gantt-bar {
    transform: scaleY(1.2);
    filter: brightness(1.1);
}

.timeline-track {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.timeline-today {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.today-marker {
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.today-label {
    margin-top: var(--space-xs);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.timeline-phase {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.timeline-phase:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-phase.completed {
    border-color: rgba(34, 197, 94, 0.3);
}

.timeline-phase.in-progress {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

.phase-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.timeline-phase.completed .phase-marker {
    background: #22c55e;
    color: white;
}

.timeline-phase.in-progress .phase-marker {
    background: var(--gradient-primary);
    color: white;
}

.timeline-phase.upcoming .phase-marker {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.phase-number {
    font-family: var(--font-display);
}

.phase-content .phase-date {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.phase-content h4 {
    font-size: 0.85rem;
    color: white;
    margin-bottom: var(--space-xs);
}

.phase-tasks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-tasks li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.phase-tasks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.phase-tasks li.completed {
    color: rgba(255, 255, 255, 0.7);
}

.phase-tasks li.completed::before {
    background: #22c55e;
}

.phase-tasks li.in-progress {
    color: var(--color-primary);
}

.phase-tasks li.in-progress::before {
    background: var(--color-primary);
}

.workback-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-item.urgent {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.action-item.urgent .action-icon {
    color: #f59e0b;
}

.action-text {
    flex: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.action-due {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.action-item.urgent .action-due {
    color: #f59e0b;
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */

.comparison {
    padding: var(--space-3xl) 0;
}

.comparison .container {
    max-width: 1600px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: stretch;
}

.comparison-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--color-bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.comparison-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comparison-card.old-way {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.1);
}

.comparison-card.glue-way {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

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

.comparison-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.old-way .comparison-label {
    color: #ef4444;
}

.old-way-visual,
.glue-way-visual {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.old-way-visual {
    background: white;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.spreadsheet-mess {
    font-family: monospace;
    font-size: 0.75rem;
}

.spreadsheet-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e5e7eb;
}

.spreadsheet-row.header {
    background: #f3f4f6;
}

.spreadsheet-row.header span {
    background: #f3f4f6;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.spreadsheet-row span {
    padding: var(--space-xs);
    background: white;
    color: var(--color-text);
}

.spreadsheet-row span.error {
    background: #fef2f2;
    color: #ef4444;
}

.glue-way-visual {
    background: var(--glass-dark-bg);
    border: 1px solid var(--glass-dark-border);
}

.glue-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

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

.glue-metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glue-metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.glue-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.glue-bar {
    width: 20px;
    height: var(--height);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px 4px 0 0;
    transition: var(--transition-base);
}

.glue-bar.active {
    background: var(--gradient-primary);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.icon-x {
    color: #ef4444;
    font-weight: bold;
}

.icon-check {
    color: #22c55e;
    font-weight: bold;
}

.comparison-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.divider-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(180deg, transparent, var(--color-text-muted), transparent);
}

.divider-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: var(--space-sm);
    background: var(--color-bg);
    border-radius: var(--radius-full);
}

/* Comparison Carousel Dots (mobile only) */
.comparison-dots {
    display: none;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.comparison-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.comparison-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.comparison-dot:hover {
    background: var(--color-primary);
}

/* Section Subheadline */
.section-subheadline {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: var(--space-md) auto 0;
    line-height: 1.6;
}

/* ==========================================================================
   Enhanced Comparison Section - Chaos & Clarity
   ========================================================================== */

/* Chaos Container - Floating Error Elements */
.chaos-container {
    position: relative;
    min-height: 140px;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    overflow: hidden;
}

.chaos-element {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: chaos-float 4s ease-in-out infinite;
    animation-delay: var(--delay);
    font-size: 0.75rem;
    white-space: nowrap;
}

.chaos-element.error-popup {
    background: white;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 6px 10px;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.chaos-element .error-icon {
    margin-right: 4px;
    font-weight: bold;
}

.chaos-element.tab-float {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px 4px 0 0;
    padding: 4px 10px;
    color: #6b7280;
    font-family: monospace;
    font-size: 0.65rem;
}

@keyframes chaos-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translate(5px, -8px) rotate(2deg);
        opacity: 1;
    }
    50% {
        transform: translate(-3px, 5px) rotate(-1deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(8px, 3px) rotate(1deg);
        opacity: 1;
    }
}

/* Pain Metrics */
.pain-metrics {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.pain-metric {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    flex: 1;
}

.pain-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    color: #64748b;
}

.pain-text {
    display: flex;
    flex-direction: column;
}

.pain-stat {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
}

.pain-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

/* Pain Metrics - Mobile Stack */
@media (max-width: 480px) {
    .pain-metrics {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Enhanced Comparison List with Icons */
.comparison-list.enhanced {
    margin-bottom: var(--space-lg);
}

.comparison-list.enhanced li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-list.enhanced li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pain-list-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    color: #94a3b8;
}

.comparison-list.enhanced li div {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.comparison-list.enhanced li strong {
    color: #475569;
    font-weight: 600;
}

/* Old Timeline Visual */
.old-timeline {
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.timeline-bar {
    display: flex;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.timeline-segment {
    width: var(--width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-right: 2px solid white;
    text-align: center;
}

.timeline-segment.waiting {
    background: #f1f5f9;
}

.timeline-segment span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
}

.timeline-segment small {
    font-size: 0.65rem;
    color: #64748b;
    opacity: 0.8;
}

/* ==========================================================================
   Enhanced Gloo Way Card - Dynamic & Futuristic
   ========================================================================== */

/* Animated gradient background for Gloo card */
.comparison-card.glue-way {
    position: relative;
    overflow: hidden;
}

.comparison-card.glue-way::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(99, 102, 241, 0.03) 40%,
        rgba(236, 72, 153, 0.03) 50%,
        transparent 60%
    );
    animation: gradient-shift 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradient-shift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

/* Enhanced Glue Preview */
.glue-preview.enhanced {
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

/* Scan line effect */
.glue-preview.enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.glue-preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-dot:first-child { background: #ef4444; }
.preview-dot:nth-child(2) { background: #eab308; }
.preview-dot:nth-child(3) { background: #22c55e; }

.preview-title {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(167, 139, 250, 0.8);
    letter-spacing: 0.05em;
}

.glue-preview-content {
    padding: var(--space-md);
    position: relative;
    z-index: 1;
}

.glue-metric-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.glue-metric-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.glue-metric-column .glue-metric {
    margin-bottom: var(--space-sm);
}

.glue-metric-column .glue-chart {
    flex: 1;
    min-height: 50px;
    justify-content: center;
}

.glue-metric-column .sparkline-container {
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glue-metric-row .glue-metric {
    flex: 1;
}

/* Glowing metric values */
.glue-preview .glue-metric-value {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: metric-pulse 2s ease-in-out infinite;
}

@keyframes metric-pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 0 40px rgba(236, 72, 153, 0.3);
    }
}

.glue-metric-value.success {
    color: #22c55e;
    -webkit-text-fill-color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* Sparkline Trend Chart */
.sparkline-container {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
}

.sparkline {
    width: 100%;
    height: 40px;
    display: block;
}

.sparkline-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: sparkline-draw 2s ease-out forwards;
}

@keyframes sparkline-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.sparkline-fill {
    opacity: 0;
    animation: sparkline-fade 1s ease-out 1s forwards;
}

@keyframes sparkline-fade {
    to {
        opacity: 1;
    }
}

.sparkline-label {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Animated Chart Bars */
.glue-preview .glue-chart {
    position: relative;
}

.glue-preview .glue-bar {
    animation: bar-grow 1s ease-out forwards;
    animation-delay: calc(var(--bar-index, 0) * 0.1s);
    transform-origin: bottom;
    position: relative;
}

.glue-preview .glue-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes bar-grow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.glue-preview .glue-bar.active {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Success Metrics Row - Futuristic */
.success-metrics {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.success-metric {
    flex: 1;
    text-align: center;
    padding: var(--space-sm);
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.success-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: metric-sweep 3s ease-in-out infinite;
}

@keyframes metric-sweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.success-metric:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.success-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.success-label {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

/* Gloo List Icons */
.gloo-list li strong {
    color: var(--color-primary);
}

.success-list-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.gloo-list li:hover .success-list-icon {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    transform: scale(1.05);
}

/* Frustrated Quote - Old Way */
.frustrated-quote {
    margin-top: auto;
    padding: var(--space-md);
    background: rgba(100, 116, 139, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid #94a3b8;
    position: relative;
}

.frustrated-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    font-family: serif;
    color: rgba(100, 116, 139, 0.15);
    line-height: 1;
}

.frustrated-quote blockquote {
    font-size: 0.95rem;
    font-style: italic;
    color: #475569;
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.frustrated-quote cite {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: normal;
    position: relative;
    z-index: 1;
}

/* Social Proof Quote - Futuristic */
.social-proof-quote {
    margin-top: auto;
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--color-primary), var(--color-accent)) 1;
    position: relative;
    overflow: hidden;
}

.social-proof-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    font-family: serif;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
}

.social-proof-quote blockquote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.social-proof-quote cite {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-style: normal;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Use Case Teaser
   ========================================================================== */

.use-case-teaser {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.teaser-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
}

.teaser-content {
    flex: 1;
}

.teaser-before,
.teaser-after {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.teaser-before {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.teaser-after {
    color: var(--color-text);
}

.teaser-before strong,
.teaser-after strong {
    font-weight: 600;
}

.teaser-before strong {
    color: #dc2626;
}

.teaser-after strong {
    color: var(--color-primary);
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

/* ==========================================================================
   Process Modern - Clean Card Design
   ========================================================================== */

.process-modern {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

/* Process Card */
.process-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    padding-bottom: 70px;
    width: 240px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .process-card:not(.visible) {
        opacity: 0;
        transform: translateY(30px);
    }

    .process-card {
        will-change: opacity, transform;
    }
}

.process-card.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Staggered delays */
.process-card[data-step="1"] { transition-delay: 0s; }
.process-card[data-step="2"] { transition-delay: 0.15s; }
.process-card[data-step="3"] { transition-delay: 0.3s; }
.process-card[data-step="4"] { transition-delay: 0.45s; }

.process-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card:hover::before {
    opacity: 1;
}

/* Card Header */
.process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.process-week {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
}

.process-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(99, 102, 241, 0.15);
    transition: color 0.3s ease;
}

.process-card:hover .process-number {
    color: rgba(99, 102, 241, 0.25);
}

/* Card Body */
.process-card-body {
    flex: 1;
}

.process-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    transition: color 0.3s ease;
}

.process-card:hover .process-card-body h3 {
    color: var(--color-primary);
}

.process-card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    padding-right: 50px;
}

/* Card Icon */
.process-card-icon {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    transition: all 0.4s ease;
}

.process-card:hover .process-card-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

/* Card Glow Effect */
.process-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.process-card:hover .process-card-glow {
    transform: translate(-50%, -50%) scale(1);
}

/* Ongoing Card Special Style */
.process-card.ongoing {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.03) 0%,
        rgba(139, 92, 246, 0.03) 100%
    );
    border-style: dashed;
}

.process-card.ongoing:hover {
    border-style: solid;
}

.process-card.ongoing .process-week {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
}

.process-card.ongoing .process-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

/* Connector Arrow */
.process-connector {
    display: flex;
    align-items: center;
    align-self: center;
    padding: 0 var(--space-xs);
    transition: all 0.4s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .process-connector:not(.visible) {
        opacity: 0;
        transform: scaleX(0);
    }
}

.process-connector.visible {
    opacity: 1;
    transform: scaleX(1);
}

.process-connector svg {
    overflow: visible;
}

.process-connector path {
    stroke-dasharray: 4 4;
    animation: dashMove 1s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -8;
    }
}

/* Responsive - Tablet */
@media (max-width: 1100px) {
    .process-modern {
        gap: var(--space-sm);
    }

    .process-card {
        width: 200px;
        padding: var(--space-md);
        padding-bottom: 60px;
    }

    .process-number {
        font-size: 2rem;
    }

    .process-card-body h3 {
        font-size: 1.1rem;
    }

    .process-connector {
        padding: 0;
    }

    .process-connector svg {
        width: 24px;
    }
}

/* Responsive - Mobile */
@media (max-width: 900px) {
    .process-modern {
        flex-direction: column;
        gap: var(--space-md);
    }

    .process-card {
        width: 100%;
        max-width: 400px;
        padding: var(--space-lg);
        padding-bottom: 70px;
    }

    .process-connector {
        transform: rotate(90deg);
        padding: var(--space-xs) 0;
    }

    .process-connector.visible {
        transform: rotate(90deg) scaleX(1);
    }

    .process-card-icon {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: var(--space-md);
    }

    /* Disable hover on touch */
    .process-card:hover {
        transform: none;
    }

    .process-card:hover .process-card-icon {
        transform: none;
        background: var(--gradient-subtle);
        color: var(--color-primary);
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .process-card {
        padding: var(--space-md);
    }

    .process-number {
        font-size: 1.75rem;
    }

    .process-card-body h3 {
        font-size: 1rem;
    }

    .process-card-body p {
        font-size: 0.85rem;
    }

    .process-card-icon {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   Process Clean - Minimal Centered Design (Reference Style)
   ========================================================================== */

.process-modern.process-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
}

/* Icon Badge */
.process-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.process-icon-badge svg {
    width: 24px;
    height: 24px;
}

.process-item:hover .process-icon-badge {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* Typography */
.process-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.process-item:hover h3 {
    color: var(--color-primary);
}

.process-item p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 260px;
}

/* Animation for process items */
@media (prefers-reduced-motion: no-preference) {
    .process-item {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .process-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .process-item[data-step="1"] { transition-delay: 0s; }
    .process-item[data-step="2"] { transition-delay: 0.1s; }
    .process-item[data-step="3"] { transition-delay: 0.2s; }
    .process-item[data-step="4"] { transition-delay: 0.3s; }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .process-modern.process-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .process-modern.process-clean {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .process-item {
        padding: var(--space-md);
    }

    .process-icon-badge {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    .process-item h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .process-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Case Study Section
   ========================================================================== */

.case-study {
    padding: var(--space-3xl) 0;
}

.case-study-content {
    margin-top: var(--space-2xl);
}

.case-quote {
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(250,250,255,0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
}

/* Decorative gradient accent - thicker bar */
.case-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px 0 0 4px;
}

/* Subtle corner glow */
.case-quote::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.quote-mark {
    position: absolute;
    top: var(--space-md);
    right: var(--space-xl);
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.12;
    z-index: 1;
}

.case-quote blockquote {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    padding-right: var(--space-2xl);
    font-weight: 400;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.author-company {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.case-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.case-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.case-label.light {
    color: rgba(255, 255, 255, 0.6);
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.case-card p {
    margin-bottom: var(--space-md);
}

.case-list {
    list-style: none;
}

.case-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.case-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.case-results {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    color: white;
}

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

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

.case-result-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xs);
}

.case-result-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   AI Tools Orbital Section
   ========================================================================== */

.ai-network-section {
    padding: var(--space-3xl) 0;
    background: #ffffff;
    overflow: hidden;
}

/* Split layout - orbit left, text right */
.ai-stack-layout {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.ai-stack-visual {
    flex: 0 0 500px;
}

.ai-stack-content {
    flex: 1;
}

.ai-stack-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-top: var(--space-sm);
}

.ai-stack-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: var(--space-md);
}

.ai-stack-features {
    margin-top: var(--space-lg);
    list-style: none;
    padding: 0;
}

.ai-stack-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.ai-stack-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.orbit-container {
    position: relative;
    width: 500px;
    height: 500px;
}

/* Center hub - Gloo logo */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f5ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 60px rgba(124, 58, 237, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.08);
    z-index: 10;
    border: 2px solid rgba(124, 58, 237, 0.1);
}

.center-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: center-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes center-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.center-logo {
    width: 65px;
    height: auto;
}

/* Orbital ring - rotates anti-clockwise */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    border: 2px dashed rgba(124, 58, 237, 0.12);
    border-radius: 50%;
    animation: orbit-spin 45s linear infinite reverse;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pause orbit on hover */
.orbit-container:hover .orbit-ring {
    animation-play-state: paused;
}

.orbit-container:hover .orbit-card {
    animation-play-state: paused;
}

/* Orbit items - positioned by angle on the ring */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--angle)) translateX(200px);
}

/* Counter-rotate the card to keep it upright */
.orbit-card {
    position: absolute;
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle)));
    animation: counter-spin 45s linear infinite;
    width: 90px;
    height: 100px;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(124, 58, 237, 0.06);
}

@keyframes counter-spin {
    from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))); }
    to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle) + 360deg)); }
}

.orbit-card:hover {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))) scale(1.15) !important;
    box-shadow:
        0 15px 50px rgba(124, 58, 237, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.orbit-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.orbit-card:hover img {
    transform: scale(1.1);
}

.orbit-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 6px;
    line-height: 1;
}

.orbit-desc {
    font-size: 0.6rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
}

/* ==========================================================================
   Results Showcase - Case Study Section
   ========================================================================== */

.results-showcase {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.results-layout {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
}

/* Tool Mockup - Left side */
.tool-mockup {
    flex: 0 0 480px;
}

.mockup-window {
    background: white;
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(124, 58, 237, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.mockup-body {
    padding: 24px;
}

.mock-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.mock-section-label:first-child {
    margin-top: 0;
}

.mock-field {
    height: 38px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e8e8e8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: shimmer 2s ease-in-out infinite;
}

.mock-field.short {
    width: 65%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mock-checkbox-group {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.mock-checkbox {
    width: 80px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.mock-checkbox.checked {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(192, 38, 211, 0.15) 100%);
    border: 2px solid rgba(124, 58, 237, 0.3);
}

.mock-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.mock-progress {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.mock-progress-bar {
    height: 100%;
    width: 78%;
    background: var(--gradient-primary);
    border-radius: 5px;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Results Content - Right side */
.results-content {
    flex: 1;
}

.results-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.results-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.results-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.results-footnote {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-style: italic;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Workflow Timeline */
.workflow-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 var(--space-sm);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    border: 2px solid rgba(124, 58, 237, 0.1);
    animation: step-activate 8s ease-in-out infinite;
}

/* Sequential activation - each step lights up in order */
.workflow-step:nth-child(1) .step-icon { animation-delay: 0s; }
.workflow-step:nth-child(2) .step-icon { animation-delay: 2s; }
.workflow-step:nth-child(3) .step-icon { animation-delay: 4s; }
.workflow-step:nth-child(4) .step-icon { animation-delay: 6s; }

@keyframes step-activate {
    0%, 5% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    }
    10%, 20% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.5), 0 0 60px rgba(192, 38, 211, 0.3);
    }
    30%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    }
}

.step-icon svg {
    stroke: url(#icon-gradient);
}

/* Gradient for SVG icons */
.workflow-timeline {
    --icon-gradient-start: #7c3aed;
    --icon-gradient-end: #c026d3;
}

.step-icon svg {
    stroke: var(--color-primary);
}

.step-icon svg path,
.step-icon svg circle {
    stroke: url(#workflow-gradient);
}

/* Fallback gradient effect using filter */
.step-icon svg {
    filter: drop-shadow(0 0 0 transparent);
    stroke: #7c3aed;
}

.step-icon {
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
    border: 2px solid transparent;
}

.step-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.step-connector {
    position: absolute;
    top: 35px;
    left: calc(50% + 35px);
    width: calc(100% - 70px);
    height: 3px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(192, 38, 211, 0.2));
    z-index: 1;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    animation: connector-flow 8s ease-in-out infinite;
}

/* Connectors flow after their corresponding circle activates */
.workflow-step:nth-child(1) .step-connector::after { animation-delay: 0.8s; }
.workflow-step:nth-child(2) .step-connector::after { animation-delay: 2.8s; }
.workflow-step:nth-child(3) .step-connector::after { animation-delay: 4.8s; }

@keyframes connector-flow {
    0%, 5% { left: -100%; opacity: 0; }
    8% { opacity: 1; }
    15%, 20% { left: 100%; opacity: 1; }
    25%, 100% { left: 100%; opacity: 0; }
}

.workflow-step:last-child .step-connector {
    display: none;
}

.workflow-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.workflow-step:hover h4 {
    opacity: 1;
}

.workflow-step p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   Solutions Grid Section - Stripe Style
   ========================================================================== */

.solutions-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
    overflow: hidden;
}

.solutions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.solutions-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.solutions-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.solutions-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solutions-bullets li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 1rem;
    color: var(--color-text);
}

.bullet-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Solutions Grid Wrapper */
.solutions-grid-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
}

/* Solutions Grid */
.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 2;
}

.grid-row {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

/* Stagger the rows */
.grid-row.row-2,
.grid-row.row-4 {
    margin-left: 0;
    padding-left: 36px;
}

/* Solution Cards */
.solution-card {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card.placeholder {
    background: transparent;
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.solution-card.placeholder .card-icon {
    display: none;
}

/* Card Icon */
.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Label */
.card-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active state animation - cycles through each service (8 services, 16s cycle) */
.solution-card[data-service] {
    animation: service-cycle 16s ease-in-out infinite;
}

.solution-card[data-service="apps"] { animation-delay: 0s; }
.solution-card[data-service="dashboards"] { animation-delay: 2s; }
.solution-card[data-service="tools"] { animation-delay: 4s; }
.solution-card[data-service="agents"] { animation-delay: 6s; }
.solution-card[data-service="automations"] { animation-delay: 8s; }
.solution-card[data-service="calculators"] { animation-delay: 10s; }
.solution-card[data-service="workflows"] { animation-delay: 12s; }
.solution-card[data-service="integrations"] { animation-delay: 14s; }

@keyframes service-cycle {
    0%, 3% {
        background: white;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: none;
        transform: scale(1);
    }
    5%, 12.5% {
        background: white;
        border-color: transparent;
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.25), 0 0 0 2px rgba(124, 58, 237, 0.3);
        transform: scale(1.1);
    }
    15%, 100% {
        background: white;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: none;
        transform: scale(1);
    }
}

/* Icon color animation synced with card */
.solution-card[data-service] .card-icon {
    animation: icon-color 16s ease-in-out infinite;
}

.solution-card[data-service="apps"] .card-icon { animation-delay: 0s; }
.solution-card[data-service="dashboards"] .card-icon { animation-delay: 2s; }
.solution-card[data-service="tools"] .card-icon { animation-delay: 4s; }
.solution-card[data-service="agents"] .card-icon { animation-delay: 6s; }
.solution-card[data-service="automations"] .card-icon { animation-delay: 8s; }
.solution-card[data-service="calculators"] .card-icon { animation-delay: 10s; }
.solution-card[data-service="workflows"] .card-icon { animation-delay: 12s; }
.solution-card[data-service="integrations"] .card-icon { animation-delay: 14s; }

@keyframes icon-color {
    0%, 3% {
        color: #a0a0a0;
    }
    5%, 12.5% {
        color: var(--color-primary);
    }
    15%, 100% {
        color: #a0a0a0;
    }
}

/* Label visibility animation */
.solution-card[data-service] .card-label {
    animation: label-show 16s ease-in-out infinite;
}

.solution-card[data-service="apps"] .card-label { animation-delay: 0s; }
.solution-card[data-service="dashboards"] .card-label { animation-delay: 2s; }
.solution-card[data-service="tools"] .card-label { animation-delay: 4s; }
.solution-card[data-service="agents"] .card-label { animation-delay: 6s; }
.solution-card[data-service="automations"] .card-label { animation-delay: 8s; }
.solution-card[data-service="calculators"] .card-label { animation-delay: 10s; }
.solution-card[data-service="workflows"] .card-label { animation-delay: 12s; }
.solution-card[data-service="integrations"] .card-label { animation-delay: 14s; }

@keyframes label-show {
    0%, 3% {
        opacity: 0;
    }
    5%, 12.5% {
        opacity: 1;
    }
    15%, 100% {
        opacity: 0;
    }
}

/* Hover interactions */
.solution-card[data-service]:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.25), 0 0 0 2px rgba(124, 58, 237, 0.3);
    transform: scale(1.1);
    animation-play-state: paused;
}

.solution-card[data-service]:hover .card-icon {
    color: var(--color-primary);
    animation-play-state: paused;
}

.solution-card[data-service]:hover .card-label {
    opacity: 1;
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 968px) {
    .solutions-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .solutions-grid-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .solutions-section {
        padding: var(--space-2xl) 0;
    }

    .solution-card {
        width: 60px;
        height: 60px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
    }

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

    .grid-row.row-2,
    .grid-row.row-4 {
        margin-left: 20px;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.service-card {
    position: relative;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon {
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.service-card p {
    font-size: 0.9rem;
}

/* ==========================================================================
   What We Do Section - Timeline Layout
   ========================================================================== */

.what-we-do {
    padding: var(--space-xl) 0 var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
    align-items: start;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.timeline-step {
    display: flex;
    gap: var(--space-lg);
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-line {
    width: 2px;
    flex: 1;
    min-height: 60px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    margin-top: var(--space-sm);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Sticky Prototype Image */
.process-visual {
    position: sticky;
    top: 120px;
    overflow: visible;
}

.prototype-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prototype-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stacked Prototype Cards */
.prototype-stack {
    position: relative;
    padding: 40px 30px 20px 30px;
}

/* Back card - offset and rotated */
.prototype-back {
    position: absolute;
    top: 0;
    left: 50px;
    right: 0;
    transform: rotate(2deg) translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Front card - prominent */
.prototype-front {
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Hover effect - cards separate and lift */
.prototype-stack:hover .prototype-back {
    transform: rotate(5deg) translateY(-15px) translateX(10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.prototype-stack:hover .prototype-front {
    transform: translateY(5px) translateX(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22);
}

/* Swapped state - click to swap cards */
.prototype-stack.swapped .prototype-back {
    z-index: 2;
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    transform: rotate(0deg) translateY(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.prototype-stack.swapped .prototype-front {
    z-index: 1;
    transform: rotate(-2deg) translateY(-15px) translateX(30px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Hover on swapped state */
.prototype-stack.swapped:hover .prototype-back {
    transform: translateY(5px) translateX(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22);
}

.prototype-stack.swapped:hover .prototype-front {
    transform: rotate(-4deg) translateY(-25px) translateX(40px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

/* Prototype Navigation Dots */
.prototype-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-lg);
    position: relative;
    z-index: 10;
}

.prototype-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.prototype-dot:hover {
    transform: scale(1.2);
    border-color: var(--color-primary-dark, var(--color-primary));
}

.prototype-dot.active {
    background: var(--color-primary);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    padding: var(--space-3xl) 0;
}

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

.testimonial-card {
    position: relative;
    padding: var(--space-xl);
    padding-top: var(--space-2xl);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (hover: hover) {
    .testimonial-card:hover {
        transform: translateY(-4px) translateZ(0);
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    }
}

.quote-mark {
    position: absolute;
    top: var(--space-md);
    left: var(--space-lg);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    pointer-events: none;
}

.testimonial-content {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.testimonial-content p {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

.testimonial-author .author-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
}

.testimonial-author .author-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-author .author-title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Testimonial Carousel Dots */
.testimonial-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-md);
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonial-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.member-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (hover: hover) {
    .member-card:hover {
        transform: translateY(-4px) translateZ(0);
    }
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (hover: hover) {
    .member-card:hover .member-avatar {
        transform: scale(1.1);
        border-color: var(--color-primary);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
    }

    .member-card:hover .member-avatar img {
        transform: scale(1.1);
    }
}

.member-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.member-title {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.member-bio {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    padding: var(--space-3xl) 0;
}

.faq-grid {
    max-width: 800px;
    margin: var(--space-2xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.cta-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

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

.cta-content > p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.cta-trust {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Tool Library
   ========================================================================== */

.tool-library {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(99, 102, 241, 0.03) 50%, var(--color-bg) 100%);
    overflow: hidden;
}

/* Bento Grid */
.tools-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: var(--space-xl) auto 0;
    padding: 0 var(--space-lg);
}

.bento-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bento-card.featured {
    grid-column: span 2;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.bento-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.bento-card.featured:hover {
    box-shadow: 0 24px 48px rgba(99, 102, 241, 0.2);
}

.bento-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bento-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

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

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.bento-card.featured h3 {
    font-size: 1.35rem;
}

.bento-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.bento-card.featured p {
    font-size: 0.95rem;
}

/* Bento Grid Responsive */
@media (max-width: 1024px) {
    .tools-bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bento-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .tools-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .bento-card {
        padding: 1.25rem;
    }
    .bento-card.featured {
        grid-column: span 2;
        padding: 1.5rem;
    }
    .bento-icon {
        width: 40px;
        height: 40px;
    }
    .bento-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Carousel dots - hidden by default */
.carousel-dots {
    display: none;
}

@media (max-width: 480px) {
    .tools-bento-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding: 0 var(--space-md);
        margin: var(--space-xl) 0 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tools-bento-grid::-webkit-scrollbar {
        display: none;
    }
    .bento-card {
        flex: 0 0 calc(50% - 0.5rem);
        scroll-snap-align: start;
        padding: 1rem;
    }
    .bento-card.featured {
        flex: 0 0 calc(50% - 0.5rem);
        padding: 1rem;
    }
    .bento-icon {
        width: 36px;
        height: 36px;
    }
    .bento-icon svg {
        width: 18px;
        height: 18px;
    }
    .bento-card h3 {
        font-size: 0.9rem;
    }
    .bento-card.featured h3 {
        font-size: 0.95rem;
    }
    .bento-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .bento-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Carousel dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: var(--space-md);
        padding: 0 var(--space-md);
    }
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-border);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .carousel-dots .dot.active {
        background: var(--color-primary);
        width: 24px;
        border-radius: 4px;
    }
}

/* Old tool categories - hidden but kept for JS compatibility */
.tool-categories {
    display: none;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.tool-category-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tool-category-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.tool-category-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.tool-card.hidden {
    display: none;
}

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

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

.tool-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.tool-content p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.tool-tag {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 0.25rem 0.6rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Tool Card */
.featured-tool {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

/* Hide featured tool when scroll-jacking is active on desktop */
@media (min-width: 1025px) {
    .featured-tool {
        display: none;
    }
}

.featured-tool-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.featured-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.featured-tool-content h3 {
    font-size: 1.5rem;
    margin: 0;
}

.featured-tool-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.featured-tool-preview {
    display: flex;
    justify-content: center;
}

.preview-mock {
    width: 100%;
    max-width: 320px;
    background: var(--glass-dark-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mock-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #ffbd2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-content {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 16px;
}

.mock-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    height: 120px;
}

.mock-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.mock-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: var(--color-success);
    border-radius: var(--radius-sm);
}

.mock-bar.opportunity::after {
    background: var(--gradient-primary);
}

.tool-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

.tool-cta p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.tool-cta p strong {
    color: var(--color-primary);
}

/* Carousel Mobile Responsive */
@media (max-width: 768px) {
    .tools-carousel {
        margin: var(--space-lg) 0;
    }

    .tool-chip {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .chip-icon {
        width: 24px;
        height: 24px;
    }

    .chip-icon svg {
        width: 12px;
        height: 12px;
    }

    .carousel-row[data-direction="left"] .carousel-track,
    .carousel-row[data-direction="right"] .carousel-track {
        animation-duration: 25s;
    }

    .featured-tool {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .featured-tool-preview {
        order: -1;
    }

    .preview-mock {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .tool-chip {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }

    .chip-icon {
        width: 22px;
        height: 22px;
    }

    .tool-cta p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-lg);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-gradient {
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    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: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.footer-nav {
    display: flex;
    gap: var(--space-2xl);
}

.footer-nav-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-nav-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: var(--space-xs) 0;
    transition: all var(--transition-fast);
}

.footer-nav-col a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Only animate if user hasn't requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
    [data-animate]:not(.animated) {
        opacity: 0;
        transform: translateY(30px);
    }

    [data-animate] {
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: opacity, transform;
    }

    [data-animate].animated {
        opacity: 1;
        transform: translateY(0);
        will-change: auto;
    }
}

/* Reduced motion - show everything immediately */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   GSAP Animations (Retool-inspired)
   ========================================================================== */

/* Typewriter Effect */
.typewriter-cursor {
    display: inline-block;
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--color-primary);
    font-weight: 300;
    margin-left: 2px;
}

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

.typewriter-text {
    display: inline-block;
    min-width: 200px;
}

/* Hero Mockup Parallax */
.hero-visual {
    /* perspective removed - conflicts with cube-demo.html's perspective */
}

.hero-product-preview {
    transform-style: preserve-3d;
    will-change: transform;
}

/* GSAP Scroll Animation Variants */
.gsap-loaded [data-scroll="fade-left"],
.gsap-loaded [data-scroll="fade-right"],
.gsap-loaded [data-scroll="fade-up"],
.gsap-loaded [data-scroll="scale-in"] {
    opacity: 0;
}

/* Sticky Scroll Section - Progress indicator only, no pinning */

/* Sticky Progress Indicator */
.sticky-progress {
    position: fixed;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    z-index: 50;
}

@media (max-width: 1024px) {
    .sticky-progress {
        display: none;
    }
}

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

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-dot.active {
    background: var(--color-primary);
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.progress-line {
    width: 2px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin: var(--space-xs) 0;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    transition: height 0.1s linear;
    border-radius: 1px;
}

/* Enhanced Service Card Hover */
.service-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
                0 8px 16px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Enhanced Testimonial Card */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.1);
}

/* Process Card Connector Animation */
.process-connector {
    transform-origin: left center;
}

.process-connector svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s ease;
}

.process-connector.visible svg path {
    stroke-dashoffset: 0;
}

.process-connector svg polygon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.6s;
}

.process-connector.visible svg polygon {
    opacity: 1;
    transform: translateX(0);
}

/* Process Card Ongoing Pulse */
.process-card.ongoing.visible {
    animation: ongoingPulse 3s ease-in-out infinite;
}

@keyframes ongoingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

/* FAQ Icon Rotation */
.faq-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* CTA Grid Pulse */
.cta-grid-pattern {
    animation: gridPulse 4s ease-in-out infinite;
}

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

/* Navigation Hide/Show */
.nav {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tool Chip Hover Enhancement */
.tool-chip {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

/* Demo Panel Transitions */
.demo-panel {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-panel:not(.active) {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* Reduced motion - disable all GSAP animations */
@media (prefers-reduced-motion: reduce) {
    .typewriter-cursor {
        animation: none;
    }

    .sticky-progress {
        display: none !important;
    }

    .process-card.ongoing.visible {
        animation: none;
    }

    .cta-grid-pattern {
        animation: none;
    }
}

/* ==========================================================================
   Mobile Section Dots
   ========================================================================== */

.mobile-section-dots {
    display: none;
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    flex-direction: column;
    gap: 12px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
}

.section-dot.active {
    background: var(--gradient-primary);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.section-dot:hover:not(.active) {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .mobile-section-dots {
        display: flex;
        right: 6px;
        padding: 8px 6px;
        gap: 6px;
    }

    .section-dot {
        width: 6px;
        height: 6px;
    }

    .section-dot.active {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================================
   Easter Egg - Lou the Blob Mascot
   ========================================================================== */

/* Hidden Lou blob that appears on hover */
.lou-blob {
    position: absolute;
    width: 28px;
    height: 28px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10;
    top: -4px;
    right: 2px;
}

.lou-blob .lou-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.3));
}

/* Lou appears on parent hover */
.has-lou:hover .lou-blob {
    opacity: 1;
    transform: scale(1);
}

/* Footer Lou - always slightly visible */
.lou-blob.lou-footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    top: auto;
    opacity: 0.5;
    transform: scale(0.8);
}

.footer-brand:hover .lou-blob.lou-footer {
    opacity: 1;
    transform: scale(1);
}

/* Badge Lou - peeking from the right */
.lou-blob.lou-badge {
    top: 50%;
    right: -8px;
    transform: translateY(-50%) scale(0.5);
    width: 22px;
    height: 22px;
}

.hero-badge.has-lou {
    position: relative;
}

.hero-badge.has-lou:hover .lou-blob.lou-badge {
    transform: translateY(-50%) scale(1);
}

/* Special bounce animation on hover */
.has-lou:hover .lou-blob {
    animation: louBounce 0.6s ease-in-out 0.2s;
}

@keyframes louBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.15) translateY(-3px); }
    50% { transform: scale(0.95) translateY(1px); }
    70% { transform: scale(1.05) translateY(-1px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

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

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

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

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

    .viz-layout {
        grid-template-columns: 1fr;
    }

    .viz-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-dark-border);
        padding-right: 0;
        padding-bottom: var(--space-lg);
    }

    .health-layout {
        grid-template-columns: 1fr;
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .comparison-grid::-webkit-scrollbar {
        display: none;
    }

    .comparison-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .comparison-divider {
        display: none;
    }

    .comparison-dots {
        display: flex;
    }

    .process-layout {
        grid-template-columns: 1fr;
    }

    .process-visual {
        position: relative;
        top: 0;
        order: -1;
        margin-bottom: var(--space-xl);
    }

    .comparison-divider {
        flex-direction: row;
        padding: var(--space-md) 0;
    }

    .divider-line {
        width: auto;
        height: 1px;
        flex: 1;
    }

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

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

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

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

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

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

@media (max-width: 768px) {
    /* Mobile Navigation Adjustments */
    .nav {
        padding: var(--space-xs) var(--space-sm);
    }

    .nav.scrolled {
        padding: var(--space-xs) var(--space-sm);
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav.scrolled .nav-container {
        padding: 0.375rem 1rem;
        border-radius: var(--radius-lg);
        margin: 0 0.25rem;
    }

    .logo-img {
        height: 70px;
    }

    .nav.scrolled .logo-img {
        height: 52px;
    }

    /* Mobile Navigation with Backdrop */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: var(--space-md);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-2xl);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-links.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.25rem;
        font-weight: 500;
        padding: var(--space-sm) 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        transition: background 0.2s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(99, 102, 241, 0.08);
    }

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

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

    /* Hero Mobile Adjustments */
    .hero {
        padding-top: calc(60px + var(--space-2xl));
        min-height: auto;
        padding-bottom: var(--space-xl);
    }

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .hero-stat {
        flex: 1;
        min-width: 90px;
        text-align: center;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    /* Hero Headline - prevent overflow */
    .hero h1,
    #hero-heading {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        word-wrap: break-word;
    }

    .hero-line {
        display: block;
    }

    /* Typewriter text - prevent overflow */
    .typewriter-text {
        min-width: auto !important;
        display: inline;
    }

    /* Hero Product Preview Mobile */
    .preview-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .preview-sidebar {
        display: none;
    }

    .heatmap-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .heatmap-cell {
        min-height: 30px;
    }

    /* Hero Cube - Hide on mobile */
    .hero-visual {
        display: none;
    }

    /* Testimonials Carousel */
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .testimonial-dots {
        display: flex;
    }

    /* Demo Section Mobile */

    /* Carousel Mobile Styles */
    .carousel-nav {
        padding: 0;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        position: absolute;
    }

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

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

    .carousel-dots {
        gap: var(--space-xs);
    }

    .carousel-dot {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .dot-label {
        display: none;
    }

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

    /* Legacy demo-tabs hidden on mobile too */
    .demo-tabs {
        display: none;
    }

    /* Demo Window Mobile */
    .window-content {
        padding: var(--space-md);
    }

    .viz-layout {
        min-height: auto;
    }

    .viz-sidebar {
        padding-bottom: var(--space-md);
    }

    .viz-filter {
        margin-bottom: var(--space-md);
    }

    .filter-options {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        row-gap: var(--space-xs);
    }

    .viz-accounts {
        max-height: 150px;
        overflow-y: auto;
    }

    .viz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .viz-legend {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .viz-product {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
        padding: var(--space-md);
    }

    .product-status {
        text-align: left;
        font-size: 0.8rem;
    }

    .viz-summary {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .summary-card {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Health Layout Mobile */
    .health-layout {
        min-height: auto;
    }

    .health-score-ring {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 1.5rem;
    }

    .breakdown-item {
        grid-template-columns: 80px 1fr 35px;
        gap: var(--space-xs);
    }

    .breakdown-label {
        font-size: 0.7rem;
    }

    .health-account {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    /* ROI Calculator Mobile */
    .calc-layout {
        min-height: auto;
        gap: var(--space-lg);
    }

    .calc-slider {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }

    .slider-value {
        text-align: left;
        min-width: auto;
    }

    .calc-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .total-value {
        font-size: 2rem;
    }

    /* Work-back Planner Mobile */
    .workback-layout {
        min-height: auto;
    }

    .workback-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .workback-meta {
        gap: var(--space-sm);
    }

    .meta-item {
        font-size: 0.7rem;
    }

    .workback-progress {
        flex-direction: row;
        gap: var(--space-md);
    }

    .progress-ring {
        width: 50px;
        height: 50px;
    }

    .progress-value {
        font-size: 0.8rem;
    }

    .timeline-phases {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .timeline-phase {
        display: flex;
        gap: var(--space-md);
        padding: var(--space-sm);
    }

    .phase-marker {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .phase-content {
        flex: 1;
    }

    .phase-tasks {
        display: none;
    }

    .timeline-phase.in-progress .phase-tasks,
    .timeline-phase.expanded .phase-tasks,
    .timeline-phase:hover .phase-tasks {
        display: block;
    }

    .timeline-phase.expanded {
        background: rgba(99, 102, 241, 0.15);
    }

    .workback-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .action-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .action-due {
        align-self: flex-end;
    }

    /* Comparison Section Mobile */
    .comparison-card {
        padding: var(--space-lg);
    }

    .spreadsheet-row {
        grid-template-columns: repeat(2, 1fr);
        font-size: 0.65rem;
    }

    .spreadsheet-row span {
        padding: var(--space-xs);
    }

    .glue-preview {
        flex-direction: column;
        gap: var(--space-md);
    }

    .glue-chart {
        justify-content: center;
    }

    /* Case Study Mobile */
    .case-quote blockquote {
        font-size: 1rem;
        padding-left: var(--space-lg);
    }

    .quote-mark {
        font-size: 3rem;
        left: var(--space-sm);
    }

    .quote-author {
        padding-left: var(--space-lg);
    }

    .case-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .case-result-number {
        font-size: 1.5rem;
    }

    /* Results Grid Mobile */
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-number {
        font-size: 2rem;
    }

    /* AI Tools Orbital Section Mobile */
    .ai-stack-layout {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .ai-stack-visual {
        flex: none;
    }

    .ai-stack-content {
        text-align: center;
    }

    .ai-stack-features {
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .orbit-container {
        width: 340px;
        height: 340px;
    }

    .orbit-center {
        width: 80px;
        height: 80px;
    }

    .center-logo {
        width: 45px;
    }

    .orbit-ring {
        width: 280px;
        height: 280px;
        margin: -140px 0 0 -140px;
        animation-duration: 60s;
    }

    .orbit-item {
        transform: rotate(var(--angle)) translateX(140px);
    }

    .orbit-card {
        width: 60px;
        height: 70px;
        padding: 8px 4px;
        border-radius: 12px;
        animation-duration: 60s;
    }

    .orbit-card img {
        width: 28px;
        height: 28px;
    }

    .orbit-label {
        font-size: 0.55rem;
        margin-top: 4px;
    }

    .orbit-desc {
        display: none;
    }

    /* Results Showcase Mobile */
    .results-layout {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .tool-mockup {
        flex: none;
        width: 100%;
        max-width: 360px;
    }

    .mockup-body {
        padding: 16px;
    }

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

    .results-content h3 {
        font-size: 1.5rem;
    }

    .results-stats {
        justify-content: center;
        gap: var(--space-lg);
    }

    .stat-number {
        font-size: 2.25rem;
    }

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

    /* Workflow Timeline Mobile */
    .workflow-timeline {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: center;
    }

    .workflow-step {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        text-align: left;
        width: 100%;
        max-width: 280px;
    }

    .step-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .step-connector {
        display: none;
    }

    .workflow-step h4 {
        font-size: 0.85rem;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--space-lg);
    }

    /* Tools Grid Mobile */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .tool-card {
        padding: var(--space-md);
        flex-direction: row;
        align-items: flex-start;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

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

    .tool-content h4 {
        font-size: 0.95rem;
    }

    .tool-content p {
        font-size: 0.8rem;
    }

    .tool-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .tool-categories {
        gap: var(--space-xs);
    }

    .tool-category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .tool-library {
        padding: var(--space-2xl) 0;
    }

    /* Team Grid Mobile */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .member-card {
        padding: var(--space-lg);
    }

    .member-avatar {
        width: 70px;
        height: 70px;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: var(--space-md);
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

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

    .footer-nav-col {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    /* CTA Mobile */
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        text-align: center;
    }

    .cta h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* Section Spacing Mobile */
    .demo,
    .comparison,
    .process,
    .case-study,
    .services,
    .testimonials,
    .team,
    .faq,
    .cta {
        padding: var(--space-2xl) 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Touch Targets - Minimum 44px */
    .btn,
    .nav-link,
    .demo-tab,
    .filter-btn,
    .faq-question {
        min-height: 44px;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
    }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1rem; }

    .hero h1,
    #hero-heading {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* Typewriter - ensure no overflow */
    .typewriter-text {
        min-width: auto !important;
    }

    .typewriter-cursor {
        font-size: 1.2rem;
    }

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

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

    /* Preview window even more compact */
    .preview-window {
        border-radius: var(--radius-md);
    }

    .preview-header {
        padding: var(--space-xs) var(--space-sm);
    }

    .preview-title {
        font-size: 0.65rem;
    }

    .preview-main {
        padding: var(--space-sm);
    }

    .heatmap-row {
        gap: 3px;
    }

    .heatmap-cell {
        min-height: 25px;
        border-radius: 4px;
    }

    /* Demo Tabs Extra Small */
    .demo-tabs {
        justify-content: center;
    }

    .demo-tab {
        padding: 0.5rem 0.75rem;
    }

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

    /* Demo Window Extra Small */
    .window-header {
        padding: var(--space-xs) var(--space-sm);
    }

    .window-content {
        padding: var(--space-sm);
    }

    .window-title {
        font-size: 0.65rem;
    }

    /* Comparison Cards Extra Small */
    .comparison-card {
        padding: var(--space-md);
    }

    .spreadsheet-row {
        font-size: 0.6rem;
    }

    .comparison-list li {
        font-size: 0.85rem;
    }

    /* Case Results Extra Small */
    .case-results-grid {
        grid-template-columns: 1fr;
    }

    .case-results {
        padding: var(--space-lg);
    }

    /* Team Grid Extra Small */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Results Grid Extra Small */
    .result-card {
        padding: var(--space-md);
    }

    .result-number {
        font-size: 1.75rem;
    }

    .result-label {
        font-size: 0.8rem;
    }

    /* Logo Marquee Extra Small */
    .logo-item {
        font-size: 0.9rem;
    }

    .marquee-track {
        gap: var(--space-lg);
    }

    /* Buttons Extra Small */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Orbs - reduce on mobile for performance */
    .orb {
        display: none;
    }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
}

.pricing-grid {
    margin: var(--space-2xl) 0;
    display: grid;
    gap: var(--space-3xl);
}

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

.pricing-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-md);
}

.pricing-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Force monthly subscription cards into single row on desktop */
.pricing-category:nth-child(1) .pricing-cards {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
}

.pricing-card {
    position: relative;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: translateX(0);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pricing-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pricing-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-text);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

.pricing-features p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* What's Included Section */
.pricing-included {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

.included-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

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

.included-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.included-item > span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.included-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pricing CTA */
.pricing-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

.pricing-cta p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    /* Reset monthly subscription layout for smaller screens */
    .pricing-category:nth-child(1) .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    /* Reset included items layout for smaller screens */
    .included-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: var(--space-2xl) 0;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Reset monthly subscription layout for mobile */
    .pricing-category:nth-child(1) .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .pricing-card {
        padding: var(--space-lg);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-category-title {
        font-size: 1.25rem;
    }
    
    .pricing-included {
        padding: var(--space-lg);
    }
    
    .included-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        gap: var(--space-2xl);
    }
    
    .pricing-cards {
        gap: var(--space-sm);
    }
    
    .pricing-card {
        padding: var(--space-md);
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .pricing-icon {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   CTA Two-Column Layout with Form Card
   ========================================================================== */

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Left column: Copy */
.cta-copy {
    text-align: left;
}

.cta-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.cta-copy > p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    max-width: 450px;
}

.cta-copy .cta-trust {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.cta-email {
    display: inline-block;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cta-email:hover {
    color: var(--color-primary);
}

/* Right column: Form Card */
.cta-form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

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

.cta-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.cta-form input,
.cta-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: #f9fafb;
    color: #1a1a2e;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cta-form input:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: #9ca3af;
}

.cta-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-sm);
}

.cta-form-card .form-success {
    text-align: center;
    padding: var(--space-xl) 0;
}

.cta-form-card .form-success svg {
    color: #10b981;
    margin-bottom: var(--space-md);
}

.cta-form-card .form-success h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: #1a1a2e;
}

.cta-form-card .form-success p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Mobile: Stack layout */
@media (max-width: 768px) {
    .cta-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .cta-copy > p {
        max-width: 100%;
    }

    .cta-form-card {
        padding: var(--space-lg);
    }
}
