@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* --- Premium Dark Palette --- */
    --bg-base: #050508;
    --bg-elevated: #0d0d12;
    --bg-card: rgba(15, 15, 22, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.02);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    
    /* Accent Gradient - More vibrant */
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-tertiary: #ec4899;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(124, 58, 237, 0.4);
    
    /* Animation */
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-base: 0.6s;
    
    /* Shadows */
    --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.2);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* --- Light Theme - Clean & Modern --- */
[data-theme="light"] {
    --bg-base: #ffffff;
    --bg-elevated: #f8f9fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(124, 58, 237, 0.04);
    
    --text-primary: #0f0f23;
    --text-secondary: #4a4a68;
    --text-tertiary: #6b6b8a;
    
    --border-subtle: #e8e8f0;
    --border-light: #d8d8e8;
    --border-accent: #7c3aed;
    
    --shadow-glow: 0 4px 20px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);

    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(15,23,42,0.4)' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

[data-theme="light"] select option {
    background-color: #ffffff;
    color: #1e293b;
}

/* Light - Background layers */
[data-theme="light"] .bg-animated {
    background: #ffffff;
}

[data-theme="light"] .bg-animated::before,
[data-theme="light"] .bg-animated::after {
    opacity: 0.3;
}

[data-theme="light"] .bg-grid {
    background-image: 
        linear-gradient(#f0f0f5 1px, transparent 1px),
        linear-gradient(90deg, #f0f0f5 1px, transparent 1px);
    opacity: 0.8;
}

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

[data-theme="light"] .starfield-canvas {
    opacity: 0.4;
}

[data-theme="light"] .light-streaks {
    opacity: 0.3;
}

/* Light - Navigation */
[data-theme="light"] nav.fixed-top {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e8e8f0;
}

[data-theme="light"] nav a,
[data-theme="light"] nav .fw-bold {
    color: #0f0f23 !important;
}

/* Light - Hero Text */
[data-theme="light"] .hero-title,
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3 {
    color: #0f0f23;
}

/* Light - Buttons */
[data-theme="light"] .btn-magnetic {
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .btn-outline {
    background: transparent;
    border: 2px solid #7c3aed;
    color: #7c3aed !important;
}

[data-theme="light"] .btn-outline:hover {
    background: #7c3aed;
    color: #ffffff !important;
}

/* Light - Demo Section Phone */
[data-theme="light"] .demo-phone {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .phone-header {
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.08) 0%, transparent 100%);
}

[data-theme="light"] .phone-messages {
    background: #f8f9fa;
}

[data-theme="light"] .phone-message.incoming {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    color: #0f0f23;
}

[data-theme="light"] .phone-message.incoming p {
    color: #0f0f23;
}

[data-theme="light"] .phone-message.outgoing {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    color: #ffffff;
}

[data-theme="light"] .phone-message.outgoing p {
    color: #ffffff;
}

[data-theme="light"] .phone-input {
    background: #f0f0f5;
    border-top: 1px solid #e8e8f0;
}

[data-theme="light"] .phone-input input {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    color: #0f0f23;
}

/* Light - Terminal */
[data-theme="light"] .terminal-window {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8f0;
}

[data-theme="light"] .terminal-body {
    background: #1a1a2e;
}

/* Light - Workflow Cards */
[data-theme="light"] .workflow-card {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .workflow-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .workflow-card-title {
    color: #0f0f23;
}

[data-theme="light"] .workflow-card-desc {
    color: #4a4a68;
}

/* Light - Bento Cards */
[data-theme="light"] .bento-card {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .bento-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .bento-title {
    color: #0f0f23;
}

[data-theme="light"] .bento-desc {
    color: #4a4a68;
}

/* Light - Stats */
[data-theme="light"] .stat-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e8e8f0;
}

[data-theme="light"] .stat-value {
    color: #7c3aed;
}

[data-theme="light"] .stat-label {
    color: #4a4a68;
}

/* Light - Metrics */
[data-theme="light"] .metric-card {
    background: #ffffff;
    border: 1px solid #e8e8f0;
}

[data-theme="light"] .metric-value {
    color: #7c3aed;
}

/* Light - Section styling */
[data-theme="light"] .section-label {
    background: #f8f9fa;
    border: 1px solid #e8e8f0;
    color: #7c3aed;
}

[data-theme="light"] .section-title {
    color: #0f0f23;
}

/* Light - Demo features */
[data-theme="light"] .demo-feature {
    background: #f8f9fa;
    border: 1px solid #e8e8f0;
}

[data-theme="light"] .demo-feature:hover {
    background: #ffffff;
    border-color: #7c3aed;
}

/* Light - Flow canvas */
[data-theme="light"] .flow-canvas {
    background: #f8f9fa;
    border: 1px solid #e8e8f0;
}

/* Light - Footer */
[data-theme="light"] footer {
    background: #f8f9fa;
    border-top: 1px solid #e8e8f0;
}

[data-theme="light"] footer p,
[data-theme="light"] footer span {
    color: #4a4a68;
}

/* Light - Flow Builder Sidebar */
[data-theme="light"] .flow-sidebar {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sidebar-module {
    background: #f8f9fa;
    border: 1px solid #e8e8f0;
    color: #0f0f23;
}

[data-theme="light"] .sidebar-module:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

/* Light - Flow Canvas */
[data-theme="light"] .flow-canvas {
    background: #f8f9fa;
    border: 2px solid #e8e8f0;
}

[data-theme="light"] .flow-node {
    background: #ffffff;
    border: 2px solid #e8e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .flow-node-title {
    color: #0f0f23;
}

/* Light - Background Animation Stronger */
[data-theme="light"] .bg-animated::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .bg-animated::after {
    background: radial-gradient(ellipse at 70% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
}

/* Light - Action Cards / Capability Cards */
[data-theme="light"] .action-card,
[data-theme="light"] .capability-card {
    background: #ffffff;
    border: 2px solid #e8e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .action-card:hover,
[data-theme="light"] .capability-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    transform: translateY(-4px);
}

[data-theme="light"] .action-card h4,
[data-theme="light"] .capability-card h4,
[data-theme="light"] .action-card h5,
[data-theme="light"] .capability-card h5 {
    color: #0f0f23;
}

[data-theme="light"] .action-card p,
[data-theme="light"] .capability-card p {
    color: #4a4a68;
}

/* Light - Terminal Header Stronger */
[data-theme="light"] .terminal-header {
    background: #f0f0f5;
    border-bottom: 2px solid #e8e8f0;
}

[data-theme="light"] .terminal-title {
    color: #0f0f23;
}

[data-theme="light"] .terminal-live {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Light - Hero Stats */
[data-theme="light"] .hero-stats {
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid #e8e8f0;
    backdrop-filter: blur(10px);
}

/* Light - Gradient text fix */
[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light - Demo Float badges */
[data-theme="light"] .demo-float {
    background: #ffffff;
    border: 1px solid #e8e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #0f0f23;
}

/* Light - Scroll progress */
[data-theme="light"] .scroll-progress {
    background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
}

/* Floating Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
    transition: all 0.3s var(--ease-fluid);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.3s ease;
}

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

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

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

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

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

body, html {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* --- Typography --- */
h1, h2, h3, h4 { 
    letter-spacing: -0.03em; 
    font-weight: 700; 
    color: var(--text-primary); 
    line-height: 1.1;
}

.font-mono { 
    font-family: 'JetBrains Mono', monospace; 
    letter-spacing: -0.02em; 
}

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

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }

/* --- Custom Cursor --- */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(124, 58, 237, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
    opacity: 0;
}

.cursor-ring {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0;
}

/* Cursor hover states */
.cursor-glow.active {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.9) 0%, rgba(168, 85, 247, 0.5) 50%, transparent 70%);
}

.cursor-ring.active {
    width: 70px;
    height: 70px;
    border-color: rgba(236, 72, 153, 0.6);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .cursor-glow, .cursor-ring {
        display: none !important;
    }
}

/* --- Animated Background - Aurora Effect --- */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    background: var(--bg-base);
}

/* Gradient Mesh Layer - New */
.bg-animated::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 30% 60%, rgba(168, 85, 247, 0.07) 0%, transparent 40%);
    animation: meshMove 25s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-3%, 2%) scale(1.05);
        opacity: 1;
    }
    100% { 
        transform: translate(2%, -3%) scale(0.98);
        opacity: 0.8;
    }
}

/* Aurora Layer 1 - Main gradient blobs */
.bg-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 600px 500px at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 700px 500px at 60% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 500px 400px at 10% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: auroraMove 20s ease-in-out infinite;
}

@keyframes auroraMove {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(-5%, 3%) rotate(1deg) scale(1.02);
    }
    50% { 
        transform: translate(3%, -2%) rotate(-0.5deg) scale(0.98);
    }
    75% { 
        transform: translate(2%, 4%) rotate(0.5deg) scale(1.01);
    }
}

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

/* Animated Grid with Pulse */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Creative Sub-page Background */
.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    
    /* Animated gradient mesh background */
    background: 
        /* Floating particles/stars */
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.4) 0px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.35) 0px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.3) 0px, transparent 1.5px),
        radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.35) 0px, transparent 2px),
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.3) 0px, transparent 1.5px),
        radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.25) 0px, transparent 2px),
        radial-gradient(circle at 30% 70%, rgba(34, 197, 94, 0.2) 0px, transparent 1.5px),
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.2) 0px, transparent 1.5px),
        /* Subtle grid lines */
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    
    background-size: 
        400px 400px, 350px 350px, 300px 300px, 280px 280px,
        250px 250px, 220px 220px, 180px 180px, 160px 160px,
        60px 60px, 60px 60px;
    
    animation: bgFloat 30s ease-in-out infinite;
}

.bg-dots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Glowing orb hints */
        radial-gradient(ellipse 600px 400px at 0% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 500px 350px at 100% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
    animation: orbPulse 15s ease-in-out infinite alternate;
}

.bg-dots::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 30% 40%, 
            transparent 0deg, 
            rgba(124, 58, 237, 0.02) 60deg, 
            transparent 120deg,
            rgba(168, 85, 247, 0.015) 200deg,
            transparent 240deg,
            rgba(59, 130, 246, 0.02) 300deg,
            transparent 360deg);
    animation: conicSpin 60s linear infinite;
}

@keyframes bgFloat {
    0%, 100% { 
        background-position: 0% 0%, 10% 10%, 20% 20%, 30% 30%, 40% 40%, 50% 50%, 60% 60%, 70% 70%, 0 0, 0 0;
    }
    50% { 
        background-position: 10% 5%, 5% 15%, 15% 25%, 25% 35%, 35% 45%, 45% 55%, 55% 65%, 65% 75%, 0 0, 0 0;
    }
}

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

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

[data-theme="light"] .bg-dots {
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.25) 0px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.22) 0px, transparent 3px),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.18) 0px, transparent 2px),
        radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.22) 0px, transparent 3px),
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.18) 0px, transparent 2px),
        radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.15) 0px, transparent 2.5px),
        radial-gradient(circle at 30% 70%, rgba(34, 197, 94, 0.12) 0px, transparent 2px),
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.12) 0px, transparent 2px),
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 
        400px 400px, 350px 350px, 300px 300px, 280px 280px,
        250px 250px, 220px 220px, 180px 180px, 160px 160px,
        60px 60px, 60px 60px;
}

[data-theme="light"] .bg-dots::before {
    background: 
        radial-gradient(ellipse 600px 400px at 0% 0%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 500px 350px at 100% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
}

/* Floating Orbs - More Dynamic */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    top: -250px;
    left: -200px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
    bottom: -200px;
    right: -150px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(124, 58, 237, 0.06) 100%);
    top: 40%;
    left: 30%;
    animation: orbFloat3 12s ease-in-out infinite;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: 20%;
    right: 20%;
    animation: orbFloat4 20s ease-in-out infinite;
}

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

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -40px) scale(1.08); }
    66% { transform: translate(30px, 20px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(60px, -40px) scale(1.1) rotate(5deg); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    25% { transform: translate(-20px, 30px); opacity: 1; }
    50% { transform: translate(40px, -10px); opacity: 0.4; }
    75% { transform: translate(-30px, -20px); opacity: 0.8; }
}

/* Shooting Stars / Light Streaks */
.light-streaks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.streak {
    position: absolute;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.6) 50%, transparent 100%);
    opacity: 0;
    animation: shootingStar 8s linear infinite;
}

.streak:nth-child(1) {
    top: 20%;
    left: -200px;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.streak:nth-child(2) {
    top: 50%;
    left: -200px;
    animation-delay: 3s;
    transform: rotate(-20deg);
    width: 150px;
}

.streak:nth-child(3) {
    top: 70%;
    left: -200px;
    animation-delay: 5s;
    transform: rotate(-10deg);
    width: 180px;
}

@keyframes shootingStar {
    0% { 
        opacity: 0;
        transform: translateX(0) rotate(-15deg);
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 0;
        transform: translateX(calc(100vw + 400px)) rotate(-15deg);
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100vw + 400px)) rotate(-15deg);
    }
}

/* Animated Starfield Canvas */
.starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Navigation --- */
nav.fixed-top {
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all 0.4s var(--ease-fluid);
}

nav.scrolled {
    background: rgba(5, 5, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav a.text-decoration-none:not(.btn-magnetic) {
    transition: color 0.3s ease;
}
nav a.text-decoration-none:not(.btn-magnetic):hover {
    color: var(--text-primary) !important;
}

/* --- Premium Button --- */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-fluid);
    box-shadow: 0 4px 25px rgba(124, 58, 237, 0.35);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 45px rgba(124, 58, 237, 0.45);
    color: white;
}

.btn-magnetic:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 45px rgba(124, 58, 237, 0.2);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* --- Hero Section - Split Layout --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-left {
    padding-right: 40px;
}

@media (max-width: 992px) {
    .hero-left {
        padding-right: 0;
        order: 1;
    }
}

.hero-right {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .hero-right {
        order: 2;
        height: 450px;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
}

.hero-eyebrow .pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

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

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -0.05em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 0 36px 0;
    line-height: 1.7;
    font-weight: 400;
}

@media (max-width: 992px) {
    .hero-subtitle {
        margin: 0 auto 36px auto;
    }
}

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

@media (max-width: 992px) {
    .hero-cta {
        justify-content: center;
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 992px) {
    .hero-stats {
        justify-content: center;
    }
}

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

@media (max-width: 992px) {
    .hero-stat {
        text-align: center;
    }
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* --- Flow Builder Canvas --- */
.flow-canvas {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(40px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.flow-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.flow-canvas-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.flow-canvas-title {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.flow-canvas-body {
    position: relative;
    height: calc(100% - 50px);
    padding: 20px;
}

/* Flow Nodes */
.flow-node {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-fluid);
    z-index: 2;
}

.flow-node:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.2);
}

.flow-node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.flow-node-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.flow-node-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-node-subtitle {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* Node Types */
.flow-node.trigger .flow-node-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.flow-node.process .flow-node-icon {
    background: rgba(124, 58, 237, 0.15);
    color: #a855f7;
}

.flow-node.action .flow-node-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.flow-node.output .flow-node-icon {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

/* Flow Connections */
.flow-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flow-connections path {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.flow-connections path.active {
    stroke: var(--accent-primary);
    stroke-dasharray: none;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.4));
}

/* Animated Data Particle */
.data-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.8);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

/* Flow Status */
.flow-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* Flow Sidebar */
.flow-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    z-index: 5;
}

.sidebar-module {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: grab;
    transition: all 0.3s var(--ease-fluid);
    opacity: 0.6;
}

.sidebar-module:hover {
    opacity: 1;
    border-color: var(--border-light);
    transform: scale(1.05);
}

.sidebar-module.dragging {
    opacity: 0.3;
    transform: scale(0.9);
}

/* Fake Cursor */
.fake-cursor {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: none;
}

/* Ghost Node (being dragged) */
.ghost-node {
    position: absolute;
    background: var(--bg-elevated);
    border: 2px dashed var(--accent-primary);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ghost-node .flow-node-icon {
    width: 28px;
    height: 28px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Node placement animation */
.flow-node.placing {
    animation: nodePlaced 0.4s var(--ease-bounce);
}

@keyframes nodePlaced {
    0% { transform: scale(1.2); box-shadow: 0 0 30px rgba(124, 58, 237, 0.5); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
}

/* Connection drawing animation */
.flow-connections path.drawing {
    stroke: var(--accent-primary);
    stroke-dasharray: none;
    animation: pathGlow 0.5s ease-out;
}

@keyframes pathGlow {
    0% { filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.8)); stroke-width: 4; }
    100% { filter: none; stroke-width: 2; }
}

/* Trusted By */
.trusted-by {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 992px) {
    .trusted-by {
        text-align: center;
    }
}

.trusted-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

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

@media (max-width: 992px) {
    .trusted-logos {
        justify-content: center;
    }
}

.trusted-logos span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* --- Demo Section - Redesigned --- */
.demo-section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.demo-content {
    max-width: 500px;
}

/* Demo Features */
.demo-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.demo-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.demo-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.demo-feature strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.demo-feature span {
    font-size: 0.85rem;
}

/* Phone Mockup */
.demo-phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.demo-phone {
    width: 360px;
    background: linear-gradient(145deg, #0d0d12 0%, #08080c 100%);
    border-radius: 48px;
    padding: 14px;
    box-shadow: 
        0 60px 120px -30px rgba(0, 0, 0, 0.6),
        0 40px 80px -20px rgba(124, 58, 237, 0.25),
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 2px 4px rgba(255, 255, 255, 0.02);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.demo-phone:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #05050a;
    border-radius: 0 0 24px 24px;
    z-index: 10;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 48px 20px 16px;
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.12) 0%, transparent 100%);
    border-radius: 34px 34px 0 0;
}

.phone-header-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.phone-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-header-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.phone-header-status {
    font-size: 0.8rem;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(37, 211, 102, 0.6);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Phone Messages */
.phone-messages {
    background: linear-gradient(180deg, rgba(5, 5, 8, 0.95) 0%, rgba(8, 8, 12, 0.98) 100%);
    padding: 20px 18px;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}

.phone-messages::-webkit-scrollbar {
    width: 4px;
}

.phone-messages::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 2px;
}

.phone-message {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 18px;
    animation: phoneMessageIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    position: relative;
}

.phone-message:nth-child(1) { animation-delay: 0.4s; }
.phone-message:nth-child(2) { animation-delay: 1.2s; }
.phone-message:nth-child(3) { animation-delay: 2.2s; }
.phone-message:nth-child(4) { animation-delay: 3.4s; }

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

.phone-message.incoming {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9) 0%, rgba(25, 25, 35, 0.95) 100%);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.phone-message.outgoing {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(168, 85, 247, 0.18) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.phone-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.message-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    justify-content: flex-end;
    margin-top: 6px;
}

.message-time i {
    color: #25d366;
    font-size: 0.85rem;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(15, 15, 22, 0.95) 0%, rgba(20, 20, 28, 0.98) 100%);
    border-radius: 0 0 34px 34px;
}

.phone-input input {
    flex: 1;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 11px 18px;
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.phone-input input:focus {
    outline: none;
    background: rgba(35, 35, 45, 0.9);
    border-color: rgba(124, 58, 237, 0.3);
}

.phone-input i {
    font-size: 1.3rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.phone-input i:hover {
    color: var(--accent-primary);
}

/* Floating Elements */
.demo-float {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    animation: floatBadge 3s ease-in-out infinite;
}

.demo-float-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.demo-float-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 1.5s;
}

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

/* --- Terminal Section - Redesigned --- */
.terminal-section {
    padding: 120px 0;
    position: relative;
}

.terminal-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .terminal-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Terminal Window */
.terminal-wrapper {
    position: relative;
}

.terminal-window {
    background: #08080c;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 60px rgba(59, 130, 246, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

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

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

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

.terminal-title {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff4757;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: livePulse 1s infinite;
}

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

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.9;
    min-height: 320px;
}

.terminal-line {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    opacity: 0;
    animation: terminalFadeIn 0.3s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 0.8s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.4s; }
.terminal-line:nth-child(6) { animation-delay: 1.7s; }
.terminal-line:nth-child(7) { animation-delay: 2.0s; }
.terminal-line:nth-child(8) { animation-delay: 2.3s; }

@keyframes terminalFadeIn {
    to { opacity: 1; }
}

.terminal-line.terminal-active {
    background: rgba(124, 58, 237, 0.05);
    margin: 8px -20px 0;
    padding: 8px 20px;
    border-left: 2px solid var(--accent-primary);
}

.t-time {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

.t-event, .t-process, .t-success {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.t-event {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.t-process {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.t-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

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

.t-highlight {
    color: var(--accent-primary);
}

.t-latency {
    color: #22c55e;
    font-size: 0.7rem;
}

/* Terminal Cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent-primary);
    animation: cursorBlink 1s infinite;
    vertical-align: middle;
    margin-left: 4px;
}

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

/* Terminal Content */
.terminal-content {
    max-width: 400px;
}

/* Metric Cards */
.terminal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.metric-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s var(--ease-fluid);
}

.metric-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

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

.metric-unit {
    font-size: 0.9rem;
    font-weight: 500;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* --- Section Styling --- */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.section-label i {
    font-size: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0;
}

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

/* Demo Section Polish */
.demo-section {
    padding: 140px 0;
}

.demo-content h2 {
    line-height: 1.15;
    margin-bottom: 20px;
}

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

.demo-features {
    margin-top: 40px;
}

.demo-feature {
    padding: 18px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 14px;
    transition: all 0.3s var(--ease-fluid);
}

.demo-feature:hover {
    background: rgba(124, 58, 237, 0.05);
    transform: translateX(8px);
}

.demo-feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.demo-feature strong {
    font-size: 1rem;
    font-weight: 600;
}

.demo-feature span {
    font-size: 0.88rem;
    display: block;
    margin-top: 2px;
}

/* Floating Badges Polish */
.demo-float {
    padding: 12px 18px;
    font-size: 0.85rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(124, 58, 237, 0.2);
}

.demo-float i {
    font-size: 1.1rem;
}

/* Terminal Section Polish */
.terminal-section {
    padding: 140px 0;
}

.terminal-content h2 {
    line-height: 1.15;
    margin-bottom: 20px;
}

.terminal-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.terminal-window {
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.5),
        0 20px 40px -10px rgba(59, 130, 246, 0.15),
        0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.terminal-metrics {
    margin-top: 40px;
    gap: 20px;
}

.metric-card {
    padding: 24px;
    backdrop-filter: blur(20px);
}

.metric-card:hover {
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.metric-value {
    font-size: 2rem;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Button Improvements */
.btn-magnetic {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-magnetic:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
}

.btn-outline {
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
}


.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-fluid);
    display: flex;
    flex-direction: column;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.bento-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all 0.4s var(--ease-fluid);
}

.bento-card:hover .bento-icon {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--border-accent);
    transform: scale(1.05);
}

.bento-tag {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--text-primary);
}

.bento-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bento-visual {
    margin-top: auto;
    padding-top: 24px;
}

.code-preview {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.code-preview .key { color: #c084fc; }
.code-preview .value { color: #22c55e; }
.code-preview .number { color: #f59e0b; }

/* Light theme code-preview */
[data-theme="light"] .code-preview {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    color: rgba(255, 255, 255, 0.8);
}

/* Bento Grid Spans */
.span-4 { grid-column: span 12; }
.span-6 { grid-column: span 12; }
.span-8 { grid-column: span 12; }

@media (min-width: 768px) {
    .span-4 { grid-column: span 6; }
    .span-6 { grid-column: span 6; }
    .span-8 { grid-column: span 12; }
}

@media (min-width: 992px) {
    .span-4 { grid-column: span 4; }
    .span-6 { grid-column: span 6; }
    .span-8 { grid-column: span 8; }
}

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 60px 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-fluid);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
}

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

/* --- Workflow Section --- */
/* --- Workflow Section - Redesigned --- */
.workflow-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.workflow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Workflow Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Workflow Cards */
.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(40px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.workflow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.workflow-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.3),
        0 10px 20px -5px rgba(124, 58, 237, 0.2);
}

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

.workflow-card-header {
    margin-bottom: 24px;
}

/* Step Badge */
.workflow-step-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: all 0.3s var(--ease-fluid);
}

.workflow-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

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

.workflow-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.workflow-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Features List */
.workflow-card-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.workflow-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.workflow-feature i {
    color: #22c55e;
    font-size: 1rem;
}

/* Card Footer */
.workflow-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.workflow-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
}

/* Workflow Connectors */
.workflow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .workflow-connector {
        display: none;
    }
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--border-subtle) 0%, 
        var(--border-light) 50%, 
        var(--border-subtle) 100%
    );
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    animation: lineProgress 3s ease-in-out infinite;
}

@keyframes lineProgress {
    0%, 100% { width: 0%; left: 0; opacity: 0; }
    10% { opacity: 1; }
    50% { width: 100%; left: 0; opacity: 1; }
    90% { opacity: 0; }
}

.connector-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 20px rgba(124, 58, 237, 0.4); }
}

/* --- Footer --- */
.footer-minimal {
    border-top: 1px solid var(--border-subtle);
    padding: 100px 0 50px;
    background: var(--bg-elevated);
    position: relative;
    z-index: 1;
}

.footer-cta {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.footer-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.footer-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

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

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

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

/* --- Utils --- */
.mask-text {
    overflow: hidden;
    display: block;
}

.mask-text span {
    display: block;
    transform: translateY(110%);
}

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

/* --- Auth Pages --- */
.auth-page-body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-card-glass {
    background: rgba(13, 13, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.auth-card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.auth-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-logo-link:hover {
    opacity: 0.9;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 20px;
}

.form-floating-custom .form-control {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 12px;
    height: 56px;
    padding-left: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-floating-custom .form-control:focus {
    background: rgba(15, 15, 20, 0.85);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

/* Floating Select Styling */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.45)' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    padding-right: 45px;
}

[data-theme="light"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(15,23,42,0.45)' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.form-floating-custom select.form-control option {
    background-color: #0f172a;
    color: #ffffff;
}

[data-theme="light"] .form-floating-custom select.form-control option {
    background-color: #ffffff;
    color: #0f172a;
}

.form-floating-custom label {
    position: absolute;
    left: 20px;
    top: 17px;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    pointer-events: none;
    font-size: 0.95rem;
}

.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ label {
    transform: translateY(-28px) translateX(-5px) scale(0.85);
    color: var(--accent-primary);
    background: var(--bg-base); 
    padding: 0 6px;
}

.separator-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-tertiary);
    margin: 24px 0;
    font-size: 0.85rem;
}

.separator-text::before,
.separator-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-subtle);
}

.separator-text::before { margin-right: 12px; }
.separator-text::after { margin-left: 12px; }

/* Light Theme Auth */
[data-theme="light"] .auth-card-glass {
    background: rgba(255, 255, 255, 0.85); /* Slightly more opaque */
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-floating-custom .form-control {
    background: #ffffff; 
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .form-floating-custom .form-control:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 16px 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-magnetic {
        width: 100%;
        max-width: 280px;
    }
    
    .bento-card {
        padding: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        flex-direction: column;
        gap: 20px;
    }
    
    .workflow-step::after {
        display: none;
    }
    
    .auth-card-glass {
        padding: 32px 24px;
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: var(--bg-base);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-accent);
}

/* --- INTEGRATIONS SECTION --- */
.integrations-section {
    padding: 120px 0;
    position: relative;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .integrations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .integrations-grid {
        grid-template-columns: repeat(8, 1fr);
        max-width: 1000px;
    }
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s var(--ease-fluid);
    cursor: pointer;
}

.integration-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(124, 58, 237, 0.15);
}

.integration-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

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

.integration-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.integration-card p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-elevated);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s var(--ease-fluid);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    transform: scale(1.02);
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 140px 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }
}

.pricing-card {
    background: rgba(13, 13, 18, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-fluid);
    position: relative;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.1);
}

.pricing-card.popular {
    background: rgba(17, 17, 26, 0.6);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.15);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    transform: scale(1.05);
    z-index: 2;
}

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

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

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

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 32px;
}

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

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

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

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}

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

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

.pricing-features li i {
    font-size: 1.1rem;
    color: #22c55e;
}

.pricing-features li.disabled {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.pricing-features li.disabled i {
    color: var(--text-tertiary);
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 120px 0;
    background: var(--bg-elevated);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease-fluid);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.active {
    border-color: var(--accent-primary);
}

.faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(124, 58, 237, 0.03);
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.faq-answer p {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Light Theme - New Sections */
[data-theme="light"] .testimonials-section,
[data-theme="light"] .faq-section {
    background: #f8f9fa;
}

[data-theme="light"] .integration-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .faq-item {
    background: #ffffff;
    border-color: #e8e8f0;
}

[data-theme="light"] .integration-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .faq-item:hover {
    border-color: #d0d0e0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .testimonial-card.featured,
[data-theme="light"] .pricing-card.popular {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(168, 85, 247, 0.03) 100%);
}

/* Responsive - New Sections */
@media (max-width: 768px) {
    .integrations-section,
    .testimonials-section,
    .pricing-section,
    .faq-section {
        padding: 80px 16px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

/* --- Dashboard Revamp --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Glass Sidebar */
.glass-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(13, 13, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    transition: transform 0.3s var(--ease-fluid);
}

.glass-sidebar-brand {
    padding: 0 12px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.glass-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.glass-nav-item i {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

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

.glass-nav-item:hover i {
    color: var(--text-primary);
}

.glass-nav-item.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.glass-nav-item.active i {
    color: var(--accent-primary);
}

.glass-nav-section {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 24px 12px 8px;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Dashboard Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    position: relative;
    z-index: 10;
}

/* Glass Topbar */
.glass-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 32px;
    background: rgba(13, 13, 18, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    gap: 20px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 100px;
    /* background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05); */
    transition: background 0.2s ease;
}

.topbar-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

/* Dashboard Cards */
.dash-card {
    background: rgba(13, 13, 18, 0.4); /* More transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px; /* Reduced from 28px */
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.dash-card > *:last-child {
    margin-bottom: 0 !important;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dash-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    background: rgba(13, 13, 18, 0.7);
}

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

.dash-stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 20px 0 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

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

.dash-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dash-card.accent-purple .dash-icon-box {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

.dash-card.accent-pink .dash-icon-box {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.dash-card.accent-blue .dash-icon-box {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Glass Table */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Spacing between rows */
    margin-top: -8px;
}

.glass-table th {
    font-size: 0.85rem; /* Increased size */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary); /* Increased contrast */
    font-weight: 700;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03); /* Added subtle background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    border-radius: 8px; /* Rounded corners for header */
    margin-bottom: 8px;
}

.glass-table td {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Highlight top edge */
    color: var(--text-secondary);
    vertical-align: middle;
    transition: all 0.2s ease;
}

.glass-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: scale(1.005);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1;
    position: relative;
}

/* Light Theme Table Overrides */
[data-theme="light"] .glass-topbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1), rgba(124, 58, 237, 0.1)) 1;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03), inset 0 0 20px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .glass-topbar h5 {
    background: linear-gradient(45deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

[data-theme="light"] .glass-topbar .text-muted {
    color: #64748b !important;
    font-weight: 500;
}
[data-theme="light"] .glass-table td {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

[data-theme="light"] .glass-table tr:hover td {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.glass-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.glass-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.glass-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.glass-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

.glass-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Light Theme Dashboard Overrides */
[data-theme="light"] .glass-sidebar {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dash-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dash-card:hover {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .glass-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .glass-sidebar {
        transform: translateX(-100%);
    }
    
    .glass-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 100px rgba(0,0,0,0.5);
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 20px 16px;
    }
}

/* Enhanced Input Fields */
/* Enhanced Input Fields */
.glass-form-control {
    width: 100%; /* Ensure full width responsiveness */
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 14px 16px; /* Slightly larger padding for better touch targets */
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-appearance: none; /* Remove default browser styling */
    appearance: none;
}

.glass-form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
    outline: none;
    color: var(--text-primary);
}

.glass-form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

/* Input Group Support */
.input-group .glass-form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    z-index: 2;
}

/* =====================================================
   MOBILE RESPONSIVE FIXES
   ===================================================== */

/* --- Flow Builder Animation Height Fix --- */
@media (max-width: 992px) {
    .hero-right {
        order: 2;
        height: 580px !important; /* Increased from 450px to fit all flow nodes */
        min-height: 580px;
    }
    
    .flow-canvas {
        height: 100%;
    }
    
    .flow-canvas-body {
        height: calc(100% - 50px);
        overflow: visible;
    }
}

/* --- Hero Section Mobile Fixes --- */
@media (max-width: 992px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .hero-subtitle {
        margin: 0 auto 36px auto;
        padding: 0 16px; /* Prevent text from touching edges */
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px; /* Reduced from 40px for tighter fit */
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-container {
        gap: 32px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }
    
    .hero-eyebrow {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 16px;
        padding-top: 24px;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn-magnetic {
        width: 100%;
        justify-content: center;
    }
}

/* --- Flow Nodes Mobile Scaling --- */
@media (max-width: 768px) {
    .flow-node {
        padding: 10px 12px;
        min-width: 120px;
        border-radius: 10px;
    }
    
    .flow-node-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .flow-node-title {
        font-size: 0.75rem;
    }
    
    .flow-node-subtitle {
        font-size: 0.65rem;
    }
    
    .flow-sidebar {
        width: 44px;
        padding: 8px 0;
    }
    
    .sidebar-module {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .flow-canvas-header {
        padding: 10px 14px;
    }
}

/* --- Theme Toggle Mobile Position --- */
@media (max-width: 768px) {
    .theme-toggle {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}

/* --- General Container Padding Mobile --- */
@media (max-width: 768px) {
    .hero-section .container,
    .demo-section .container,
    .terminal-section .container,
    .workflow-section .container,
    .integrations-section .container,
    .testimonials-section .container,
    .pricing-section .container,
    .faq-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

/* --- Demo Section Mobile --- */
@media (max-width: 992px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .demo-content {
        text-align: center;
    }
    
    .demo-features {
        justify-content: center;
    }
    
    .demo-phone-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .demo-float {
        display: none; /* Hide floating badges on mobile to reduce clutter */
    }
}

/* --- Terminal Section Mobile --- */
@media (max-width: 992px) {
    .terminal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .terminal-content {
        text-align: center;
    }
    
    .terminal-metrics {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .terminal-window {
        border-radius: 16px;
    }
    
    .terminal-body {
        font-size: 0.75rem;
        padding: 16px;
    }
    
    .terminal-line {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

/* --- Workflow Section Mobile --- */
@media (max-width: 992px) {
    .workflow-grid {
        flex-direction: column;
        gap: 24px;
    }
    
    .workflow-connector {
        transform: rotate(90deg);
        margin: 8px 0;
    }
}

@media (max-width: 768px) {
    .workflow-card {
        padding: 24px;
    }
    
    .workflow-card-title {
        font-size: 1.1rem;
    }
}

/* --- Bento Grid Mobile --- */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card.span-4,
    .bento-card.span-6,
    .bento-card.span-8 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-card {
        padding: 24px;
    }
    
    .bento-title {
        font-size: 1.1rem;
    }
}

/* --- Integrations Grid Mobile --- */
@media (max-width: 768px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .integration-card {
        padding: 20px 16px;
    }
    
    .integration-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .integration-card h4 {
        font-size: 0.9rem;
    }
}

/* --- Testimonials Mobile --- */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-card.featured {
        transform: none;
    }
}

/* --- Pricing Cards Mobile --- */
@media (max-width: 768px) {
    .pricing-card {
        padding: 32px 24px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* --- FAQ Mobile --- */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }
    
    .faq-question span {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.9rem;
    }
}

/* --- Footer Mobile --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 16px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- Prevent Horizontal Overflow --- */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    
    .bg-animated,
    .bg-grid,
    .orb {
        max-width: 100vw;
    }
}

/* ===================== ALERTS (Tactical HUD Style) ===================== */
.alert {
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: tacticalEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: visible;
}

@keyframes tacticalEntrance {
    from { opacity: 0; transform: translateY(-12px) scale(0.98) rotateX(-5deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

/* Tactical Corner Accents */
.alert::after, .alert::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    border-color: currentColor;
    border-style: solid;
    opacity: 0.4;
}
.alert::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.alert::after { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    position: relative;
    flex-shrink: 0;
}

.alert-content {
    line-height: 1.5;
}

.alert-content strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 2px;
    opacity: 0.9;
}

/* Color Schemes (Holographic Glow) */
.alert-success-custom {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.2);
    box-shadow: 0 15px 35px rgba(20, 83, 45, 0.2), inset 0 0 20px rgba(74, 222, 128, 0.05);
}
.alert-success-custom .alert-icon { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.2); }

.alert-danger-custom {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
    box-shadow: 0 15px 35px rgba(127, 29, 29, 0.2), inset 0 0 20px rgba(248, 113, 113, 0.05);
}
.alert-danger-custom .alert-icon { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); }

.alert-info-custom {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2), inset 0 0 20px rgba(96, 165, 250, 0.05);
}
.alert-info-custom .alert-icon { background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.2); }

.alert-custom {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 15px 35px rgba(76, 29, 149, 0.2), inset 0 0 20px rgba(167, 139, 250, 0.05);
}
.alert-custom .alert-icon { background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.2); }

/* --- Light Mode Refinement (Matte Glass HUD) --- */
[data-theme="light"] .alert {
    background: rgba(248, 250, 252, 0.82); /* Slate 50 Tint for more substance */
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.05), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

[data-theme="light"] .alert::after, [data-theme="light"] .alert::before {
    opacity: 0.6; /* Sharper accents in light mode */
}

[data-theme="light"] .alert-success-custom { 
    color: #15803d; 
    background: rgba(240, 253, 244, 0.85); /* Success Mint tint */
    border-color: rgba(34, 197, 94, 0.2);
}
[data-theme="light"] .alert-danger-custom { 
    color: #b91c1c; 
    background: rgba(254, 242, 242, 0.85); /* Danger Rose tint */
    border-color: rgba(239, 68, 68, 0.2);
}
[data-theme="light"] .alert-info-custom { 
    color: #1d4ed8; 
    background: rgba(239, 246, 255, 0.85); /* Info Sky tint */
    border-color: rgba(59, 130, 246, 0.2);
}
[data-theme="light"] .alert-custom { 
    color: #6d28d9; 
    background: rgba(245, 243, 255, 0.85); /* Branding Violet tint */
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .alert .text-white-75 { color: #475569 !important; }
[data-theme="light"] .alert strong { font-weight: 800; opacity: 1; }

.btn-close {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: invert(1);
    opacity: 0.4;
    padding: 1.25rem;
}
[data-theme="light"] .btn-close {
    filter: none; /* Dark close button for light mode */
}
.btn-close:hover { opacity: 1; transform: rotate(90deg) scale(1.1); }



/* --- Pulsar Logo Standard --- */
.pulsar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    transition: opacity 0.3s ease;
}

.pulsar-logo:hover {
    opacity: 0.9;
    color: var(--text-primary);
}

.pulsar-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    position: relative;
    overflow: hidden;
}

.pulsar-logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pulsar-logo:hover .pulsar-logo-icon::after {
    opacity: 1;
}

.pulsar-logo-svg {
    width: 20px;
    height: 20px;
    color: #a855f7;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
    position: relative;
    z-index: 1;
}

/* Light Mode Overrides for Logo */
[data-theme="light"] .pulsar-logo {
    color: #0f172a;
}

[data-theme="light"] .pulsar-logo-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.05));
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .pulsar-logo-svg {
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.3));
}
