/* ============================================
   EASTSIDE SPORTS ANALYSIS — DESIGN SYSTEM
   ============================================ */

:root {
    --bg: #111827;
    --bg-card: #1F2937;
    --bg-elev: #1a2434;
    --bg-light: #FFFFFF;
    --bg-light-alt: #F4F5F7;
    --accent: #F97316;
    --accent-2: #EAB308;
    --accent-glow: rgba(249, 115, 22, 0.25);
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dark: #111827;
    --text-dark-muted: #4B5563;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --border-light: rgba(17, 24, 39, 0.08);
    --line: 1px solid rgba(255, 255, 255, 0.08);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-card: #F4F5F7;
    --bg-elev: #EDEEF1;
    --bg-light: #FFFFFF;
    --bg-light-alt: #F4F5F7;
    --text: #111827;
    --text-muted: #4B5563;
    --text-dark: #111827;
    --text-dark-muted: #4B5563;
    --border: rgba(17, 24, 39, 0.1);
    --border-strong: rgba(17, 24, 39, 0.18);
    --line: 1px solid rgba(17, 24, 39, 0.08);
}

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

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

body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* Typography */
h1, h2, h3, h4, .display {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h4 {
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.mono, .stat-num {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-feature-settings: "tnum";
}

/* Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}
.section-light p { color: var(--text-dark-muted); }
[data-theme="light"] .section-light { background: var(--bg-light-alt); }

.kicker {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-head {
    max-width: 720px;
    margin-bottom: 4rem;
}

.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; max-width: 560px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--line);
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.85);
}

.nav.scrolled { padding: 0.75rem 0; }

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    color: var(--text);
}

.logo-mark {
    width: 32px;
    height: 32px;
    position: relative;
    display: grid;
    place-items: center;
    background: var(--accent);
    border-radius: 6px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.logo-mark svg { width: 18px; height: 18px; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s var(--ease);
}

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

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    gap: 0;
    border: var(--line);
    border-radius: 999px;
    padding: 2px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
}

.lang-switch a {
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    color: var(--text-muted);
    transition: all 0.2s var(--ease);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lang-switch a.active {
    background: var(--accent);
    color: #fff;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: var(--line);
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s var(--ease);
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.25s var(--ease);
}
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-inner.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-inner.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-inner.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .nav-cta-btn { display: none !important; }
    .nav-inner.open .nav-links {
        display: flex !important;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1.5rem 2rem;
        background: var(--bg-card);
        border-bottom: var(--line);
        align-items: stretch;
        gap: 0;
    }
    .nav-inner.open .nav-links li {
        border-bottom: var(--line);
    }
    .nav-inner.open .nav-links li:last-child { border-bottom: none; }
    .nav-inner.open .nav-links a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
        font-family: "Barlow Condensed", sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .nav-inner.open .nav-links a.active { color: var(--accent); }
    .nav-inner.open .nav-links a.active::after { display: none; }
    .nav-inner.open .mobile-cta {
        margin-top: 0.75rem;
        display: inline-flex !important;
        padding: 0.75rem 1.25rem !important;
    }
}

@media (max-width: 560px) {
    .container { padding: 0 1.25rem; }
    .nav-actions { gap: 0.5rem; }
    .lang-switch { display: none; }
    .theme-toggle { width: 36px; height: 36px; }
    .logo span:last-child { font-size: 0.95rem; }
    .logo-mark { width: 28px; height: 28px; }
    .logo-mark svg { width: 15px; height: 15px; }
    .nav-inner.open .mobile-lang {
        display: flex !important;
        gap: 0.5rem;
        padding: 1rem 0 0.25rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-transform: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px var(--accent-glow);
}

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

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-light {
    background: var(--text-dark);
    color: var(--bg-light);
}

.btn-light:hover { background: var(--accent); color: #fff; }

.btn-arrow {
    transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   HERO — STATS DASHBOARD
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 7rem 0 5rem;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(249, 115, 22, 0.12), transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(234, 179, 8, 0.08), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: var(--line);
    background: rgba(255,255,255,0.02);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

/* Dashboard cards */
.hero-dash {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease-out) forwards;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.dash-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.dash-card:nth-child(1) { animation-delay: 0.2s; }
.dash-card:nth-child(2) { animation-delay: 0.35s; }
.dash-card:nth-child(3) { animation-delay: 0.5s; }

.dash-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dash-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.dash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.dash-stat {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.dash-num {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 4rem);
    color: var(--accent);
    line-height: 0.9;
}

.dash-num-suffix {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dash-title {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.dash-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

/* Bar chart */
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.bar-row {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.bar-label {
    color: var(--text-muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}

[data-theme="light"] .bar-track { background: rgba(17, 24, 39, 0.06); }

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    width: 0%;
    transition: width 1.2s var(--ease-out);
}

.bar-val {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-align: right;
}

/* Donut chart */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.donut {
    --donut-value: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent) 0%,
        var(--accent-2) calc(var(--donut-value) * 1%),
        rgba(255,255,255,0.06) calc(var(--donut-value) * 1%),
        rgba(255,255,255,0.06) 100%
    );
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
}

[data-theme="light"] .donut {
    background: conic-gradient(
        var(--accent) 0%,
        var(--accent-2) calc(var(--donut-value) * 1%),
        rgba(17,24,39,0.08) calc(var(--donut-value) * 1%),
        rgba(17,24,39,0.08) 100%
    );
}

.donut::before {
    content: "";
    position: absolute;
    inset: 10px;
    background: var(--bg-card);
    border-radius: 50%;
}

.donut-inner {
    position: relative;
    z-index: 1;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}
.legend-dot.alt { background: var(--accent-2); }
.legend-dot.mute { background: rgba(255,255,255,0.12); }
[data-theme="light"] .legend-dot.mute { background: rgba(17,24,39,0.12); }

/* Scatter dots */
.scatter {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    padding: 0.25rem 0;
}

.scatter-dot {
    aspect-ratio: 1;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    transition: background 0.4s var(--ease);
}

[data-theme="light"] .scatter-dot { background: rgba(17,24,39,0.06); }

.scatter-dot.active { background: var(--accent); }
.scatter-dot.active.alt { background: var(--accent-2); }

/* Hero text block */
.hero-headline-wrap {
    max-width: 960px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

.hero h1 .line-accent {
    display: inline-block;
    color: var(--accent);
    position: relative;
}

.hero-sub {
    max-width: 620px;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.75s forwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease-out) 0.9s forwards;
}

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

@media (max-width: 900px) {
    .hero-dash { grid-template-columns: 1fr; }
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-card:hover::after { opacity: 1; }

.service-num {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.service-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--accent);
    transition: all 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(-6deg);
}

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

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p { font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   METHODOLOGY TIMELINE
   ============================================ */
.timeline {
    max-width: 920px;
    margin: 0 auto;
    border-left: 1px solid var(--border-strong);
    padding-left: 0;
    position: relative;
}

.section-light .timeline { border-left-color: var(--border-light); }

.step {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    padding: 3rem 0 3rem 3rem;
    position: relative;
    align-items: start;
}

.step::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 3.25rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
    transition: transform 0.3s var(--ease);
}

.section-light .step::before { box-shadow: 0 0 0 4px var(--bg-light); }

.step:hover::before { transform: scale(1.3); }

.step-num {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 7vw, 6rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    letter-spacing: -0.02em;
}

.step-body h3 {
    margin-bottom: 0.875rem;
    font-size: 1.75rem;
}

.step-body p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    max-width: 540px;
}

.step-outcome {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.step-outcome::before {
    content: "→";
    font-size: 0.85rem;
}

@media (max-width: 760px) {
    .step {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0 2rem 2rem;
    }
    .step-num { font-size: 3.5rem; }
}

/* ============================================
   REPORTS GRID
   ============================================ */
.reports-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    border: var(--line);
    border-radius: 999px;
    width: fit-content;
    background: var(--bg-card);
}

.filter-btn {
    padding: 0.5rem 1.125rem;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: var(--text-muted);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.filter-btn:hover { color: var(--text); }

.filter-btn.active {
    background: var(--accent);
    color: #fff;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s var(--ease);
    position: relative;
    animation: fadeUp 0.6s var(--ease-out) both;
}

.report-card.hidden { display: none; }

.report-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.report-cat {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    display: inline-block;
}

.cat-match { background: rgba(249, 115, 22, 0.12); color: var(--accent); }
.cat-performance { background: rgba(234, 179, 8, 0.14); color: var(--accent-2); }
.cat-scouting { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.cat-custom { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }

.report-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    border: var(--line);
    border-radius: 8px;
}

.report-icon svg { width: 18px; height: 18px; }

.report-card h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.report-card p {
    font-size: 0.9rem;
    flex: 1;
}

.report-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    align-self: flex-start;
    transition: gap 0.3s var(--ease);
}

.report-cta:hover { gap: 0.75rem; }

@media (max-width: 900px) {
    .reports-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CLIENT TYPES
   ============================================ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.client-card {
    padding: 2.25rem 2rem;
    background: var(--bg-card);
    border: var(--line);
    border-radius: 14px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.client-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--accent);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.client-icon svg { width: 22px; height: 22px; }

.client-card h3 { margin-bottom: 0.75rem; font-size: 1.5rem; }

@media (max-width: 900px) {
    .clients-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(249,115,22,0.08), rgba(234,179,8,0.04)),
        var(--bg-card);
    border-top: var(--line);
    border-bottom: var(--line);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(249,115,22,0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(234,179,8,0.1), transparent 50%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-inner p { font-size: 1.125rem; margin-bottom: 2rem; color: var(--text-muted); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding: 10rem 0 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-body p {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-side {
    background: var(--bg-card);
    border: var(--line);
    border-radius: 14px;
    padding: 2rem;
}

.about-side h4 {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-side + .about-side { margin-top: 1rem; }

.about-side-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.about-side-role {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
}

.values-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
}

.form-wrap {
    background: var(--bg-card);
    border: var(--line);
    border-radius: 14px;
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elev);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.radio-item {
    position: relative;
}

.radio-item input { position: absolute; opacity: 0; }

.radio-item label {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--text-muted);
    transition: all 0.2s var(--ease);
    margin-bottom: 0;
}

.radio-item input:checked + label {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.08);
    color: var(--accent);
}

.form-success {
    padding: 1rem 1.25rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 8px;
    color: #34d399;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-info .info-block {
    padding: 1.5rem 0;
    border-bottom: var(--line);
}
.contact-info .info-block:last-child { border-bottom: none; }

.contact-info h4 {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.625rem;
}

.contact-info address,
.contact-info p {
    font-style: normal;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info .info-meta {
    color: var(--text-muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    animation: fadeIn 0.25s var(--ease) forwards;
}

.modal-overlay.open { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    animation: modalIn 0.35s var(--ease-out) 0.05s forwards;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: var(--line);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

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

.modal h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.modal > p { margin-bottom: 1.5rem; font-size: 0.9rem; }

.modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-head {
    padding: 10rem 0 5rem;
    border-bottom: var(--line);
    position: relative;
}

.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 10% 50%, rgba(249,115,22,0.08), transparent 70%);
    pointer-events: none;
}

.page-head-inner { position: relative; max-width: 820px; }
.page-head h1 { font-size: clamp(2.75rem, 6vw, 5rem); margin-bottom: 1.5rem; }
.page-head p { font-size: 1.25rem; max-width: 620px; }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.legal-updated {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: var(--line);
}

.legal-section { margin-bottom: 2.5rem; }

.legal-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--accent);
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   PROCESS BREAKDOWN (services page)
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.process-item {
    padding: 1.5rem;
    border: var(--line);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s var(--ease);
}

.process-item:hover { border-color: var(--accent); }

.process-num {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.process-item h4 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.process-item p { font-size: 0.9rem; }

@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* Tools grid (methodology) */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tool-card {
    background: var(--bg-card);
    border: var(--line);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.3s var(--ease);
}

.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.tool-card h3 { font-size: 1.35rem; margin-bottom: 0.875rem; }

@media (max-width: 760px) { .tools-grid { grid-template-columns: 1fr; } }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg);
    border-top: var(--line);
}

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

.footer-brand p {
    max-width: 320px;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.footer-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col h5 {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col a {
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 2rem;
    border-top: var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger helpers */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* Utilities */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

::selection {
    background: var(--accent);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Cookie Consent Popup */
.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-overlay.visible {
    display: flex;
    animation: overlayIn 0.3s ease both;
}

.cookie-overlay.visible.closing {
    display: flex;
    animation: overlayOut 0.35s ease both;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes overlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.cookie-popup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
    animation: popupSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.cookie-overlay.closing .cookie-popup {
    animation: popupSlideDown 0.3s ease both;
}

@keyframes popupSlideUp {
    from { transform: translateY(60px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
@keyframes popupSlideDown {
    from { transform: translateY(0)    scale(1);    opacity: 1; }
    to   { transform: translateY(40px) scale(0.97); opacity: 0; }
}

.cookie-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    margin-bottom: 1.25rem;
    color: var(--accent);
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes iconBounce {
    from { transform: scale(0) rotate(-20deg); }
    to   { transform: scale(1) rotate(0deg); }
}

.cookie-popup-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.6rem;
    color: var(--text);
}

.cookie-popup-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.cookie-popup-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.cookie-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
}

@media (max-width: 480px) {
    .cookie-popup {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }
    .cookie-overlay { padding: 0; align-items: flex-end; }
}
