﻿/* Modern Professional Design for Inner.codes */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sophisticated Color Palette - Matching Flutter App */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #ec4899;
    --teal-soft: #88C9D9;
    --teal-muted: #77B6C7;
    --teal-dark: #5E99A6;
    --gold-soft: #F4DA83;
    --gold-bright: #FFD700;
    
    /* Dark Theme - Matching Flutter App */
    --bg-dark: #0F0F23;
    --bg-darker: #151C26;
    --bg-light: #1A1A3E;
    --bg-card: #1E2833;
    --bg-surface: #242F3D;
    
    /* Text Colors */
    --text-primary: #D2EDF5;
    --text-secondary: #88C9D9;
    --text-muted: #77B6C7;
    
    /* Gradients - Matching Flutter App */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-teal: linear-gradient(135deg, #88C9D9 0%, #5E99A6 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.nav-brand__company {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-brand__company:hover {
    color: #ffffff;
}

.nav-brand__divider {
    width: 1px;
    height: 20px;
    background: rgba(136, 201, 217, 0.4);
}

.nav-brand__product {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A3E 50%, #0F0F23 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Orbs - Matching Flutter App */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
    top: 10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent);
    top: 40%;
    right: -15%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent);
    bottom: 20%;
    left: 10%;
    animation-duration: 28s;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 0;
    margin-top: var(--space-md);
    animation: logoEntrance 1s ease-out backwards;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-xl);
    border: 3px solid transparent;
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #06b6d4, #8b5cf6) border-box;
    background-clip: padding-box, border-box;
    background-origin: border-box;
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(139, 92, 246, 0.4),
        0 0 120px rgba(6, 182, 212, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoPulse 4s ease-in-out infinite, logoRotate 20s linear infinite;
    position: relative;
    overflow: hidden;
}

.hero-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, #8b5cf6, #ec4899, #06b6d4, #8b5cf6, #8b5cf6);
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: logoRotate 3s linear infinite;
    filter: blur(8px);
    opacity: 0.7;
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 1px rgba(139, 92, 246, 0.4),
            0 12px 40px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(139, 92, 246, 0.4),
            0 0 120px rgba(6, 182, 212, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 0 1px rgba(139, 92, 246, 0.7),
            0 16px 60px rgba(0, 0, 0, 0.6),
            0 0 120px rgba(139, 92, 246, 0.7),
            0 0 180px rgba(6, 182, 212, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-logo:hover {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.8),
        0 20px 80px rgba(0, 0, 0, 0.6),
        0 0 150px rgba(139, 92, 246, 0.8),
        0 0 200px rgba(6, 182, 212, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    animation: none;
}

/* Particle System */
.particle-system {
    position: relative;
    display: inline-block;
}

/* Neural Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), rgba(6, 182, 212, 0.6));
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.6),
        0 0 20px rgba(6, 182, 212, 0.4);
    animation: particleOrbit 8s linear infinite;
    z-index: 1;
}

.particle-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle-2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    animation-delay: -1s;
    animation-duration: 7s;
}

.particle-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -2s;
    animation-duration: 8s;
}

.particle-4 {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    animation-delay: -3s;
    animation-duration: 6.5s;
}

.particle-5 {
    top: 30px;
    right: 30px;
    animation-delay: -4s;
    animation-duration: 7.5s;
}

.particle-6 {
    bottom: 30px;
    right: 30px;
    animation-delay: -5s;
    animation-duration: 6.8s;
}

.particle-7 {
    bottom: 30px;
    left: 30px;
    animation-delay: -6s;
    animation-duration: 7.2s;
}

.particle-8 {
    top: 30px;
    left: 30px;
    animation-delay: -7s;
    animation-duration: 6.3s;
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: rotate(-360deg) translateX(120px) rotate(360deg);
        opacity: 0.8;
    }
}

/* Neural Connections */
.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.3), 
        rgba(6, 182, 212, 0.6), 
        rgba(139, 92, 246, 0.3)
    );
    border-radius: 1px;
    animation: neuralPulse 3s ease-in-out infinite;
    z-index: 0;
}

.connection-1 {
    top: 50%;
    left: 50%;
    width: 100px;
    transform: translate(-50%, -50%) rotate(45deg);
    animation-delay: 0s;
}

.connection-2 {
    top: 50%;
    left: 50%;
    width: 100px;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-delay: -1s;
}

.connection-3 {
    top: 50%;
    left: 50%;
    width: 100px;
    transform: translate(-50%, -50%) rotate(90deg);
    animation-delay: -2s;
}

.connection-4 {
    top: 50%;
    left: 50%;
    width: 100px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation-delay: -1.5s;
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Brain Wave Particles */
.brain-wave {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
    border-radius: 50%;
    animation: brainWave 4s ease-in-out infinite;
    z-index: 1;
}

.wave-1 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.wave-2 {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: -1.3s;
}

.wave-3 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -2.6s;
}

@keyframes brainWave {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    25% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.8);
    }
}

/* Adjust particle positions for wave-2 and wave-3 */
.wave-2 {
    transform: translateY(-50%);
}

.wave-3 {
    transform: translateX(-50%);
}

@keyframes brainWave {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    75% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

/* Specific transforms for each wave */
.wave-1 {
    animation-name: brainWave1;
}

.wave-2 {
    animation-name: brainWave2;
}

.wave-3 {
    animation-name: brainWave3;
}

@keyframes brainWave1 {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    25% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.8);
    }
}

@keyframes brainWave2 {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    25% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.2);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    75% {
        opacity: 0.6;
        transform: translateY(-50%) scale(0.8);
    }
}

@keyframes brainWave3 {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    25% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.8);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.3));
    animation: heroTitleReveal 1s ease-out forwards;
    opacity: 0;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Word and character animations for hero title */
@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes charFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero-cta {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    animation: shimmer 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}


@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}


.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Benefits Section */
.benefits {
    padding: var(--space-xl) 0 var(--space-3xl) 0;
    background: var(--bg-darker);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    justify-items: center;
    align-items: start;
}

.benefit-card {
    background: rgba(30, 40, 51, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    min-height: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-teal);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(136, 201, 217, 0.3);
    background: rgba(30, 40, 51, 0.8);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(136, 201, 217, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-teal);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md) auto;
    color: white;
    font-size: 1.75rem;
    box-shadow:
        0 4px 16px rgba(136, 201, 217, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotateZ(5deg);
    box-shadow: 
        0 8px 24px rgba(136, 201, 217, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: var(--space-3xl) 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.works-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.works-image {
    margin-top: var(--space-lg);
    text-align: center;
}

.works-screenshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 201, 217, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(136, 201, 217, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.works-screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(136, 201, 217, 0.6);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(136, 201, 217, 0.3);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.mode-card {
    background: rgba(30, 40, 51, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.mode-card:hover {
    border-color: rgba(136, 201, 217, 0.3);
    transform: translateY(-4px);
    background: rgba(30, 40, 51, 0.7);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(136, 201, 217, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mode-card i {
    font-size: 1.5rem;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.mode-card h4 {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.mode-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots {
    padding: var(--space-3xl) 0;
    background: var(--bg-darker);
}

.screenshots-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.screenshot-item {
    flex: 0 0 auto;
}

.screenshot-image {
    width: 260px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 201, 217, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(136, 201, 217, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.screenshot-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-teal);
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.screenshot-image:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: rgba(136, 201, 217, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5), 
        0 0 60px rgba(136, 201, 217, 0.3);
}

.screenshot-image:hover::before {
    opacity: 0.5;
}

/* Science Section */
.science {
    padding: var(--space-3xl) 0;
    background: var(--bg-dark);
}

.science-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.science-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.science-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.science-image {
    text-align: center;
}

.science-screenshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(136, 201, 217, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(136, 201, 217, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.science-screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(136, 201, 217, 0.6);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5), 
        0 0 40px rgba(136, 201, 217, 0.3);
}

.brain-animation {
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-pathway {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.neuron {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.connection {
    flex: 1;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 var(--space-xs);
    position: relative;
    overflow: hidden;
}

.connection::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: flow 2s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: rgba(30, 40, 51, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-8px);
    background: rgba(30, 40, 51, 0.8);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
    font-size: 1.5rem;
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateZ(-5deg);
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: rgba(30, 40, 51, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: rgba(136, 201, 217, 0.3);
    transform: translateY(-8px);
    background: rgba(30, 40, 51, 0.8);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(136, 201, 217, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
    justify-content: center;
}

.testimonial-stars i {
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.testimonial-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.author-info {
    text-align: center;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

.fi {
    font-size: 1.5rem;
    margin-top: 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        padding: var(--space-lg);
        transition: 0.3s;
        border-top: 1px solid rgba(139, 92, 246, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .works-content,
    .science-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .screenshots-showcase {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-image {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Section Dividers */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(136, 201, 217, 0.3) 20%,
        rgba(136, 201, 217, 0.6) 50%,
        rgba(136, 201, 217, 0.3) 80%,
        transparent
    );
    margin: var(--space-2xl) 0;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-teal);
    filter: blur(8px);
    opacity: 0.6;
}

/* Custom Cursor Effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(136, 201, 217, 0.4), transparent);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translate(-50%, -50%);
    filter: blur(10px);
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-teal);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection Styling */
::selection {
    background: rgba(136, 201, 217, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(136, 201, 217, 0.3);
    color: var(--text-primary);
}


/* Ensonova overrides for product navigation and legal pages */
.navbar.nav--scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    align-items: center;
}

.nav-menu .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.nav-link--ghost {
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--text-secondary);
}

.nav-link--ghost:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.legal-page {
    background: var(--bg-dark);
    min-height: 100vh;
    padding: 120px 0 var(--space-3xl);
}

.legal__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.legal__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section__label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.legal__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal__subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.legal__content {
    background: rgba(30, 40, 51, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.legal__content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
    color: var(--text-primary);
}

.legal__content h3 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.legal__content p,
.legal__content li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal__content ul {
    margin: var(--space-sm) 0 var(--space-md);
    padding-left: 1.5rem;
}

.legal__content a {
    color: var(--secondary);
}

.legal__content a:hover {
    color: var(--primary);
}

.legal__footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.innercodes-legal {
    margin-top: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.innercodes-legal a {
    color: var(--text-secondary);
    text-decoration: none;
}

.innercodes-legal a:hover {
    color: var(--primary);
}

.innercodes-legal span {
    margin: 0 var(--space-xs);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-menu {
        position: static;
        left: auto;
        top: auto;
        width: auto;
        padding: 0;
        background: transparent;
        border-top: none;
    }

    .nav-menu.active {
        left: auto;
    }

    .nav-toggle {
        display: none;
    }

    .legal__title {
        font-size: 2rem;
    }
}
