/* ========================================
   YARNA AB - Modern Professional Design
   Autonomous Software Systems
   Intelligence in every Automation™
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System - Modern & Professional */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-dark: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface-alt);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

/* ========================================
   HERO SECTION - MODERN AI DESIGN
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0a0e27;
    overflow: hidden;
    padding: var(--space-4xl) 0;
    margin-top: 70px;
}

/* Animated Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent);
    bottom: -10%;
    left: -5%;
    animation-delay: 8s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 15s;
}

/* Hero Content Styling */
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   HEADER
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--surface-alt);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary svg {
    transition: var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-lg {
    padding: 1rem var(--space-3xl);
    font-size: 1.0625rem;
}

/* Hero Text Styles */
.hero-content {
    max-width: 650px;
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero .tagline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero .lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

/* Integrated Stats Slider */
.hero-stats-slider {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.stats-slides {
    position: relative;
    min-height: 300px;
}

.stat-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.stat-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.stat-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
}

.stat-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border-radius: var(--radius-xl);
    color: var(--accent-light);
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.stat-icon svg {
    width: 56px;
    height: 56px;
}

.stat-content {
    color: white;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.stat-label {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.stat-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.stats-slider-controls {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.slider-dots {
    display: flex;
    gap: var(--space-sm);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.slider-dot.active {
    background: linear-gradient(135deg, var(--accent-light), #a78bfa);
    width: 32px;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Particle Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    animation: float 20s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: var(--space-4xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.bg-white {
    background: var(--surface);
}

.bg-alt {
    background: var(--surface-alt);
}

.bg-dark {
    background: var(--surface-dark);
    color: white;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5 {
    color: white;
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
    gap: var(--space-xl);
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
}

.card h3, .card h4, .card h5 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Feature Cards */
.feature-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 2px solid var(--border-light);
    transition: var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent);
}

/* ========================================
   STATS
   ======================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    text-align: center;
    padding: var(--space-3xl) 0;
}

.stat-item {
    padding: var(--space-xl);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   COMPARISON VISUAL
   ======================================== */
.comparison-section {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

.comparison-list {
    list-style: none;
    margin-top: var(--space-xl);
}

.comparison-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.comparison-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-list span {
    color: var(--accent);
    font-weight: 600;
}

.metric-bar {
    margin-bottom: var(--space-lg);
}

.metric-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.metric-label strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bar-container {
    height: 12px;
    background: var(--surface-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.comparison-note {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-family: var(--font-system);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Range Slider */
.range-group {
    margin-bottom: var(--space-xl);
}

.range-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.range-value {
    color: var(--accent);
    font-weight: 700;
}

.range-input {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--surface-alt);
    outline: none;
    -webkit-appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Calculator Display */
.calculator-display {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    color: white;
}

.calculator-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.calculator-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-section h5 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --space-4xl: 4rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats-slider {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }

    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }

    .hero .container {
        gap: var(--space-2xl);
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: var(--space-xs) var(--space-md);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-stats-slider {
        padding: var(--space-2xl);
    }

    .stats-slides {
        min-height: 350px;
    }

    .stat-icon {
        width: 80px;
        height: 80px;
    }

    .stat-icon svg {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: clamp(2.5rem, 10vw, 3rem);
    }

    .stat-label {
        font-size: 1.125rem;
    }

    .orb-1, .orb-2, .orb-3 {
        filter: blur(60px);
    }

    header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: var(--space-lg);
    }

    nav.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--space-md);
        border-radius: 0;
    }

    .nav-link.active::after {
        left: 0;
        right: auto;
        width: 4px;
        height: 100%;
        top: 0;
        bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .ticker-item {
        padding: 0 var(--space-xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .card {
        padding: var(--space-lg);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    header,
    footer,
    .ticker-wrapper,
    .btn {
        display: none;
    }

    body {
        background: white;
    }
}
