/**
 * SalesCloud - Ultra Modern Dark Design
 * Version: 3.0.0
 * Author: J. Negro / SalesCloud
 */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --accent-pink: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Dark Theme */
    --dark-950: #030712;
    --dark-900: #0f0f23;
    --dark-800: #1a1a2e;
    --dark-700: #16213e;
    --dark-600: #1f2937;

    /* Light */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #030712 0%, #0f0f23 50%, #1a1a2e 100%);
    --gradient-glow: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --container-max: 1280px;
    --section-padding: 7rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.4);
    --shadow-glow-lg: 0 0 100px rgba(99, 102, 241, 0.3);
    --shadow-glow-cyan: 0 0 60px rgba(6, 182, 212, 0.4);
    --shadow-glow-pink: 0 0 60px rgba(236, 72, 153, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-950);
    color: var(--gray-300);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   Animated Background
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--gradient-hero);
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(236, 72, 153, 0.08), transparent);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.15);
    top: -200px;
    left: -200px;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.12);
    top: 50%;
    right: -150px;
    animation: orbFloat 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: -100px;
    left: 30%;
    animation: orbFloat 30s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ============================================
   Container & Utilities
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0);
    backdrop-filter: blur(0);
    transition: var(--transition);
}

.navbar.scrolled::before {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.navbar-brand svg {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar-nav a {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav a:hover { color: var(--white); }
.navbar-nav a:hover::after { width: 100%; }

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover { color: var(--white); background: var(--glass-bg-light); }
.lang-btn.active { background: var(--primary); color: var(--white); }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 9999;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-glow);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.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: 0.6s;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--glass-border-light);
}

.btn-outline:hover {
    background: var(--glass-bg-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: var(--glass-bg-light);
    color: var(--white);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-lg { padding: 1.1rem 2.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-text { max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px var(--accent);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero h1 .line-2 {
    display: block;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.hero-stat { text-align: center; padding: 0.5rem; }

.hero-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-glow-lg);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-10px);
    box-shadow: 0 0 120px rgba(99, 102, 241, 0.4);
}

.hero-card img {
    width: 100%;
    height: auto;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: floatBadge 5s ease-in-out infinite;
}

.float-badge-1 { top: 5%; right: -10%; animation-delay: 0s; }
.float-badge-2 { bottom: 15%; left: -8%; animation-delay: -2s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.float-badge-text span { font-size: 0.75rem; color: var(--gray-500); display: block; }
.float-badge-text strong { color: var(--white); font-size: 0.95rem; }

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray-400);
}

/* ============================================
   Product Cards
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-glow);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-card:hover::before { opacity: 1; }

.product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--gradient-glow);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon.glass { background: var(--gradient-cyan); box-shadow: var(--shadow-glow-cyan); }
.product-icon.tools { background: var(--gradient-purple); box-shadow: var(--shadow-glow-pink); }

.product-icon svg { width: 28px; height: 28px; color: var(--white); }

.product-card h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.product-subtitle { color: var(--gray-500); font-size: 0.9rem; }

.product-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.product-stat { text-align: center; }
.product-stat-value { font-size: 1.35rem; font-weight: 800; color: var(--white); }
.product-stat-label { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; }

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.product-feature svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================
   Screenshots Gallery
   ============================================ */
.screenshots-section {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.screenshot-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.screenshot-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.screenshot-card.hidden { display: none; }

.screenshot-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.screenshot-card:hover .screenshot-image img { transform: scale(1.05); }

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(3, 7, 18, 0.9) 100%);
    opacity: 0;
    transition: var(--transition);
}

.screenshot-card:hover .screenshot-overlay { opacity: 1; }

.screenshot-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: var(--gradient-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.screenshot-card:hover .screenshot-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.screenshot-info { padding: 1.25rem 1.5rem; }

.screenshot-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--glass-bg-light);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.screenshot-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.screenshot-info p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-glow);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    box-shadow: var(--shadow-glow);
}

.feature-card h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.9rem; color: var(--gray-500); }

/* ============================================
   Tech Stack
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.tech-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tech-item .tech-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand { margin-bottom: 1rem; }

.footer-brand p {
    color: var(--gray-500);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--gray-400);
}

.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--gray-500); font-size: 0.9rem; }
.footer-column a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p { color: var(--gray-500); font-size: 0.9rem; }

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow-lg);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Page Hero (for secondary pages)
   ============================================ */
.page-hero {
    padding: 12rem 0 5rem;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Doc Layout */
.doc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.doc-sidebar { position: sticky; top: 100px; height: fit-content; }

.doc-nav {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.doc-nav h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.doc-nav ul { list-style: none; }
.doc-nav li { margin-bottom: 0.5rem; }

.doc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.doc-nav a:hover, .doc-nav a.active {
    background: var(--glass-bg-light);
    color: var(--primary);
}

.doc-content section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.doc-content h2 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.code-block {
    background: var(--dark-800);
    border: 1px solid var(--glass-border);
    color: var(--gray-300);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .doc-layout { grid-template-columns: 1fr; }
    .doc-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem; }

    .mobile-menu-toggle { display: flex; }

    .navbar-nav {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .navbar-nav.mobile-open {
        opacity: 1;
        visibility: visible;
        z-index: 9998;
    }
    .navbar-nav a { font-size: 1.5rem; }
    .navbar-cta { display: none; }

    .hero { min-height: auto; padding: 9rem 0 4rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshots-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin: 0 auto; }
    .footer-brand p { margin: 1rem auto 0; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .cta-content h2 { font-size: 2rem; }
    .page-hero { padding: 9rem 0 3rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .hero-description { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .hero-stat-value { font-size: 1.75rem; }
    .product-features { grid-template-columns: 1fr; }
    .product-stats { grid-template-columns: repeat(2, 1fr); }
    .filter-buttons { gap: 0.35rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* ================================================
   About Page - Founder Section
   ================================================ */

.founder-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.founder-card {
    text-align: center;
    padding: 3rem 2rem;
}

.founder-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.founder-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.founder-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.founder-tagline {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.founder-card .founder-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.founder-card .founder-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.founder-card .founder-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.founder-contact {
    margin-top: 1.5rem;
}

.expertise-card {
    padding: 2.5rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.expertise-intro {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.expertise-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.expertise-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expertise-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.expertise-content strong {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.expertise-content span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.achievement-card {
    text-align: center;
    padding: 2rem 1rem;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.achievement-label {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-card {
    padding: 2rem;
    text-align: center;
}

.skill-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.skill-card h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--gray-500);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.skill-level {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .founder-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .achievements-grid { grid-template-columns: 1fr 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .founder-card .founder-stats { grid-template-columns: 1fr; gap: 1rem; }
}

/* ================================================
   Documentation Pages - Module Cards
   ================================================ */

.doc-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.doc-module-card {
    padding: 2rem;
}

.doc-module-card h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-list li {
    padding: 0.5rem 0;
    color: var(--gray-400);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .doc-modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .doc-modules-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Coming Soon / Disabled Buttons
   ============================================ */
.btn-coming-soon {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-coming-soon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
    border-radius: inherit;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.coming-soon-badge svg {
    width: 14px;
    height: 14px;
}

/* Footer demo links - Coming Soon */
.footer a.coming-soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* ============================================
   MOBILE OPTIMIZATIONS v2.0
   Touch-friendly, performance-focused
   ============================================ */

/* Mobile-first touch targets (WCAG 2.5.5 - min 44x44px) */
@media (max-width: 1024px) {
    /* Improve navbar touch targets */
    .navbar-nav a {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Language switcher - bigger touch area */
    .lang-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Buttons - ensure touch-friendly */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .btn-sm {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
}

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Show hero images on tablet (smaller) */
    .hero-visual {
        display: flex !important;
    }

    .hero-card {
        max-width: 400px;
        transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    }

    /* Stats bar - 3 columns on tablet */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }
}

/* Mobile Large - 480px to 768px */
@media (max-width: 768px) {
    /* Root spacing adjustments */
    :root {
        --section-padding: 3.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Navbar mobile menu improvements */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand span {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }

    /* Mobile menu - full screen with better spacing */
    .navbar-nav {
        padding: 2rem;
        gap: 1.5rem;
    }

    .navbar-nav a {
        font-size: 1.35rem;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-lg);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
    }

    .navbar-nav a:hover,
    .navbar-nav a:active {
        background: var(--primary);
        color: var(--white);
    }

    /* Hero section mobile */
    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Hero stats - 2x2 grid on mobile */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .hero-stat {
        padding: 0.75rem 0.5rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    /* Product cards mobile */
    .product-card {
        padding: 1.75rem;
    }

    .product-icon {
        width: 50px;
        height: 50px;
    }

    .product-icon svg {
        width: 24px;
        height: 24px;
    }

    .product-card h3 {
        font-size: 1.25rem;
    }

    .product-stats {
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .product-stat-value {
        font-size: 1.1rem;
    }

    .product-stat-label {
        font-size: 0.6rem;
    }

    /* Feature cards mobile */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h4 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Tech grid mobile */
    .tech-item {
        padding: 1rem 0.75rem;
    }

    .tech-item .tech-icon {
        font-size: 1.5rem;
    }

    .tech-item span {
        font-size: 0.75rem;
    }

    /* Screenshots mobile */
    .screenshots-grid {
        gap: 1rem;
    }

    .screenshot-info {
        padding: 1rem;
    }

    .screenshot-info h4 {
        font-size: 0.95rem;
    }

    /* Footer mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-column h4 {
        margin-bottom: 1rem;
    }

    .footer-column ul li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    /* CTA mobile */
    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Page hero mobile */
    .page-hero {
        padding: 8rem 0 2.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Doc layout mobile */
    .doc-nav {
        padding: 1rem;
    }

    .doc-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mobile Small - up to 480px */
@media (max-width: 480px) {
    :root {
        --section-padding: 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats - stack vertically on very small screens */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stat-value {
        font-size: 1.35rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Cards adjustments */
    .product-card {
        padding: 1.5rem;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .product-badge {
        top: 1rem;
        right: 1rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.25rem;
    }

    /* Lightbox mobile */
    .lightbox img {
        max-width: 95%;
        border-radius: var(--radius-lg);
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .footer-social a {
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   INDEX.HTML SPECIFIC - Stats Bar & Services
   (Overrides for inline styles in index.html)
   ============================================ */

/* Stats bar responsive */
@media (max-width: 992px) {
    .stats-bar {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    .stats-bar {
        padding: 1.5rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    /* Hide 5th stat on very small screens */
    .stat-item:nth-child(5) {
        display: none;
    }
}

/* Services grid responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-price {
        padding: 0.875rem;
        flex-wrap: wrap;
    }

    .service-price .amount {
        font-size: 1.75rem;
    }

    .service-features li {
        font-size: 0.85rem;
    }
}

/* Why grid responsive */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .why-card {
        padding: 1.5rem 1rem;
    }

    .why-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .why-icon svg {
        width: 28px;
        height: 28px;
    }

    .why-card h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr !important;
    }

    .why-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .why-icon {
        margin: 0;
        flex-shrink: 0;
    }
}

/* Process grid responsive */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .process-step h4 {
        font-size: 1rem;
    }

    .process-step p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .process-step {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .process-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* Modules grid responsive */
@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .module-card {
        border-radius: 16px;
    }

    .module-image {
        height: 180px;
    }

    .module-content {
        padding: 1.25rem;
    }

    .module-content h3 {
        font-size: 1.15rem;
    }

    .module-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .module-actions .btn {
        width: 100%;
    }
}

/* Testimonials responsive */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: 1rem;
        right: 1.5rem;
    }

    .testimonial-content {
        font-size: 0.95rem;
    }

    .testimonial-avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* Clients logos responsive */
@media (max-width: 768px) {
    .clients-logos {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }

    .client-logo {
        font-size: 0.9rem;
    }

    .client-logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .clients-logos {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .client-logo {
        font-size: 0.8rem;
    }
}

/* FAQ responsive */
@media (max-width: 768px) {
    .faq-grid {
        max-width: 100%;
    }

    .faq-item {
        border-radius: 12px;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Contact section responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-methods {
        max-width: 300px;
        margin: 2rem auto 0;
    }

    .contact-method {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .contact-form h4 {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .form-submit .btn {
        padding: 1rem 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* Hero images mobile (for index.html inline styles) */
@media (max-width: 1200px) and (min-width: 769px) {
    .hero-grid {
        gap: 2.5rem !important;
    }

    .hero-images {
        max-width: 500px !important;
    }

    .hero-image img {
        height: 150px !important;
    }

    .hero-image.large img {
        height: 180px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }

    .hero-grid {
        gap: 2rem !important;
    }

    /* Show hero images on mobile - simplified grid */
    .hero-images {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        max-width: 100% !important;
    }

    .hero-image {
        border-radius: 12px;
    }

    .hero-image img {
        height: 140px !important;
        object-fit: cover;
    }

    .hero-image.large {
        grid-column: span 1 !important;
    }

    .hero-image.large img {
        height: 160px !important;
    }

    /* Only show 2 images on mobile to save space */
    .hero-image:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 90px 0 50px !important;
    }

    .hero-image img {
        height: 120px !important;
    }

    .hero-image.large img {
        height: 140px !important;
    }
}

/* ============================================
   PERFORMANCE & ACCESSIBILITY
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .orb {
        animation: none;
    }

    .hero-card {
        transform: none;
    }

    .hero-card:hover {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Improve tap highlight on mobile */
@media (max-width: 768px) {
    a, button {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    @media (max-width: 768px) {
        .container {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
    }
}
