:root {
    --primary-green: #004d00;
    --secondary-green: #006600;
    --accent-green: #28a745;
    --light-green: #e8f5e8;
    --dark-green: #003300;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow: 0 10px 30px rgba(0, 77, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 77, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Font loading optimization to prevent FOUT */
@font-face {
    font-family: 'Bebas Neue';
    font-display: swap;
}

/* Ensure consistent brand text appearance during font load */
.brand, .brand.site-brand {
    font-family: 'Bebas Neue', 'Arial Black', 'Arial Bold', Arial, sans-serif;
    font-display: swap;
}

/* Container for centering content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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





/* Button styles for content sections */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

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

.btn-white:hover {
    background: var(--light-gray);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    margin-top: 110px !important;
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #004d00 0%, #006600 50%, #28a745 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="15" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="15" cy="65" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="85" cy="35" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(44,62,80,0.15);
    padding: 48px 2rem 40px 2rem;
    backdrop-filter: blur(10px);
}
.hero-logo {
    max-width: 340px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
.hero-title {
    font-size: 2.7rem;
    font-weight: 900;
    color: #004d00;
    margin-bottom: 0.5rem;
}
.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.2rem;
}
.hero-free {
    font-size: 1.2rem;
    color: #28a745;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.hero-desc {
    font-size: 1.1rem;
    color: #333;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.hero-cta .btn {
    font-size: 1.2rem;
    padding: 0.8em 2em;
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow);
}

.problem-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.problem-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Solution Section - Layered Reveal Animation */
.solution-section {
    padding: 0;
    background: #0f172a;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    opacity: 0;
    transition: opacity 2s ease-out;
}

.solution-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.solution-intro {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 1.5s ease-out;
}

/* Scroll-triggered animation states */
.solution-section.animate::before {
    opacity: 1;
}

.solution-section.animate::after {
    opacity: 1;
}

.solution-section.animate .solution-intro {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.solution-intro h2 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffffff, #10b981, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: textShimmer 3s ease-in-out infinite;
}

.solution-intro p {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: textFadeIn 1s ease-out 2s forwards;
}

/* Layered Animation Keyframes */
@keyframes backgroundReveal {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gridReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Geometric Elements */
.solution-section .floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatShapes 8s ease-in-out infinite;
}

.solution-section .floating-shape:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.solution-section .floating-shape:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.solution-section .floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes floatShapes {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 77, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-green);
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent-green);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.stats-section .section-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 0 #003300;
    font-weight: 800;
}

/* Signup Info Section */
.signup-info-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.signup-info-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
}

.signup-info-section p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    line-height: 1.6;
}

.signup-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.signup-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 77, 0, 0.1);
}

.signup-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.signup-info-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.signup-info-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.signup-info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}


/* Performance optimizations */
.fade-in {
    will-change: transform, opacity;
}

.btn, .feature-card, .problem-card, .signup-info-card, .auto-lineup-card, .benefit-item {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .demo-timeline {
        max-width: 800px;
        gap: 1rem;
    }
    
    .demo-step {
        flex: 1;
        min-width: 0;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    * {
        box-sizing: border-box;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    .nav-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero section mobile improvements */
    .hero {
        margin-top: 100px !important;
        margin-bottom: 2rem !important;
        padding: 40px 0 !important;
    }
    
    .hero-content {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
        padding: 2.5rem 1.5rem !important;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-tagline {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    
    .hero-desc {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Section improvements */
    .problem-section, .features-section, .solution-section, 
    .stats-section, .signup-info-section {
        padding: 3rem 0 !important;
        width: 100%;
        max-width: 100%;
    }
    
    /* Remove min-height from solution section on mobile */
    .solution-section {
        min-height: auto !important;
    }
    
    .section-title {
        font-size: 2rem !important;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.4;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -moz-hyphens: none !important;
        -ms-hyphens: none !important;
    }
    
    /* Grid improvements */
    .problem-grid, .features-grid, .signup-info-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100%;
    }
    
    /* Card improvements */
    .problem-card, .feature-card, .signup-info-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.5rem;
    }
    
    /* Stats section mobile improvements */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }


    /* Auto-Lineup Section Mobile Optimizations */
    .auto-lineup-section {
        padding: 60px 0;
    }

    .auto-lineup-hero {
        margin-bottom: 3rem;
    }

    .auto-lineup-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .auto-lineup-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .auto-lineup-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .auto-lineup-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    /* Ensure proper order for auto-lineup stats on mobile */
    .auto-lineup-stat {
        order: 0;
    }

    .auto-lineup-stat {
        padding: 1.2rem;
        min-width: 140px;
        width: 100%;
        max-width: 200px;
    }

    .auto-lineup-stat .stat-number {
        font-size: 2.2rem;
    }

    .auto-lineup-stat .stat-label {
        font-size: 0.9rem;
    }

    .auto-lineup-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .auto-lineup-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .auto-lineup-card .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .auto-lineup-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .auto-lineup-card p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .auto-lineup-card .feature-list {
        font-size: 0.9rem;
    }

    .auto-lineup-card .feature-list li {
        margin-bottom: 0.4rem;
        padding-left: 1.2rem;
    }

    .auto-lineup-demo {
        padding: 2rem 1.5rem;
        margin: 0 auto 3rem auto;
        max-width: calc(100% - 2rem);
        border-radius: 20px;
    }

    .demo-header {
        margin-bottom: 2rem;
    }

    .demo-header h3 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .demo-header p {
        font-size: 1rem;
    }

    .demo-timeline {
        flex-direction: column;
        gap: 2rem;
        max-width: 100%;
    }
    
    /* Ensure proper order for demo steps on mobile */
    .demo-step {
        order: 0;
    }

    .demo-step {
        position: relative;
        text-align: center;
    }

    .demo-step:not(:last-child)::after {
        display: block;
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 2rem;
        background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
    }

    .demo-step:not(:last-child)::before {
        display: none;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .step-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .auto-lineup-intelligence {
        padding: 2rem 1.5rem;
        margin: 0 auto 2rem auto;
        max-width: calc(100% - 2rem);
    }

    .auto-lineup-intelligence h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .auto-lineup-intelligence > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .intelligence-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intelligence-card {
        padding: 2rem 1.5rem;
    }

    .intelligence-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .intelligence-icon i {
        font-size: 1.8rem;
    }

    .intelligence-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .intelligence-card p {
        font-size: 0.9rem;
    }

    .auto-lineup-cta {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: calc(100% - 2rem);
    }

    .cta-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-content .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .auto-lineup-magic-container {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0.5rem;
    }

    .magic-text {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }

    .magic-animation-container {
        min-height: 150px;
        margin: 1.5rem 0;
    }

    .magic-animation-container.animate {
        min-height: 300px;
    }

    .magic-wand {
        font-size: 2.5rem;
    }

    .magic-sparkles i {
        font-size: 1.2rem;
    }

    .burst-center {
        font-size: 1.8rem;
    }

    .burst-particle {
        width: 6px;
        height: 6px;
    }

    .generated-lineup {
        min-width: 300px;
        max-width: 450px;
        padding: 1.5rem;
        min-height: 250px;
    }

    .lineup-innings {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .lineup-header {
        font-size: 1.1rem;
    }

    .inning-title {
        font-size: 0.8rem;
    }

    .position {
        font-size: 0.7rem;
    }

    .batting-fairness-hero {
        margin-bottom: 3rem;
    }

    .batting-fairness-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .batting-fairness-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .batting-fairness-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .batting-fairness-intelligence {
        padding: 2rem 1.5rem;
        margin: 0 auto 2rem auto;
        max-width: calc(100% - 2rem);
    }

    .batting-fairness-intelligence h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .batting-fairness-intelligence > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .batting-intelligence-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .batting-intelligence-card {
        padding: 2rem 1.5rem;
    }

    .batting-intelligence-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .batting-intelligence-icon i {
        font-size: 1.8rem;
    }

    .batting-intelligence-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .batting-intelligence-card p {
        font-size: 0.9rem;
    }

    .batting-fairness-cta {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: calc(100% - 2rem);
    }

    .batting-cta-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .batting-cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .batting-cta-content .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .lineup-history-hero {
        margin-bottom: 3rem;
    }

    .lineup-history-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .lineup-history-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .lineup-history-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .lineup-history-intelligence {
        padding: 2rem 1.5rem;
        margin: 0 auto 2rem auto;
        max-width: calc(100% - 2rem);
    }

    .lineup-history-intelligence h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .lineup-history-intelligence > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .lineup-history-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lineup-history-card {
        padding: 2rem 1.5rem;
    }

    .lineup-history-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .lineup-history-card-icon i {
        font-size: 1.8rem;
    }

    .lineup-history-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .lineup-history-card p {
        font-size: 0.9rem;
    }

    .lineup-history-cta {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        max-width: calc(100% - 2rem);
    }

    .lineup-history-cta-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .lineup-history-cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .lineup-history-cta-content .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .auto-lineup-benefits {
        margin: 0 0.5rem;
    }

    .auto-lineup-benefits h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .benefit-item i {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .benefit-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .benefit-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .logo-text {
        font-size: 1.5em;
    }

    .logo-tagline {
        font-size: 0.9em;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .nav-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-quote {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-card {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .signup-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .signup-info-card {
        padding: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-section .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.8rem;
    }

    /* Auto-Lineup Section Small Mobile Optimizations */
    .auto-lineup-section {
        padding: 50px 0;
    }

    .auto-lineup-hero {
        margin-bottom: 2.5rem;
    }

    .auto-lineup-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .auto-lineup-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .auto-lineup-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .auto-lineup-stats {
        gap: 0.8rem;
    }

    .auto-lineup-stat {
        padding: 1rem;
        min-width: 120px;
        max-width: 160px;
    }

    .auto-lineup-stat .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .auto-lineup-stat .stat-label {
        font-size: 0.8rem;
    }

    .auto-lineup-grid {
        gap: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .auto-lineup-card {
        padding: 1.5rem 1.2rem;
        margin: 0 0.3rem;
    }

    .auto-lineup-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .auto-lineup-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .auto-lineup-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .auto-lineup-card .feature-list {
        font-size: 0.85rem;
    }

    .auto-lineup-card .feature-list li {
        margin-bottom: 0.3rem;
        padding-left: 1rem;
    }

    .auto-lineup-demo {
        padding: 1.5rem 1.2rem;
        margin: 0 auto 2.5rem auto;
        max-width: calc(100% - 1.2rem);
    }

    .demo-header {
        margin-bottom: 1.5rem;
    }

    .demo-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .demo-header p {
        font-size: 0.9rem;
    }

    .demo-timeline {
        gap: 1.5rem;
    }

    .demo-step:not(:last-child)::after {
        top: 50px;
        height: 1.5rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .step-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .auto-lineup-intelligence {
        padding: 1.5rem 1.2rem;
        margin: 0 auto 1.5rem auto;
        max-width: calc(100% - 1.2rem);
    }

    .auto-lineup-intelligence h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .auto-lineup-intelligence > p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .intelligence-grid {
        gap: 1.2rem;
    }

    .intelligence-card {
        padding: 1.5rem 1.2rem;
    }

    .intelligence-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .intelligence-icon i {
        font-size: 1.6rem;
    }

    .intelligence-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .intelligence-card p {
        font-size: 0.85rem;
    }

    .auto-lineup-cta {
        padding: 1.5rem 1.2rem;
        margin: 0 auto;
        max-width: calc(100% - 1.2rem);
    }

    .cta-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-content .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .auto-lineup-magic-container {
        padding: 1.5rem 1.2rem;
        margin: 1.2rem 0.3rem;
    }

    .magic-text {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .magic-animation-container {
        min-height: 120px;
        margin: 1.2rem 0;
    }

    .magic-animation-container.animate {
        min-height: 250px;
    }

    .magic-wand {
        font-size: 2rem;
    }

    .magic-sparkles i {
        font-size: 1rem;
    }

    .burst-center {
        font-size: 1.6rem;
    }

    .burst-particle {
        width: 5px;
        height: 5px;
    }

    .generated-lineup {
        min-width: 280px;
        max-width: 400px;
        padding: 1.2rem;
        min-height: 200px;
    }

    .lineup-innings {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .lineup-header {
        font-size: 1rem;
    }

    .inning-title {
        font-size: 0.75rem;
    }

    .position {
        font-size: 0.65rem;
    }

    .batting-fairness-hero {
        margin-bottom: 2.5rem;
    }

    .batting-fairness-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .batting-fairness-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .batting-fairness-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .batting-fairness-intelligence {
        padding: 1.5rem 1.2rem;
        margin: 0 auto 1.5rem auto;
        max-width: calc(100% - 1.2rem);
    }

    .batting-fairness-intelligence h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .batting-fairness-intelligence > p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .batting-intelligence-grid {
        gap: 1.2rem;
    }

    .batting-intelligence-card {
        padding: 1.5rem 1.2rem;
    }

    .batting-intelligence-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .batting-intelligence-icon i {
        font-size: 1.6rem;
    }

    .batting-intelligence-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .batting-intelligence-card p {
        font-size: 0.85rem;
    }

    .batting-fairness-cta {
        padding: 1.5rem 1.2rem;
        margin: 0 auto;
        max-width: calc(100% - 1.2rem);
    }

    .batting-cta-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .batting-cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .batting-cta-content .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .lineup-history-hero {
        margin-bottom: 2.5rem;
    }

    .lineup-history-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .lineup-history-title {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .lineup-history-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .lineup-history-intelligence {
        padding: 1.5rem 1.2rem;
        margin: 0 auto 1.5rem auto;
        max-width: calc(100% - 1.2rem);
    }

    .lineup-history-intelligence h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .lineup-history-intelligence > p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .lineup-history-grid {
        gap: 1.2rem;
    }

    .lineup-history-card {
        padding: 1.5rem 1.2rem;
    }

    .lineup-history-card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .lineup-history-card-icon i {
        font-size: 1.6rem;
    }

    .lineup-history-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .lineup-history-card p {
        font-size: 0.85rem;
    }

    .lineup-history-cta {
        padding: 1.5rem 1.2rem;
        margin: 0 auto;
        max-width: calc(100% - 1.2rem);
    }

    .lineup-history-cta-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .lineup-history-cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .lineup-history-cta-content .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .auto-lineup-benefits {
        margin: 0 0.3rem;
    }

    .auto-lineup-benefits h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .benefits-grid {
        gap: 1.2rem;
    }

    .benefit-item {
        padding: 1.2rem 1rem;
        margin: 0 0.3rem;
    }

    .benefit-item i {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .benefit-item h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .benefit-item p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .logo-text {
        font-size: 1.3em;
    }

    .logo-tagline {
        font-size: 0.8em;
    }

    .nav-buttons .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 80px 0 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-quote {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        white-space: normal;
    }

    .hero .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .problem-card {
        padding: 1.2rem;
    }

    .problem-icon {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .signup-info-card {
        padding: 1.2rem;
    }

    .cta-section .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 1.2em;
    }

    /* Auto-Lineup Section Extra Small Mobile Optimizations */
    .auto-lineup-section {
        padding: 40px 0;
    }

    .auto-lineup-hero {
        margin-bottom: 2rem;
    }

    .auto-lineup-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .auto-lineup-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .auto-lineup-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .auto-lineup-stats {
        gap: 0.6rem;
    }

    .auto-lineup-stat {
        padding: 0.8rem;
        min-width: 100px;
        max-width: 140px;
    }

    .auto-lineup-stat .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .auto-lineup-stat .stat-label {
        font-size: 0.75rem;
    }

    .auto-lineup-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .auto-lineup-card {
        padding: 1.2rem 1rem;
        margin: 0 0.2rem;
    }

    .auto-lineup-card .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .auto-lineup-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .auto-lineup-card p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .auto-lineup-card .feature-list {
        font-size: 0.8rem;
    }

    .auto-lineup-card .feature-list li {
        margin-bottom: 0.25rem;
        padding-left: 0.8rem;
    }

    .auto-lineup-demo {
        padding: 1.2rem 1rem;
        margin: 0 auto 2rem auto;
        max-width: calc(100% - 1rem);
    }

    .demo-header {
        margin-bottom: 1.2rem;
    }

    .demo-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .demo-header p {
        font-size: 0.85rem;
    }

    .demo-timeline {
        gap: 1.2rem;
    }

    .demo-step:not(:last-child)::after {
        top: 45px;
        height: 1.2rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .step-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .step-content p {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .auto-lineup-intelligence {
        padding: 1.2rem 1rem;
        margin: 0 auto 1.2rem auto;
        max-width: calc(100% - 1rem);
    }

    .auto-lineup-intelligence h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .auto-lineup-intelligence > p {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .intelligence-grid {
        gap: 1rem;
    }

    .intelligence-card {
        padding: 1.2rem 1rem;
    }

    .intelligence-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .intelligence-icon i {
        font-size: 1.4rem;
    }

    .intelligence-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .intelligence-card p {
        font-size: 0.8rem;
    }

    .auto-lineup-cta {
        padding: 1.2rem 1rem;
        margin: 0 auto;
        max-width: calc(100% - 1rem);
    }

    .cta-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .cta-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .cta-content .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .auto-lineup-magic-container {
        padding: 1.2rem 1rem;
        margin: 1rem 0.2rem;
    }

    .magic-text {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .magic-animation-container {
        min-height: 100px;
        margin: 1rem 0;
    }

    .magic-animation-container.animate {
        min-height: 200px;
    }

    .magic-wand {
        font-size: 1.8rem;
    }

    .magic-sparkles i {
        font-size: 0.9rem;
    }

    .burst-center {
        font-size: 1.4rem;
    }

    .burst-particle {
        width: 4px;
        height: 4px;
    }

    .generated-lineup {
        min-width: 250px;
        max-width: 350px;
        padding: 1rem;
        min-height: 180px;
    }

    .lineup-innings {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .lineup-header {
        font-size: 0.9rem;
    }

    .inning-title {
        font-size: 0.7rem;
    }

    .position {
        font-size: 0.6rem;
    }

    .batting-fairness-hero {
        margin-bottom: 2rem;
    }

    .batting-fairness-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .batting-fairness-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .batting-fairness-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .batting-fairness-intelligence {
        padding: 1.2rem 1rem;
        margin: 0 auto 1.2rem auto;
        max-width: calc(100% - 1rem);
    }

    .batting-fairness-intelligence h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .batting-fairness-intelligence > p {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .batting-intelligence-grid {
        gap: 1rem;
    }

    .batting-intelligence-card {
        padding: 1.2rem 1rem;
    }

    .batting-intelligence-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .batting-intelligence-icon i {
        font-size: 1.4rem;
    }

    .batting-intelligence-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .batting-intelligence-card p {
        font-size: 0.8rem;
    }

    .batting-fairness-cta {
        padding: 1.2rem 1rem;
        margin: 0 auto;
        max-width: calc(100% - 1rem);
    }

    .batting-cta-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .batting-cta-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .batting-cta-content .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .lineup-history-hero {
        margin-bottom: 2rem;
    }

    .lineup-history-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .lineup-history-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .lineup-history-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .lineup-history-intelligence {
        padding: 1.2rem 1rem;
        margin: 0 auto 1.2rem auto;
        max-width: calc(100% - 1rem);
    }

    .lineup-history-intelligence h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .lineup-history-intelligence > p {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .lineup-history-grid {
        gap: 1rem;
    }

    .lineup-history-card {
        padding: 1.2rem 1rem;
    }

    .lineup-history-card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .lineup-history-card-icon i {
        font-size: 1.4rem;
    }

    .lineup-history-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .lineup-history-card p {
        font-size: 0.8rem;
    }

    .lineup-history-cta {
        padding: 1.2rem 1rem;
        margin: 0 auto;
        max-width: calc(100% - 1rem);
    }

    .lineup-history-cta-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .lineup-history-cta-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .lineup-history-cta-content .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .auto-lineup-benefits {
        margin: 0 0.2rem;
    }

    .auto-lineup-benefits h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .benefits-grid {
        gap: 1rem;
    }

    .benefit-item {
        padding: 1rem 0.8rem;
        margin: 0 0.2rem;
    }

    .benefit-item i {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .benefit-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .benefit-item p {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .nav-buttons .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .hero-quote {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .problem-card, .feature-card, .signup-info-card {
        padding: 1rem;
    }

    .problem-icon, .feature-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .problem-card:hover {
        transform: none;
    }

    .signup-info-card:hover {
        transform: none;
    }

    .auto-lineup-card:hover {
        transform: none;
    }

    .benefit-item:hover {
        transform: none;
    }

    .auto-lineup-card:active {
        transform: scale(0.98);
    }

    .benefit-item:active {
        transform: scale(0.98);
    }

    .auto-lineup-stat:active {
        transform: scale(0.95);
    }
    
    /* Improve touch targets on mobile */
    .bf-player-name {
        min-height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-buttons .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .animated-bg::before {
        animation: none;
    }
    
    
    .bf-player-name.moved {
        animation: none;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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


/* Auto-Generated Fair Play Lineup Section */
.auto-lineup-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.auto-lineup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="auto-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23auto-pattern)"/></svg>');
    animation: float 25s ease-in-out infinite;
}

.auto-lineup-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.auto-lineup-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auto-lineup-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.auto-lineup-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.auto-lineup-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.auto-lineup-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.auto-lineup-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.auto-lineup-stat .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.auto-lineup-content {
    position: relative;
    z-index: 2;
}

.auto-lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.auto-lineup-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.auto-lineup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auto-lineup-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.auto-lineup-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.auto-lineup-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auto-lineup-card .feature-list {
    text-align: left;
}

.auto-lineup-card .feature-list li {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auto-lineup-card .feature-list li::before {
    color: #667eea;
}

.auto-lineup-demo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.demo-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.demo-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.demo-step {
    text-align: center;
    position: relative;
}

.demo-step:not(:last-child)::after {
    display: none;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.step-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.auto-lineup-benefits {
    text-align: center;
}

.auto-lineup-benefits h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.benefit-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Intelligence Section Styles */
.auto-lineup-intelligence {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auto-lineup-intelligence h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.auto-lineup-intelligence > p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.intelligence-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.intelligence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.intelligence-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.intelligence-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.intelligence-card:hover .intelligence-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.intelligence-icon i {
    font-size: 2rem;
    color: var(--white);
}

.intelligence-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.intelligence-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.auto-lineup-cta {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cta-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Magic Container Styles */
.auto-lineup-magic-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.magic-content {
    position: relative;
    z-index: 2;
}

.magic-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3rem;
    line-height: 1.3;
}

.magic-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.magic-animation-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin: 2rem 0;
}

.magic-animation-container.animate {
    min-height: 400px;
}

.magic-wand {
    position: absolute;
    font-size: 3rem;
    color: #ffd700;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: none;
    z-index: 3;
}

.magic-wand.animate {
    animation: wandWave 2.5s ease-in-out forwards;
}

.magic-sparkles {
    position: absolute;
    z-index: 2;
}

.magic-sparkles i {
    position: absolute;
    font-size: 1.5rem;
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    opacity: 0;
}

.sparkle-1 {
    top: -20px;
    left: -30px;
    animation: none;
}

.sparkle-2 {
    top: -10px;
    right: -25px;
    animation: none;
}

.sparkle-3 {
    bottom: -15px;
    left: -20px;
    animation: none;
}

.sparkle-4 {
    bottom: -5px;
    right: -35px;
    animation: none;
}

.sparkle-5 {
    top: 10px;
    left: 20px;
    animation: none;
}

.magic-sparkles.animate .sparkle-1 {
    animation: sparkleFloat 1.5s ease-in-out 0.5s forwards;
}

.magic-sparkles.animate .sparkle-2 {
    animation: sparkleFloat 1.5s ease-in-out 0.8s forwards;
}

.magic-sparkles.animate .sparkle-3 {
    animation: sparkleFloat 1.5s ease-in-out 1.1s forwards;
}

.magic-sparkles.animate .sparkle-4 {
    animation: sparkleFloat 1.5s ease-in-out 1.4s forwards;
}

.magic-sparkles.animate .sparkle-5 {
    animation: sparkleFloat 1.5s ease-in-out 1.7s forwards;
}

.poof-burst {
    position: absolute;
    z-index: 2;
    opacity: 0;
    animation: none;
}

.poof-burst.animate {
    animation: burstAppear 1.5s ease-in-out 2.5s forwards;
}

.burst-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ffd700;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    z-index: 3;
}

.burst-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 50%, transparent 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.poof-burst.animate .particle-1 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(0deg) translateX(0px);
}

.poof-burst.animate .particle-2 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(45deg) translateX(0px);
}

.poof-burst.animate .particle-3 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(90deg) translateX(0px);
}

.poof-burst.animate .particle-4 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(135deg) translateX(0px);
}

.poof-burst.animate .particle-5 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(180deg) translateX(0px);
}

.poof-burst.animate .particle-6 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(225deg) translateX(0px);
}

.poof-burst.animate .particle-7 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(270deg) translateX(0px);
}

.poof-burst.animate .particle-8 {
    animation: burstParticle 1.5s ease-out 2.5s forwards;
    transform: translate(-50%, -50%) rotate(315deg) translateX(0px);
}

.generated-lineup {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    animation: none;
    z-index: 1;
    min-width: 350px;
    max-width: 600px;
    min-height: 300px;
}

.generated-lineup.animate {
    animation: lineupAppear 1s ease-out 4s forwards;
}

.lineup-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
}

.lineup-innings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.inning {
    text-align: center;
}

.inning-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.positions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.position {
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.3rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

@keyframes wandWave {
    0% {
        transform: rotate(0deg) scale(1) translateY(0);
        opacity: 0;
    }
    10% {
        transform: rotate(0deg) scale(1) translateY(0);
        opacity: 1;
    }
    20% {
        transform: rotate(-20deg) scale(1.1) translateY(-5px);
        opacity: 1;
    }
    30% {
        transform: rotate(15deg) scale(1.05) translateY(-3px);
        opacity: 1;
    }
    40% {
        transform: rotate(-25deg) scale(1.15) translateY(-8px);
        opacity: 1;
    }
    50% {
        transform: rotate(10deg) scale(1.08) translateY(-4px);
        opacity: 1;
    }
    60% {
        transform: rotate(-15deg) scale(1.12) translateY(-6px);
        opacity: 1;
    }
    70% {
        transform: rotate(5deg) scale(1.05) translateY(-2px);
        opacity: 1;
    }
    80% {
        transform: rotate(-10deg) scale(1.08) translateY(-4px);
        opacity: 1;
    }
    90% {
        transform: rotate(0deg) scale(1.02) translateY(-1px);
        opacity: 1;
    }
    100% {
        transform: rotate(0deg) scale(1) translateY(0);
        opacity: 0;
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) translateY(-10px) rotate(90deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1) translateY(-20px) rotate(180deg);
    }
    80% {
        opacity: 0.6;
        transform: scale(0.8) translateY(-30px) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-40px) rotate(360deg);
    }
}

@keyframes burstAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes burstParticle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateX(0px) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateX(20px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateX(40px) scale(0.8);
    }
    80% {
        opacity: 0.4;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateX(60px) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateX(80px) scale(0.3);
    }
}

@keyframes lineupAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Batting Fairness Section Styles */
.batting-fairness-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #ff6a00 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.batting-fairness-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="batting-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23batting-pattern)"/></svg>');
    animation: float 25s ease-in-out infinite;
}

.batting-fairness-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.batting-fairness-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.batting-fairness-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.batting-fairness-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.batting-fairness-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.batting-fairness-content {
    position: relative;
    z-index: 2;
}

.batting-fairness-intelligence {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.batting-fairness-intelligence h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.batting-fairness-intelligence > p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.batting-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.batting-intelligence-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.batting-intelligence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb, #ff6a00);
}

.batting-intelligence-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.batting-intelligence-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6a11cb, #ff6a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(106, 17, 203, 0.3);
    transition: all 0.3s ease;
}

.batting-intelligence-card:hover .batting-intelligence-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(106, 17, 203, 0.4);
}

.batting-intelligence-icon i {
    font-size: 2rem;
    color: var(--white);
}

.batting-intelligence-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.batting-intelligence-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.batting-fairness-cta {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.batting-cta-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.batting-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.batting-cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.batting-cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Lineup History Section Styles */
.lineup-history-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.lineup-history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="history-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05)"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05)"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23history-pattern)"/></svg>');
    opacity: 0.3;
}

.lineup-history-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.lineup-history-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lineup-history-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.lineup-history-title {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lineup-history-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.lineup-history-content {
    position: relative;
    z-index: 2;
}

.lineup-history-intelligence {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.lineup-history-intelligence h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.lineup-history-intelligence > p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lineup-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lineup-history-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lineup-history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}

.lineup-history-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.lineup-history-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.lineup-history-card:hover .lineup-history-card-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
}

.lineup-history-card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.lineup-history-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.lineup-history-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.lineup-history-cta {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.lineup-history-cta-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.lineup-history-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.lineup-history-cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lineup-history-cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-white:hover {
    background: var(--light-gray);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Team Management Section - Dark Blue Theme */
.team-management-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.team-management-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tm-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23tm-pattern)"/></svg>');
    animation: float 30s ease-in-out infinite;
}

.tm-hero {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.tm-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tm-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tm-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tm-story-section {
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.tm-story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tm-story-content.tm-reverse {
    flex-direction: row-reverse;
}

.tm-story-text {
    flex: 1;
    min-width: 0;
}

.tm-story-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    vertical-align: middle;
}

.tm-story-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tm-story-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.tm-story-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.tm-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.tm-feature-item i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

.tm-story-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-visual-card {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.2), rgba(255, 106, 0, 0.1));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.tm-visual-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.3), rgba(255, 106, 0, 0.15));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.tm-visual-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tm-visual-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.8rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tm-visual-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

.tm-cta-story {
    /* Same as regular story sections - no special styling */
}

.tm-cta-story .tm-story-text {
    text-align: center;
}

/* Center only the button container in the lineup builder section */
.tm-story-section:last-of-type .tm-button-container {
    text-align: center;
    margin-top: 1rem;
}

.tm-lineup-builder-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1)) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    border-radius: 20px !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 280px !important;
}

.tm-lineup-builder-card:hover {
    transform: translateY(-8px) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.15)) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}

.tm-lineup-builder-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tm-lineup-builder-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.8rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tm-lineup-builder-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* Force green background with maximum specificity */
.tm-story-visual .tm-lineup-builder-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1)) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
}

.tm-story-visual .tm-lineup-builder-card:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.15)) !important;
}

.tm-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 1rem;
}

.tm-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.4);
    filter: brightness(1.05);
    color: #ffffff;
    text-decoration: none;
}

.tm-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.tm-feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tm-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.tm-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tm-feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.tm-feature-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .tm-story-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .tm-story-content.tm-reverse {
        flex-direction: column;
    }
    
    /* Ensure proper order on mobile - text first, then visual for all sections */
    .tm-story-content .tm-story-text {
        order: 1;
    }
    
    .tm-story-content .tm-story-visual {
        order: 2;
    }

    .tm-story-visual {
        flex: none;
        width: 100%;
        max-width: 300px;
    }

    .tm-story-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .tm-story-section {
        margin-bottom: 4rem;
    }

    .tm-story-content {
        gap: 2.5rem;
        padding: 0 1rem;
        flex-direction: column !important;
    }
    
    /* Ensure proper order on mobile - text first, then visual for all sections */
    .tm-story-content .tm-story-text {
        order: 1;
    }
    
    .tm-story-content .tm-story-visual {
        order: 2;
    }

    .tm-story-text h3 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .tm-story-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .tm-story-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .tm-feature-item {
        font-size: 0.9rem;
    }

    .tm-visual-card {
        padding: 2rem 1.5rem;
        max-width: 250px;
    }

    .tm-visual-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .tm-visual-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .tm-visual-card p {
        font-size: 0.9rem;
    }

    .tm-cta-story {
        padding: 0;
    }

    .tm-cta-button {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    /* General mobile improvements for small screens */
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    /* Hero section small screen improvements */
    .hero {
        margin-top: 75px !important;
        padding: 35px 0 !important;
    }
    
    .hero-content {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
        width: calc(100% - 1.5rem) !important;
        max-width: calc(100% - 1.5rem) !important;
        padding: 2rem 1.25rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1;
    }
    
    .hero-tagline {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    
    .hero-desc {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    /* Section improvements for small screens */
    .problem-section, .features-section, .solution-section, 
    .stats-section, .signup-info-section {
        padding: 2rem 0 !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    /* Card improvements for small screens */
    .problem-card, .feature-card, .signup-info-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem;
    }
    
    /* Stats grid for small screens */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Team management story mobile improvements */
    .tm-story-section {
        margin-bottom: 3rem;
        padding: 2rem 0 !important;
    }

    .tm-story-content {
        gap: 2rem;
        padding: 0 0.5rem;
        flex-direction: column !important;
    }

    .tm-story-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.8rem;
    }

    .tm-story-text h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem;
    }

    .tm-story-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .tm-story-features {
        gap: 0.5rem;
        margin-bottom: 1.2rem;
        grid-template-columns: 1fr !important;
    }

    .tm-feature-item {
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .tm-visual-card {
        padding: 1.25rem !important;
        max-width: 100% !important;
    }

    .tm-visual-card i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .tm-visual-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .tm-visual-card p {
        font-size: 0.8rem;
    }

    .tm-cta-story {
        padding: 0;
    }

    .tm-cta-button {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}

/* Batting Lineup Fairness Algorithm Section (matches Apply Fairness gradient) */
.batting-fairness-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #ff6a00 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.batting-fairness-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 400px at -10% 0%, rgba(255,255,255,0.06), transparent),
                radial-gradient(1200px 400px at 110% 100%, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

.bf-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.bf-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
}

.bf-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.bf-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 820px;
    margin: 0 auto;
}

.bf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bf-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.bf-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    border: 2px solid rgba(255,255,255,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.bf-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.bf-card p {
    margin: 0 0 0.75rem 0;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
}

.bf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bf-list li {
    position: relative;
    padding-left: 1.4rem;
    margin: 0.35rem 0;
}

.bf-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #ffe08a;
}

.bf-details {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bf-detail {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.bf-detail h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}

.bf-detail p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255,255,255,0.96);
}

.bf-doc-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0 0;
}

.bf-doc-list li {
    margin: 0.25rem 0;
    color: rgba(255,255,255,0.96);
}

.bf-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.bf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6a11cb 0%, #ff6a00 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    filter: brightness(1.05);
}

/* Visual Algorithm Explanation Styles */
.bf-visual-demo {
    margin-top: 3rem;
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.bf-demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bf-demo-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.bf-demo-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.bf-visual-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bf-problem-section,
.bf-solution-section,
.bf-result-section {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.bf-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bf-section-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.bf-section-icon.problem {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bf-section-icon.solution {
    background: linear-gradient(135deg, #6a11cb, #ff6a00);
}

.bf-section-icon.result {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bf-section-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Problem Section */
.bf-unfair-lineup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bf-player-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.bf-player {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.bf-player.unfair-top {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bf-player.unfair-middle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bf-player.unfair-bottom {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bf-problem-text {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

/* Solution Section */
.bf-algorithm-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.bf-flow-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    max-width: 500px;
}

.bf-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #ff6a00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bf-step-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.bf-step-content p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.bf-flow-arrow {
    color: #6a11cb;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Result Section */
.bf-game-comparison {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.bf-game {
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1rem;
    border: 2px solid rgba(255,255,255,0.25);
    min-width: 160px;
    flex: 1;
    max-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bf-game h5 {
    margin: 0 0 0.75rem 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.bf-band-visual {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

.bf-band-visual.top {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(22, 163, 74, 0.25));
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.bf-band-visual.middle {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.25));
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.bf-band-visual.bottom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.25));
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.bf-band-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bf-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.bf-player-name {
    background: rgba(255,255,255,0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
}

/* Player group colors for tracking across games */
.bf-player-name.group1 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.bf-player-name.group2 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.bf-player-name.group3 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: 1px solid rgba(6, 182, 212, 0.5);
}

.bf-player-name.moved {
    animation: pulse 2s infinite;
}

/* Ensure group colors override moved styling */
.bf-player-name.group1.moved {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(59, 130, 246, 0.5);
    animation: pulse 2s infinite;
}

.bf-player-name.group2.moved {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: 1px solid rgba(139, 92, 246, 0.5);
    animation: pulse 2s infinite;
}

.bf-player-name.group3.moved {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: 1px solid rgba(6, 182, 212, 0.5);
    animation: pulse 2s infinite;
}

.bf-rotation-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #6a11cb;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0.5rem;
}

.bf-rotation-arrow span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.bf-fairness-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.bf-fairness-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
}

.bf-fairness-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.bf-fairness-text p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .bf-game-comparison {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .bf-rotation-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .bf-flow-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Ensure proper order for flow steps on mobile */
    .bf-flow-step .bf-step-icon {
        order: 1;
    }
    
    .bf-flow-step .bf-step-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .batting-fairness-section {
        padding: 64px 0;
    }
    .bf-hero { margin-bottom: 2rem; }
    .bf-grid { grid-template-columns: 1fr; }
    .bf-demo { padding: 1.5rem; }
    .bf-demo-lineup { gap: 1rem; }
    .bf-band-players { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
    .bf-demo-controls { flex-direction: column; align-items: center; }
    .bf-demo-game-selector { flex-direction: column; gap: 0.5rem; }
    
    .bf-game {
        min-width: 100%;
        max-width: 100%;
    }
    
    .bf-players {
        justify-content: center;
    }
    
    .bf-player-name {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 360px) {
    /* Ultra-small screen improvements */
    .container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    /* Ultra-compact hero */
    .hero {
        margin-top: 100px !important;
        padding: 30px 0 !important;
    }
    
    .hero-content {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        padding: 1.75rem 1rem !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.1;
    }
    
    .hero-tagline {
        font-size: 1rem !important;
        line-height: 1.1;
    }
    
    .hero-desc {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 240px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Ultra-compact sections */
    .problem-section, .features-section, .solution-section, 
    .stats-section, .signup-info-section {
        padding: 1.5rem 0 !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
        line-height: 1.1;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }
    
    /* Ultra-compact cards */
    .problem-card, .feature-card, .signup-info-card {
        padding: 1rem !important;
        margin-bottom: 0.75rem;
    }
    
    /* Single column stats */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Auto-lineup ultra-compact */
    .auto-lineup-section {
        padding: 1.5rem 0 !important;
    }
    
    .auto-lineup-title {
        font-size: 1.5rem !important;
    }
    
    .auto-lineup-subtitle {
        font-size: 0.9rem !important;
    }
    
    .auto-lineup-card {
        padding: 1rem !important;
    }
    
    /* Team management ultra-compact */
    .tm-story-section {
        padding: 1.5rem 0 !important;
    }
    
    .tm-story-text h3 {
        font-size: 1.2rem !important;
    }
    
    .tm-visual-card {
        padding: 1rem !important;
    }
    
    /* Batting fairness ultra-compact */
    .batting-fairness-section {
        padding: 1.5rem 0 !important;
    }
    
    .bf-demo {
        padding: 0.75rem !important;
    }
    
    .bf-player-name {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}
        </style>
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Position tag styles for defensive positions */
.defensive-positions .position-tag,
.position-tag {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.position-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Position category colors */
.defensive-positions .position-tag.infield,
.position-tag.infield {
    background: linear-gradient(135deg, #e83e8c 0%, #d63384 100%);
    color: white !important;
}

.defensive-positions .position-tag.outfield,
.position-tag.outfield {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white !important;
}

.defensive-positions .position-tag.bench,
.position-tag.bench {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: white !important;
}

.defensive-positions .position-tag.unknown,
.position-tag.unknown {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white !important;
}

.positions-container {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    max-width: 300px;
}

/* Ensure position tags maintain white color in all contexts */
.participation-table .defensive-positions .position-tag,
.participation-table .positions-container .position-tag,
table .defensive-positions .position-tag,
table .positions-container .position-tag {
    color: white !important;
}

/* Override any conflicting position styles - highest specificity */
body .participation-table tbody tr td.defensive-positions .positions-container .position-tag,
body .participation-table tbody tr td.defensive-positions .position-tag,
body table tbody tr td.defensive-positions .positions-container .position-tag,
body table tbody tr td.defensive-positions .position-tag,
body .participation-table tbody tr td.defensive-positions .positions-container span.position-tag,
body .participation-table tbody tr td.defensive-positions span.position-tag,
body table tbody tr td.defensive-positions .positions-container span.position-tag,
body table tbody tr td.defensive-positions span.position-tag {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Force white color on all position tags regardless of context */
span.position-tag {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
        </style>
