/*
 * Signed-out landing page: Views/Shared/_LayoutLanding.cshtml + Views/Home/LandingPage.cshtml.
 * Self-contained (no Bootstrap, no joinxr-theme.css); everything is prefixed jxl- so nothing leaks into the portal.
 * This file styles the page body, from the "JoinXR Landing Page Refresh" design (JoinXR Design System 04). The header
 * and footer are temporary copies of the joinxr.io marketing site's, styled by temporary-marketing-site-mimic.css.
 */

@font-face {
    font-family: 'Barlow Semi Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-semi-condensed-500.woff2') format('woff2');
}
:root {
    /* Design System 04 tokens */
    --jxl-blue: #1898f1;
    --jxl-blue-hover: #0f7fd0;
    --jxl-white-hover: #e8f4fe;
    --jxl-bg: #171819;
    --jxl-ink: #0f0f12;
    --jxl-box-fill: rgba(255, 255, 255, 0.05);
    --jxl-box-fill-hover: rgba(255, 255, 255, 0.09);
    --jxl-box-border: rgba(255, 255, 255, 0.14);
    --jxl-box-border-hover: rgba(255, 255, 255, 0.2);
    --jxl-rule: rgba(24, 152, 241, 0.4);
    --jxl-shadow-blue: 0 8px 24px rgba(24, 152, 241, 0.35);
    --jxl-shadow-white: 0 8px 24px rgba(0, 0, 0, 0.3);
    --jxl-radius-corner: 2px;
    --jxl-radius-button: 3px;
    --jxl-lift: -2px;

    --jxl-max: 1440px;
    --jxl-gutter: clamp(24px, 6.7vw, 96px);

    --jxl-font-heading: 'Outfit', 'Barlow', system-ui, sans-serif;
    --jxl-font-body: 'Barlow', system-ui, sans-serif;
    --jxl-font-condensed: 'Barlow Semi Condensed', 'Arial Narrow', Arial, system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--jxl-bg);
    color: #fff;
    font-family: var(--jxl-font-body);
    font-size: 18px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
::selection { background: rgba(24, 152, 241, 0.45); color: #fff; }
[hidden] { display: none !important; }

.jxl-container {
    width: 100%;
    max-width: var(--jxl-max);
    margin-inline: auto;
    padding-inline: var(--jxl-gutter);
}
/* overflow: clip (not hidden) crops the background circle at the page edges without breaking the sticky header */
.jxl-main { flex: 1 0 auto; position: relative; overflow: clip; padding-bottom: 80px; }

.jxl-skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 8px 16px;
    background: var(--jxl-blue);
    border-radius: var(--jxl-radius-button);
}
.jxl-skip:focus { top: 16px; }

.jxl-eyebrow {
    font-family: var(--jxl-font-body);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.21em;
    text-transform: uppercase;
    color: var(--jxl-blue);
}

/* ── Hero (design: solid background, no photo) ─────────────────────────────── */
.jxl-hero {
    display: flex;
    align-items: center;
    min-height: clamp(480px, 40vw, 600px);
}
.jxl-hero .jxl-container { padding-block: 72px; }
.jxl-hero-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.jxl-hero h1 {
    font-family: var(--jxl-font-heading);
    font-weight: 600;
    font-size: clamp(44px, 4.93vw, 71px);
    line-height: 1.05;
}
.jxl-hero-lead { margin-top: 24px; font-size: clamp(18px, 1.53vw, 22px); line-height: 1.4; }
.jxl-hero-buttons {
    margin-top: 30px;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
}
.jxl-platforms { margin-top: 24px; font-size: 18px; opacity: .8; }

.jxl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 15px 36px;
    border-radius: var(--jxl-radius-button);
    font-family: var(--jxl-font-condensed);
    font-size: clamp(20px, 1.67vw, 24px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.jxl-btn:hover, .jxl-btn:focus-visible { transform: translateY(var(--jxl-lift)); }
.jxl-btn:active { transform: none; box-shadow: none; }
.jxl-btn-blue { background: var(--jxl-blue); color: #fff; }
.jxl-btn-blue:hover, .jxl-btn-blue:focus-visible { background: var(--jxl-blue-hover); box-shadow: var(--jxl-shadow-blue); }
.jxl-btn-white { background: #fff; color: var(--jxl-blue); }
.jxl-btn-white:hover, .jxl-btn-white:focus-visible { background: var(--jxl-white-hover); color: var(--jxl-blue-hover); box-shadow: var(--jxl-shadow-white); }

@media (max-width: 560px) {
    .jxl-hero-buttons { display: grid; grid-auto-flow: row; width: 100%; }
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.jxl-features { position: relative; }
/* design-system background circle: a faint page texture, scaled far past the viewport. Positioned from the cards
   section but free to spill over the hero and client strip (cropped only by .jxl-main), so its filled disc never
   shows a straight cut-off edge; the content of those sections sits above it. */
.jxl-hero .jxl-container, .jxl-clients .jxl-container { position: relative; z-index: 1; }
.jxl-bg-circle {
    position: absolute;
    width: 4800px;
    max-width: none;
    left: -2200px;
    top: -1500px;
    opacity: .45;
    pointer-events: none;
}
.jxl-features .jxl-container { position: relative; padding-top: 88px; }
.jxl-rule { height: 2px; background: var(--jxl-rule); margin-bottom: 30px; }

.jxl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.jxl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--jxl-radius-corner);
    background: var(--jxl-box-fill);
    border: 1px solid var(--jxl-box-border);
    transition: background-color .3s ease, border-color .3s ease;
}
.jxl-card:hover { background: var(--jxl-box-fill-hover); border-color: var(--jxl-box-border-hover); }
.jxl-card-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.jxl-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jxl-card:hover .jxl-card-photo img { transform: scale(1.06); }
.jxl-card-body { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 32px; }
.jxl-card-eyebrow {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}
.jxl-card h2 {
    font-family: var(--jxl-font-heading);
    font-weight: 600;
    font-size: clamp(23px, 1.95vw, 28px);
    line-height: 1.15;
    color: var(--jxl-blue);
    transition: color .3s ease;
}
.jxl-card:hover h2 { color: #fff; }
.jxl-card-text { font-size: clamp(18px, 1.53vw, 22px); line-height: 1.4; opacity: .8; }

@media (max-width: 900px) {
    .jxl-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Trusted by ───────────────────────────────────────────────────────────── */
.jxl-clients .jxl-container { padding-top: 80px; }
.jxl-clients .jxl-eyebrow { font-size: clamp(16px, 1.46vw, 21px); letter-spacing: 4.5px; margin-bottom: 30px; }
.jxl-logos { display: flex; flex-direction: column; gap: 28px; opacity: .85; }
.jxl-logo-row { display: flex; align-items: center; gap: 16px; }
.jxl-logo-row img { flex: 1 1 0; min-width: 0; height: 72px; object-fit: contain; }

@media (max-width: 900px) {
    .jxl-logo-row { flex-wrap: wrap; justify-content: center; }
    .jxl-logo-row img { flex: 0 0 calc(25% - 12px); }
}
@media (max-width: 480px) {
    .jxl-logo-row img { flex-basis: calc(33.333% - 11px); height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .jxl-btn, .jxl-card-photo img { transition: none; }
    .jxl-btn:hover, .jxl-btn:focus-visible { transform: none; }
    .jxl-card:hover .jxl-card-photo img { transform: none; }
}
