:root {
    /* Brand colors based on your beautiful logo */
    --primary-color: #00C9A7;  /* Logo teal */
    --primary-hover: #00B396;  /* Darker teal */
    --secondary-color: #4EDDCE; /* Logo turquoise */
    --accent-gradient: linear-gradient(135deg, #00C9A7 0%, #4EDDCE 100%);
    --success-color: #00E5B8;  /* Bright success teal */
    --trust-teal: #008A74;     /* Dark trustworthy teal */
    --enterprise-gray: #1E293B;
    
    /* Typography colors - defaults for light backgrounds */
    --dark-text: #1E293B;      /* Dark gray for light backgrounds */
    --medium-text: #475569;    /* Medium gray for body text on light backgrounds */
    --light-text: #64748B;     /* Light gray for secondary text */
    --muted-text: #94A3B8;     /* Muted gray for metadata */
    --accent-text: #00C9A7;    /* Brand teal for highlights */
    
    /* Typography colors for dark backgrounds */
    --white-text: #FFFFFF;     /* Pure white for dark backgrounds */
    --light-white-text: #F1F5F9; /* Very light gray for dark backgrounds */
    
    /* Background system with depth */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;       /* Very light background */
    --bg-gray: #F1F5F9;        /* Light section background */
    --bg-dark: #0F172A;        /* Dark sections */
    --bg-darker: #020617;      /* Footer/deep dark */
    --bg-teal-subtle: #F0FDFA; /* Very light teal background */
    --bg-gradient: linear-gradient(135deg, #FAFBFC 0%, #F0FDFA 100%);
    
    /* UI colors */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 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);
    
    /* Spacing system */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Animation durations */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
}

/* --- Enhanced Animations --- */
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-25%) rotate(180deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 201, 167, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 201, 167, 0.4); }
}

/* Advanced micro-interactions */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes magnetic-hover {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-2px) scale(1.02); }
}

@keyframes gentle-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Sophisticated gradients */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Enhanced Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'rlig' 1, 'calt' 1;
    font-variant-ligatures: common-ligatures;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Improve focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Minimal animated background */
.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at center top, rgba(0, 201, 167, 0.03) 0%, transparent 60%);
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.3s forwards;
}

.wave-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(0, 201, 167, 0.05) 0%, transparent 70%);
    animation: glow 6s ease-in-out infinite;
}


/* Make sure the hero text stays on top */
.hero .container {
    position: relative;
    z-index: 1;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 clamp(20px, 4vw, 40px);
    width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent-gradient);
    color: white;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 32px);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all var(--duration-normal) ease;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 14px 0 rgba(0, 201, 167, 0.25);
    min-height: 48px;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px 0 rgba(0, 201, 167, 0.3);
}

.cta-button:active {
    transform: translateY(0);
    transition-duration: var(--duration-fast);
}

.cta-button .arrow-icon {
    transition: transform var(--duration-normal) cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2em;
}

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

/* Demo Button Styles */
.demo-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--primary-color);
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--duration-normal) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left var(--duration-normal) ease;
    z-index: -1;
}

.demo-button:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.demo-button:hover::before {
    left: 0;
}

.section {
    padding: clamp(80px, 12vw, 120px) 0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.section-overlapping {
    margin-top: -40px;
    padding-top: clamp(120px, 15vw, 160px);
    background-color: var(--bg-white);
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.section-header {
    text-align: center;
    margin: 0 auto clamp(48px, 8vw, 80px) auto;
    animation: slideInUp 0.8s ease-out;
    max-width: 900px;
    width: 100%;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header .tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(77, 208, 225, 0.1));
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 201, 167, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.section-header .tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.section-header .tagline:hover::before {
    left: 100%;
}

.section-header .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 800px;
    width: 100%;
    margin: 0 auto var(--space-lg) auto;
    line-height: 1.2;
    color: var(--dark-text); /* Default dark text for light backgrounds */
    text-align: center;
    display: block;
}

.section-header .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--medium-text);
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    display: block;
}

/* --- Enhanced Navigation --- */
nav {
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--duration-normal) ease;
    will-change: transform, background-color;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-ctas {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    transition: transform var(--duration-normal) ease;
    will-change: transform;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all var(--duration-normal) ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo .logo-text {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--medium-text);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--medium-text);
    font-weight: 500;
    font-size: var(--text-base);
    transition: all var(--duration-normal) ease;
    position: relative;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all var(--duration-normal) ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 201, 167, 0.05);
}

.nav-links a:hover::after {
    width: 80%;
}

/* --- Enhanced Hero Section --- */
.hero {
    text-align: center;
    padding: clamp(100px, 15vw, 140px) 0 clamp(140px, 20vw, 180px) 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Minimal Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(0, 201, 167, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 201, 167, 0.2);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-color);
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

.badge-shimmer {
    display: none;
}

.badge-icon {
    font-size: 1.1em;
}

/* Enhanced Hero Headline */
.hero-headline {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: var(--space-xl);
    animation: slideInUp 0.8s ease-out 0.1s both;
    color: var(--dark-text);
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
}

.headline-primary {
    display: inline-block;
    color: var(--white-text);
}

.headline-cursor {
    display: inline-block;
    width: 3px;
    height: 0.8em;
    background: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    position: relative;
    top: -2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero h1 .gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0.1;
    filter: blur(20px);
    z-index: -1;
    animation: glow 3s ease-in-out infinite;
}

.hero h1 .domain-text {
    color: var(--muted-text);
    background: linear-gradient(135deg, var(--light-text), var(--muted-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--light-white-text);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.highlight-text {
    background: linear-gradient(120deg, rgba(0, 201, 167, 0.1) 0%, rgba(0, 201, 167, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    color: var(--dark-text);
    font-weight: 600;
    animation: highlight-expand 0.8s ease-out 0.8s both;
}

.stat-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.stat-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    animation: underline-expand 0.6s ease-out 1s both;
    transform: scaleX(0);
}

@keyframes highlight-expand {
    from { background-size: 0% 0.2em; }
    to { background-size: 100% 0.2em; }
}

@keyframes underline-expand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: clamp(12px, 3vw, 24px);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-3xl);
    animation: slideInUp 0.8s ease-out 0.3s both;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-3xl);
}

.cta-button.primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.cta-icon {
    font-size: 1.1em;
    transition: transform var(--duration-normal) ease;
}

.cta-button:hover .cta-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button Shine Effect */
.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: button-shine 2s ease-in-out infinite;
}

@keyframes button-shine {
    0%, 50% { left: -100%; }
    100% { left: 100%; }
}

/* Minimal Trust Indicators */
.trust-indicators {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
    align-items: center;
    animation: slideInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.trust-item {
    text-align: center;
    min-width: 100px;
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 201, 167, 0.05);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 201, 167, 0.1);
    transition: all var(--duration-normal) ease;
}

.trust-item:hover {
    transform: translateY(-1px);
    background: rgba(0, 201, 167, 0.08);
}

.trust-icon {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--primary-color);
}

.trust-number {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.trust-label {
    font-size: var(--text-sm);
    color: var(--light-text);
    font-weight: 500;
    line-height: 1.3;
}

.hero .cta-button {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero .beta-text {
    font-size: var(--text-sm);
    color: var(--muted-text);
    margin-top: var(--space-lg);
    font-weight: 500;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

/* --- ANIMATED DATA FLOWS BACKGROUND --- */
.data-flows-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.flow-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 201, 167, 0.1) 20%, 
        rgba(0, 201, 167, 0.3) 50%, 
        rgba(0, 201, 167, 0.1) 80%, 
        transparent 100%);
    transform-origin: left center;
}

.flow-line-1 {
    top: 15%;
    left: -20%;
    transform: rotate(8deg);
    animation: flowMove 20s linear infinite;
}

.flow-line-2 {
    top: 35%;
    left: -30%;
    transform: rotate(-5deg);
    animation: flowMove 25s linear infinite;
    animation-delay: -5s;
}

.flow-line-3 {
    top: 55%;
    left: -15%;
    transform: rotate(12deg);
    animation: flowMove 18s linear infinite;
    animation-delay: -10s;
}

.flow-line-4 {
    top: 75%;
    left: -25%;
    transform: rotate(-8deg);
    animation: flowMove 22s linear infinite;
    animation-delay: -15s;
}

.flow-line-5 {
    top: 25%;
    left: -35%;
    transform: rotate(15deg);
    animation: flowMove 30s linear infinite;
    animation-delay: -8s;
}

.flow-line-6 {
    top: 65%;
    left: -10%;
    transform: rotate(-12deg);
    animation: flowMove 28s linear infinite;
    animation-delay: -18s;
}

.data-packet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, 
        rgba(0, 201, 167, 1) 0%, 
        rgba(0, 201, 167, 0.8) 30%, 
        rgba(0, 201, 167, 0.3) 60%, 
        transparent 100%);
    border-radius: 50%;
    animation: packetFlow 8s linear infinite;
    box-shadow: 0 0 8px rgba(0, 201, 167, 0.6);
}

.flow-line-1 .data-packet:nth-child(1) { animation-delay: 0s; }
.flow-line-1 .data-packet:nth-child(2) { animation-delay: -2.5s; }
.flow-line-1 .data-packet:nth-child(3) { animation-delay: -5s; }

.flow-line-2 .data-packet:nth-child(1) { animation-delay: -1s; }
.flow-line-2 .data-packet:nth-child(2) { animation-delay: -4s; }

.flow-line-3 .data-packet:nth-child(1) { animation-delay: -0.5s; }
.flow-line-3 .data-packet:nth-child(2) { animation-delay: -2s; }
.flow-line-3 .data-packet:nth-child(3) { animation-delay: -4s; }
.flow-line-3 .data-packet:nth-child(4) { animation-delay: -6s; }

.flow-line-4 .data-packet:nth-child(1) { animation-delay: -1.5s; }
.flow-line-4 .data-packet:nth-child(2) { animation-delay: -4.5s; }

.flow-line-5 .data-packet:nth-child(1) { animation-delay: -2s; }
.flow-line-5 .data-packet:nth-child(2) { animation-delay: -5s; }
.flow-line-5 .data-packet:nth-child(3) { animation-delay: -7.5s; }

.flow-line-6 .data-packet:nth-child(1) { animation-delay: -3s; }
.flow-line-6 .data-packet:nth-child(2) { animation-delay: -6s; }

@keyframes flowMove {
    0% {
        transform: translateX(0) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(150vw) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

@keyframes packetFlow {
    0% {
        transform: translateX(0);
        opacity: 0;
        filter: brightness(0.5);
    }
    10% {
        opacity: 1;
        filter: brightness(1);
    }
    85% {
        opacity: 1;
        filter: brightness(1.2);
    }
    100% {
        transform: translateX(120vw);
        opacity: 0;
        filter: brightness(0.5);
    }
}

/* Enhanced glow effect for data packets */
.data-packet::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    background: rgba(0, 201, 167, 0.2);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

/* --- ENHANCED USE CASES --- */
#features { 
    background-color: white; 
}

#features .section-header .section-title {
    color: var(--dark-text) !important;
}

#features .section-header .section-subtitle {
    color: var(--medium-text) !important;
}

#features .section-header .tagline {
    color: var(--primary-color) !important;
}

.use-cases-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: clamp(24px, 4vw, 32px);
    align-items: start;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card { 
    background: var(--bg-white);
    padding: clamp(24px, 4vw, 32px); 
    border-radius: var(--radius-2xl); 
    border: 1px solid var(--border-color); 
    transition: all var(--duration-normal) ease; 
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--duration-normal) ease;
}

.use-case-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-2xl);
}

.use-case-card:hover::before {
    transform: scaleX(1);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.startup-icon { background: linear-gradient(135deg, #10B981, #06D6A0); }
.growth-icon { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.enterprise-icon { background: linear-gradient(135deg, #8B5CF6, #6366F1); }

.persona-icon { 
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-stage {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.use-case-card h3 { 
    font-size: var(--text-xl); 
    margin-bottom: var(--space-md); 
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.3;
}

.use-case-card p { 
    color: var(--medium-text); 
    font-size: var(--text-base); 
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.use-case-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.metric {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 4rem; /* Ensure consistent height */
}

.metric-number {
    display: block;
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    white-space: nowrap; /* Prevent number from wrapping */
}

.metric-label {
    font-size: var(--text-xs);
    color: var(--light-text);
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    max-width: 100%;
    hyphens: auto; /* Allow hyphenation for longer labels */
}

/* Progressive Disclosure for Use Cases */
.use-case-expansion {
    margin-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-lg);
}

.expansion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.use-case-card.expanded .expansion-content {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease 0.2s, 
                transform 0.3s ease 0.2s;
}

.expansion-content h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: var(--space-md);
}

.benefit-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--medium-text);
    font-weight: 500;
}

.benefit-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    transition: all var(--duration-normal) ease;
    padding: var(--space-sm) 0;
}

.expand-btn:hover {
    color: var(--primary-hover);
    gap: var(--space-sm);
}

.expand-arrow {
    transition: transform var(--duration-normal) ease;
    font-size: 1.2em;
}

.use-case-card.expanded .expand-arrow {
    transform: rotate(180deg);
}

.use-case-card.expanded .expand-text::after {
    content: " Less";
}

/* --- HOW IT WORKS --- */
#how-it-works { 
    background-color: var(--bg-dark); 
}

#how-it-works .section-header .section-title { 
    color: var(--white-text) !important; 
}

#how-it-works .section-header .section-subtitle { 
    color: var(--light-white-text) !important; 
}

#how-it-works .section-header .tagline {
    color: var(--primary-color) !important;
}
/* Serpentine Layout for How It Works */
.how-it-works-serpent {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    position: relative;
}

.serpent-step {
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 60px);
    margin-bottom: clamp(60px, 10vw, 100px);
    position: relative;
}

/* All steps centered */
.step-1, .step-2, .step-3 {
    justify-content: center;
}

.step-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 201, 167, 0.8));
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.3);
    flex-shrink: 0;
}

.step-text h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--white-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-text p {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--light-white-text);
    line-height: 1.6;
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.step-visual:hover {
    background: rgba(0, 201, 167, 0.1);
    border-color: rgba(0, 201, 167, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 201, 167, 0.2);
}

.visual-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.step-visual:hover .visual-icon {
    filter: grayscale(0);
}

.visual-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light-white-text);
    text-align: center;
}


/* --- DEMO SECTION --- */
.demo-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.demo-text .section-header {
    text-align: left;
    margin-bottom: var(--space-2xl);
}

.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.5rem;
    background: rgba(0, 102, 204, 0.1);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: var(--space-xs);
}

.benefit-item p {
    color: var(--light-text);
    font-size: var(--text-base);
    line-height: 1.6;
}

.demo-form-card {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.demo-form-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* --- ENHANCED TESTIMONIALS --- */
#testimonial { 
    background: var(--bg-white);
}

#testimonial .section-header .section-title {
    color: var(--dark-text) !important;
}

#testimonial .section-header .section-subtitle {
    color: var(--medium-text) !important;
}

#testimonial .section-header .tagline {
    color: var(--primary-color) !important;
}

.company-logos {
    margin-bottom: var(--space-3xl);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-2xl);
    align-items: center;
    justify-items: center;
    padding: var(--space-2xl);
    background: var(--bg-light);
    border-radius: var(--radius-xl);
}

.logo-grid img {
    filter: grayscale(1) opacity(0.6);
    transition: all var(--duration-normal) ease;
    max-height: 40px;
    width: auto;
}

.logo-grid img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(24px, 4vw, 32px);
    align-items: start;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    padding: clamp(24px, 4vw, 32px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--duration-normal) ease;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars { 
    color: #facc15; 
    margin-bottom: var(--space-lg); 
    font-size: 1.1rem; 
}

.testimonial-quote { 
    font-size: var(--text-lg); 
    font-weight: 500; 
    line-height: 1.6; 
    color: var(--enterprise-gray); 
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: var(--space-md); 
}

.testimonial-author img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover;
}

.author-info strong { 
    display: block; 
    font-size: var(--text-base); 
    font-weight: 600; 
    color: var(--enterprise-gray);
    margin-bottom: var(--space-xs);
}

.author-info span { 
    color: var(--trust-teal); 
    font-size: var(--text-sm); 
    font-weight: 500;
}

/* --- PRICING (Coming Soon) --- */
#pricing { 
    background-color: var(--bg-light); 
}

#pricing .section-header .section-title {
    color: var(--dark-text) !important;
}

#pricing .section-header .section-subtitle {
    color: var(--medium-text) !important;
}

#pricing .section-header .tagline {
    color: var(--primary-color) !important;
}

/* Pricing Tiers */
.pricing-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-tier {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-tier:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.15);
    transform: translateY(-3px);
}

.free-tier {
    border-color: var(--success-color);
}

.free-tier::before {
    content: "POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-header {
    margin-bottom: var(--space-lg);
}

.tier-header h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: var(--space-sm);
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.tier-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.tier-price .period {
    font-size: var(--text-base);
    color: var(--medium-text);
    font-weight: 500;
}

.tier-features {
    text-align: left;
}

.feature-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(0, 201, 167, 0.1);
    border-radius: var(--radius-md);
}

.feature-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.feature-text {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--dark-text);
}

.tier-features ul {
    list-style: none;
    padding: 0;
}

.tier-features li {
    padding: var(--space-xs) 0;
    color: var(--medium-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tier-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-note {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(0, 201, 167, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 201, 167, 0.1);
}

.pricing-note p {
    margin-bottom: var(--space-sm);
    color: var(--medium-text);
}

.pricing-note p:last-child {
    margin-bottom: 0;
}

.community-message {
    font-style: italic;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.pricing-cta-container { 
    text-align: center; 
}

/* --- LEGAL MODALS --- */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 2% auto;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.modal-header h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    font-weight: 300;
    color: var(--medium-text);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark-text);
}

.modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding: 0;
}

.legal-content {
    padding: var(--space-xl);
    line-height: 1.6;
}

.last-updated {
    font-style: italic;
    color: var(--medium-text);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.legal-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark-text);
    margin: var(--space-xl) 0 var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-xs);
}

.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--dark-text);
    margin: var(--space-lg) 0 var(--space-sm) 0;
}

.legal-content p {
    color: var(--medium-text);
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.legal-content li {
    color: var(--medium-text);
    margin-bottom: var(--space-xs);
}

/* Mobile modal styling */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: var(--space-lg);
    }
    
    .legal-content {
        padding: var(--space-lg);
    }
    
    .modal-header h2 {
        font-size: var(--text-lg);
    }
}

/* --- ENHANCED FINAL CTA --- */
#waiting-list { 
    padding: clamp(80px, 12vw, 120px) 0; 
    background: var(--bg-dark); 
}

.final-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 8vw, 64px);
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.final-cta-text .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

#waiting-list .section-header .section-title {
    color: var(--white-text) !important;
}

#waiting-list .section-header .section-subtitle {
    color: var(--light-white-text) !important;
}

#waiting-list .section-header .tagline {
    color: var(--primary-color) !important;
}

.final-cta-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
}

.final-benefit {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--medium-text);
    font-size: var(--text-base);
    font-weight: 500;
}

.benefit-check {
    background: var(--success-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cta-button.large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
    font-weight: 700;
}

.cta-separator {
    color: var(--muted-text);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
    margin: 0 auto;
}

.signup-form-container {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

/* --- FAQ --- */
#faq { 
    background-color: white; 
}

#faq .section-header .section-title {
    color: var(--dark-text) !important;
}

#faq .section-header .section-subtitle {
    color: var(--medium-text) !important;
}

#faq .section-header .tagline {
    color: var(--primary-color) !important;
}

.faq-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 clamp(20px, 4vw, 40px);
}

.faq-item { 
    border-bottom: 1px solid var(--border-color);
    transition: all var(--duration-normal) ease;
}

.faq-item:hover {
    background-color: rgba(0, 201, 167, 0.02);
}

.faq-question {
    width: 100%; 
    background: none; 
    border: none; 
    text-align: left;
    padding: clamp(20px, 4vw, 32px) 0; 
    font-size: clamp(1rem, 2vw, 1.25rem); 
    font-weight: 600; 
    cursor: pointer;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    color: var(--dark-text);
    line-height: 1.4;
}

.faq-question:hover { 
    color: var(--primary-color); 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-in-out; 
    color: var(--medium-text); 
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.faq-answer p { 
    padding-bottom: clamp(20px, 4vw, 32px); 
    line-height: 1.6; 
    margin: 0;
}

.faq-toggle { 
    font-size: 1.5rem; 
    transition: transform 0.3s ease; 
    color: var(--primary-color); 
    font-weight: 400; 
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item.active .faq-toggle { 
    transform: rotate(45deg); 
}

/* --- FOOTER --- */
footer { background: var(--bg-dark); color: white; padding: 80px 0 40px 0; font-size: 0.95rem; border-top: 1px solid #334155; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-about .logo { margin-bottom: 20px; }
.footer-about .logo .logo-text { color: white; background: none; -webkit-text-fill-color: unset; }
.footer-about p { color: #94a3b8; max-width: 300px; }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: white; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding-left: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--secondary-color); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; color: #94a3b8; }
.footer-socials a { color: #94a3b8; margin-left: 20px; transition: color 0.3s ease; font-size: 1.2rem; }
.footer-socials a:hover { color: white; }

/* --- Enhanced Responsive Design --- */

/* Performance optimizations */
.logo-marquee {
    contain: layout style paint;
    transform: translateZ(0); /* Force hardware acceleration */
}

.db-logo-item img {
    will-change: filter, opacity;
    transition: filter var(--duration-normal) ease, opacity var(--duration-normal) ease;
}

.db-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Tablet optimizations */
@media (max-width: 1024px) {
    .hero {
        min-height: 90vh;
    }
    
    
    
    .final-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .how-it-works-visual {
        position: relative;
        top: auto;
        margin-top: var(--space-xl);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .section {
        padding: clamp(60px, 12vw, 80px) 0;
    }
    
    .section-overlapping {
        margin-top: 0;
        padding-top: clamp(60px, 12vw, 80px);
        border-radius: 0;
    }
    
    .container {
        padding: 0 clamp(16px, 4vw, 24px);
    }
    
    .section-header {
        margin-bottom: clamp(32px, 8vw, 48px);
    }
    
    /* Mobile navigation */
    .nav-links {
        display: none;
    }
    
    .nav-content {
        gap: var(--space-sm); /* Reduce gap on mobile */
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .nav-ctas {
        gap: var(--space-xs);
        flex-shrink: 0;
    }
    
    .nav-ctas .cta-button {
        padding: var(--space-xs) var(--space-sm); /* Smaller padding on mobile */
        font-size: var(--text-xs);
        white-space: nowrap;
    }
    
    /* Responsive data flows for mobile */
    .data-flows-bg {
        opacity: 0.3;
    }
    
    .flow-line {
        height: 1px;
    }
    
    .data-packet {
        width: 4px;
        height: 4px;
    }
    
    .data-packet::before {
        width: 6px;
        height: 6px;
        top: -1px;
        left: -1px;
    }
    
    /* Hide some flow lines on mobile for better performance */
    .flow-line-5,
    .flow-line-6 {
        display: none;
    }
    
    
    /* Mobile hero */
    .hero {
        padding-top: clamp(40px, 8vw, 60px);
        padding-bottom: clamp(120px, 20vw, 140px);
        min-height: 85vh;
    }
    
    .hero-visual {
        bottom: var(--space-lg);
    }
    
    .hero h1 {
        margin-bottom: var(--space-md);
    }
    
    .hero .hero-subtitle {
        margin-bottom: var(--space-xl);
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .trust-indicators {
        gap: var(--space-xl);
    }
    
    .trust-indicators .trust-item {
        min-width: 80px;
    }
    
    /* Mobile demo section */
    .demo-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .demo-text .section-header {
        text-align: center;
    }
    
    /* Mobile testimonials */
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Mobile sections */
    .section-header {
        margin-bottom: clamp(30px, 6vw, 40px);
    }
    
    .section-header .section-title {
        line-height: 1.2;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .use-case-card {
        padding: var(--space-xl);
    }
    
    .use-case-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    /* Mobile serpent how it works */
    .serpent-step {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-bottom: 80px;
    }
    
    /* All steps align center on mobile */
    .step-2 {
        flex-direction: column;
    }
    
    .step-content {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-visual {
        width: 120px;
        height: 120px;
    }
    
    .visual-icon {
        font-size: 2.5rem;
    }
    
    /* Hide connectors on mobile */
    .serpent-connector {
        display: none;
    }
    
    /* Mobile testimonial */
    .testimonial-card {
        padding: var(--space-xl);
        margin: 0 var(--space-md);
    }
    
    .testimonial-quote {
        font-size: var(--text-lg);
        line-height: 1.6;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    /* Mobile FAQ */
    .faq-question {
        padding: var(--space-lg) 0;
        font-size: var(--text-base);
    }
    
    .faq-answer {
        font-size: var(--text-sm);
        color: #1E293B !important; /* Force dark color on mobile */
    }
    
    /* Fix FAQ questions contrast on mobile */
    .faq-question {
        color: #1E293B !important; /* Force dark color on mobile */
    }
    
    /* Improve contrast for use case cards on mobile */
    .use-case-card p {
        color: var(--dark-text) !important; /* Better contrast on mobile */
    }
    
    /* Fix contrast for features section subtitle on mobile */
    #features .section-header .section-subtitle {
        color: #1E293B !important; /* Force dark color on mobile */
    }
    
    /* Fix contrast for FAQ section title on mobile */
    #faq .section-header .section-title {
        color: var(--dark-text) !important; /* Better contrast on mobile */
    }
    
    /* Fix contrast for features section title on mobile */
    #features .section-header .section-title {
        color: #1E293B !important; /* Force dark color on mobile */
    }
    
    /* Fix contrast for testimonials section on mobile */
    #testimonial .section-header .section-title,
    #testimonial .section-header .section-subtitle,
    #testimonial .testimonial-quote,
    #testimonial .author-info strong,
    #testimonial .author-info span {
        color: var(--dark-text) !important; /* Better contrast on mobile */
    }
    
    /* Mobile footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .footer-about .logo {
        justify-content: center;
    }
    
    .footer-about p {
        margin: 0 auto;
        max-width: 280px;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-socials a {
        margin: 0 var(--space-md);
    }
    
    /* Mobile final CTA */
    .final-cta-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .final-cta-text .section-header {
        text-align: center;
    }
    
    .final-cta-buttons {
        align-items: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }
    
    .hero p {
        font-size: var(--text-lg);
    }
    
    .cta-button {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--text-sm);
    }
    
    .section-header .section-title {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }
    
    .testimonial-card {
        padding: var(--space-lg);
        margin: 0;
    }
    
    .db-logo-item img {
        height: 60px;
    }
    
    .logo-marquee {
        padding: var(--space-lg) 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .db-logo-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-text: #f8fafc;
        --medium-text: #e2e8f0;
        --light-text: #94a3b8;
        --bg-white: #0f172a;
        --bg-light: #1e293b;
        --bg-gray: #334155;
    }
}

/* Print styles */
@media print {
    .nav-links,
    .cta-button,
    .hero-visual,
    footer {
        display: none;
    }
    
    .hero {
        padding: var(--space-lg) 0;
        background: none;
    }
    
    .section {
        padding: var(--space-lg) 0;
        break-inside: avoid;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}