/* ============================================
   ENHANCED MODERN CSS - 100X BETTER
   ============================================ */

/* Custom Properties - Design System */
:root {
    /* Colors - Refined grayscale palette */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #0d0d0d;
    --color-bg-elevated: rgba(20, 20, 20, 0.6);
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-text-tertiary: #707070;
    --color-text-muted: #505050;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #707070 100%);
    --gradient-button: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 100%);
    --gradient-button-hover: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
    --space-2xl: 100px;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows - Layered depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1), 0 0 80px rgba(255, 255, 255, 0.05);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    min-height: 100vh;
    color: var(--color-text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
    background: var(--color-bg-primary);
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* ============================================
   ENHANCED BACKGROUND SYSTEM
   ============================================ */

/* Layered background system */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    perspective: 1200px;
}

/* Animated 3D grid with depth */
.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(200, 200, 200, 0.03) 25%, rgba(200, 200, 200, 0.06) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.03) 75%, rgba(200, 200, 200, 0.06) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(200, 200, 200, 0.03) 25%, rgba(200, 200, 200, 0.06) 26%, transparent 27%, transparent 74%, rgba(200, 200, 200, 0.03) 75%, rgba(200, 200, 200, 0.06) 76%, transparent 77%, transparent);
    background-size: 100px 100px;
    animation: gridMove 25s linear infinite;
    transform: rotateX(65deg) translateZ(-100px);
    opacity: 0.7;
}

/* Add a second grid layer for depth */
.grid-lines::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%);
    background-size: 50px 50px;
    animation: gridMove 15s linear infinite reverse;
}

@keyframes gridMove {
    0% { transform: rotateX(65deg) translateZ(-100px) translateY(0); }
    100% { transform: rotateX(65deg) translateZ(-100px) translateY(100px); }
}

/* Enhanced glowing lines with multiple layers */
.glow-line {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(1px);
}

.glow-line-horizontal {
    height: 2px;
    width: 100%;
    left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    animation: glowHorizontal 12s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3),
        0 0 100px rgba(255, 255, 255, 0.1);
}

.glow-line-vertical {
    width: 2px;
    height: 100%;
    top: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    animation: glowVertical 14s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3),
        0 0 100px rgba(255, 255, 255, 0.1);
}

.glow-line:nth-child(1) { top: 15%; animation-delay: 0s; }
.glow-line:nth-child(2) { top: 65%; animation-delay: 3s; }
.glow-line:nth-child(3) { left: 25%; animation-delay: 1.5s; }
.glow-line:nth-child(4) { left: 75%; animation-delay: 4.5s; }

@keyframes glowHorizontal {
    0%, 100% { 
        opacity: 0; 
        transform: translateX(-100%) scaleX(0.5); 
    }
    10% { 
        opacity: 1; 
        transform: translateX(-50%) scaleX(1); 
    }
    50% { 
        opacity: 1; 
        transform: translateX(50%) scaleX(1); 
    }
    90% { 
        opacity: 1; 
        transform: translateX(100%) scaleX(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateX(150%) scaleX(0.5); 
    }
}

@keyframes glowVertical {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(-100%) scaleY(0.5); 
    }
    10% { 
        opacity: 1; 
        transform: translateY(-50%) scaleY(1); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(50%) scaleY(1); 
    }
    90% { 
        opacity: 1; 
        transform: translateY(100%) scaleY(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(150%) scaleY(0.5); 
    }
}

/* Enhanced floating orbs with better animation */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1), transparent);
    top: 5%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 70% 70%, rgba(220, 220, 220, 0.4), rgba(220, 220, 220, 0.1), transparent);
    bottom: 15%;
    left: 5%;
    animation-delay: 7s;
}

/* Add a third orb for more depth */
.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 50% 50%, rgba(240, 240, 240, 0.3), rgba(240, 240, 240, 0.05), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(40px, -40px) scale(1.15) rotate(90deg); 
    }
    50% { 
        transform: translate(-30px, 30px) scale(0.85) rotate(180deg); 
    }
    75% { 
        transform: translate(50px, 20px) scale(1.05) rotate(270deg); 
    }
}

/* Noise texture overlay for depth */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   TOP BAR - ENHANCED
   ============================================ */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    backdrop-filter: blur(30px) saturate(180%);
    background: rgba(10, 10, 10, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    transition: all var(--transition-base);
}

/* Add shadow on scroll */
.top-bar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(10, 10, 10, 0.95);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform var(--transition-base);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

.logo:hover::after {
    width: 100%;
}

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

/* ============================================
   ENHANCED BUTTONS
   ============================================ */

.btn {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    position: relative;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow: hidden;
    display: inline-block;
    isolation: isolate;
}

/* Animated shine effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    transition: left var(--transition-slow);
    z-index: -1;
}

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

.btn-ghost {
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost:active {
    transform: translateY(0);
}

.btn-solid {
    background: var(--gradient-button);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.btn-solid:hover {
    background: var(--gradient-button-hover);
    box-shadow: 
        var(--shadow-lg),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-solid:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   HERO SECTION - ENHANCED
   ============================================ */

.content-wrapper {
    margin-top: 80px;
    flex: 1;
}

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-xl);
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* Text reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-left h1 {
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

/* Add subtle text shadow for depth */
.hero-left h1::after {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
}

.hero-left p {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.75;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-btn {
    padding: 18px 40px;
    font-size: 16px;
}

/* ============================================
   INFO CARD - ENHANCED GLASSMORPHISM
   ============================================ */

.info-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(60px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 
        -6px -6px 30px rgba(255, 255, 255, 0.02),
        10px 10px 50px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
    transition: all var(--transition-slow);
}

/* Animated border gradient */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

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

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        -8px -8px 40px rgba(255, 255, 255, 0.03),
        12px 12px 60px rgba(0, 0, 0, 0.8),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.info-card h3 {
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    opacity: 0.8;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-base);
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-base);
    border-radius: 2px;
}

.stat-item:hover {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.stat-item:hover::before {
    height: 70%;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--color-text-tertiary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-base);
}

.stat-item:hover .stat-label {
    color: var(--color-text-secondary);
}

.stat-value {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
    transition: all var(--transition-base);
}

.stat-item:hover .stat-value {
    transform: translateX(4px) scale(1.05);
    color: #ffffff;
}

/* ============================================
   FEATURES SECTION - ENHANCED
   ============================================ */

.features {
    padding: 120px var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.features h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 100px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
}

/* Add decorative underline */
.features h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-item {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-lg) 36px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Gradient overlay on hover */
.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

/* Animated top border */
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.8);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        var(--shadow-xl),
        var(--shadow-glow);
}

.feature-item:hover::before,
.feature-item:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: var(--space-md);
    display: block;
    transition: all var(--transition-bounce);
    filter: grayscale(100%);
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    filter: grayscale(0%);
}

.feature-item h3 {
    font-size: 22px;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all var(--transition-base);
}

.feature-item:hover h3 {
    color: #ffffff;
    transform: translateX(4px);
}

.feature-item p {
    font-size: 15px;
    color: var(--color-text-tertiary);
    line-height: 1.7;
    transition: color var(--transition-base);
}

.feature-item:hover p {
    color: var(--color-text-secondary);
}

/* ============================================
   FOOTER - ENHANCED
   ============================================ */

.footer {
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(30px);
    position: relative;
}

/* Add subtle gradient overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-links a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Special handling for icon links to prevent full-width underline weirdness */
.footer-links a:not(.footer-github)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text-primary);
    transition: width var(--transition-base);
}

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

.footer-links a:not(.footer-github):hover::after {
    width: 100%;
}

.footer-github {
    color: var(--color-text-tertiary);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.footer-github:hover {
    opacity: 1;
    color: #fff !important;
}

.footer-copy {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Fade in elements as they enter viewport */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.feature-item {
    animation: fadeInScale 0.6s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

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

/* ============================================
   RESPONSIVE DESIGN - ENHANCED
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --space-xl: 40px;
        --space-2xl: 60px;
    }

    .top-bar {
        padding: 0 var(--space-lg);
        height: 70px;
    }

    .hero {
        padding: var(--space-lg);
        min-height: calc(100vh - 70px);
    }

    .content-wrapper {
        margin-top: 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .info-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .features {
        padding: 80px var(--space-lg);
    }

    .features h2::after {
        width: 60px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer {
        padding: var(--space-lg);
    }

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

@media (max-width: 640px) {
    :root {
        --space-lg: 24px;
        --space-xl: 30px;
    }

    .top-bar {
        padding: 0 var(--space-md);
        height: 60px;
    }

    .content-wrapper {
        margin-top: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .top-nav {
        gap: var(--space-xs);
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .hero {
        padding: var(--space-md);
        min-height: calc(100vh - 60px);
    }

    .hero-left h1 {
        margin-bottom: var(--space-md);
    }

    .hero-left p {
        font-size: 16px;
        margin-bottom: var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .info-card {
        padding: var(--space-lg);
    }

    .features {
        padding: var(--space-xl) var(--space-md);
    }

    .features h2 {
        margin-bottom: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus styles */
*:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text-secondary: #e0e0e0;
        --color-text-tertiary: #c0c0c0;
    }
    
    .btn-ghost {
        border-width: 2px;
    }
    
    .feature-item,
    .info-card {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .footer,
    .btn,
    .grid-background,
    .glow-line,
    .orb {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.glassmorphic {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.elevated {
    box-shadow: var(--shadow-lg);
}

.interactive {
    transition: all var(--transition-base);
    cursor: pointer;
}

.interactive:hover {
    transform: translateY(-4px);
}