/* ═══════════════════════════════════════════════
   SportsAPIs.dev V2 — Data Terminal Aesthetic
   ═══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
    /* Palette */
    --bg-deep: #060a13;
    --bg-base: #0a0e17;
    --bg-raised: #0f1420;
    --bg-surface: #141a27;
    --bg-overlay: #1a2235;

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.04);

    --text-primary: #e2e8f0;
    --text-secondary: #8892a4;
    --text-muted: #4a5568;
    --text-heading: #f1f5f9;

    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-cyan-glow: rgba(0, 212, 255, 0.3);
    --accent-emerald: #10b981;
    --accent-emerald-dim: rgba(16, 185, 129, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-dim: rgba(245, 158, 11, 0.15);
    --accent-rose: #f43f5e;
    --accent-rose-dim: rgba(244, 63, 94, 0.15);
    --accent-gold: #fbbf24;
    --accent-gold-dim: rgba(251, 191, 36, 0.12);
    --accent-violet: #8b5cf6;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

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

/* ── Base ── */
body.v2-page {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.v2-page #header-placeholder {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Animated Background ── */
.v2-bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.v2-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: orbFloat 20s ease-in-out infinite;
}

.v2-bg-orb--cyan {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.v2-bg-orb--violet {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    bottom: 10%;
    left: -10%;
    animation-delay: -7s;
    opacity: 0.2;
}

.v2-bg-orb--emerald {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation-delay: -14s;
    opacity: 0.15;
}

/* Noise texture overlay */
.v2-bg-canvas::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 40px) scale(1.02); }
}

/* ── Grid lines background ── */
.v2-grid-lines {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* ── Container ── */
.v2-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Scroll Reveal Animations ── */
.v2-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

.v2-reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.v2-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.v2-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; opacity: 1; transform: translateY(0); }
.v2-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; opacity: 1; transform: translateY(0); }
.v2-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; opacity: 1; transform: translateY(0); }
.v2-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.v2-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.v2-reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 360ms; opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   HERO SECTION
   ══════════════════════════════════ */

.v2-hero {
    position: relative;
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    overflow: hidden;
}

.v2-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: badgeFadeIn 0.8s var(--ease-out) forwards;
    opacity: 0;
}

.v2-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.v2-hero__logo {
    height: 120px;
    width: auto;
    margin-bottom: var(--space-lg);
    animation: logoReveal 1s var(--ease-out) 0.1s forwards;
    opacity: 0;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.15));
}

@keyframes logoReveal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.v2-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    animation: titleReveal 1s var(--ease-out) 0.2s forwards;
    opacity: 0;
}

.v2-hero__title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.v2-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    animation: titleReveal 1s var(--ease-out) 0.35s forwards;
    opacity: 0;
}

.v2-hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: titleReveal 1s var(--ease-out) 0.5s forwards;
    opacity: 0;
}

.v2-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.v2-btn--primary {
    background: var(--bg-surface);
    color: var(--accent-cyan);
    font-weight: 700;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.v2-btn--primary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.v2-btn--ghost {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.v2-btn--ghost:hover {
    background: var(--glass-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.v2-btn svg {
    width: 16px;
    height: 16px;
}

/* ══════════════════════════════════
   STATS BAR
   ══════════════════════════════════ */

.v2-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-3xl);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.v2-stat {
    text-align: center;
}

.v2-stat__number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.v2-stat__number--cyan { color: var(--accent-cyan); }
.v2-stat__number--emerald { color: var(--accent-emerald); }
.v2-stat__number--amber { color: var(--accent-amber); }

.v2-stat__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--space-xs);
}

/* ══════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════ */

.v2-section {
    margin-bottom: var(--space-4xl);
}

.v2-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.v2-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.v2-section__title::before {
    content: '';
    width: 4px;
    height: 28px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-emerald));
    flex-shrink: 0;
}

/* Info hint (inline "Learn more" link) */
.v2-info-hint {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 100px;
    padding: 3px 12px;
    margin-left: 10px;
    text-decoration: none;
    vertical-align: middle;
    transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.v2-info-hint:hover,
.v2-info-hint:focus {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(251, 191, 36, 0.45);
    text-decoration: none;
}

.v2-section__count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}

/* ══════════════════════════════════
   VIEW TOGGLE (Cards / Table)
   ══════════════════════════════════ */

.v2-view-toggle {
    display: flex;
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.v2-view-toggle__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.v2-view-toggle__btn:hover {
    color: var(--text-secondary);
}

.v2-view-toggle__btn.is-active {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.v2-view-toggle__btn svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════
   API CARD GRID
   ══════════════════════════════════ */

.v2-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.v2-api-card {
    position: relative;
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
    cursor: default;
}

.v2-api-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.v2-api-card:hover {
    border-color: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.v2-api-card:hover::before {
    opacity: 1;
}

/* Partner card variants */
.v2-api-card--partner {
    border-color: rgba(0, 212, 255, 0.1);
    background: linear-gradient(135deg, var(--bg-raised), rgba(0, 212, 255, 0.03));
}

.v2-api-card--premium {
    border-color: rgba(251, 191, 36, 0.12);
    background: linear-gradient(135deg, var(--bg-raised), rgba(251, 191, 36, 0.02));
}

.v2-api-card--premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber), var(--accent-gold));
    opacity: 0.6;
}

/* Card header */
.v2-api-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.v2-api-card__logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.v2-api-card__logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex-shrink: 0;
}

.v2-api-card__info {
    flex: 1;
    min-width: 0;
}

.v2-api-card__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
    transition: color var(--duration-fast);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-api-card__name:hover {
    color: var(--accent-cyan);
}

.v2-api-card__pricing {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.v2-api-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

/* Badge styles */
.v2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-spring);
    position: relative;
}

.v2-badge:hover {
    transform: scale(1.15);
}

.v2-badge--partner {
    background: var(--accent-gold-dim);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.v2-badge--partner:hover {
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.v2-badge--discount {
    background: var(--accent-emerald-dim);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-emerald);
}

.v2-badge--discount:hover {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.v2-badge--discount-disabled {
    background: rgba(100, 100, 100, 0.1);
    border-color: rgba(100, 100, 100, 0.15);
    color: var(--text-muted);
    opacity: 0.5;
}

/* Feature pills */
.v2-api-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.v2-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    border: 1px solid;
    white-space: nowrap;
}

.v2-pill--yes {
    color: var(--accent-emerald);
    background: var(--accent-emerald-dim);
    border-color: rgba(16, 185, 129, 0.15);
}

.v2-pill--no {
    color: var(--text-muted);
    background: rgba(100, 100, 100, 0.06);
    border-color: rgba(100, 100, 100, 0.1);
    text-decoration: line-through;
    opacity: 0.6;
}

.v2-pill--maybe {
    color: var(--accent-amber);
    background: var(--accent-amber-dim);
    border-color: rgba(245, 158, 11, 0.15);
}

.v2-pill[tabindex] {
    cursor: pointer;
}

.v2-pill--partner {
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
    border-color: rgba(251, 191, 36, 0.2);
    cursor: pointer;
}

.v2-pill--partner:hover {
    background: rgba(251, 191, 36, 0.2);
}

.v2-pill--discount {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.25);
    cursor: pointer;
}

.v2-pill--discount:hover {
    background: rgba(74, 222, 128, 0.2);
}

.v2-pill--discount-disabled {
    color: var(--text-muted);
    background: rgba(100, 100, 100, 0.06);
    border-color: rgba(100, 100, 100, 0.1);
    opacity: 0.5;
    cursor: pointer;
}

/* Card footer */
.v2-api-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

.v2-api-card__free-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 100px;
}

.v2-api-card__free-tier--yes {
    color: var(--accent-emerald);
    background: var(--accent-emerald-dim);
}

.v2-api-card__free-tier--no {
    color: var(--text-muted);
    background: rgba(100, 100, 100, 0.08);
}

.v2-api-card__visit {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out);
}

.v2-api-card__visit:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(16, 185, 129, 0.35));
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
    transform: translateY(-1px);
}

.v2-api-card__visit::after {
    content: '→';
    transition: transform var(--duration-fast) var(--ease-out);
}

.v2-api-card__visit:hover::after {
    transform: translateX(3px);
}

/* ══════════════════════════════════
   TABLE VIEW
   ══════════════════════════════════ */

.v2-table-wrap {
    display: none;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--bg-raised);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-raised);
}

.v2-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.v2-table-wrap::-webkit-scrollbar-track {
    background: var(--bg-raised);
}

.v2-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.v2-table-wrap.is-active {
    display: block;
}

.v2-card-grid.is-active {
    display: grid;
}

.v2-card-grid:not(.is-active) {
    display: none;
}

.v2-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: 13px;
}

.v2-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.v2-table th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.v2-table th:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 4;
    background: var(--bg-surface);
    min-width: 200px;
}

.v2-table td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-primary);
    font-size: 14px;
}

.v2-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-raised);
    font-weight: 500;
}

.v2-table tbody tr {
    transition: background var(--duration-fast);
}

.v2-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

.v2-table tbody tr:hover td:first-child {
    background: rgba(0, 212, 255, 0.03);
}

.v2-table-api-cell {
    display: grid;
    grid-template-columns: 1fr 28px 28px;
    align-items: center;
    gap: 4px;
}

.v2-table-api-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-table-api-logo img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.v2-table-badge-slot {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-table-badge-pill {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
}

/* Table partner row accents */
.v2-table tbody tr.v2-row--partner {
    background: rgba(0, 212, 255, 0.015);
}

.v2-table tbody tr.v2-row--premium {
    background: rgba(251, 191, 36, 0.015);
}

/* ══════════════════════════════════
   SYMBOL KEY
   ══════════════════════════════════ */

.v2-symbol-key {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-md) 0;
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    scroll-margin-top: 90px;
}

.v2-symbol-key span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════════════════════════
   BENTO GRID — Feature Explanations
   ══════════════════════════════════ */

.v2-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.v2-bento__card {
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.v2-bento__card:hover {
    border-color: rgba(0, 212, 255, 0.12);
    background: var(--bg-surface);
}

/* Span 2 cols for larger items */
.v2-bento__card--wide {
    grid-column: span 2;
}

.v2-bento__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 18px;
}

.v2-bento__icon--cyan { background: var(--accent-cyan-dim); }
.v2-bento__icon--emerald { background: var(--accent-emerald-dim); }
.v2-bento__icon--amber { background: var(--accent-amber-dim); }
.v2-bento__icon--rose { background: var(--accent-rose-dim); }
.v2-bento__icon--violet { background: rgba(139, 92, 246, 0.15); }

.v2-bento__card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--space-sm);
}

.v2-bento__card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.v2-bento__card a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: border-color var(--duration-fast);
}

.v2-bento__card a:hover {
    border-bottom-color: var(--accent-cyan);
}

/* ══════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════ */

.v2-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-faq-item {
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-fast);
}

.v2-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.v2-faq-item.is-open {
    border-color: rgba(0, 212, 255, 0.12);
}

.v2-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border: none;
    background: none;
    color: var(--text-heading);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.v2-faq-q:hover {
    color: var(--accent-cyan);
}

.v2-faq-q__icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.v2-faq-item.is-open .v2-faq-q__icon {
    transform: rotate(45deg);
    color: var(--accent-cyan);
}

.v2-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}

.v2-faq-item.is-open .v2-faq-a {
    max-height: 400px;
}

.v2-faq-a__inner {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.v2-faq-a__inner a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* ══════════════════════════════════
   GETTING STARTED — Timeline
   ══════════════════════════════════ */

.v2-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
}

.v2-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.67% + 18px);
    right: calc(16.67% + 18px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-amber));
    opacity: 0.3;
}

.v2-timeline__step {
    text-align: center;
    position: relative;
}

.v2-timeline__num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
}

.v2-timeline__step:nth-child(2) .v2-timeline__num {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.v2-timeline__step:nth-child(3) .v2-timeline__num {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.v2-timeline__step h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--space-sm);
}

.v2-timeline__step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.v2-timeline__step ul {
    list-style: none;
    margin-top: var(--space-sm);
    text-align: left;
    padding-left: var(--space-md);
}

.v2-timeline__step li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 3px 0;
    position: relative;
    padding-left: var(--space-md);
}

.v2-timeline__step li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ══════════════════════════════════
   PARTNERSHIPS GRID
   ══════════════════════════════════ */

[id="partnerships-section"] {
    scroll-margin-top: 100px;
}

.v2-partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.v2-partnership-card {
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.v2-partnership-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--bg-surface);
}

.v2-partnership-card--cta {
    border-color: rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, var(--bg-raised), rgba(0, 212, 255, 0.03));
}

.v2-partnership-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-cyan-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--accent-cyan);
}

.v2-partnership-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--space-sm);
}

.v2-partnership-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.v2-partnership-card ul {
    list-style: none;
    margin: var(--space-sm) 0;
}

.v2-partnership-card li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0 4px 18px;
    position: relative;
}

.v2-partnership-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-size: 12px;
}

.v2-partnership-card .card-footer {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

/* CTA button in partnership card */
.v2-cta-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--duration-fast) var(--ease-out);
}

.v2-cta-email:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

/* ══════════════════════════════════
   OTHER TOOLS
   ══════════════════════════════════ */

.v2-tools-bar {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.v2-tool-card {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.v2-tool-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.v2-tool-card img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.v2-tool-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.v2-tool-card a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.v2-tool-card a:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════
   TOOLTIP (ported from v1)
   ══════════════════════════════════ */

.partner-tooltip-rich {
    position: fixed;
    z-index: 10000;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    max-width: 320px;
    min-width: 260px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
    font-family: var(--font-body);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.partner-tooltip-rich.tooltip-visible {
    opacity: 1;
    pointer-events: auto;
}

.tooltip-header {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--glass-border);
}

.feature-tooltip-header {
    color: var(--accent-cyan);
}

.discount-tooltip-header {
    color: var(--accent-emerald);
}

.discount-tooltip-header-disabled {
    color: var(--text-muted);
}

.tooltip-section {
    margin-bottom: var(--space-sm);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tooltip-strengths {
    list-style: none;
    margin: var(--space-xs) 0;
}

.tooltip-strengths li {
    padding: 3px 0 3px 16px;
    position: relative;
    font-size: 12px;
}

.tooltip-strengths li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
}

.tooltip-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.partner-cta-btn,
.discount-cta-btn {
    display: block;
    text-align: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all var(--duration-fast);
}

.partner-cta-btn {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.partner-cta-btn:hover {
    background: rgba(251, 191, 36, 0.2);
}

.discount-cta-btn {
    background: var(--accent-emerald-dim);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.discount-cta-btn:hover {
    background: rgba(16, 185, 129, 0.2);
}

.tooltip-footer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

.partner-tooltip-cta,
.discount-tooltip-cta {
    margin-top: var(--space-sm);
}

.discount-tooltip-body {
    color: var(--text-primary);
}

/* ══════════════════════════════════
   INTRO TEXT
   ══════════════════════════════════ */

.v2-intro {
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.v2-intro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.v2-intro a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: border-color var(--duration-fast);
}

.v2-intro a:hover {
    border-bottom-color: var(--accent-cyan);
}

.v2-intro strong, .v2-intro b {
    color: var(--text-primary);
}

/* ══════════════════════════════════
   STATIC API FALLBACK (SEO)
   ══════════════════════════════════ */

.v2-static-fallback {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.v2-static-fallback h3 {
    color: var(--text-heading);
    margin-bottom: var(--space-md);
}

.v2-static-fallback ul {
    list-style: none;
}

.v2-static-fallback li {
    padding: var(--space-sm) 0;
}

.v2-static-fallback a {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

@media (max-width: 1024px) {
    .v2-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .v2-hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }

    .v2-hero__logo {
        height: 80px;
    }

    .v2-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
        padding: var(--space-lg) var(--space-md);
    }

    .v2-stat {
        min-width: 100px;
    }

    .v2-card-grid {
        grid-template-columns: 1fr;
    }

    .v2-bento {
        grid-template-columns: 1fr;
    }

    .v2-bento__card--wide {
        grid-column: span 1;
    }

    .v2-timeline {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .v2-timeline::before {
        display: none;
    }

    .v2-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-symbol-key {
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: flex-start;
        padding-left: var(--space-md);
    }

    .v2-partnerships-grid {
        grid-template-columns: 1fr;
    }

    .v2-tools-bar {
        flex-direction: column;
    }

    .v2-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .v2-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .v2-container {
        padding: 0 var(--space-md);
    }

    .v2-api-card__features {
        gap: 4px;
    }

    .v2-pill {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ── Focus states for accessibility ── */
.v2-btn:focus-visible,
.v2-faq-q:focus-visible,
.v2-view-toggle__btn:focus-visible,
.v2-badge:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════
   CONTENT PAGE COMPONENTS
   Used by category, sport-specific, guide, and provider pages
   ══════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.v2-breadcrumb {
    padding: var(--space-lg) 0 0;
}

.v2-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.v2-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.v2-breadcrumb a:hover {
    color: var(--accent-cyan);
}

.v2-breadcrumb .separator {
    color: var(--text-muted);
}

.v2-breadcrumb .current {
    color: var(--text-primary);
}

/* ── Page Hero (content pages) ── */
.v2-page-hero .page-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: var(--space-lg);
}

.v2-page-hero {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.v2-page-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-heading);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.v2-page-hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-page-hero .subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Quick Navigation ── */
.v2-quick-nav {
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(8px);
}

.v2-quick-nav__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v2-quick-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.v2-quick-nav__list a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.v2-quick-nav__list a:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
    transform: translateX(4px);
}

/* ── Prose (long-form content) ── */
.v2-prose {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.v2-prose p {
    margin-bottom: 1rem;
}

.v2-prose a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.v2-prose a:hover {
    border-color: var(--accent-cyan);
}

.v2-prose h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.v2-prose h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.v2-prose ul,
.v2-prose ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-primary);
}

.v2-prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.v2-prose li::marker {
    color: var(--accent-cyan);
}

.v2-prose strong {
    color: var(--text-heading);
    font-weight: 600;
}

.v2-prose pre {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.v2-prose code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-emerald);
}

.v2-prose p > code,
.v2-prose li > code {
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ── Detail Card (API provider cards in content pages) ── */
.v2-detail-card {
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 1.5rem 0;
    transition: border-color var(--duration-normal) var(--ease-out);
}

.v2-detail-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.v2-detail-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.v2-detail-card .api-details {
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
}

.v2-detail-card .api-details p {
    margin-bottom: 0.75rem;
}

.v2-detail-card .api-details strong {
    color: var(--text-heading);
}

.v2-detail-card .api-details a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.v2-detail-card .api-details a:hover {
    border-color: var(--accent-cyan);
}

.v2-detail-card .api-details ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.v2-detail-card .api-details li {
    margin-bottom: 0.4rem;
}

.v2-detail-card .api-details li::marker {
    color: var(--accent-cyan);
}

/* ── Inline CTA Box ── */
.v2-cta-box {
    background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin: 2rem 0;
}

.v2-cta-box h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: var(--space-sm);
}

.v2-cta-box p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
}

/* ── CTA Section (bottom of page) ── */
.v2-cta-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    margin: var(--space-3xl) 0;
}

.v2-cta-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: var(--space-md);
}

.v2-cta-section p {
    color: var(--text-secondary);
    font-family: var(--font-body);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.v2-cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Related Resources Grid ── */
.v2-related-section {
    margin-top: var(--space-3xl);
}

.v2-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.v2-related-card {
    background: var(--bg-raised);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-decoration: none;
    display: block;
    transition: all var(--duration-normal) var(--ease-out);
}

.v2-related-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.08);
}

.v2-related-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin: 0 0 var(--space-sm);
}

.v2-related-card p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ── Note/Alert Box ── */
.v2-note {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--accent-amber);
    padding: var(--space-md) var(--space-lg);
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
}

.v2-note strong {
    color: var(--accent-amber);
}

/* ── Comparison Table (content pages) ── */
.v2-comparison-table {
    width: 100%;
    background: var(--bg-raised);
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.v2-comparison-table th {
    background: var(--bg-surface);
    color: var(--text-heading);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.v2-comparison-table td {
    padding: var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.v2-comparison-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

/* ── Content Page Responsive ── */
@media (max-width: 768px) {
    .v2-page-hero {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .v2-page-hero h1 {
        font-size: 1.75rem;
    }

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

    .v2-quick-nav__list {
        grid-template-columns: 1fr;
    }

    .v2-related-grid {
        grid-template-columns: 1fr;
    }

    .v2-cta-buttons {
        flex-direction: column;
    }

    .v2-cta-buttons .v2-btn {
        width: 100%;
        text-align: center;
    }

    .v2-cta-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .v2-comparison-table {
        font-size: 0.85rem;
    }

    .v2-comparison-table th,
    .v2-comparison-table td {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .v2-breadcrumb nav {
        font-size: 0.75rem;
    }

    .v2-detail-card {
        padding: var(--space-md);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .v2-bg-orb {
        animation: none;
    }
}
