/* ============================================
   Cardiomics.ai - Ultra High-Tech Design System
   ============================================ */

:root {
    /* Core Colors */
    --primary-cyan: #06b6d4;
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;

    /* Background Colors */
    --bg-dark: #030308;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-elevated: rgba(10, 10, 20, 0.8);

    /* Border & Text */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(6, 182, 212, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.65); /* Increased from 0.4 for WCAG contrast */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    --gradient-secondary: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    --gradient-glow: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    --gradient-radial: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15), transparent 70%);

    /* Sizing */
    --nav-height: 72px;
    --container-max: 1400px;
    --section-padding: 20px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-base: 0.4s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

/* ============================================
   Accessibility Styles
   ============================================ */

/* Skip Link - Hidden until focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-cyan);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Focus Styles - Visible focus indicators */
*:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Button focus */
.btn:focus-visible {
    outline: 3px solid var(--primary-cyan);
    outline-offset: 3px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Link focus */
a:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Form element focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 0;
    border-color: var(--primary-cyan);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: rgba(255, 255, 255, 0.85);
        --text-muted: rgba(255, 255, 255, 0.7);
        --border-color: rgba(255, 255, 255, 0.3);
    }

    .gradient-text {
        -webkit-text-fill-color: var(--primary-cyan);
    }
}

/* Reduced motion support */
@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;
    }

    .orb {
        animation: none;
    }

    .cursor-glow {
        display: none;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Background Layers
   ============================================ */
.bg-layers {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.gradient-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-cyan);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-purple);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--primary-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

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

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

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

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(3, 3, 8, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(3, 3, 8, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

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

.logo-mark {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
    transition: filter var(--transition-fast);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.7));
}

.logo-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--primary-cyan);
    opacity: 0;
    animation: logoPulse 2s ease-out infinite;
}

@keyframes logoPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

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

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 12px;
}

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

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.4;
    filter: blur(10px);
    transition: opacity var(--transition-fast);
}

.btn-glow:hover::after {
    opacity: 0.6;
}

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

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

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

.play-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon svg {
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 60px) 24px 60px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    flex: 1;
}

.hero-container > * {
    overflow: visible;
}

.hero-content {
    max-width: 720px;
    overflow: visible;
}

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    margin-bottom: 32px;
    overflow: hidden;
}

.badge-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-green);
}

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

.badge-text {
    color: var(--text-secondary);
}

.badge-version {
    padding: 2px 8px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.hero-title {
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-line:nth-child(2) {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

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

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 480px;
}

.hero-subtitle .highlight {
    color: var(--primary-cyan);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Hero Metrics */
.hero-metrics {
    display: flex;
    gap: 40px;
}

.metric-item {
    flex: 1;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.metric-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    width: var(--fill);
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: fillBar 2s var(--ease-out-expo) forwards;
    transform-origin: left;
}

@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.visual-container {
    position: relative;
    width: 400px;
    height: 400px;
}

/* Ring System */
.ring-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: ringRotate 20s linear infinite;
}

.ring-outer {
    width: 85%;
    height: 85%;
    border-color: rgba(6, 182, 212, 0.2);
    animation-duration: 30s;
}

.ring-middle {
    width: 65%;
    height: 65%;
    border-color: rgba(139, 92, 246, 0.2);
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-inner {
    width: 45%;
    height: 45%;
    border-color: rgba(236, 72, 153, 0.2);
    animation-duration: 20s;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ring-core {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coreFloat 4s ease-in-out infinite;
}

.heart-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.5));
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
}

/* ECG Wave */
.ecg-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
    opacity: 0.6;
}

.ecg-wave {
    width: 100%;
    height: 100%;
}

.ecg-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawEcg 4s ease-in-out infinite;
}

@keyframes drawEcg {
    0% { stroke-dashoffset: 2000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2000; }
}

/* Data Cards */
.data-card {
    position: absolute;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 160px;
    animation: cardFloat 6s ease-in-out infinite;
}

.data-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), transparent, rgba(139, 92, 246, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card-1 {
    top: -20px;
    right: -40px;
    animation-delay: 0s;
}

.card-2 {
    top: 25%;
    left: -60px;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.card-3 {
    bottom: -20px;
    right: 0;
    animation-delay: -4s;
}

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

.card-2 {
    animation-name: cardFloat2;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.card-dot.green { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.card-dot.cyan { background: var(--primary-cyan); box-shadow: 0 0 8px var(--primary-cyan); }
.card-dot.purple { background: var(--primary-purple); box-shadow: 0 0 8px var(--primary-purple); }

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}

.card-value span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

.card-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.confidence-dots {
    display: flex;
    gap: 4px;
}

.confidence-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.confidence-dots .dot.active {
    background: var(--accent-green);
}

/* Connectors */
.connector {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-cyan), transparent);
    opacity: 0.3;
}

.connector-1 { top: 15%; left: 45%; transform: rotate(45deg); }
.connector-2 { top: 60%; left: 20%; transform: rotate(-30deg); }
.connector-3 { bottom: 20%; right: 30%; transform: rotate(60deg); }

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
}

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

/* ============================================
   Trusted Section
   ============================================ */
.trusted-section {
    padding: 60px 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.trusted-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.logo-item:hover {
    opacity: 1;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding) 24px;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-cyan);
    margin-bottom: 24px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Pulse Section
   ============================================ */
.pulse-section {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.02) 50%, transparent 100%);
}

.pulse-showcase {
    position: relative;
    margin-bottom: 80px;
}

.showcase-window {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.window-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
}

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

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

.window-dots .dot.red { background: #ff5f57; }
.window-dots .dot.yellow { background: #febc2e; }
.window-dots .dot.green { background: #28c840; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.window-actions {
    display: flex;
    gap: 8px;
}

.action-dot {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    border-radius: 2px;
}

.window-content {
    display: flex;
    min-height: 400px;
}

.preview-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-color);
    padding: 16px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-item.active {
    background: var(--gradient-glow);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
}

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

.preview-main {
    flex: 1;
    padding: 24px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.video-preview, .waveform-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-overlay {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px dashed var(--primary-cyan);
    border-radius: 8px;
    animation: roiPulse 2s ease-in-out infinite;
}

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

.play-overlay {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.play-overlay svg {
    width: 20px;
    height: 20px;
    margin-left: 4px;
    color: white;
}

.video-timeline {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
}

.timeline-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 35%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
}

.timeline-markers span {
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    opacity: 0.5;
}

.waveform-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.waveform-preview svg {
    width: 100%;
    height: 80px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-box .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-box .value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-cyan);
}

.metric-box .value small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Feature Tags */
.feature-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    animation: tagFloat 6s ease-in-out infinite;
}

.feature-tag svg {
    width: 16px;
    height: 16px;
    color: var(--primary-cyan);
}

.tag-1 { top: 20%; left: -60px; animation-delay: 0s; }
.tag-2 { top: 50%; right: -80px; animation-delay: -2s; }
.tag-3 { bottom: 15%; left: -40px; animation-delay: -4s; }

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

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.capability-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: all var(--transition-base);
}

.capability-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-8px);
}

.capability-card .card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.capability-card .card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-cyan);
}

.capability-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pulse-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   Features Bento Grid
   ============================================ */
.features-section {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.02) 50%, transparent 100%);
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.bento-medium {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 200px;
}

.neural-network .node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-cyan);
    animation: nodeGlow 2s ease-in-out infinite;
}

.node-1 { top: 30%; left: 20%; animation-delay: 0s; }
.node-2 { top: 20%; right: 20%; animation-delay: 0.3s; }
.node-3 { top: 50%; left: 50%; animation-delay: 0.6s; width: 16px; height: 16px; background: var(--primary-purple); box-shadow: 0 0 25px var(--primary-purple); }
.node-4 { bottom: 20%; left: 30%; animation-delay: 0.9s; }
.node-5 { bottom: 30%; right: 30%; animation-delay: 1.2s; }

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

.neural-network .connections {
    position: absolute;
    inset: 0;
}

.neural-network .connections line {
    stroke: rgba(6, 182, 212, 0.2);
    stroke-width: 1;
}

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

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-cyan);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

.processing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: processingDot 1.4s ease-in-out infinite;
}

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

@keyframes processingDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.cloud-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-cyan);
    opacity: 0.6;
}

/* ============================================
   Analysis Section
   ============================================ */
.analysis-section {
    background: linear-gradient(180deg, transparent 0%, rgba(236, 72, 153, 0.02) 50%, transparent 100%);
}

.analysis-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.analysis-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: all var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.analysis-card > p {
    min-height: 4.5em;
}

.analysis-card .param-list {
    flex: 1;
}

.analysis-card > .btn {
    margin-top: auto;
}

.analysis-card:hover {
    transform: translateY(-8px);
}

.analysis-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.analysis-card:hover .card-glow {
    opacity: 1;
}

.card-contraction .card-glow { background: linear-gradient(180deg, rgba(6, 182, 212, 0.1), transparent); }
.card-contraction .card-icon { background: rgba(6, 182, 212, 0.1); }
.card-contraction .card-icon svg { color: var(--primary-cyan); }
.card-contraction .param-dot { background: var(--primary-cyan); }

.card-calcium .card-glow { background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent); }
.card-calcium .card-icon { background: rgba(139, 92, 246, 0.1); }
.card-calcium .card-icon svg { color: var(--primary-purple); }
.card-calcium .param-dot { background: var(--primary-purple); }

.card-voltage .card-glow { background: linear-gradient(180deg, rgba(236, 72, 153, 0.1), transparent); }
.card-voltage .card-icon { background: rgba(236, 72, 153, 0.1); }
.card-voltage .card-icon svg { color: var(--primary-pink); }
.card-voltage .param-dot { background: var(--primary-pink); }

.analysis-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.analysis-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.analysis-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.param-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.param-list li:last-child {
    border-bottom: none;
}

.param-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 24px;
}

.cta-card {
    position: relative;
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-glow-1, .cta-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-glow-1 {
    top: -200px;
    left: -100px;
    background: rgba(255, 255, 255, 0.2);
}

.cta-glow-2 {
    bottom: -200px;
    right: -100px;
    background: rgba(255, 255, 255, 0.1);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

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

.orbit-system {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.orbit-1 {
    inset: 0;
    animation: orbitRotate 20s linear infinite;
}

.orbit-1::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-2 {
    inset: 40px;
    animation: orbitRotate 15s linear infinite reverse;
}

.orbit-2::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.orbit-3 {
    inset: 80px;
    animation: orbitRotate 10s linear infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.orbit-center svg {
    width: 80px;
    height: 80px;
}

/* Investment CTA */
.invest-cta .cta-content {
    max-width: 600px;
}

.invest-cta .cta-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

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

.cta-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.cta-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .cta-stats {
        gap: 24px;
    }
    .cta-stat .stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

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

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

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

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

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

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

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

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

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

    .bento-large {
        grid-column: span 2;
    }

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

    .analysis-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .title-line {
        font-size: 2.5rem !important;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .data-card {
        display: none;
    }

    .connector {
        display: none;
    }

    .trusted-logos {
        gap: 30px;
    }

    .window-content {
        flex-direction: column;
    }

    .preview-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-nav {
        flex-direction: row;
    }

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

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

    .feature-tag {
        display: none;
    }

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

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

    .bento-large, .bento-medium {
        grid-column: span 1;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 60px 32px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

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

    .cta-visual {
        display: none;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

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

/* ============================================
   Animation Classes (for JS)
   ============================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

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

.fade-in {
    animation: fadeIn 0.8s var(--ease-out-expo) forwards;
}

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

/* ============================================
   Video Showcase Section
   ============================================ */
.video-showcase-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(6, 182, 212, 0.05) 50%, var(--bg-primary) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.video-showcase-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.video-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), transparent 50%, rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.video-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow:
        0 25px 80px rgba(6, 182, 212, 0.2),
        0 10px 30px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.video-card.video-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
}

.video-card.video-card-large .video-wrapper {
    padding-top: 100%;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .video-wrapper video {
    transform: scale(1.08);
}

.video-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top,
        rgba(10, 10, 15, 0.98) 0%,
        rgba(10, 10, 15, 0.8) 40%,
        transparent 100%);
    pointer-events: none;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}

.video-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.video-badge.phenotype {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.video-badge.calcium {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.video-badge.ai {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.video-badge.eht {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.video-badge.organoid {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.video-badge.wave {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.video-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-card.video-card-large .video-info h3 {
    font-size: 1.5rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.9;
}

/* Parameter Showcase */
.param-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.param-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.param-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.param-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.param-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.param-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.highlight-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-cyan);
    min-width: 100px;
}

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

/* Responsive Video Showcase */
@media (max-width: 1024px) {
    .video-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-card.video-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .video-card.video-card-large .video-wrapper {
        padding-top: 56.25%;
    }

    .param-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .video-showcase-grid {
        grid-template-columns: 1fr;
    }

    .video-card.video-card-large {
        grid-column: span 1;
    }

    .param-info h3 {
        font-size: 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   User Menu Dropdown Styles
   ============================================ */

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-violet));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.user-name-nav {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.user-dropdown-section {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 12px 12px 6px;
    margin-top: 4px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
}

.user-dropdown-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.user-dropdown-item:hover svg {
    opacity: 1;
}

.user-dropdown-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-dropdown-role {
    margin-top: 4px;
}

/* Mobile User Menu */
@media (max-width: 768px) {
    .user-name-nav {
        display: none;
    }

    .user-menu-trigger svg:last-child {
        display: none;
    }

    .user-menu-trigger {
        padding: 4px;
        border-radius: 50%;
    }

    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* ============================================
   Login Panel - Slide-in Modal
   ============================================ */
.login-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.login-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(165deg, rgba(15, 15, 25, 0.98) 0%, rgba(8, 8, 16, 0.99) 100%);
    border-left: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.6),
        -4px 0 20px rgba(6, 182, 212, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.03);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-panel.active {
    transform: translateX(0);
}

.login-panel-header {
    padding: 24px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, transparent 100%);
    position: relative;
}

.login-panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.login-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-panel-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-cyan);
}

.login-panel-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-panel-close:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.login-panel-content {
    flex: 1;
    padding: 32px 24px;
}

.login-panel-welcome {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.login-panel-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 18px;
    position: relative;
    animation: logoPulse 3s ease-in-out infinite;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.login-panel-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-panel-logo:hover::before {
    opacity: 1;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.15), inset 0 0 15px rgba(6, 182, 212, 0.1);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 35px rgba(6, 182, 212, 0.3), inset 0 0 20px rgba(6, 182, 212, 0.15);
    }
}

.login-panel-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-panel-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-panel-form .form-group {
    margin-bottom: 20px;
}

.login-panel-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.login-panel-form .input-wrapper {
    position: relative;
}

.login-panel-form .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-panel-form input[type="text"],
.login-panel-form input[type="password"] {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.login-panel-form input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.login-panel-form .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.login-panel-form .password-toggle:hover {
    color: var(--primary-cyan);
}

.login-panel-form .password-toggle svg {
    width: 18px;
    height: 18px;
}

.login-panel-form .password-toggle .eye-closed {
    display: none;
}

.login-panel-form .password-toggle.showing .eye-open {
    display: none;
}

.login-panel-form .password-toggle.showing .eye-closed {
    display: block;
}

.login-panel-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.login-panel-options .forgot-link {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}

.login-panel-options .forgot-link:hover {
    opacity: 0.8;
}

.login-panel-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.login-panel-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-panel-submit:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(6, 182, 212, 0.35),
        0 4px 10px rgba(139, 92, 246, 0.2);
}

.login-panel-submit:hover::before {
    opacity: 1;
}

.login-panel-submit:active {
    transform: translateY(-1px);
}

.login-panel-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-panel-submit svg {
    width: 18px;
    height: 18px;
}

.login-panel-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: none;
}

.login-panel-error.show {
    display: block;
}

.login-panel-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.login-panel-divider::before,
.login-panel-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-panel-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-panel-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-panel-footer a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 500;
}

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

.login-panel-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.login-panel-security svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
}

@media (max-width: 480px) {
    .login-panel {
        width: 100%;
    }
}

/* ============================================
   Mobile Improvements & Touch Targets
   ============================================ */

/* Ensure minimum touch target size (48x48px recommended) */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .social-link,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-sm {
        min-height: 40px;
        padding: 10px 18px;
    }

    .social-link {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Increase form input sizes */
    input,
    textarea,
    select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Better mobile menu toggle */
    .mobile-menu-btn {
        width: 48px;
        height: 48px;
    }
}

/* Better mobile navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(3, 3, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 16px 0;
    }

    #guest-nav,
    #user-nav {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    #guest-nav .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero mobile layout */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 16px;
    }

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

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

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

    /* Video showcase grid mobile */
    .video-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .video-card {
        aspect-ratio: 16/10;
    }

    /* Stats grid mobile */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .stat-card {
        padding: 20px 16px;
    }

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

    /* Pricing cards mobile */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .pricing-card.featured {
        transform: none;
        margin: 0;
    }

    /* Partner/Industry cards mobile */
    .partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    /* Section padding mobile */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }
}

/* Small mobile screens */
@media (max-width: 400px) {
    .partner-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .section-badge {
        font-size: 0.7rem;
    }
}

/* ============================================
   Loading States & Skeleton Screens
   ============================================ */

/* Skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.08) 40px,
        rgba(255, 255, 255, 0.03) 80px
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-title {
    height: 2em;
    width: 70%;
    margin-bottom: 1em;
}

.skeleton-card {
    height: 200px;
    border-radius: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Page loading overlay */
.page-loading {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-loading.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* ============================================
   Contact Page Styles
   ============================================ */

/* Contact Quick Actions */
.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

@media (max-width: 968px) {
    .contact-actions {
        grid-template-columns: 1fr;
    }
}

.contact-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.contact-action-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--gradient-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-action-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}

.contact-action-card:hover::before {
    opacity: 1;
}

.contact-action-card.demo { --card-accent: linear-gradient(90deg, #06b6d4, #22d3ee); }
.contact-action-card.support { --card-accent: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.contact-action-card.partner { --card-accent: linear-gradient(90deg, #10b981, #34d399); }

.contact-action-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

.contact-action-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: inherit;
    opacity: 0.3;
    filter: blur(12px);
}

.contact-action-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.contact-action-icon.purple { background: rgba(139, 92, 246, 0.15); }
.contact-action-icon.green { background: rgba(16, 185, 129, 0.15); }

.contact-action-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.contact-action-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.contact-action-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.contact-form-header {
    margin-bottom: 32px;
}

.contact-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group label .required {
    color: var(--primary-cyan);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background: rgba(6, 182, 212, 0.03);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 48px;
}

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

.form-submit-btn {
    margin-top: 8px;
}

/* Contact Info Sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.info-card .info-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-card .info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-cyan);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-card p + p {
    margin-top: 4px;
}

.info-card a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: #22d3ee;
}

.info-card.highlight {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    border-color: rgba(6, 182, 212, 0.25);
}

.info-card.highlight .info-icon {
    background: var(--gradient-primary);
}

.info-card.highlight .info-icon svg {
    stroke: white;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.02);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-item h3::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    padding-left: 40px;
}

/* Office Hours CTA */
.office-hours-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.office-hours-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    pointer-events: none;
}

.office-hours-card::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.office-hours-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    position: relative;
}

.office-hours-card p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.office-hours-card .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}



/* ============================================
   Pricing Page Styles
   ============================================ */

/* Pricing Toggle (Annual/Monthly) */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-toggle-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.pricing-toggle-label.active {
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-toggle-switch {
    width: 56px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.pricing-toggle-switch.annual::after {
    transform: translateX(28px);
}

.pricing-toggle-switch:hover {
    border-color: var(--primary-cyan);
}

.pricing-save-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

/* Pricing Card */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, var(--bg-card) 50%);
    border-color: rgba(6, 182, 212, 0.3);
    transform: scale(1.02);
    z-index: 1;
}

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

.pricing-card.featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.pricing-price {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.price-original {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

/* Pricing Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features li.highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* Academic Banner */
.academic-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.academic-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .academic-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

.academic-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

@media (max-width: 768px) {
    .academic-content {
        flex-direction: column;
    }
}

.academic-icon {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.academic-icon svg {
    width: 32px;
    height: 32px;
    stroke: #8b5cf6;
}

.academic-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.academic-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    max-width: 500px;
}

/* Comparison Table */
.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 32px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table th {
    padding: 20px 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child {
    text-align: left;
    width: 35%;
}

.comparison-table th:nth-child(3) {
    background: rgba(6, 182, 212, 0.08);
    position: relative;
}

.comparison-table th:nth-child(3)::before {
    content: "Popular";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.comparison-table td {
    padding: 16px 24px;
    text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table td:nth-child(3) {
    background: rgba(6, 182, 212, 0.03);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.comparison-table td svg {
    width: 20px;
    height: 20px;
}

.comparison-table td .dash {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Guarantee Badge */
.guarantee-section {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guarantee-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-green);
}

/* Trusted By Section */
.trusted-section {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
}

.trusted-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 24px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.trusted-logos img {
    height: 32px;
    filter: grayscale(100%) brightness(200%);
    transition: all 0.3s ease;
}

.trusted-logos img:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

