/* =============================================================
   TEP — Premium Sports Platform
   Design: Dark, minimal, clean | v2.1 with premium animations
   ============================================================= */

/* ── Tokens ── */
:root {
    --bg: #0B0B0B;
    --bg-2: #0F0F0F;
    --bg-card: #141414;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #7EE8A2;
    --accent-dim: rgba(126, 232, 162, 0.1);
    --text-primary: #E8EAF0;
    --text-secondary: #6B7280;
    --text-muted: #2D3748;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1200px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ── Utilities ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 110px 0;
    position: relative;
}

.accent {
    color: var(--accent);
}

.label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    transition: transform 0.2s var(--ease-out), opacity 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #0B0B0B;
    box-shadow: 0 0 0 0 rgba(126, 232, 162, 0.3);
}

.btn-primary:hover {
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 8px 24px rgba(126, 232, 162, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

/* ── Navbar ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(11, 11, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease-standard), border-color 0.3s;
}

.nav.scrolled {
    background: rgba(11, 11, 11, 0.95);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color 0.22s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.25s var(--ease-out);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.88rem;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    transition: filter 0.1s linear, opacity 0.1s linear;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(126, 232, 162, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding-top: 40px;
    padding-bottom: 80px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(126, 232, 162, 0.18);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    margin-bottom: 24px;
    animation: fadeDown 0.7s var(--ease-out) 0.1s both;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.75;
    margin-bottom: 36px;
    animation: fadeUp 0.8s var(--ease-out) 0.32s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s var(--ease-out) 0.44s both;
}

/* ── Mockups ── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.9s var(--ease-out) 0.3s both;
}

.mockup-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

.mockup {
    display: block;
    border-radius: 32px;
    background: transparent !important;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.65));
}

.mockup-main {
    width: 255px;
    position: relative;
    z-index: 3;
    animation: floatA 7s ease-in-out infinite;
}

.mockup-back {
    position: absolute;
    z-index: 1;
    opacity: 0.45;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.mockup-back-1 {
    width: 215px;
    right: -24px;
    top: 48px;
    animation: floatB 9s ease-in-out infinite;
}

.mockup-back-2 {
    width: 215px;
    left: -24px;
    top: 64px;
    opacity: 0.35;
    animation: floatA 10s ease-in-out infinite;
}

@keyframes floatA {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ── Features ── */
.features {
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.28s var(--ease-out), border-color 0.28s, box-shadow 0.28s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(126, 232, 162, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── App Preview Slider ── */
.screens {
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

.screens::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(126, 232, 162, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.overflow-visible {
    overflow: visible !important;
}

.screen-slider-wrapper {
    position: relative;
    width: 100%;
}

.screen-slider {
    display: flex;
    gap: 32px;
    padding: 20px 0 60px;
    overflow-x: auto;
    scroll-snap-type: x彰;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    cursor: grab;
}

.screen-slider::-webkit-scrollbar {
    display: none;
}

.screen-item {
    flex: 0 0 260px;
    text-align: center;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
    scroll-snap-align: center;
}

.screen-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 36px; /* Slightly larger for better clipping */
    background: transparent !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    margin-bottom: 24px;
    transition: transform 0.4s var(--ease-out);
    object-fit: contain;
}

.screen-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.screen-item:hover {
    transform: translateY(-10px);
}

.screen-item:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
}

/* ── How It Works ── */
.how {
    background: var(--bg-2);
}

.steps {
    display: flex;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    padding: 20px 28px;
    text-align: center;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.step:hover .step-icon {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.step-divider {
    width: 1px;
    height: 72px;
    background: var(--border);
    align-self: center;
    flex-shrink: 0;
}

/* ── Section Fade Divider ── */
.section-fade-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom,
            var(--bg) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.how .section-fade-divider {
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

.cta-block .section-fade-divider {
    background: linear-gradient(to bottom, var(--bg-2) 0%, transparent 100%);
}

/* ── CTA Block ── */
.cta-block {
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-block::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(126, 232, 162, 0.06) 0%, transparent 68%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.cta-inner h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.store-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn img {
    height: 46px;
    width: auto;
    filter: brightness(0.88);
    transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.store-btn:hover img {
    opacity: 0.78;
    transform: scale(1.05) translateY(-2px);
}

/* ── Footer ── */
.footer {
    background: #080808;
    padding-top: 72px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal a {
    font-size: 0.83rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.social-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.22s, transform 0.22s var(--ease-out);
}

.footer-socials a:hover .social-logo {
    opacity: 1;
    transform: scale(1.2);
}

.footer-bottom-bar {
    padding: 22px 0;
}

.footer-bottom-bar p {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ════════════════════════════════════════════
   PREMIUM ANIMATION SYSTEM
   ════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Base animation classes ── */
.anim-fade,
.anim-up,
.anim-scale,
.section-header,
.feature-card,
.step {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}

.anim-scale {
    transform: scale(0.96) translateY(20px);
    transition:
        opacity 0.65s var(--ease-out),
        transform 0.65s var(--ease-out);
}

/* ── In-view state ── */
.in-view.anim-fade,
.in-view.anim-up,
.in-view.section-header,
.in-view.feature-card,
.in-view.step {
    opacity: 1;
    transform: translateY(0);
}

.in-view.anim-scale {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── Stagger delays ── */
.feature-card:nth-child(1),
.step:nth-child(1) {
    transition-delay: 0.05s;
}

.feature-card:nth-child(2),
.step:nth-child(3) {
    transition-delay: 0.13s;
}

.feature-card:nth-child(3),
.step:nth-child(5) {
    transition-delay: 0.21s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.29s;
}

/* step-dividers don't animate */
.step-divider {
    opacity: 1 !important;
    transform: none !important;
}

/* CTA block elements */
.cta-eyebrow {
    transition-delay: 0.05s;
}

.cta-inner h2 {
    transition-delay: 0.13s;
}

.cta-sub {
    transition-delay: 0.21s;
}

.store-btns {
    transition-delay: 0.29s;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-sub {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }

    .step-divider {
        width: 40px;
        height: 1px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-legal {
        align-items: center;
    }

    .footer-socials {
        flex-direction: row;
        justify-content: center;
    }

    .mockup-back {
        display: none;
    }

    .mockup-main {
        width: 220px;
    }

    /* Reduce animations on mobile */
    .anim-fade,
    .anim-up,
    .anim-scale,
    .section-header,
    .feature-card,
    .step {
        transition-duration: 0.45s;
    }

    /* Disable hero blur on mobile (performance) */
    .hero {
        filter: none !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 72px 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .store-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}