/* N3ON Sports — shared styles for inner pages (team, press, …)
   Mirrors the design tokens used inline on the homepage. */

:root {
    --bg: #08080a;
    --bg-raised: #0e0e11;
    --surface: #121215;
    --surface-2: #18181c;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f4;
    --muted: #a3a3ab;
    --dim: #6c6c74;
    --white: #ffffff;
    --neon: #3dffa8;
    --neon-2: #22d3ee;
    --neon-grad: linear-gradient(115deg, #3dffa8 0%, #22d3ee 100%);
    --neon-glow: rgba(61, 255, 168, 0.35);
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--text); font-weight: 600; }
ul { list-style: none; }

::selection { background: var(--neon); color: var(--bg); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

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

.neon-text {
    background: var(--neon-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prose-link {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(61, 255, 168, 0.5);
    text-underline-offset: 3px;
    transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.prose-link:hover { color: var(--neon); text-decoration-color: var(--neon); }

/* ---------- Reveal ---------- */
.fade-in { opacity: 1; transform: none; }
.js-ready .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-ready .fade-in.visible { opacity: 1; transform: none; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.05s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.15s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.2s; }
.stagger > .fade-in:nth-child(6) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js-ready .fade-in { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; }
}

/* ---------- Labels & headings ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--neon-grad);
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
    text-wrap: balance;
}

.section-text {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 60ch;
    text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--white); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--neon), 0 12px 40px -8px var(--neon-glow); }
.btn-neon { background: var(--neon-grad); color: #04130c; }
.btn-neon:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -6px var(--neon-glow); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--neon); color: var(--neon); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}
.text-link .arrow { transition: transform 0.3s var(--ease); }
.text-link:hover { color: var(--neon); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
nav.scrolled {
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    padding: 10px 0;
    border-bottom-color: var(--line);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-cta { margin-left: 10px; background: var(--white); color: var(--bg); font-weight: 600; padding: 10px 20px; }
.nav-links .nav-cta:hover { background: var(--white); color: var(--bg); box-shadow: 0 0 0 1px var(--neon), 0 0 24px -4px var(--neon-glow); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
}
.mobile-toggle span { width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- Page hero ---------- */
.page-hero {
    position: relative;
    padding: 184px 0 104px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 10%, transparent 70%);
    opacity: 0.6;
    z-index: -2;
}
.page-hero::after {
    content: '';
    position: absolute;
    width: 1100px;
    height: 700px;
    right: -320px;
    top: -280px;
    background:
        radial-gradient(closest-side, rgba(61, 255, 168, 0.16), transparent 70%),
        radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, 0.12), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}
.page-hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    max-width: 14ch;
}
.page-hero .lede { font-size: 1.1875rem; color: var(--muted); line-height: 1.65; max-width: 40em; text-wrap: pretty; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8125rem;
    color: var(--muted);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-bottom: 1px solid var(--line); position: relative; }
.section:last-of-type { border-bottom: none; }
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 56px;
}
.section-head .section-title { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
    position: relative;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
a.card:hover, .card.is-hoverable:hover { border-color: rgba(61, 255, 168, 0.35); transform: translateY(-3px); }

.glow-card { overflow: hidden; }
.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(61, 255, 168, 0.10), transparent 60%);
    pointer-events: none;
}

/* ---------- Leaders (team) ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.leader-card { display: flex; flex-direction: column; min-height: 320px; }
.leader-top { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    color: var(--text);
    background: var(--surface);
}
.avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: var(--neon-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.leader-card:first-child .avatar { background: var(--neon-grad); color: #04130c; }
.leader-card h3 { font-size: 1.625rem; letter-spacing: -0.025em; margin-bottom: 6px; }
.role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--neon);
}
.leader-card p { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.leader-card .text-link { margin-top: auto; padding-top: 28px; }

/* ---------- Expert grid (team) ---------- */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    counter-reset: ex;
}
.expert {
    counter-increment: ex;
    position: relative;
    background: var(--bg-raised);
    padding: 32px 32px 36px;
    transition: background 0.4s var(--ease);
}
.expert::before {
    content: counter(ex, decimal-leading-zero);
    display: block;
    font-size: 0.75rem;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    margin-bottom: 28px;
    transition: color 0.3s var(--ease);
}
.expert::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--neon-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.expert:hover { background: var(--surface); }
.expert:hover::before { color: var(--neon); }
.expert:hover::after { transform: scaleX(1); }
.expert h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.expert p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* ---------- Row lists ---------- */
.row-list { border-top: 1px solid var(--line); }
.row {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr) auto;
    gap: 32px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.4s var(--ease);
}
.row-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.row-body { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.row-meta { font-size: 0.8125rem; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
a.row:hover { padding-left: 12px; }
a.row:hover .row-title { color: var(--neon); }
.row .arrow { color: var(--dim); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
a.row:hover .arrow { color: var(--neon); transform: translateX(4px); }

/* ---------- Locations ---------- */
.locations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.location { padding: 32px; }
.location h3 { font-size: 1.375rem; margin-bottom: 10px; }
.location p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.location .hq {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    color: #04130c;
    background: var(--neon-grad);
}
.location .pin {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    color: var(--muted);
    border: 1px solid var(--line-strong);
}

/* ---------- Press: contact + facts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.contact-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.contact-card .email {
    display: inline-block;
    margin: 28px 0 32px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}
.facts-list { border-top: 1px solid var(--line); }
.facts-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9875rem;
    color: var(--muted);
}
.facts-list li span:first-child {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    padding-top: 3px;
}
.facts-list li span:last-child { color: var(--text); }
.note { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Press: feature case study ---------- */
.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.feature-media { position: relative; min-height: 360px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 50%, var(--surface) 100%);
}
.feature-body { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.feature-body .kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon); margin-bottom: 20px; }
.feature-body h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.feature-body p { color: var(--muted); line-height: 1.75; margin-bottom: 32px; }

/* ---------- Press: logos ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.logo-card { padding: 0; overflow: hidden; }
.logo-stage { display: grid; place-items: center; height: 240px; border-bottom: 1px solid var(--line); }
.logo-stage img { max-width: 220px; height: auto; }
.logo-stage--light { background: #f3f3f1; }
.logo-stage--dark { background: #050506; }
.logo-meta { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; font-size: 0.875rem; color: var(--muted); }
.logo-meta a { color: var(--text); font-weight: 500; }
.logo-meta a:hover { color: var(--neon); }

/* ---------- CTA panel ---------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--line);
    padding: 88px 80px;
    background:
        radial-gradient(ellipse 55% 90% at 100% 0%, rgba(61, 255, 168, 0.16), transparent 60%),
        radial-gradient(ellipse 45% 70% at 0% 100%, rgba(34, 211, 238, 0.10), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 48px;
    align-items: end;
}
.cta-panel h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); letter-spacing: -0.035em; line-height: 1; margin-bottom: 20px; text-wrap: balance; }
.cta-panel p { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; max-width: 48ch; }
.cta-panel .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 80px 0 40px; background: var(--bg-raised); position: relative; }
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon) 30%, var(--neon-2) 70%, transparent);
    opacity: 0.5;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); max-width: 34ch; line-height: 1.7; }
.footer-logo { height: 44px; width: auto; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 20px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-social a { font-size: 0.9375rem; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s var(--ease); }
.footer-links a:hover, .footer-social a:hover { color: var(--neon); }
.footer-social svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; font-size: 0.8125rem; color: var(--dim); }
.footer-bottom a:hover { color: var(--neon); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .locations { grid-template-columns: repeat(2, 1fr); }
    .cta-panel { padding: 64px 48px; }
    .feature-body { padding: 44px; }
}

@media (max-width: 860px) {
    .container { padding: 0 24px; }
    .section { padding: 88px 0; }
    .page-hero { padding: 148px 0 80px; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 600; color: var(--text); padding: 10px 20px; }
    .nav-links .nav-cta { margin: 16px 0 0; font-size: 1rem; padding: 14px 28px; }
    .mobile-toggle { display: flex; z-index: 1001; }
    .mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .section-head, .leader-grid, .split, .feature-card, .logo-grid, .cta-panel, .footer-top { grid-template-columns: 1fr; }
    .section-head { gap: 20px; margin-bottom: 40px; }
    .leader-card { min-height: 0; }
    .row { grid-template-columns: 1fr; gap: 8px; }
    .row .arrow { display: none; }
    .feature-media { min-height: 240px; }
    .feature-media::after { background: linear-gradient(180deg, transparent 50%, var(--surface) 100%); }
    .cta-panel { padding: 48px 28px; border-radius: 24px; }
}

@media (max-width: 560px) {
    .container { padding: 0 20px; }
    .card { padding: 28px 24px; }
    .expert-grid, .locations { grid-template-columns: 1fr; }
    .facts-list li { grid-template-columns: 1fr; gap: 4px; }
    .feature-body { padding: 32px 24px; }
    .cta-panel .btn { width: 100%; }
    .footer-bottom { flex-direction: column; }
}
