:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Responsive width */
    max-width: 900px;
    /* Maximum pill width */
    z-index: 1000;
    padding: 0.3rem 0.5rem;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    transition: all var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}

.logo-image {
    height: 65px;
    /* Increased from 55px */
    width: auto;
    transition: var(--transition-normal);
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.nav.scrolled .logo-image {
    height: 45px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-text);
}


.nav-cta {
    font-size: 0.6rem;
    padding: 0.20rem 0.6rem;
    /* Reduced padding for tighter fit */
    border-radius: 9999px !important;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(0);
    /* Remove lift for nav button to keep it contained */
}

/* Mobile responsive nav */
@media (max-width: 768px) {
    .nav {
        width: 95%;
        top: 16px;
    }

    .nav-links {
        display: none;
        /* Hidden on mobile for now - simple implementation */
    }
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button.primary-cta {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.cta-button.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.cta-button svg {
    transition: transform var(--transition-normal);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem 0;
    /* Reduced from 10rem to bring items closer */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--color-bg);
    /* Dark base */
}

/* Light Beams Effect */
.hero-background::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -50%;
    width: 250%;
    height: 250%;
    background: repeating-linear-gradient(125deg,
            transparent 0%,
            transparent 3%,
            rgba(99, 102, 241, 0.02) 3.5%,
            rgba(99, 102, 241, 0.08) 5%,
            transparent 6%,
            transparent 10%,
            rgba(99, 102, 241, 0.03) 11%,
            rgba(99, 102, 241, 0.06) 13%,
            transparent 14%);
    filter: blur(40px);
    opacity: 0.8;
    transform: rotate(0deg);
    /* Mask to make it look like it's coming from top-left spot */
    mask-image: radial-gradient(circle at 40% 30%, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 40% 30%, black 0%, transparent 60%);
    pointer-events: none;
}

/* Ambient Source Glow */
.hero-background::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
}

.grid-overlay {
    display: none;
}

.gradient-orb {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    /* Reduced spacing */
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    /* Moved down to avoid overlapping text */
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 40px;
    /* Reduced height */
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 0;
    }
}



/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Logo Carousel Styles */
.logo-carousel-container {
    background: var(--color-bg);
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 2;
}

.logo-carousel-text {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    font-weight: 500;
}

.logo-carousel {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    animation: scrollLogos 60s linear infinite;
    padding-left: 2.5rem;
}

.client-logo {
    height: 50px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Problem Section */
.problem-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.problem-content {
    display: grid;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.problem-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.problem-card.highlight {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.problem-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.problem-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.problem-text strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Method Section */
.method-section {
    background: var(--color-bg-secondary);
    padding: var(--spacing-xl) 0;
}

.method-grid {
    display: grid;
    /* Explicit 2-column grid for balanced 2x2 layout */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .method-grid {
        grid-template-columns: 1fr;
    }
}

.method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    /* More rounded */
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.method-card:hover::before {
    opacity: 1;
}

.method-letter {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.method-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #b4b4b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.method-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes features to bottom if uneven content */
}

.method-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text);
    opacity: 0.9;
}

.feature-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.filter-content {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.filter-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: transform var(--transition-normal), background-color 0.3s;
}

.filter-column:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-header.negative {
    color: var(--color-error);
}

.filter-header.positive {
    color: var(--color-success);
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.filter-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.filter-icon.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.filter-icon.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

/* Differential Section */
.differential-section {
    background: var(--color-bg-secondary);
    perspective: 1000px;
}

.differential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.differential-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.differential-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.differential-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.differential-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.differential-card:hover .differential-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-accent);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.differential-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.differential-card:hover .differential-title {
    color: white;
}

.differential-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.orb-4 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -150px;
    left: -150px;
}

.orb-5 {
    width: 500px;
    height: 500px;
    background: var(--gradient-secondary);
    bottom: -150px;
    right: -150px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.cta-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.trust-item svg {
    color: var(--color-success);
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md) 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-image {
    height: 90px;
    width: auto;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card.delay-1 {
    transition-delay: 0.1s;
}

.reveal-card.delay-2 {
    transition-delay: 0.2s;
}

.reveal-card.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .method-grid,
    .differential-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .cta-trust {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .cta-button.large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .problem-card,
    .method-card,
    .differential-card,
    .filter-column {
        padding: var(--spacing-md);
    }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.modal-header p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem;
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.full-width {
    width: 100%;
    justify-content: center;
}

