/* Base styles V2 - Full Page Design System */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Enhanced Design System */
:root {
    /* Colors */
    --primary-blue: #0f62fe;
    --primary-blue-hover: #0353e9;
    --primary-blue-light: rgba(15, 98, 254, 0.1);
    --dark-gray: #161616;
    --medium-gray: #525252;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --accent-green: #24a148;
    --accent-green-hover: #198038;
    --warning-orange: #ff832b;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-color: rgba(22, 22, 22, 0.8);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f62fe 0%, #0353e9 100%);
    --gradient-text: linear-gradient(135deg, #0f62fe 0%, #24a148 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 98, 254, 0.9) 0%, rgba(36, 161, 72, 0.9) 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Font sizes - Enhanced scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    /* Line heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Container sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-max: 1440px;
    
    /* Borders */
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-width: 1px;
    
    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow: 0 1px 3px 0 var(--shadow-color), 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Z-index layers */
    --z-background: -1;
    --z-default: 1;
    --z-timeline: 100;
    --z-header: 1000;
    --z-modal: 9999;
}

/* Base typography */
html {
    font-size: 16px;
    line-height: var(--leading-normal);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* Typography classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--dark-gray);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--text-6xl);
    }
    
    h2 {
        font-size: var(--text-4xl);
    }
    
    h3 {
        font-size: var(--text-3xl);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--text-7xl);
    }
}

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

p {
    margin-bottom: var(--space-4);
    color: var(--medium-gray);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue-hover);
}

/* Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    border: var(--border-width) solid transparent;
    border-radius: var(--border-radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    background: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-6) var(--space-12);
    font-size: var(--text-xl);
    border-radius: var(--border-radius-xl);
}

/* Icons */
[data-lucide] {
    stroke-width: 1.2;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 700;
}

.logo-icon {
    width: 28px;
    height: 28px;
    margin-right: var(--space-3);
    color: var(--primary-blue);
}

.logo-text {
    font-size: var(--text-xl);
    color: var(--dark-gray);
}

/* Feature items */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--dark-gray);
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Background overlays */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
}

.section-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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