/* Nexplay landing — tokens mirror the app's v2 "tactical dark" design system (Color.kt). */

/* Self-hosted (same files the app bundles): no third-party font requests, no render-blocking CSS. */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space_grotesk_bold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm_sans_regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm_sans_medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm_sans_bold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains_mono_medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
:root {
    --bg: #0B0F0E;
    --bg-1: #13191A;
    --bg-2: #1B2224;
    --border: #2A3437;
    --border-hi: #3A464A;
    --text: #ECF2EF;
    --text-dim: #9AA5A2;
    --text-mute: #5C6664;
    --green: #22F26B;
    --green-ink: #072013;
    --amber: #FFB612;
    --blue: #54B6FF;
    --red: #FF5A4E;
    --radius: 18px;
    --gutter: 16px;
    --max: 1200px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--green);
    color: var(--green-ink);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .platform-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: #4cf78a; }
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text); background: rgba(19, 25, 26, .6); }
.btn-ghost:hover { border-color: var(--green); }
.btn-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-top: 12px; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 14, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-dim); font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg-1); }
.header-cta { padding: 10px 16px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 70% 45%, transparent 0%, var(--bg) 78%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero h1 .accent { color: var(--green); }
.hero-lead { color: var(--text-dim); font-size: 1.15rem; margin: 22px 0 30px; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-visual .device-laptop { width: 100%; }
.hero-visual .device-phone { position: absolute; right: -24px; bottom: 0; width: 34%; min-width: 200px; }

.platform-strip {
    list-style: none;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: .04em;
}
.platform-strip li::before { content: "●"; color: var(--green); margin-right: 8px; font-size: .7em; vertical-align: 2px; }

/* ── Device frames ─────────────────────────────────────────── */
.device-laptop {
    border-radius: 14px;
    border: 1px solid var(--border-hi);
    background: var(--bg-1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02);
    overflow: hidden;
}
.device-laptop .chrome { display: flex; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.device-laptop .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-hi); }
/* Captures are cropped to the part that matters, so each keeps its own proportions. */
.device-laptop img { width: 100%; height: auto; }

.device-phone {
    border-radius: 34px;
    padding: 8px;
    background: #050706;
    border: 1px solid var(--border-hi);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.device-phone > img, .device-phone > video { width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 27px; background: var(--bg); }

.device-tablet {
    border-radius: 26px;
    padding: 10px;
    background: #050706;
    border: 1px solid var(--border-hi);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.device-tablet img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 17px; }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-dim); font-size: 1.1rem; margin: 18px 0 0; }

.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature.reverse .feature-copy { order: 2; }
/* The media column stays the wide one when it sits on the left. */
.feature.reverse { grid-template-columns: 1.35fr 1fr; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.feature-copy > p { color: var(--text-dim); margin: 0 0 22px; font-size: 1.08rem; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature li { position: relative; padding-left: 28px; color: var(--text); }
.feature li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .52em;
    width: 14px;
    height: 2px;
    background: var(--green);
    box-shadow: 6px -4px 0 -0px transparent;
}
.feature li::after {
    content: "";
    position: absolute;
    left: 10px;
    top: calc(.52em - 3px);
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--green);
    border-right: 2px solid var(--green);
    transform: rotate(45deg);
}
.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-hi);
    color: var(--text-dim);
    margin-bottom: 16px;
}
.feature-tag.new { color: var(--green); border-color: rgba(34, 242, 107, .45); background: rgba(34, 242, 107, .08); }

.media-duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 640px; margin: 0 auto; }
.media-duo .device-phone:nth-child(2) { transform: translateY(40px); }
.media-stack { position: relative; padding: 0 0 48px 0; }
.media-stack .device-phone { position: absolute; right: -20px; bottom: 0; width: 34%; min-width: 190px; }
.media-stack .card-overlay {
    position: absolute;
    right: -12px;
    bottom: 0;
    width: 34%;
    border-radius: 14px;
    border: 1px solid var(--border-hi);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.media-stack .card-overlay img { width: 100%; height: auto; }
.media-single-phone { max-width: 300px; margin: 0 auto; }

/* ── Platforms ─────────────────────────────────────────────── */
.platforms { background: linear-gradient(180deg, var(--bg) 0%, #0e1413 50%, var(--bg) 100%); }
.devices-scene { position: relative; max-width: 980px; margin: 0 auto 72px; padding: 0 0 40px; }
.devices-scene .device-laptop { width: 72%; }
.devices-scene .device-tablet { position: absolute; right: 12%; bottom: -24px; width: 38%; }
.devices-scene .device-phone { position: absolute; right: 0; bottom: -40px; width: 22%; min-width: 130px; }
.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.platform-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-1);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.platform-card:hover { border-color: var(--green); transform: translateY(-2px); }
.platform-card svg { width: 26px; height: 26px; color: var(--green); margin-bottom: 8px; }
.platform-card strong { font-family: var(--font-display); font-size: 1.1rem; }
.platform-card span { font-size: .88rem; color: var(--text-dim); }
.platform-card .go { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: .76rem; color: var(--green); letter-spacing: .04em; }
.platform-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 30px; color: var(--text-dim); font-size: .95rem; }
.platform-notes span::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-1); display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(34, 242, 107, .6); box-shadow: 0 0 0 1px rgba(34, 242, 107, .25), 0 20px 60px rgba(34, 242, 107, .07); }
.price-card h3 { font-size: 1.35rem; }
.price-card .badge { align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); background: var(--green); padding: 3px 9px; border-radius: 7px; margin-bottom: 14px; }
.price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; margin: 14px 0 0; }
.price small { font-size: 1rem; color: var(--text-dim); font-weight: 500; }
.price-note { color: var(--text-dim); font-size: .9rem; margin: 4px 0 22px; min-height: 2.8em; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-card li { padding-left: 24px; position: relative; font-size: .97rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-cta { text-align: center; margin-top: 44px; }

/* ── Support & footer ──────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.support-card {
    display: flex; flex-direction: column; gap: 8px; padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-1); color: var(--text); text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.support-card:hover { border-color: var(--green); transform: translateY(-2px); }
.support-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.support-card h3 { font-size: 1.25rem; margin: 6px 0 0; }
.support-card p { color: var(--text-dim); margin: 0; }
.support-icon { width: 30px; height: 30px; color: var(--green); }
.support-cta { margin-top: auto; padding-top: 14px; color: var(--green); font-weight: 600; word-break: break-word; }
.support-card--instagram { padding: 36px; border-color: rgba(34, 242, 107, .45); background: linear-gradient(160deg, rgba(34, 242, 107, .12), var(--bg-1) 60%); }
.support-card--instagram .support-icon { width: 44px; height: 44px; }
.support-card--instagram h3 { font-size: 1.6rem; }
.support-card .support-handle { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.support-card--instagram .support-cta { display: inline-flex; align-self: flex-start; padding: 10px 18px; margin-top: 18px; border-radius: 12px; background: var(--green); color: var(--green-ink); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; color: var(--green); }
.footer-social:hover { color: var(--green); }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-dim); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Reveal on scroll (only once landing.js has run: without JS everything stays visible) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

.device-phone { position: relative; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .platform-card { transition: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .hero-inner, .feature, .feature.reverse { grid-template-columns: 1fr; gap: 40px; }
    .feature.reverse .feature-copy { order: 0; }
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    html { scroll-padding-top: 116px; }
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 6px 16px; }
    .nav {
        order: 3;
        width: 100%;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter) 8px;
        overflow-x: auto;
        scrollbar-width: none;
        width: calc(100% + var(--gutter) * 2);
    }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { white-space: nowrap; padding: 6px 10px; font-size: .92rem; }
    .header-cta { margin-left: auto; }
    .media-stack .card-overlay { display: none; }
    .hero { padding-top: 40px; }
    section { padding: 64px 0; }
    .feature { padding: 36px 0; }
    .platform-grid { grid-template-columns: 1fr 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .media-duo { gap: 12px; }
    .media-duo .device-phone:nth-child(2) { transform: translateY(24px); }
    .hero-visual .device-phone, .media-stack .device-phone { min-width: 0; width: 40%; right: -8px; }
    .media-stack .card-overlay { width: 60%; right: 0; }
    .devices-scene .device-tablet { right: 12%; width: 32%; }
    .devices-scene .device-phone { min-width: 0; width: 18%; }
}

/* Tackle / flag labels over the play designer phones. */
.labelled-device { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.device-label { align-self: center; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border-hi); background: var(--bg-1); }
.media-duo .labelled-device:nth-child(2) { transform: translateY(40px); }
.media-duo .device-phone:nth-child(2) { transform: none; }
@media (max-width: 720px) { .media-duo .labelled-device:nth-child(2) { transform: translateY(24px); } }

/* Gameday: the wristband phone beside the printed call sheet, shown whole as paper. */
.media-gameday { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; max-width: 720px; margin: 0 auto; }
.paper-sheet { background: #fff; border-radius: 6px; padding: 6px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.paper-sheet img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .media-gameday { grid-template-columns: 1fr; max-width: 360px; } }

/* Staff: the history card reads at the same scale as the activity feed behind it. */
.staff-stack .card-overlay { width: 46%; right: -24px; bottom: -8px; }
.staff-stack { padding-bottom: 96px; }
/* Team hub: the phone is the point, so it is bigger than elsewhere. */
.hub-stack .device-phone { width: 44%; min-width: 230px; right: -28px; }
.hub-stack { padding-bottom: 72px; }

/* Call sheet: hover (or tap / Enter) to look closer; the lens follows the pointer. */
.paper-sheet[data-zoom] { position: relative; overflow: hidden; cursor: zoom-in; }
.paper-sheet[data-zoom] img { transform-origin: var(--zx, 50%) var(--zy, 30%); transition: transform .25s ease; }
.paper-sheet[data-zoom].zoomed { cursor: zoom-out; }
.paper-sheet[data-zoom].zoomed img { transform: scale(2.6); }
.paper-sheet[data-zoom]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .paper-sheet[data-zoom] img { transition: none; } }

@media (max-width: 720px) {
    .staff-stack .card-overlay { display: block; width: 52%; right: -4px; }
    .staff-stack { padding-bottom: 64px; }
    .hub-stack .device-phone { width: 46%; min-width: 0; right: -6px; }
    .devices-scene .device-tablet { right: 14%; width: 40%; }
    .devices-scene .device-phone { width: 24%; min-width: 0; }
}
