/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
    /* Improve text rendering */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    /* Exact colors from globals.css */
    --radius: 0.65rem;
    --background: oklch(1 0 0);
    --foreground: oklch(0.141 0.005 285.823);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.141 0.005 285.823);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.141 0.005 285.823);
    --primary: oklch(0.646 0.222 41.116);
    --primary-foreground: oklch(0.98 0.016 73.684);
    --secondary: oklch(0.967 0.001 286.375);
    --secondary-foreground: oklch(0.21 0.006 285.885);
    --muted: oklch(0.967 0.001 286.375);
    --muted-foreground: oklch(0.552 0.016 285.938);
    --accent: oklch(0.967 0.001 286.375);
    --accent-foreground: oklch(0.21 0.006 285.885);
    --destructive: oklch(0.577 0.245 27.325);
    --border: oklch(0.92 0.004 286.32);
    --input: oklch(0.92 0.004 286.32);
    --ring: oklch(0.75 0.183 55.934);
    --chart-1: oklch(0.837 0.128 66.29);
    --chart-2: oklch(0.705 0.213 47.604);
    --chart-3: oklch(0.646 0.222 41.116);
    --chart-4: oklch(0.553 0.195 38.402);
    --chart-5: oklch(0.47 0.157 37.304);
    --sidebar: oklch(0.985 0 0);
    --sidebar-foreground: oklch(0.141 0.005 285.823);
    --sidebar-primary: oklch(0.646 0.222 41.116);
    --sidebar-primary-foreground: oklch(0.98 0.016 73.684);
    --sidebar-accent: oklch(0.967 0.001 286.375);
    --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
    --sidebar-border: oklch(0.92 0.004 286.32);
    --sidebar-ring: oklch(0.75 0.183 55.934);

    /* Legacy compatibility - mapped to exact globals.css values */
    --primary-50: oklch(0.985 0 0);
    --primary-100: oklch(0.967 0.001 286.375);
    --primary-200: oklch(0.92 0.004 286.32);
    --primary-300: oklch(0.75 0.183 55.934);
    --primary-400: oklch(0.705 0.213 47.604);
    --primary-500: oklch(0.646 0.222 41.116);
    --primary-600: oklch(0.553 0.195 38.402);
    --primary-700: oklch(0.21 0.006 285.885);
    --primary-800: oklch(0.141 0.005 285.823);
    --primary-900: oklch(0.141 0.005 285.823);

    /* Secondary colors using globals.css values */
    --secondary-50: oklch(0.985 0 0);
    --secondary-100: oklch(0.967 0.001 286.375);
    --secondary-200: oklch(0.92 0.004 286.32);
    --secondary-300: oklch(0.75 0.183 55.934);
    --secondary-400: oklch(0.552 0.016 285.938);
    --secondary-500: oklch(0.21 0.006 285.885);
    --secondary-600: oklch(0.21 0.006 285.885);
    --secondary-700: oklch(0.141 0.005 285.823);
    --secondary-800: oklch(0.141 0.005 285.823);
    --secondary-900: oklch(0.141 0.005 285.823);

    /* Accent colors using chart colors from globals.css */
    --accent-25: oklch(0.985 0 0);
    --accent-50: oklch(0.985 0 0);
    --accent-100: oklch(0.967 0.001 286.375);
    --accent-200: oklch(0.92 0.004 286.32);
    --accent-300: oklch(0.837 0.128 66.29);
    --accent-400: oklch(0.75 0.183 55.934);
    --accent-500: oklch(0.646 0.222 41.116);
    --accent-600: oklch(0.553 0.195 38.402);
    --accent-700: oklch(0.47 0.157 37.304);
    --accent-800: oklch(0.21 0.006 285.885);
    --accent-900: oklch(0.141 0.005 285.823);

    /* Additional colors mapped to globals.css values */
    --orange-400: oklch(0.75 0.183 55.934);
    --orange-500: oklch(0.646 0.222 41.116);
    --orange-600: oklch(0.553 0.195 38.402);
    --blue-400: oklch(0.705 0.213 47.604);
    --red-500: oklch(0.577 0.245 27.325);
    --red-600: oklch(0.577 0.245 27.325);

    /* Gray scale using globals.css base colors */
    --gray-50: oklch(0.985 0 0);
    --gray-100: oklch(0.967 0.001 286.375);
    --gray-200: oklch(0.92 0.004 286.32);
    --gray-300: oklch(0.75 0.183 55.934);
    --gray-400: oklch(0.552 0.016 285.938);
    --gray-500: oklch(0.552 0.016 285.938);
    --gray-600: oklch(0.21 0.006 285.885);
    --gray-700: oklch(0.21 0.006 285.885);
    --gray-800: oklch(0.141 0.005 285.823);
    --gray-900: oklch(0.141 0.005 285.823);

    /* Semantic Colors */
    --success: var(--accent-500);
    --warning: var(--orange-500);
    --error: var(--destructive);
    --info: var(--primary-700);

    /* Typography */
    --font-primary: 'Work Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

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

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: oklch(0.141 0.005 285.823);
        --foreground: oklch(0.985 0 0);
        --card: oklch(0.21 0.006 285.885);
        --card-foreground: oklch(0.985 0 0);
        --popover: oklch(0.21 0.006 285.885);
        --popover-foreground: oklch(0.985 0 0);
        --primary: oklch(0.705 0.213 47.604);
        --primary-foreground: oklch(0.98 0.016 73.684);
        --secondary: oklch(0.274 0.006 286.033);
        --secondary-foreground: oklch(0.985 0 0);
        --muted: oklch(0.274 0.006 286.033);
        --muted-foreground: oklch(0.705 0.015 286.067);
        --accent: oklch(0.274 0.006 286.033);
        --accent-foreground: oklch(0.985 0 0);
        --destructive: oklch(0.704 0.191 22.216);
        --border: oklch(1 0 0 / 10%);
        --input: oklch(1 0 0 / 15%);
        --ring: oklch(0.408 0.123 38.172);
        
        --sidebar: oklch(0.21 0.006 285.885);
        --sidebar-foreground: oklch(0.985 0 0);
        --sidebar-primary: oklch(0.705 0.213 47.604);
        --sidebar-primary-foreground: oklch(0.98 0.016 73.684);
        --sidebar-accent: oklch(0.274 0.006 286.033);
        --sidebar-accent-foreground: oklch(0.985 0 0);
        --sidebar-border: oklch(1 0 0 / 10%);
        --sidebar-ring: oklch(0.408 0.123 38.172);
        
        /* Update legacy colors for dark mode */
        --gray-50: oklch(0.141 0.005 285.823);
        --gray-100: oklch(0.21 0.006 285.885);
        --gray-200: oklch(0.274 0.006 286.033);
        --gray-300: oklch(0.552 0.016 285.938);
        --gray-400: oklch(0.705 0.015 286.067);
        --gray-500: oklch(0.705 0.015 286.067);
        --gray-600: oklch(0.92 0.004 286.32);
        --gray-700: oklch(0.967 0.001 286.375);
        --gray-800: oklch(0.985 0 0);
        --gray-900: oklch(0.985 0 0);
    }
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    scroll-behavior: smooth;
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base styling for new color system */
* {
    border-color: var(--border);
}

/* Card and popover elements */
.popover,
.dropdown-menu,
.dialog,
.sheet,
.card {
    background: var(--card);
    color: var(--card-foreground);
    border-color: var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    /* Ensure container never exceeds viewport width */
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-md);
    /* Prevent text overflow on mobile */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 { font-size: clamp(1.75rem, 8vw, 4rem); }
h2 { font-size: clamp(1.5rem, 6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 5vw, 2rem); }
h4 { font-size: clamp(1.125rem, 4vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
    color: var(--muted-foreground);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    /* Mobile-friendly touch targets */
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    /* Prevent text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-600);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 2px solid var(--secondary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    /* Mobile-friendly touch targets */
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    /* Prevent text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-secondary:hover {
    background: var(--secondary-600);
    color: var(--secondary-foreground);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: color-mix(in oklch, var(--background) 95%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all var(--transition-normal);
    transform: translateY(0);
    will-change: transform, opacity;
}

/* Scrolled state - subtle changes */
.navbar.scrolled {
    background: color-mix(in oklch, var(--background) 98%, transparent);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
}

/* Collapsed state - more compact */
.navbar.collapsed {
    background: color-mix(in oklch, var(--background) 98%, transparent);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--border);
}

/* Subtle hover effect when collapsed */
.navbar.collapsed:hover {
    background: var(--background);
    box-shadow: var(--shadow-2xl);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    transition: all var(--transition-normal);
    width: 100%;
    box-sizing: border-box;
    /* Prevent horizontal overflow */
    min-width: 0;
}

/* Collapsed container - smaller padding */
.navbar.collapsed .nav-container {
    padding: var(--space-sm) var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition-normal);
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.nav-logo:focus {
    outline: none;
    box-shadow: none;
}

.nav-logo:hover {
    color: var(--primary-600);
    transform: translateY(-1px);
}

.nav-logo:hover svg {
    color: var(--primary-foreground);
}

/* Smaller logo when collapsed */
.navbar.collapsed .nav-logo {
    font-size: 1.25rem;
}

.navbar.collapsed .nav-logo svg {
    width: 28px;
    height: 28px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    transition: all var(--transition-normal);
    flex: 1;
}

/* Smaller gap when collapsed */
.navbar.collapsed .nav-links {
    gap: var(--space-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    font-size: 1rem;
}

/* Smaller font when collapsed */
.navbar.collapsed .nav-links a {
    font-size: 0.875rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-normal);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-normal);
}

/* Smaller buttons when collapsed */
.navbar.collapsed .nav-actions {
    gap: var(--space-sm);
}

.navbar.collapsed .nav-actions .btn-primary,
.navbar.collapsed .nav-actions .btn-secondary {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8125rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
    transform-origin: center;
}

/* Mobile menu open state - hamburger animation */
.navbar.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.navbar.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.navbar.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    /* Use height: 100dvh for better mobile support */
    height: 100dvh;
    background: white;
    z-index: 1000;
    transition: right var(--transition-slow);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) 0;
    /* Prevent scrolling content behind menu */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.navbar.mobile-menu-open .mobile-menu-panel {
    right: 0;
}

.mobile-menu-header {
    padding: 0 var(--space-lg) var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-links {
    flex: 1;
    padding: var(--space-lg) 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-links a {
    padding: var(--space-md) var(--space-lg);
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.mobile-menu-actions {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.mobile-menu-actions .btn-secondary,
.mobile-menu-actions .btn-primary {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600), var(--accent-500));
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-400);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--blue-400);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary-400);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    /* Ensure proper mobile display */
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.title-line {
    display: block;
}

.gradient-text {
    /* Fallback color for better accessibility */
    color: #FFE135;
    background: linear-gradient(45deg, #FF4500, #FFD700, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    /* Add text stroke for better visibility */
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
    flex: 1;
}

.stat-number {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--accent-300);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    word-break: keep-all;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
}

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

.hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-2xl);
    color: var(--gray-900);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

.dashboard-tabs {
    display: flex;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-sm);
}

.tab {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab.active {
    background: var(--primary-100);
    color: var(--primary-700);
}

.ai-insights h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--gray-800);
}

.insight-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--accent-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--accent-500);
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.metric-card {
    background: var(--gray-50);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: var(--space-xs);
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--accent-600);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Features Section */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: var(--space-md);
    }
}

.feature-card {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.feature-card.featured {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border-color: var(--primary-300);
    position: relative;
}

.feature-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--accent-500);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon {
    margin-bottom: var(--space-2xl);
    color: var(--primary-600);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    max-width: none;
    width: 80px;
    height: 80px;
    display: block;
    flex-shrink: 0;
}

.feature-card h3 {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

/* AI Tools Section */
.ai-tools {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: white;
}

.ai-tools .section-header h2,
.ai-tools .section-header p {
    color: white;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .ai-tools-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .ai-tools-grid {
        gap: var(--space-md);
    }
}

.ai-tool {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.ai-tool:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.ai-tool-icon {
    font-size: 2rem;
}

.ai-tool h3 {
    color: white;
    margin: 0;
}

.ai-tool p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.ai-demo {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
}

.chat-bubble {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-bubble.user {
    background: var(--primary-600);
    color: white;
    margin-left: var(--space-xl);
}

.chat-bubble.ai {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    margin-right: var(--space-xl);
    margin-bottom: 0;
}

.prediction-chart {
    display: flex;
    gap: var(--space-sm);
    align-items: end;
    margin: var(--space-lg) 0;
    height: 80px;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: end;
    justify-content: center;
    padding-bottom: var(--space-xs);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.chart-bar.active {
    background: var(--accent-400);
    color: white;
    font-weight: 600;
}

.chart-insight {
    font-size: 0.875rem;
    color: var(--orange-300);
    margin: 0;
    font-weight: 500;
}

.automation-flow {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.flow-step {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flow-arrow {
    color: var(--accent-300);
    font-weight: bold;
    font-size: 1.25rem;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        gap: var(--space-md);
    }
}

.testimonial-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.testimonial-card.featured {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

.testimonial-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

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

.stars {
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-700);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.author-info h4 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--gray-900);
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.testimonial-metric {
    text-align: center;
    padding: var(--space-md);
    background: var(--accent-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-200);
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-600);
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Pricing Section */
.pricing {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        gap: var(--space-md);
    }
}

.pricing-card {
    background: var(--gray-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.pricing-card.popular {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: white;
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: var(--space-md);
    color: var(--gray-900);
    font-size: 1.5rem;
}

.price {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.currency {
    font-size: 1.5rem;
    color: var(--gray-600);
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-600);
}

.period {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 500;
}

.coming-soon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    text-align: center;
}

.plan-description {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: var(--space-xl);
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: var(--space-sm) 0;
    color: var(--gray-700);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-note {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--accent-50), var(--orange-50));
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-200);
    margin-top: var(--space-xl);
}

.pricing-note p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-900), var(--secondary-900));
    color: white;
    text-align: center;
}

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

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

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

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-4xl) 0 var(--space-xl) 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-400);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    margin-bottom: var(--space-lg);
    color: white;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-700);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-legal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: var(--space-lg);
}

.legal-links a {
    font-size: 0.875rem;
    color: var(--secondary-400) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--secondary-300) !important;
}

.footer-contact {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.footer-bottom .footer-contact a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-400) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom .footer-contact a:hover {
    color: var(--secondary-300) !important;
}

/* Additional specificity for phone and email links */
.footer-contact a.phone,
.footer-contact a.email {
    color: var(--secondary-400) !important;
}

.footer-contact a.phone:hover,
.footer-contact a.email:hover {
    color: var(--secondary-300) !important;
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-xl);
    }
    
    h1 { font-size: clamp(2rem, 4vw, 3rem); }
    h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .dashboard-preview {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tablets and large phones */
@media (max-width: 768px) {
    /* Improve container padding for mobile */
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile navbar improvements */
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Mobile navbar collapsed state */
    .navbar.collapsed .nav-container {
        padding: var(--space-xs) var(--space-md);
    }
    
    .navbar.collapsed .nav-logo {
        font-size: 1.125rem;
    }
    
    .navbar.collapsed .nav-logo svg {
        width: 24px;
        height: 24px;
    }
    
    /* Hero section improvements */
    .hero {
        min-height: 100vh;
        /* Use viewport height units for better mobile support */
        min-height: 100dvh;
        padding: 80px 0 var(--space-2xl);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
        padding-top: var(--space-xl);
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .dashboard-preview {
        transform: none;
        margin-top: var(--space-xl);
    }
    
    /* Grid improvements for mobile */
    .features-grid,
    .ai-tools-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .pricing-card.popular {
        transform: none;
        order: -1; /* Show popular card first on mobile */
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    /* Footer improvements */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    /* Flow and CTA improvements */
    .automation-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* Large phones */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Better typography scaling for mobile */
    h1 { font-size: clamp(1.5rem, 7vw, 2.25rem); }
    h2 { font-size: clamp(1.25rem, 6vw, 1.75rem); }
    h3 { font-size: clamp(1.125rem, 5vw, 1.5rem); }
    
    /* Hero improvements for small screens */
    .hero {
        padding: 70px 0 var(--space-xl);
    }
    
    .hero-title {
        margin-bottom: var(--space-md);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    /* Mobile-optimized buttons */
    .btn-large,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly size */
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        padding: var(--space-md) var(--space-lg);
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .legal-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-contact {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Improve touch targets */
    nav a,
    .mobile-menu-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 { font-size: clamp(1.375rem, 8vw, 2rem); }
    h2 { font-size: clamp(1.25rem, 7vw, 1.625rem); }
    h3 { font-size: clamp(1.125rem, 6vw, 1.375rem); }
    
    .mobile-menu-panel {
        width: 92%;
        max-width: 280px;
    }
    
    .hero-title {
        line-height: 1.15;
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Adjust button sizes for small screens */
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: var(--space-sm) var(--space-md);
        min-height: 44px;
    }
    
    /* Compact hero stats */
    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .stat {
        min-width: auto;
        width: 100%;
        max-width: none;
        padding: var(--space-md) var(--space-lg);
    }

    .stat-number {
        font-size: 1.25rem;
        word-break: keep-all;
        white-space: nowrap;
    }

    .stat-label {
        font-size: 0.75rem;
        white-space: nowrap;
    }    /* Reduce spacing for small screens */
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .feature-card,
    .pricing-card {
        padding: var(--space-lg);
    }
}

/* Extra small phones */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .stat {
        padding: var(--space-sm) var(--space-md);
    }
    
    .stat-number {
        font-size: 1rem !important;
        font-weight: 700;
        word-break: keep-all;
        white-space: nowrap;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .mobile-menu-panel {
        width: 95%;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.15;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: var(--space-sm);
    }
}

/* Mobile-specific enhancements for touch interfaces */
@media (max-width: 768px) {
    /* Improve all clickable elements for touch */
    .btn-primary,
    .btn-secondary,
    .btn-large,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 48px;
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        border-radius: var(--radius-lg);
    }
    
    /* Form improvements */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        min-height: 48px;
        padding: var(--space-md);
        font-size: 1rem;
        border-radius: var(--radius-md);
        border: 2px solid var(--gray-300);
        transition: border-color var(--transition-fast);
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="password"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    
    /* Improve navigation links for touch */
    .nav-links a,
    .mobile-menu-links a {
        padding: var(--space-md) var(--space-lg);
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Hero actions mobile stacking */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Card padding adjustments */
    .feature-card,
    .ai-tool,
    .testimonial-card,
    .pricing-card {
        padding: var(--space-lg);
        margin-bottom: var(--space-md);
    }
    
    /* Improve spacing for mobile readability */
    .section-padding {
        padding: var(--space-3xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
        text-align: center;
    }
    
    .section-header h2 {
        margin-bottom: var(--space-md);
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    /* Ensure all content is visible when animations are disabled */
    .feature-card,
    .ai-tool,
    .testimonial-card,
    .pricing-card,
    .chart-bar {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Fallback for when JavaScript doesn't load or fails */
.no-js .feature-card,
.no-js .ai-tool,
.no-js .testimonial-card,
.no-js .pricing-card,
.no-js .chart-bar {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure content is visible by default after a timeout */
.feature-card,
.ai-tool,
.testimonial-card,
.pricing-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Chart bars should be visible by default */
.chart-bar {
    opacity: 1;
    transform: scaleY(1);
}

/* ======================================
   Features Page Specific Styles
   ====================================== */

/* Features Hero */
.features-hero {
    padding-top: calc(80px + var(--space-2xl));
    padding-bottom: var(--space-4xl);
}

.features-hero .hero-content-two-column {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-4xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.features-hero .hero-text-content {
    text-align: left;
}

.features-hero .hero-side-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.features-hero .hero-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.features-hero .hero-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.features-hero .hero-stats {
    justify-content: flex-start;
    margin: 0;
    flex-direction: row;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.features-hero .hero-stats .stat {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
    min-width: 180px;
    width: auto;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #374151;
}

.features-hero .hero-stats .stat-label {
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.85rem;
    line-height: 1.3;
}

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

.features-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.features-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.breadcrumb {
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

/* Mobile responsiveness for features hero */
@media (max-width: 768px) {
    .features-hero .hero-content-two-column {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .features-hero .hero-text-content {
        text-align: center;
    }
    
    .features-hero .hero-title {
        text-align: center;
    }
    
    .features-hero .hero-subtitle {
        text-align: center;
    }
    
    .features-hero .hero-stats {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .features-hero .hero-stats .stat {
        flex-direction: column;
        text-align: center;
    }
    
    .features-hero .hero-actions {
        justify-content: center;
    }
    
    .breadcrumb {
        text-align: center;
    }
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 var(--space-xs);
}

/* Features Overview */
.features-overview {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.features-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
    margin-top: var(--space-4xl);
}

.feature-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.feature-card-large:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.feature-card-large.featured {
    border: 2px solid var(--orange-500);
    position: relative;
}

.feature-card-large.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: var(--space-xl);
    background: var(--orange-500);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.feature-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-screenshot {
    width: 100%;
    max-width: 300px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--gray-200);
}

.feature-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-md);
}

.feature-description {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.feature-benefits {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.feature-benefits li {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.feature-callout {
    background: var(--accent-50);
    border: 1px solid var(--accent-200);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: 0.95rem;
    color: var(--accent-800);
}

.feature-callout.popular {
    background: var(--orange-400);
    background: linear-gradient(135deg, rgba(242, 92, 5, 0.1) 0%, rgba(242, 92, 5, 0.2) 100%);
    border-color: var(--orange-400);
    color: var(--orange-900);
}

/* Mock UI Elements */
.mock-customer-list,
.mock-calendar,
.mock-booking-form,
.mock-team-list,
.mock-signin,
.mock-help {
    font-size: 0.875rem;
}

.customer-item,
.team-member {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--gray-300);
}

.job-history {
    color: var(--accent-700);
    font-size: 0.8rem;
}

.calendar-header {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--primary-700);
}

.calendar-day {
    margin-bottom: var(--space-sm);
}

.day-name {
    font-weight: 600;
    color: var(--gray-800);
    display: block;
    margin-bottom: var(--space-xs);
}

.appointment {
    background: var(--primary-700);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.appointment.free {
    background: var(--gray-300);
    color: var(--gray-600);
}

.booking-header,
.help-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--primary-700);
}

.form-field {
    margin-bottom: var(--space-md);
}

.form-field label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--gray-700);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.time-slots {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.time-slots button {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
}

.time-slots button.selected {
    background: var(--primary-700);
    color: white;
    border-color: var(--primary-700);
}

.book-btn {
    width: 100%;
    background: var(--orange-500);
    color: white;
    border: none;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.team-header {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--primary-700);
}

.member-info strong {
    color: var(--gray-800);
}

.member-status {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: var(--space-xs);
    display: inline-block;
}

.member-status.available {
    background: var(--accent-100);
    color: var(--accent-700);
}

.member-status.busy {
    background: var(--orange-100);
    color: var(--orange-700);
}

.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: white;
    border: 1px solid var(--gray-300);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: var(--space-md);
}

.signin-benefits p {
    margin-bottom: var(--space-xs);
    font-size: 0.8rem;
    color: var(--gray-600);
}

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

.help-option {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.help-option strong {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--primary-700);
}

.help-option p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: var(--space-4xl) 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.benefit-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.benefit-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-md);
}

.benefit-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--primary-700);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
    color: var(--primary-100);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.cta-note {
    font-size: 0.95rem;
    color: var(--primary-200);
}

/* Navigation Active State */
.nav-links a.active {
    color: var(--orange-500);
    font-weight: 600;
}

/* Responsive Design for Features Page */
@media (max-width: 768px) {
    .features-hero {
        padding-top: calc(60px + var(--space-xl));
        padding-bottom: var(--space-3xl);
    }
    
    .feature-card-large {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl);
    }
    
    .feature-visual {
        order: 2;
    }
    
    .feature-content {
        order: 1;
    }
    
    .feature-icon-large {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-md);
    }
    
    .feature-content h3 {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
}

/* Industries Section Styles */

/* Industries Grid */
.industries-section {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.industry-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gray-400);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    opacity: 0.12;
    transition: opacity 0.4s ease-in-out;
    z-index: 0;
}

.industry-card:hover::before {
    opacity: 0.25;
}

.industry-card > * {
    position: relative;
    z-index: 1;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.industry-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    margin-bottom: var(--space-sm);
}

.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-800);
    margin: 0;
}

.industry-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.learn-more {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.industry-card:hover .learn-more {
    color: var(--primary-500);
}

/* Benefits Grid for Industry Pages */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

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

.benefit-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-600);
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-800);
    margin: 0;
}

.benefit-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Hero Stats for Industry Pages */
.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(79, 70, 229, 0.15);
    box-shadow: 
        0 8px 25px -5px rgba(79, 70, 229, 0.1),
        0 4px 10px -2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    flex: 1;
    max-width: 220px;
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -8px rgba(79, 70, 229, 0.2),
        0 8px 20px -4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.stat:hover::before {
    left: 100%;
}

.stat:active {
    transform: translateY(-6px) scale(1.01);
    transition: all 0.1s ease;
}

.stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px -8px rgba(79, 70, 229, 0.2),
        0 8px 20px -4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.stat:hover::before {
    left: 100%;
}

.stat:active {
    transform: translateY(-6px) scale(1.01);
    transition: all 0.1s ease;
}

.stat-number {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--primary-600);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
    word-break: keep-all;
    white-space: nowrap;
}

.stat:hover .stat-number {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
    position: relative;
}

.stat:hover .stat-label {
    color: var(--gray-800);
    transform: translateY(-1px);
}

/* Pulse animation for stats */
@keyframes statPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px -5px rgba(79, 70, 229, 0.1),
            0 4px 10px -2px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    50% {
        box-shadow: 
            0 8px 25px -5px rgba(79, 70, 229, 0.15),
            0 4px 10px -2px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
}

.stat {
    animation: statPulse 4s ease-in-out infinite;
}

.stat:nth-child(1) {
    animation-delay: 0s;
}

.stat:nth-child(2) {
    animation-delay: 1.3s;
}

.stat:nth-child(3) {
    animation-delay: 2.6s;
}

/* Entrance animation */
@keyframes statSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats .stat {
    animation: statSlideUp 0.8s ease-out forwards, statPulse 4s ease-in-out infinite 1s;
}

.hero-stats .stat:nth-child(1) {
    animation-delay: 0.2s, 1s;
}

.hero-stats .stat:nth-child(2) {
    animation-delay: 0.4s, 2.3s;
}

.hero-stats .stat:nth-child(3) {
    animation-delay: 0.6s, 3.6s;
}

/* CTA Note */
.cta-note {
    margin-top: var(--space-lg);
    color: var(--gray-500);
    font-size: 0.875rem;
    text-align: center;
}

/* Active navigation link */
.nav-links a.active {
    color: var(--primary-600);
    font-weight: 600;
}

/* Mobile responsive adjustments for industries */
@media (max-width: 1024px) {
    .benefits-grid {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .industry-card {
        padding: var(--space-lg);
    }
    
    .hero-stats {
        gap: var(--space-sm);
        margin-top: var(--space-xl);
    }
    
    .stat {
        min-width: 115px;
        max-width: 138px;
        padding: var(--space-sm) var(--space-md);
    }
    
    .stat-number {
        font-size: 1.125rem;
        word-break: keep-all;
        white-space: nowrap;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Interactive Platform Section - Two Panel Design */
.platform-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.platform-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(203, 213, 225, 0.05) 100%);
    z-index: 1;
}

/* Simplified animated gleaming elements */
.platform-section::after {
    content: '';
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(34, 197, 94, 0.03) 0%, transparent 40%);
    animation: gleamFloat 30s infinite linear;
    z-index: 1;
    will-change: transform;
}

@keyframes gleamFloat {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.platform-section .container {
    position: relative;
    z-index: 2;
}

.platform-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.platform-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-900);
    margin-bottom: var(--space-lg);
}

.platform-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Two Panel Layout */
.platform-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Panel - Categories */
.platform-categories {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.category-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

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

.category-item.active {
    border-color: var(--primary-400);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.category-header {
    padding: var(--space-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    transition: all 0.2s ease;
}

.category-header:hover {
    background: var(--primary-50);
}

.category-item.active .category-header {
    background: var(--primary-100);
}

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

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-600) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.category-item.active .category-icon {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--orange-500) 100%);
    transform: scale(1.05);
}

.category-name {
    font-weight: 600;
    color: var(--primary-900);
    font-size: 1.125rem;
}

.category-arrow {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
    transition: transform 0.2s ease;
}

.category-item.active .category-arrow {
    transform: rotate(180deg);
    color: var(--primary-600);
}

.category-features {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.category-item.active .category-features {
    max-height: 300px;
}

.feature-list {
    padding: 0 var(--space-md) var(--space-md);
}

.feature-item {
    padding: var(--space-xs) var(--space-sm);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border: 1px solid transparent;
}

.feature-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.feature-item.active {
    background: var(--primary-100);
    border-color: var(--primary-300);
    color: var(--primary-800);
}

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

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-600);
    flex-shrink: 0;
}

.feature-name {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Right Panel - Details */
.platform-details-panel {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.details-content {
    flex: 1;
}

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

.details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.details-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-600) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.details-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1.1rem;
}

.details-placeholder {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .platform-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .platform-details-panel {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .platform-header h2 {
        font-size: 2rem;
    }
    
    .platform-categories,
    .platform-details-panel {
        padding: var(--space-lg);
    }
    
    .category-header {
        padding: var(--space-md);
    }
    
    .details-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .platform-header h2 {
        font-size: 1.75rem;
    }
    
    .platform-icon {
        width: 48px;
        height: 48px;
    }
    
    .platform-card-header,
    .platform-card-content,
    .platform-details-content {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .industry-icon {
        width: 56px;
        height: 56px;
    }
    
    .hero-stats {
        gap: var(--space-xs);
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        min-width: 140px;
        max-width: 160px;
        padding: var(--space-sm) var(--space-md);
    }
    
    .stat-number {
        font-size: 1rem;
        word-break: keep-all;
        white-space: nowrap;
    }
    
    .stat-label {
        font-size: 0.925rem;
    }
    
    .industry-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
}

/* Ensure stat-number text fits properly across all screen sizes */
@media (min-width: 769px) {
    .hero-stats .stat-number {
        font-size: 1.375rem !important;
        word-break: keep-all;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .hero-stats .stat-number {
        font-size: 1.25rem !important;
        word-break: keep-all;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-stats .stat-number {
        font-size: 1.125rem !important;
        word-break: keep-all;
        white-space: nowrap;
    }
}
