/* RMS Landing — show-reel styles
   Builds on PXSOL design system (Public Sans, OKLCH palette, primary orange) */

:root {
  /* All --land-* tokens are remapped to the official Pxsol Web palette.
     Accent (primary) for the RMS landing = --blue (corporate). */
  --land-bg: #F7F7F7;             /* off-white body */
  --land-fg: #262728;              /* dark-gray */
  --land-fg-2: #4a4b4c;            /* between dark-gray and dark-gray2 */
  --land-fg-3: #74777A;            /* light-gray */
  --land-fg-4: #a9abad;            /* hairline / placeholder */
  --land-surface: #FFFFFF;         /* cards over off-white bg */
  --land-border: rgba(116, 119, 122, 0.20);     /* gray-opacity */
  --land-border-strong: rgba(116, 119, 122, 0.36);
  --land-muted: #EFEFEE;
  --land-primary: #492598;         /* RMS accent (purple) */
  --land-primary-soft: #ECE7F4;
  --land-primary-text: #492598;
  --land-green: #005028;
  --land-green-soft: #E2EFE7;
  --land-amber: #C8841A;
  --land-red: #C00001;
  --land-red-soft: #F8E5E5;
  --land-violet: #492598;
  --land-violet-soft: #ECE7F4;
  --land-mono: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --land-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --land-speed: 1;
}

[data-theme="dark"] {
  --land-bg: #000017;            /* black-pxsol */
  --land-fg: #F7F7F7;
  --land-fg-2: #d0d0d3;
  --land-fg-3: #9a9da0;
  --land-fg-4: #5b5e60;
  --land-surface: #0c0e2a;
  --land-border: rgba(255, 255, 255, 0.12);
  --land-border-strong: rgba(255, 255, 255, 0.22);
  --land-muted: #131635;
  --land-primary-soft: rgba(73, 37, 152, 0.30);
  --land-primary-text: #b8b3e3;
  --land-green-soft: rgba(0, 80, 40, 0.30);
  --land-red-soft: rgba(192, 0, 1, 0.20);
  --land-violet-soft: rgba(73, 37, 152, 0.28);
}

html, body {
  background: var(--land-bg);
  color: var(--land-fg);
  font-family: var(--land-sans);
  letter-spacing: -0.05em;
}

.landing {
  width: 100%;
  min-height: 100vh;
}

/* ─── Top nav ─── */
.land-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: color-mix(in oklch, var(--land-bg) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid color-mix(in oklch, var(--land-border) 60%, transparent);
  z-index: 100;
}
.land-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
}
.land-nav-brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--land-primary);
  color: white;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.land-nav-brand-sub {
  color: var(--land-fg-3); font-weight: 500; font-size: 12px;
  padding-left: 4px; border-left: 1px solid var(--land-border);
  margin-left: 4px;
}
.land-nav-links {
  display: flex; gap: 24px;
  font-size: 13px; font-weight: 500;
  color: var(--land-fg-2);
}
.land-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  background: var(--land-fg);
  color: var(--land-bg);
  border-radius: 7px;
  font-size: 12.5px; font-weight: 600;
}

/* ─── Section frame ─── */
.scene {
  min-height: auto;
  padding: 72px 32px 56px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 64px;
  align-items: center;
}
.scene.scene-hero {
  grid-template-columns: 1fr;
  text-align: left;
  padding-top: 120px;
  padding-bottom: 64px;
  min-height: auto;
}
.scene.scene-stats {
  grid-template-columns: 1fr;
  padding-bottom: 88px;
}
.scene.alt {
  grid-template-columns: 1fr minmax(320px, 440px);
}

/* Full-bleed dark section — extends background to viewport edges
   while keeping inner content constrained to the .scene max-width.
   The card inside keeps its original light skin. */
.scene.scene-dark {
  position: relative;
  isolation: isolate;
  color: #F7F7F7;
}
.scene.scene-dark::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #000017; /* --black-pxsol */
  z-index: -1;
}
.scene.scene-dark .scene-eyebrow { color: rgba(247, 247, 247, 0.62); }
.scene.scene-dark .scene-title em { color: rgba(247, 247, 247, 0.55); }
.scene.scene-dark .scene-lede { color: rgba(247, 247, 247, 0.82); }
.scene.scene-dark .scene-foot { color: rgba(247, 247, 247, 0.55); }
.scene.scene-dark .scene-foot-dot { background: rgba(247, 247, 247, 0.30); }
.scene-copy { display: flex; flex-direction: column; gap: 16px; }
.scene-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--land-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--land-fg-3);
}
.scene-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--land-primary);
}
.scene-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.scene-title em {
  font-style: normal;
  color: var(--land-fg-3);
}
.scene-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--land-fg-2);
  max-width: 44ch;
  text-wrap: pretty;
  margin: 0;
}
.scene-foot {
  margin-top: 8px;
  display: flex; gap: 14px; align-items: center;
  font-family: var(--land-mono);
  font-size: 11.5px;
  color: var(--land-fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scene-foot-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--land-border-strong);
}

/* ─── Canvas containers (rhs) ─── */
.canvas {
  position: relative;
  width: 85%;
  justify-self: center;
  aspect-ratio: 5 / 3;
  background: var(--land-surface);
  border: 1px solid var(--land-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 24px 60px -24px rgba(0,0,0,0.18);
}
.canvas-flat {
  background: transparent;
  border: none;
  box-shadow: none;
}
.canvas-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--land-border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--land-border) 60%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.canvas-corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--land-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--land-fg-4);
  text-transform: uppercase;
}
.canvas-corner.r { left: auto; right: 14px; }

/* ─── Hero specific ─── */
.hero-headline {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 16px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  color: var(--land-fg-3);
}
.hero-tagline {
  font-size: 18px;
  color: var(--land-fg-2);
  max-width: 56ch;
  line-height: 1.5;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; margin-bottom: 56px; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 28px;
  border-radius: 50px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: box-shadow 240ms ease, transform 200ms ease, background 240ms ease, color 240ms ease;
}
.hero-cta.primary {
  background: #000017; /* --black-pxsol */
  color: #F7F7F7;
}
.hero-cta.primary:hover {
  background:
    radial-gradient(circle at center,
      rgba(180, 0, 0, 0.9) 0%,
      rgba(120, 0, 0, 0.9) 40%,
      rgba(40, 0, 60, 0.9) 75%,
      rgba(5, 0, 30, 1) 100%);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.hero-cta.ghost {
  background: transparent;
  color: var(--land-fg);
  border-color: var(--land-border-strong);
}
.hero-cta.ghost:hover {
  box-shadow: 0 0 20px 0 rgba(28, 17, 131, 0.30);
  border-color: #1C1183;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--land-mono);
  font-size: 11px;
  color: var(--land-fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* hero ticker strip */
.ticker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--land-border);
  border: 1px solid var(--land-border);
  border-radius: 14px;
  overflow: hidden;
}
.ticker-cell {
  background: var(--land-surface);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 120px;
}
.ticker-label {
  font-family: var(--land-mono);
  font-size: 10.5px;
  color: var(--land-fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.ticker-value .unit { font-size: 14px; color: var(--land-fg-3); margin-left: 4px; font-weight: 500; }
.ticker-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}
.ticker-delta.up { color: var(--land-green); }
.ticker-delta.down { color: var(--land-red); }
.ticker-spark {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 60px; height: 24px;
  opacity: 0.6;
}
.ticker-cell { position: relative; }
