/* ==========================================
   Premium Design System & Variables
   ========================================== */
:root {
    /* Gradient Color Palette - Sky to Blue */
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    /* Accent Colors */
    --accent-green: #10b981;
    
    /* Background Colors - Deep Dark Theme */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1420;
    --bg-tertiary: #151b2b;
    --bg-card: rgba(15, 20, 32, 0.6);
    --bg-card-hover: rgba(15, 20, 32, 0.9);
    
    /* Glass Morphism */
    --glass-bg: rgba(15, 20, 32, 0.4);
    --glass-border: rgba(59, 130, 246, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--sky-500) 0%, var(--blue-500) 100%);
    --gradient-hover: linear-gradient(135deg, var(--sky-600) 0%, var(--blue-600) 100%);
    --gradient-intense: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-400) 50%, var(--blue-600) 100%);
    --gradient-radial: radial-gradient(circle at 50% 50%, var(--sky-500), var(--blue-600));
    
    /* Glow Effects */
    --glow-sm: 0 0 10px rgba(14, 165, 233, 0.2);
    --glow-md: 0 0 20px rgba(14, 165, 233, 0.3);
    --glow-lg: 0 0 40px rgba(14, 165, 233, 0.4);
    --glow-xl: 0 0 60px rgba(14, 165, 233, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index */
    --z-canvas: 0;
    --z-base: 1;
    --z-orbs: 2;
    --z-content: 10;
    --z-nav: 50;
    --z-modal: 100;
}

/* ==========================================
   Light Theme Variables
   ========================================== */
[data-theme="light"] {
    /* Keep brand blues - they work in both themes */
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    /* Light theme specific colors */
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    
    /* Light Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    /* Light Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(59, 130, 246, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    
    /* Light Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    
    /* Light theme gradients - keeping brand blues */
    --gradient-primary: linear-gradient(135deg, var(--sky-500) 0%, var(--blue-500) 100%);
    --gradient-hover: linear-gradient(135deg, var(--sky-600) 0%, var(--blue-600) 100%);
    --gradient-intense: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-400) 50%, var(--blue-600) 100%);
    --gradient-radial: radial-gradient(circle at 50% 50%, var(--sky-500), var(--blue-600));
    
    /* Light Glow Effects - softer for light theme */
    --glow-sm: 0 0 10px rgba(14, 165, 233, 0.15);
    --glow-md: 0 0 20px rgba(14, 165, 233, 0.2);
    --glow-lg: 0 0 40px rgba(14, 165, 233, 0.25);
    --glow-xl: 0 0 60px rgba(14, 165, 233, 0.3);
    
    /* Light Shadows - more prominent */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Light theme specific adjustments */
[data-theme="light"] body {
    background-color: var(--bg-primary);
}

[data-theme="light"] #glowCanvas {
    opacity: 0.15;
}

/* Hide particle stars in light mode */
[data-theme="light"] #particleCanvas {
    display: none;
}

[data-theme="light"] .orb {
    opacity: 0.08;
}

[data-theme="light"] .phone-notch {
    background: var(--bg-secondary);
}

[data-theme="light"] .phone-screen {
    background: var(--bg-secondary);
}

[data-theme="light"] .phone-frame {
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 0 80px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .phone-frame:hover {
    box-shadow: 
        0 60px 120px rgba(0, 0, 0, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 0 100px rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .app-screen {
    background: var(--bg-secondary);
}

[data-theme="light"] .app-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-icon {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .header-icon:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-icon::before {
    background: var(--text-secondary);
}

[data-theme="light"] .chip {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

[data-theme="light"] .market-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .market-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card-name {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .detail-title-line {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .detail-subtitle-line {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sentiment-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sentiment-meter {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-pill {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .action-btn.secondary {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .action-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .intel-hero-stat {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(14, 165, 233, 0.12);
}

[data-theme="light"] .chart-container {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .trending-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .trending-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .trending-name-line {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .analysis-banner {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .recommendation-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rec-title-line {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .rec-insight {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .trade-section-box {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .trade-fairness {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

[data-theme="light"] .fairness-meter {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .add-card-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 2px dashed rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .add-card-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .status-step {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .status-line {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .app-nav {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-dot {
    background: var(--text-tertiary);
}

[data-theme="light"] .feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .feature-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 80px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .feature-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 10px 30px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .pricing-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 80px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .pricing-card.featured {
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .pricing-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pricing-button {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .pricing-button:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .input-wrapper input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .input-wrapper input:focus {
    background: var(--bg-primary);
    border-color: var(--blue-500);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(14, 165, 233, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero-stats {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(14, 165, 233, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .hero-stats:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 60px rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .hero-bonus {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-counter {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Adjust gradient colors for light theme with visible shimmer animation */
[data-theme="light"] .hero-title .gradient-text {
    background: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-400) 50%, var(--sky-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* ==========================================
   Theme Transition System
   ========================================== */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   WebGL Canvas Background
   ========================================== */
#glowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
    opacity: 0.4;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
    opacity: 0.6;
}

/* ==========================================
   Gradient Orbs (Ambient Background)
   ========================================== */
.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-orbs);
    pointer-events: none;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--sky-500), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-500), transparent);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--sky-400), transparent);
    bottom: -100px;
    left: 30%;
    animation-delay: 10s;
}

/* ==========================================
   Layout Container
   ========================================== */
.container {
    position: relative;
    z-index: var(--z-content);
    width: 100%;
    min-height: 100vh;
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-lg);
}

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

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

.nav-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(var(--glow-sm));
    transition: all 0.3s var(--ease-out), opacity 0.2s ease;
    cursor: pointer;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(var(--glow-md));
}

/* Smooth logo transition during theme change */
html.theme-transitioning .nav-logo,
html.theme-transitioning .footer-logo img,
html.theme-transitioning .modal-icon {
    opacity: 0.7;
}

.nav-cta {
    position: relative;
    overflow: hidden;
    padding: var(--space-2) var(--space-5);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.nav-link-btn {
    position: relative;
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.nav-link-btn:hover {
    background: var(--glass-bg);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

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

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(80px + var(--space-16)) var(--space-6) var(--space-24);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: badgeShimmer 3s infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: var(--gradient-intense);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    position: relative;
}

.glow-text {
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.5));
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.8) 0%, rgba(15, 20, 32, 0.6) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stats:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.stat {
    text-align: center;
    position: relative;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-2);
    position: relative;
}

.stat-value.gradient-text {
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

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

.stat-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-bonus {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-tertiary);
    font-size: 0.95rem;
    padding: var(--space-3) var(--space-4);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

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

.hero-bonus strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-counter {
    padding: var(--space-3) var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-sm);
}

.counter-icon {
    display: flex;
    align-items: center;
    color: var(--sky-500);
}

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

.counter-text strong {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0 var(--space-1);
    min-width: 40px;
    display: inline-block;
}

/* ==========================================
   Hero Visual - Card Showcase
   ========================================== */
.hero-visual {
    position: relative;
    height: 600px;
}

.hero-visual::after {
    content: none; /* Hidden on desktop by default */
}

.hero-visual.scroll-reveal:not(.revealed) .showcase-card {
    opacity: 0;
    animation-play-state: paused;
}

.hero-visual.scroll-reveal.revealed .showcase-card {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.hero-visual.scroll-reveal.revealed .card-1 {
    transition-delay: 0.1s;
}

.hero-visual.scroll-reveal.revealed .card-2 {
    transition-delay: 0.2s;
}

.hero-visual.scroll-reveal.revealed .card-3 {
    transition-delay: 0.3s;
}

/* ==========================================
   PREMIUM APP MOCKUP DESIGN SYSTEM
   Professional mobile app demonstration
   ========================================== */

/* App Mockup Container */
.app-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

/* Phone Device Frame */
.phone-frame {
    position: relative;
    width: 340px;
    height: 680px;
    background: linear-gradient(145deg, #1e2438 0%, #14182a 100%);
    border-radius: 48px;
    padding: 14px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.7),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.06),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(14, 165, 233, 0.2),
        0 0 120px rgba(59, 130, 246, 0.1);
    animation: phoneFloat 7s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s ease;
}

.phone-frame:hover {
    box-shadow: 
        0 60px 120px rgba(0, 0, 0, 0.8),
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.08),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(14, 165, 233, 0.3),
        0 0 150px rgba(59, 130, 246, 0.15);
}

@keyframes phoneFloat {
    0%, 100% { 
        transform: translateY(0px) rotateY(-3deg) rotateX(2deg); 
    }
    50% { 
        transform: translateY(-25px) rotateY(3deg) rotateX(-2deg); 
    }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 30px;
    background: #0a0e1a;
    border-radius: 0 0 24px 24px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.phone-shadow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.25) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
    filter: blur(25px);
    animation: shadowPulse 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shadowPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateX(-50%) scale(0.92); 
    }
    50% { 
        opacity: 0.7; 
        transform: translateX(-50%) scale(1.08); 
    }
}

/* ==========================================
   SCREEN TRANSITION SYSTEM
   ========================================== */

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.app-screen.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-screen.exit {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    transition: all 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

/* ==========================================
   UNIVERSAL HEADER COMPONENTS
   ========================================== */

.app-header {
    padding: var(--space-4) var(--space-4) var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 56px;
}

.app-logo-small {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    flex-shrink: 0;
}

.header-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-align: center;
}

.header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.08);
}

.header-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.back-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 18l-6-6 6-6' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.search-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.heart-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21l-1.5-1.3C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.5 11.2L12 21z' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.bell-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8c0-3.3-2.7-6-6-6S6 4.7 6 8c0 4-2 6-2 6h16s-2-2-2-6z' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M13.7 21c-.3.5-.9.9-1.7.9s-1.4-.4-1.7-.9' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.filter-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18M7 12h10M11 18h2' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.info-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M12 16v-4M12 8h.01' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

/* ==========================================
   UNIVERSAL CONTENT CONTAINER
   ========================================== */

.app-content {
    flex: 1;
    padding: var(--space-4);
    overflow: hidden;
    position: relative;
}

.app-content.scrollable {
    overflow-y: auto;
    overflow-x: hidden;
}

.app-content.scrollable::-webkit-scrollbar {
    width: 4px;
}

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

.app-content.scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Bottom Navigation */
.app-nav {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(15, 20, 32, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    padding: 4px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-item.active .nav-dot {
    background: var(--gradient-primary);
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

/* Section Labels */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

/* Gradient Card Backgrounds */
.gradient-card-1 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-card-2 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.gradient-card-3 {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.gradient-card-4 {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.gradient-card-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

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

/* ==========================================
   SCREEN 1: MARKETPLACE
   ========================================== */

.filter-chips {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.marketplace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.market-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    aspect-ratio: 0.7;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.card-info {
    padding: var(--space-2) var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-name {
    height: 8px;
    width: 70%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trending-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

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

.deal-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ==========================================
   SCREEN 2: CARD DETAILS
   ========================================== */

.detail-card-image {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 0.7;
    border-radius: 16px;
    margin: 0 auto var(--space-4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(-20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

.detail-main {
    margin-bottom: var(--space-4);
}

.detail-title-line {
    height: 16px;
    width: 85%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: var(--space-2);
}

.detail-subtitle-line {
    height: 12px;
    width: 60%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    margin-bottom: var(--space-3);
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.current-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price-change {
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.price-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.sentiment-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.sentiment-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-3);
    position: relative;
}

.meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.meter-fill.positive {
    width: 78%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    animation: fillMeter 1.5s ease-out;
}

@keyframes fillMeter {
    from { width: 0%; }
    to { width: 78%; }
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.sentiment-stats {
    display: flex;
    gap: var(--space-2);
}

.stat-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-icon {
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    mask-size: contain;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

.stat-icon.trend-up {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 7l-9 9-4-4-6 6M16 7h6v6' stroke='%2310b981' stroke-width='2'/%3E%3C/svg%3E");
    background: #10b981;
}

.stat-icon.volume {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 14h4l5 5V5L7 10H3v4z' stroke='%233b82f6' stroke-width='2'/%3E%3Cpath d='M16 8s2 1 2 4-2 4-2 4' stroke='%233b82f6' stroke-width='2'/%3E%3C/svg%3E");
    background: #3b82f6;
}

.stat-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    gap: var(--space-3);
}

.action-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* ==========================================
   SCREEN 3: MARKET INTELLIGENCE
   ========================================== */

.intel-hero-stat {
    text-align: center;
    padding: var(--space-6) 0;
    margin-bottom: var(--space-4);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, transparent 100%);
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.hero-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.hero-stat-value {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-2);
    animation: countUp 1.5s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-stat-trend {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #10b981;
}

.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    height: 100px;
    justify-content: space-between;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.4) 0%, rgba(14, 165, 233, 0.8) 100%);
    border-radius: 6px 6px 0 0;
    min-height: 20%;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: barGrow 0.8s ease-out both;
}

.chart-bar.active {
    background: linear-gradient(180deg, var(--sky-400) 0%, var(--blue-500) 100%);
    box-shadow: 0 -8px 24px rgba(14, 165, 233, 0.4);
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }

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

.trending-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.trending-card-thumb {
    width: 48px;
    height: 67px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.trending-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trending-name-line {
    height: 10px;
    width: 80%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.trending-change {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    width: fit-content;
}

.trending-change.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.trending-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* ==========================================
   SCREEN 4: UTOPIA ANALYSIS
   ========================================== */

.analysis-banner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 12px;
    margin-bottom: var(--space-4);
}

.banner-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    display: none; /* Hidden when no emoji */
}

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

.banner-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0ea5e9;
}

.recommendation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.rec-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 8px;
}

.rec-badge.hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.rec-confidence {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 6px 12px;
    border-radius: 8px;
}

.rec-body {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.rec-card-image {
    width: 90px;
    height: 126px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.rec-details {
    flex: 1;
}

.rec-title-line {
    height: 14px;
    width: 90%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    margin-bottom: var(--space-3);
}

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

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

.rec-stat-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.rec-stat-value {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rec-stat-value.green {
    color: #10b981;
}

.rec-insight {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(14, 165, 233, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    margin-bottom: var(--space-3);
}

.insight-icon {
    font-size: 1.25rem;
    display: none; /* Hidden when no emoji */
}

.insight-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sky-400);
}

.rec-action-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.rec-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5);
}

.more-recommendations {
    display: flex;
    gap: var(--space-3);
}

.mini-rec-card {
    flex: 1;
    aspect-ratio: 0.7;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

/* ==========================================
   SCREEN 5: TRADING INTERFACE
   ========================================== */

.trade-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    padding: var(--space-4) 0;
}

.status-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.status-step.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.status-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.status-line.active {
    background: var(--gradient-primary);
}

.trade-section-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

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

.section-title-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.section-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

.trade-cards-horizontal {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.trade-card-mini {
    width: 56px;
    height: 78px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.trade-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.add-card-btn {
    width: 56px;
    height: 78px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-card-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.trade-arrow-center {
    text-align: center;
    font-size: 2rem;
    color: var(--text-secondary);
    margin: var(--space-3) 0;
    animation: arrowBounce 2s ease-in-out infinite;
}

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

.trade-fairness {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    text-align: center;
}

.fairness-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.fairness-meter {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.fairness-fill {
    height: 100%;
    border-radius: 6px;
    transition: all 1s ease-out;
    animation: fillFairness 1.5s ease-out;
}

.fairness-fill.balanced {
    width: 50%;
    margin: 0 auto;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

@keyframes fillFairness {
    from {
        width: 0%;
        opacity: 0;
    }
}

.fairness-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
}

.trade-submit-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trade-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(14, 165, 233, 0.6);
}

/* Legacy Card Header (keeping for compatibility) */
.card-header {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.card-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    width: 100%;
}

.card-line.short {
    width: 60%;
}

.card-line.medium {
    width: 80%;
}

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

.card-1 {
    transform: rotate(-8deg) translateX(-100px);
    z-index: 1;
    animation: float-card 6s ease-in-out infinite;
}

.card-2 {
    transform: rotate(3deg) translateY(-20px);
    z-index: 3;
    animation: float-card 6s ease-in-out infinite 0.5s;
}

.card-3 {
    transform: rotate(10deg) translateX(100px) translateY(30px);
    z-index: 2;
    animation: float-card 6s ease-in-out infinite 1s;
}

/* ==========================================
   Gradient Button (Premium)
   ========================================== */
.gradient-button {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(14, 165, 233, 0.35),
        0 4px 12px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(14, 165, 233, 0.45),
        0 6px 16px rgba(59, 130, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 60px rgba(14, 165, 233, 0.2);
    background: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-400) 100%);
}

.gradient-button:hover::after {
    opacity: 1;
}

.gradient-button:active {
    transform: translateY(-1px) scale(1.01);
    transition-duration: 0.1s;
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s var(--ease-out);
}

.gradient-button:hover .button-shimmer {
    left: 100%;
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-decoration: none;
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .button-content {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

/* ==========================================
   Trust Section
   ========================================== */
.trust-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}

.trust-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-6);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.trust-item.clickable {
    cursor: pointer;
    transition: all 0.3s var(--ease-in-out);
}

.trust-item.clickable:hover .trust-icon {
    transform: scale(1.1);
    box-shadow: var(--glow-md);
}

.trust-item.clickable.active .trust-icon {
    transform: scale(1.15);
    box-shadow: var(--glow-lg);
    background: var(--gradient-intense);
}

.trust-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--glow-md);
    transition: all 0.3s var(--ease-in-out);
}

.trust-icon svg {
    width: 32px;
    height: 32px;
}

.trust-text {
    font-weight: 600;
    color: var(--text-primary);
}

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

.trust-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s var(--ease-in-out);
    margin-top: 0;
}

.trust-dropdown.active {
    max-height: 300px;
    opacity: 1;
    margin-top: var(--space-6);
}

.trust-dropdown-content {
    padding: var(--space-6);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.trust-dropdown-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: rgba(255,255,255,0.95);
}

.trust-dropdown-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Light theme trust dropdown */
[data-theme="light"] .trust-dropdown-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .trust-dropdown-title {
    color: var(--text-primary);
}

[data-theme="light"] .trust-dropdown-text {
    color: var(--text-secondary);
}

/* ==========================================
   Sections
   ========================================== */
.features,
.how-it-works,
.pricing-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-24) var(--space-6);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: var(--space-4);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    word-spacing: normal;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-decoration {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin: var(--space-6) auto 0;
    box-shadow: var(--glow-md);
}

/* ==========================================
   Features Grid
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    padding-top: var(--space-2);
}

.feature-card {
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.6) 0%, rgba(15, 20, 32, 0.4) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-2xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(14, 165, 233, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.95) 0%, rgba(15, 20, 32, 0.85) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 80px rgba(14, 165, 233, 0.2);
}

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

.feature-card:hover::after {
    opacity: 1;
}

.feature-card.featured {
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--bg-card-hover);
    box-shadow: var(--glow-sm);
}

.feature-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--glow-sm);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    color: white;
    box-shadow: var(--glow-md);
    transition: all 0.3s var(--ease-out);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-lg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.feature-list li {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.list-icon {
    color: var(--sky-500);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-highlight {
    margin-top: var(--space-4);
}

.highlight-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
}

.gradient-border {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) padding-box,
                var(--gradient-primary) border-box;
}

.feature-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1), transparent);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

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

/* Fee Comparison Styling */
.fee-comparison {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fee-comparison-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.fee-value {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Light theme fee comparison */
[data-theme="light"] .fee-comparison {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .fee-comparison-text {
    color: var(--text-secondary);
}

[data-theme="light"] .fee-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================
   How It Works - Steps
   ========================================== */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 280px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--glow-md);
    position: relative;
    transition: all 0.3s var(--ease-out);
}

.step-number span {
    position: relative;
    z-index: 2;
}

.step-number-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step:hover .step-number-glow {
    opacity: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    position: absolute;
    top: 40px;
    left: 100%;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--glass-border), transparent);
}

.step-arrow {
    color: var(--sky-500);
    opacity: 0.5;
    margin-top: 30px;
}

.step-arrow svg {
    transform: rotate(-90deg) !important;
}

/* ==========================================
   Pricing Section
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
    padding-top: var(--space-4);
}

.pricing-card {
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.6) 0%, rgba(15, 20, 32, 0.4) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-2xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
    margin-top: var(--space-4);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(59, 130, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 80px rgba(14, 165, 233, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.95) 0%, rgba(15, 20, 32, 0.85) 100%);
}

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

.pricing-card.featured {
    border: 2px solid rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 100px rgba(14, 165, 233, 0.15);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.8) 0%, rgba(15, 20, 32, 0.6) 100%);
}

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

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-4);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--glow-sm);
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--glass-border);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.pricing-savings {
    margin-top: var(--space-2);
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 600;
    text-align: center;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
}

.feature-check {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.pricing-button {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.pricing-button:hover {
    background: var(--bg-tertiary);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-24) var(--space-6);
    text-align: center;
}

.cta-content {
    padding: var(--space-16) var(--space-8);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl), var(--glow-md);
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.cta-note {
    margin-top: var(--space-6);
    color: var(--text-tertiary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.note-icon {
    font-size: 1.2rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer-logo {
    opacity: 0.8;
    transition: opacity 0.3s var(--ease-out);
}

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

.footer-logo img {
    transition: opacity 0.2s ease;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow-sm);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================
   Modal
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.3s var(--ease-out);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.98) 0%, rgba(10, 14, 26, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 120px rgba(14, 165, 233, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.2s var(--ease-out);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--glow-md);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

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

/* ==========================================
   Form Styles
   ========================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.auth-form-container {
    animation: fadeIn 0.4s var(--ease-out);
}

.auth-switch {
    text-align: center;
    margin-top: var(--space-6);
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: var(--sky-500);
    font-weight: 600;
    cursor: pointer;
    margin-left: var(--space-2);
    transition: all 0.2s var(--ease-out);
    font-family: inherit;
    font-size: inherit;
}

.auth-switch-btn:hover {
    color: var(--blue-400);
    transform: translateX(2px);
}

.loading-animation {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(14, 165, 233, 0.2);
    border-top-color: var(--sky-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s var(--ease-out);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--blue-500);
    background: var(--bg-primary);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 0 20px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out);
    border-radius: var(--radius-full);
}

.input-wrapper input:focus ~ .input-border {
    transform: scaleX(1);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease-out);
}

.password-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.password-strength {
    height: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-2);
}

.strength-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out), background 0.3s var(--ease-out);
    box-shadow: var(--glow-sm);
}

.strength-bar.weak {
    width: 33%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.strength-bar.medium {
    width: 66%;
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.strength-bar.strong {
    width: 100%;
    background: var(--gradient-primary);
    box-shadow: var(--glow-md);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    display: none;
    animation: shake 0.3s var(--ease-out);
}

.error-message.show {
    display: block;
}

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

/* ==========================================
   Success State
   ========================================== */
.success-state {
    display: none;
    text-align: center;
    padding: var(--space-8) 0;
}

.success-state.active {
    display: block;
    animation: scaleIn 0.5s var(--ease-out);
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    box-shadow: var(--glow-lg);
    animation: successPop 0.6s var(--ease-bounce);
    position: relative;
}

.success-icon-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent);
    filter: blur(30px);
    animation: pulse-glow 2s ease-in-out infinite;
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.success-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
    font-size: 1.05rem;
}

.success-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.success-note {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: var(--space-8);
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: var(--glow-md);
    }
    50% {
        box-shadow: var(--glow-lg);
    }
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

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

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding-top: calc(80px + var(--space-12));
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .showcase-card {
        width: 220px;
        height: 310px;
    }
    
    /* Tablet-sized trust icons */
    .trust-icon {
        width: 64px;
        height: 64px;
    }
    
    .trust-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .card-1 {
        transform: rotate(-8deg) translateX(-80px);
    }
    
    .card-3 {
        transform: rotate(10deg) translateX(80px) translateY(30px);
    }
}

@media (max-width: 768px) {
    :root {
        --space-16: 3rem;
        --space-20: 4rem;
        --space-24: 5rem;
    }
    
    .nav-content {
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-logo {
        height: 32px;
    }
    
    .nav-cta {
        padding: var(--space-2) var(--space-4);
        font-size: 0.85rem;
    }
    
    .nav-actions {
        gap: var(--space-3);
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero {
        padding: calc(60px + var(--space-8)) var(--space-4) var(--space-16);
        display: flex;
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--space-4);
        justify-content: center;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    /* Mobile Card Showcase - Optimized Design */
    .hero-visual {
        height: 380px;
        margin-top: var(--space-6);
        margin-bottom: 0;
        order: 2; /* Place right after CTA */
        padding: var(--space-4);
        background: rgba(15, 20, 32, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(59, 130, 246, 0.15);
        border-radius: var(--radius-xl);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        position: relative;
        will-change: opacity;
        transform: translateZ(0); /* Force GPU acceleration */
    }
    
    /* Mobile background for app mockup */
    .hero-visual {
        background: radial-gradient(
            ellipse 80% 60% at 50% 50%,
            rgba(14, 165, 233, 0.05) 0%,
            rgba(59, 130, 246, 0.03) 40%,
            transparent 70%
        );
        padding: var(--space-8) 0;
        border-radius: var(--radius-2xl);
    }
    
    .app-mockup {
        transform: scale(0.75);
        position: relative;
    }
    
    .phone-frame {
        width: 300px;
        height: 600px;
        animation: phoneFloat 8s ease-in-out infinite;
    }
    
    .phone-notch {
        width: 140px;
        height: 26px;
    }
    
    .phone-shadow {
        display: block;
        opacity: 0.5;
    }
    
    .header-title {
        font-size: 0.95rem;
    }
    
    .hero-stat-value {
        font-size: 3rem;
    }
    
    .rec-card-image {
        width: 70px;
        height: 98px;
    }
    
    .card-header {
        height: 135px;
    }
    
    /* Disable parallax on mobile */
    .hero-visual {
        transform: none !important;
    }
    
    .hero-content {
        order: 1;
    }
    
    .trust-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--space-6);
        padding: var(--space-5);
    }
    
    .trust-item {
        flex: 0 0 auto;
    }
    
    .trust-icon {
        width: 56px;
        height: 56px;
    }
    
    .trust-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .trust-divider {
        display: none;
    }
    
    .trust-dropdown-title {
        font-size: 1.125rem;
    }
    
    .trust-dropdown-text {
        font-size: 0.95rem;
    }
    
    .hero-counter {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .counter-text {
        text-align: center;
    }
    
    .features,
    .how-it-works,
    .pricing-section,
    .cta-section {
        padding: var(--space-16) var(--space-4);
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Mobile Features Carousel */
    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1px;
        padding: var(--space-4) calc(0.5vw) var(--space-4) var(--space-4);
        margin: 0 calc(-1 * var(--space-4));
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 98%;
        scroll-snap-align: start;
        min-width: 350px;
        transform: scale(0.995);
        transition: transform 0.3s ease;
        opacity: 0.98;
    }

    .feature-card:hover,
    .feature-card:focus-within {
        transform: scale(1);
        opacity: 1;
    }

    .feature-card:last-child {
        margin-right: calc(0.5vw);
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .steps {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }
    
    .step-arrow svg {
        transform: none !important;
    }
    
    .step-connector {
        display: none;
    }
    
    .cta-content {
        padding: var(--space-10) var(--space-6);
    }
    
    .modal-content {
        padding: var(--space-8) var(--space-6);
    }
    
    .orb-1,
    .orb-2,
    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: var(--space-6) var(--space-4);
        border-radius: var(--radius-2xl);
    }
    
    .cta-note {
        flex-direction: column;
        text-align: center;
    }
    
    /* Extra small mobile - compact and smooth */
    .hero-visual {
        background: radial-gradient(
            ellipse 85% 65% at 50% 50%,
            rgba(14, 165, 233, 0.06) 0%,
            rgba(59, 130, 246, 0.04) 35%,
            transparent 65%
        );
        padding: var(--space-6) 0;
        border-radius: var(--radius-2xl);
        min-height: 420px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .app-mockup {
        transform: scale(0.65);
        position: relative;
    }
    
    .phone-frame {
        width: 280px;
        height: 560px;
        animation: phoneFloat 9s ease-in-out infinite;
    }
    
    .phone-notch {
        width: 130px;
        height: 24px;
    }
    
    .phone-shadow {
        opacity: 0.4;
    }
    
    .header-title {
        font-size: 0.9rem;
    }
    
    .hero-stat-value {
        font-size: 2.5rem;
    }
    
    .rec-card-image {
        width: 60px;
        height: 84px;
    }
    
    .card-header {
        height: 115px;
    }
}

/* ==========================================
   Professional Enhancement Utilities
   ========================================== */

/* Premium Hover States */
.trust-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
    box-shadow: var(--glow-md);
}

/* Enhanced Social Links */
.social-link {
    position: relative;
    overflow: hidden;
}

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

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Pricing Feature Check Animation */
.pricing-features li {
    transition: all 0.3s ease;
}

.pricing-features li:hover {
    transform: translateX(4px);
    color: var(--text-primary);
}

.feature-check {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-features li:hover .feature-check {
    transform: scale(1.2);
}

/* Step Number Pulse on Hover */
.step {
    transition: all 0.3s ease;
}

.step:hover .step-title {
    color: var(--sky-400);
}

/* CTA Section Refinement */
.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08), transparent 70%);
    pointer-events: none;
}

/* Modal Icon Pulse */
.modal-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: var(--glow-md);
    }
    50% {
        box-shadow: var(--glow-lg);
        transform: scale(1.05);
    }
}

/* Success Icon Enhanced */
.success-icon {
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent 70%);
    animation: successPulse 2s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
}

/* Premium Badge Animation */
.pricing-badge,
.feature-badge {
    animation: badgeBounce 3s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* PWA Support */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(59, 130, 246, 0.6);
    }
}
