/* ==========================================================================
   STREAMHUB - PREMIUM VIDEO STREAMING PLATFORM
   Cinema-quality design with glassmorphism and gradient backgrounds
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Colors - Dark gradient theme (Purple → Pink → Orange) */
    --color-primary-900: #4c1d95;
    --color-primary-800: #5b21b6;
    --color-primary-700: #6d28d9;
    --color-primary-600: #7c3aed;
    --color-primary-500: #8b5cf6;
    --color-primary-400: #a78bfa;

    --color-secondary-900: #831843;
    --color-secondary-800: #9f1239;
    --color-secondary-700: #be123c;
    --color-secondary-600: #e11d48;
    --color-secondary-500: #f43f5e;
    --color-secondary-400: #fb7185;

    --color-accent-900: #c2410c;
    --color-accent-800: #ea580c;
    --color-accent-700: #f97316;
    --color-accent-600: #fb923c;
    --color-accent-500: #fdba74;
    --color-accent-400: #fed7aa;

    /* Neutral scale */
    --color-neutral-950: #0a0a0a;
    --color-neutral-900: #171717;
    --color-neutral-800: #262626;
    --color-neutral-700: #404040;
    --color-neutral-600: #525252;
    --color-neutral-500: #737373;
    --color-neutral-400: #a3a3a3;
    --color-neutral-300: #d4d4d4;
    --color-neutral-200: #e5e5e5;
    --color-neutral-100: #f5f5f5;
    --color-neutral-50: #fafafa;

    /* Semantic colors */
    --color-success: #22c55e;
    --color-warning: #eab308;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    --color-live: #dc2626;

    /* Typography scale */
    --text-hero: clamp(3rem, 8vw, 6rem);
    --text-display: clamp(2.5rem, 6vw, 4.5rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Spacing scale (8px base) */
    --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;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* 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);

    /* Glow effects */
    --glow-purple: 0 0 60px rgba(139, 92, 246, 0.4);
    --glow-pink: 0 0 60px rgba(244, 63, 94, 0.4);
    --glow-orange: 0 0 60px rgba(251, 146, 60, 0.4);
    --glow-multi: 0 0 80px rgba(139, 92, 246, 0.3), 0 0 120px rgba(244, 63, 94, 0.2);

    /* 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-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Glassmorphism */
    --glass-bg: rgba(23, 23, 23, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
}

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

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--color-neutral-100);
    background: var(--color-neutral-950);
    overflow-x: hidden;
}

/* Gradient background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 63, 94, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(251, 146, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--color-primary-500);
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neutral-700);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-neutral-600);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

.text-hero {
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-display {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-400) 0%, var(--color-secondary-500) 50%, var(--color-accent-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: 1536px;
}

.container-narrow {
    max-width: 896px;
}

section {
    padding: var(--space-20) 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.nav-main.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 var(--space-6);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    color: var(--color-neutral-300);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-small);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-secondary-500));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

.nav-mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-2);
}

/* Mobile menu */
.nav-mobile {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-neutral-950);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
}

.nav-mobile.active {
    transform: translateX(0);
}

.nav-mobile-links {
    list-style: none;
    padding: var(--space-8) var(--space-6);
}

.nav-mobile-links a {
    display: block;
    padding: var(--space-4) 0;
    color: var(--color-neutral-300);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-neutral-800);
    transition: color var(--transition-fast);
}

.nav-mobile-links a:hover {
    color: white;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-mobile-toggle {
        display: none;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-multi);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--color-primary-500);
}

.btn-outline:hover {
    background: var(--color-primary-500);
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-body);
}

.btn-icon {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-neutral-300);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin-bottom: var(--space-6);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-live);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    margin-bottom: var(--space-6);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-neutral-300);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: var(--text-h1);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    display: block;
    font-size: var(--text-small);
    color: var(--color-neutral-400);
    margin-top: var(--space-2);
}

.hero-visual {
    position: relative;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        text-align: left;
    }

    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   FLOATING VIDEO PLAYER MOCKUP
   ========================================================================== */

.video-mockup {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.video-mockup-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--glow-multi);
}

.video-mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-neutral-800) 0%, var(--color-neutral-900) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-mockup-play {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--glow-purple);
}

.video-mockup-play:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-multi);
}

.video-mockup-play svg {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px;
}

.video-mockup-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.video-mockup-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.video-mockup-progress-bar {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-secondary-500));
}

.video-mockup-time {
    font-size: var(--text-xs);
    color: white;
    font-weight: 600;
}

/* Floating rings */
.video-mockup::before,
.video-mockup::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--color-primary-500);
    border-radius: 50%;
    opacity: 0.3;
}

.video-mockup::before {
    width: 120%;
    height: 120%;
    animation: pulse-ring 3s ease-out infinite;
}

.video-mockup::after {
    width: 140%;
    height: 140%;
    animation: pulse-ring 3s ease-out infinite 0.5s;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: var(--glow-purple);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.card-title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-3);
    color: white;
}

.card-description {
    color: var(--color-neutral-400);
    line-height: 1.7;
}

/* Video card */
.video-card {
    background: var(--color-neutral-900);
    border: 1px solid var(--color-neutral-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-neutral-700);
}

.video-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-neutral-800);
}

.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-card-thumbnail img {
    transform: scale(1.05);
}

.video-card-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
}

.video-card-badge.live {
    background: var(--color-live);
}

.video-card-duration {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    padding: var(--space-1) var(--space-2);
    background: rgba(0,0,0,0.9);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
}

.video-card-content {
    padding: var(--space-4);
}

.video-card-title {
    font-size: var(--text-body);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-neutral-400);
}

.video-card-meta span:not(:last-child)::after {
    content: '•';
    margin-left: var(--space-2);
}

/* ==========================================================================
   FEATURE GRID
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.pricing-toggle-label {
    font-weight: 600;
    color: var(--color-neutral-400);
    transition: color var(--transition-fast);
}

.pricing-toggle-label.active {
    color: white;
}

.pricing-switch {
    position: relative;
    width: 56px;
    height: 32px;
    background: var(--color-neutral-800);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);
}

.pricing-switch.active {
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
}

.pricing-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-base);
}

.pricing-switch.active .pricing-switch-thumb {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.pricing-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all var(--transition-base);
}

.pricing-card.featured {
    border-color: var(--color-primary-500);
    box-shadow: var(--glow-purple);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-secondary-600));
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.pricing-name {
    font-size: var(--text-h3);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
}

.pricing-description {
    color: var(--color-neutral-400);
    margin-bottom: var(--space-6);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.pricing-amount {
    font-size: var(--text-display);
    font-weight: 800;
    color: white;
}

.pricing-period {
    font-size: var(--text-body);
    color: var(--color-neutral-400);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--color-neutral-300);
}

.pricing-feature svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
}

/* ==========================================================================
   STATS & COUNTERS
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.stat-value {
    display: block;
    font-size: var(--text-display);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    display: block;
    font-size: var(--text-small);
    color: var(--color-neutral-400);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--color-primary-500);
    color: white;
}

.badge-success {
    background: var(--color-success);
    color: white;
}

.badge-live {
    background: var(--color-live);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-quality {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-neutral-300);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--color-neutral-900);
    border-top: 1px solid var(--color-neutral-800);
    padding: var(--space-20) 0 var(--space-8);
    margin-top: var(--space-32);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-description {
    color: var(--color-neutral-400);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-neutral-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-400);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary-600);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: var(--text-small);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    display: block;
    padding: var(--space-2) 0;
    color: var(--color-neutral-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-neutral-800);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.footer-copyright {
    color: var(--color-neutral-500);
    font-size: var(--text-small);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--color-neutral-500);
    text-decoration: none;
    font-size: var(--text-small);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: white;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth),
                transform var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-smooth);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.sr-only:focus-visible {
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-4);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--color-neutral-900);
    color: white;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@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;
    }

    .reveal,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .nav-main,
    .footer,
    .btn {
        display: none;
    }
}
