/* ============================================================
   FRAMEBOARD MEDIA PACK — Core Styles
   Editorial dark deck, integrated composition.
   ============================================================ */

:root {
  --bg: #0C0C14;
  --bg-2: #11111C;
  --surface: #1A1A2E;
  --surface-2: #20203A;
  --border: #2D2D45;
  --border-2: #3A3A55;
  --gold: #F5A623;
  --gold-dim: #B87A18;
  --gold-soft: rgba(245,166,35,0.10);
  --teal: #0D9488;
  --teal-2: #00D4AA;
  --teal-soft: rgba(13,148,136,0.15);
  --white: #FFFFFF;
  --text: #E7E7EF;
  --muted: #9CA3AF;
  --muted-2: #6B7280;
  --red: #EF4444;
  --green: #10B981;

  --display: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  background: #000;
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

deck-stage { --slide-bg: var(--bg); }
deck-stage section {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

/* ===== Recurring chrome ===== */
.slide {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  /* hairline corner ticks done via pseudo */
}
.slide-pad {
  position: absolute;
  inset: 0;
  padding: 80px 100px;
}

/* Page meta (top + bottom rail) */
.page-rail-top,
.page-rail-bot {
  position: absolute;
  left: 64px; right: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  z-index: 50;
  white-space: nowrap;
}
.page-rail-top > *, .page-rail-bot > * { white-space: nowrap; }
.page-rail-top { top: 36px; }
.page-rail-bot { bottom: 36px; }

.rail-wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted);
}
.rail-wordmark img { height: 14px; opacity: .8; }

.rail-num {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--muted-2);
}
.rail-num .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.rail-num b { color: var(--white); font-weight: 700; letter-spacing: 0.1em; }

.rail-section {
  color: var(--gold);
}

/* Hairline corner ticks (decorative) */
.tick-tl, .tick-tr, .tick-bl, .tick-br {
  position: absolute; width: 22px; height: 22px;
  border-color: rgba(245,166,35,0.35); pointer-events: none; z-index: 40;
}
.tick-tl { top: 28px; left: 28px; border-top: 1px solid; border-left: 1px solid; }
.tick-tr { top: 28px; right: 28px; border-top: 1px solid; border-right: 1px solid; }
.tick-bl { bottom: 28px; left: 28px; border-bottom: 1px solid; border-left: 1px solid; }
.tick-br { bottom: 28px; right: 28px; border-bottom: 1px solid; border-right: 1px solid; }

/* Background grid (very subtle) */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.bg-noise {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(13,148,136,0.05), transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(245,166,35,0.05), transparent 50%);
  pointer-events: none; z-index: 1;
}

/* Glow ellipses */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px); z-index: 2;
}
.glow.gold   { background: radial-gradient(circle, rgba(245,166,35,0.45), transparent 70%); }
.glow.gold-s { background: radial-gradient(circle, rgba(245,166,35,0.22), transparent 70%); }
.glow.teal   { background: radial-gradient(circle, rgba(13,148,136,0.35), transparent 70%); }
.glow.teal-s { background: radial-gradient(circle, rgba(0,212,170,0.20), transparent 70%); }
.glow.purple { background: radial-gradient(circle, rgba(120,90,200,0.25), transparent 70%); }

/* ===== Typography ===== */
.eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: currentColor;
}
.eyebrow.no-line::before { display: none; }

h1.disp, .disp {
  font-family: var(--display);
  font-weight: 900;
  font-size: 156px;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--white);
  text-transform: uppercase;
  text-wrap: balance;
}
h1.disp .gold, .disp .gold { color: var(--gold); }
h1.disp .light, .disp .light { font-weight: 200; color: rgba(255,255,255,0.55); }
h1.disp .it, .disp .it { font-style: italic; font-weight: 300; }

h2.h-xxl {
  font-size: 124px; line-height: 0.88; letter-spacing: -0.04em;
  font-weight: 900; text-transform: uppercase; color: var(--white);
  text-wrap: balance;
}
h2.h-xl {
  font-size: 96px; line-height: 0.9; letter-spacing: -0.035em;
  font-weight: 900; text-transform: uppercase; color: var(--white);
}
h3.h-l {
  font-size: 56px; line-height: 1; letter-spacing: -0.02em;
  font-weight: 800; color: var(--white);
}
h3.h-l .gold, h2.h-xl .gold, h2.h-xxl .gold { color: var(--gold); }

.lede {
  font-size: 22px; line-height: 1.45;
  color: var(--muted); font-weight: 400; max-width: 56ch;
}
.lede strong { color: var(--white); font-weight: 600; }

.kicker {
  font-family: var(--mono); font-size: 13px;
  color: var(--muted); letter-spacing: 0.04em;
}

/* Display number for stat callouts */
.statnum {
  font-family: var(--display);
  font-weight: 900;
  font-size: 144px;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--white);
  font-feature-settings: "tnum";
}
.statnum .gold { color: var(--gold); }
.statnum .small { font-size: 0.55em; vertical-align: super; }
.stat-label {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* ===== Glass callout cards ===== */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 22px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}
.glass.gold {
  border-color: rgba(245,166,35,0.35);
  box-shadow: 0 0 24px rgba(245,166,35,0.08), 0 10px 40px -10px rgba(0,0,0,0.5);
}

.callout {
  position: absolute;
  background: linear-gradient(180deg, rgba(26,26,46,0.95), rgba(20,20,34,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 240px; max-width: 340px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px -12px rgba(0,0,0,0.6);
  z-index: 30;
}
.callout .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px;
}
.callout .body {
  font-size: 17px; line-height: 1.3; color: var(--white);
  font-weight: 600;
}
.callout .sub {
  margin-top: 6px;
  font-size: 13px; color: var(--muted); line-height: 1.4; font-weight: 400;
}
.callout::before {
  content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px;
  width: 2px; background: var(--gold); border-radius: 2px;
}
.callout.teal::before { background: var(--teal-2); }
.callout.teal .label { color: var(--teal-2); }

/* Connector lines for callouts */
.line {
  position: absolute;
  background: linear-gradient(90deg, var(--gold), transparent);
  height: 1px; z-index: 25; pointer-events: none;
}
.line.dashed {
  background: none;
  border-top: 1px dashed rgba(245,166,35,0.5);
  height: 0;
}

/* ===== Device frames ===== */

/* Laptop */
.laptop {
  position: relative;
  background: #15151E;
  border: 1px solid #2A2A40;
  border-radius: 14px 14px 6px 6px;
  padding: 10px 10px 12px;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.7),
    0 30px 60px -20px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.laptop::before {
  content: ''; position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: #2A2A40; border-radius: 2px;
}
.laptop::after {
  /* base */
  content: ''; position: absolute;
  left: -8%; right: -8%; bottom: -14px;
  height: 18px;
  background: linear-gradient(180deg, #1d1d30 0%, #0c0c14 100%);
  border-radius: 0 0 24px 24px / 0 0 100% 100%;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.7);
}
.laptop > img,
.laptop > .screen {
  width: 100%; display: block;
  border-radius: 6px;
  background: #0C0C14;
}
.laptop.no-base::after { display: none; }

/* Monitor */
.monitor {
  position: relative;
  background: #15151E;
  border: 1px solid #2A2A40;
  border-radius: 12px;
  padding: 14px;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.monitor > img,
.monitor > .screen {
  width: 100%; display: block;
  border-radius: 4px;
  background: #0C0C14;
}
.monitor::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -36px;
  width: 140px; height: 28px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1d1d30, #0c0c14);
  border-radius: 0 0 14px 14px;
  border: 1px solid #2A2A40;
  border-top: 0;
}

/* Tablet (landscape) */
.tablet {
  position: relative;
  background: #15151E;
  border: 1px solid #2A2A40;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.7);
}
.tablet > img { width: 100%; display: block; border-radius: 12px; background: #0c0c14; }

/* Phone (portrait) */
.phone {
  position: relative;
  width: 280px;
  background: #15151E;
  border: 1px solid #2A2A40;
  border-radius: 38px;
  padding: 8px;
  box-shadow: 0 50px 100px -25px rgba(0,0,0,0.7);
}
.phone > img,
.phone > .screen {
  width: 100%; display: block;
  border-radius: 30px;
  background: #0c0c14;
}
.phone::before {
  content: ''; position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; border-radius: 12px;
  background: #0a0a12; z-index: 2;
}

/* Browser frame */
.browser {
  position: relative;
  background: #15151E;
  border: 1px solid #2A2A40;
  border-radius: 12px;
  padding-top: 28px;
  overflow: hidden;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.7);
}
.browser::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: #15151E;
  border-bottom: 1px solid #2A2A40;
}
.browser::after {
  content: ''; position: absolute;
  top: 10px; left: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ef4444;
  box-shadow:
    16px 0 0 #f59e0b,
    32px 0 0 #10b981;
}
.browser > img,
.browser > .screen {
  display: block; width: 100%;
}

/* Image inside frame uses cover with object-fit to handle non-1:1 */
.frame-img-cover {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top center;
  background: #0c0c14;
}

/* ===== Perspective tilts ===== */
.tilt-l { transform: perspective(2400px) rotateY(-10deg) rotateX(2deg); transform-origin: center; }
.tilt-r { transform: perspective(2400px) rotateY(10deg) rotateX(2deg); transform-origin: center; }
.tilt-l-sm { transform: perspective(2800px) rotateY(-6deg) rotateX(1deg); }
.tilt-r-sm { transform: perspective(2800px) rotateY(6deg) rotateX(1deg); }
.tilt-back { transform: perspective(2400px) rotateX(8deg); }

/* ===== Logo lockup ===== */
.brandmark {
  display: inline-flex; align-items: center; gap: 12px;
}
.brandmark .tile {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg);
  border: 2.5px solid var(--gold);
  position: relative;
  flex: none;
}
.brandmark .tile::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; background: var(--gold);
  transform: translate(-50%,-50%);
}
.brandmark .word {
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: var(--white);
}

/* ===== Status pills (from brand) ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.01em;
}
.pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px currentColor;
  opacity: 0.85;
}
.pill.gold  { color: var(--gold); background: var(--gold-soft); }
.pill.teal  { color: var(--teal-2); background: var(--teal-soft); }
.pill.amber { color: #F59E0B; background: rgba(245,158,11,0.12); }
.pill.green { color: var(--green); background: rgba(16,185,129,0.12); }
.pill.blue  { color: #3B82F6; background: rgba(59,130,246,0.12); }
.pill.red   { color: var(--red);  background: rgba(239,68,68,0.12); }

/* ===== Utilities ===== */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.abs { position: absolute; }
.z2 { z-index: 2; }
.z10 { z-index: 10; }
.z20 { z-index: 20; }
.z30 { z-index: 30; }

/* Section divider chunks (used in headlines) */
.divider-bar {
  display: inline-block;
  width: 60px; height: 2px; background: var(--gold);
  vertical-align: middle; margin: 0 18px;
}

/* Stamp / metadata badge */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 4px;
}
.stamp .swatch {
  width: 8px; height: 8px; background: var(--gold); border-radius: 1px;
}

/* SVG icon helper */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.lg { width: 32px; height: 32px; stroke-width: 1.4; }

/* Feature tile */
.feat-tile {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.feat-tile .ico-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold-soft); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-tile .ico-wrap.teal { background: var(--teal-soft); color: var(--teal-2); }
.feat-tile h4 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 8px;
}
.feat-tile p {
  font-size: 14px; line-height: 1.5; color: var(--muted);
}

/* Vertical text */
.vtext {
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted-2);
}

/* Edge bleed gold rule */
.rule-x {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.rule-y {
  position: absolute; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
