/* ============================================
   Cinch Sports — Main Stylesheet
   Clean, modern, professional
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #D5051F;
    --red-dark: #B00419;
    --dark: #0F1114;
    --dark-light: #1A1D23;
    --gray-900: #1F2228;
    --gray-800: #2A2D35;
    --gray-600: #6B7280;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(213, 5, 31, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--red);
    padding: 0;
    border: none;
    font-weight: 600;
}

.btn-secondary:hover {
    color: var(--red-dark);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(15, 17, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--red);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 17, 20, 0.7) 0%,
        rgba(15, 17, 20, 0.5) 50%,
        rgba(15, 17, 20, 0.8) 100%
    );
}

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

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Clients Bar --- */
.clients-bar {
    background: var(--gray-100);
    padding: 48px 0;
}

.clients-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.clients-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.clients-logos img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}

.clients-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Services --- */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 32px rgba(213, 5, 31, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(213, 5, 31, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--red);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Products --- */
.products {
    padding: 100px 0;
    background: var(--gray-100);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-card-reverse {
    direction: rtl;
}

.product-card-reverse > * {
    direction: ltr;
}

.product-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-info h3 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 4px;
}

.product-tagline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    margin-bottom: 16px;
}

.product-info p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-links {
    display: flex;
    gap: 12px;
}

.app-store-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-200);
    color: var(--gray-900);
    transition: all 0.2s;
}

.app-store-links a:hover {
    background: var(--dark);
    color: var(--white);
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 24px;
    border: none;
    padding: 0;
    font-style: normal;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 20, 0.85);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-card-reverse {
        direction: ltr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .clients-logos {
        gap: 32px;
    }

    .clients-logos img {
        height: 36px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-sub br {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .testimonial-card,
    .product-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .service-card.visible,
    .testimonial-card.visible,
    .product-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
