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

:root {
    --primary: #000;
    --secondary: #fff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-600: #525252;
    --gray-800: #262626;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 0.25rem;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--primary);
}

.lang-btn:hover {
    background: var(--gray-100);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--secondary) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/track-pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-in;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeIn 0.8s ease-in 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--gray-600);
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-in 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-in 0.6s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

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

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary-large {
    background: var(--primary);
    color: var(--secondary);
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

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

.app-badges {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.app-badge img {
    height: 50px;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--secondary);
}

.features h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    font-weight: 700;
}

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

.feature-card {
  padding: 2rem;
  border: 2px solid var(--primary);
  border-radius: 12px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/track-pattern.svg');
  background-size: 150%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Audience Sections */
.audience-section {
    padding: 6rem 0;
}

.audience-alt {
    background: var(--gray-100);
}

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.audience-reverse {
    direction: rtl;
}

.audience-reverse > * {
    direction: ltr;
}

.audience-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--gray-600);
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.5rem;
}

.visual-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Add cover image styling */
.visual-placeholder.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.visual-placeholder.has-image span {
    display: none;
}

/* Specific images for each section */
.visual-placeholder.coach-visual {
    background-image: url('/coach.jpg');
}

.visual-placeholder.athlete-visual {
    background-image: url('/athletes.jpg');
}

.visual-placeholder span {
    font-size: 8rem;
    position: relative;
    z-index: 1;
}

.audience-alt .visual-placeholder {
    background: var(--gray-100);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--primary);
    color: var(--secondary);
}

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

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary-large {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--secondary);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .audience-content,
    .audience-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .visual-placeholder {
        height: 250px;
    }

    .visual-placeholder span {
        font-size: 5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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