/* ==========================================================================
   Sabrix AI Flagship Showcase Design System (showcase.css)
   Daylight Editorial × Precision Hardware — Zero Egress
   ========================================================================== */

/* 1. Daylight Tokens */
:root {
  --sc-ink: #F5F5F7;
  --sc-panel: #FFFFFF;
  --sc-panel-elevated: #FAFAFC;
  --sc-panel-glass: rgba(255, 255, 255, 0.82);
  --sc-line: rgba(0, 0, 0, 0.08);
  --sc-line-strong: rgba(0, 113, 227, 0.35);
  --sc-line-light: rgba(0, 113, 227, 0.18);
  --sc-specular: rgba(255, 255, 255, 0.9);
  --sc-text: #1D1D1F;
  --sc-text-muted: #6E6E73;
  --sc-text-dim: #86868B;

  /* System Accents */
  --sc-cyan: #0071E3;
  --sc-cyan-bright: #0066CC;
  --sc-cyan-glow: rgba(0, 113, 227, 0.08);
  --sc-indigo: #5856D6;

  /* Semantic Decision States */
  --sc-amber: #B25000;
  --sc-green: #248A3D;
  --sc-emerald: #248A3D;
  --sc-rose: #D70015;
  --sc-crimson: #D70015;

  /* Typography Stack */
  --sc-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

/* 2. Base Canvas Overrides for Showcase Experience */
body.showcase-body {
  background-color: var(--sc-ink);
  background-image: none;
  color: var(--sc-text);
  font-family: var(--sc-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.showcase-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   3. ABOVE-THE-FOLD FLAGSHIP HERO (Product Hero)
   ========================================================================== */
.flagship-hero {
  position: relative;
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 100%);
  border-bottom: 1px solid var(--sc-line);
}

.hero-top-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--sc-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1D1D1F;
  margin-bottom: 20px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.hero-display-title {
  font-family: var(--sc-font-display);
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #1D1D1F;
  margin: 0 0 20px;
  text-wrap: balance;
}

/* Apple signature two-tone headline contrast (#1D1D1F + #86868B) */
.hero-display-gradient {
  color: #86868B;
  background: none;
  -webkit-text-fill-color: #86868B;
}

.hero-lead-copy {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: #6E6E73;
  max-width: 54ch;
  margin: 0 0 30px;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: #0071E3 !important;
  color: #FFFFFF !important;
  border: 1px solid #0071E3 !important;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
  background: #0077ED !important;
  border-color: #0077ED !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.28);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: #FFFFFF;
  color: #0066CC;
  border: 1px solid rgba(0, 102, 204, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-hero-glass:hover {
  border-color: #0071E3;
  background: rgba(0, 113, 227, 0.05);
  color: #0071E3;
  transform: translateY(-1px);
}

/* Interactive Hero Telemetry Console (Apple Studio Enclosure) */
.hero-live-console {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.console-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #F5F5F7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--sc-font-mono);
  font-size: 11px;
}

.console-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.console-dot.r { background: #FF5F56; }
.console-dot.y { background: #FFBD2E; }
.console-dot.g { background: #27C93F; }

.console-title {
  color: #6E6E73;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.console-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #248A3D;
  font-weight: 600;
  font-size: 10.5px;
}

.console-scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 16px;
  background: #FAFAFC;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.console-tab-btn {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 6px;
  color: #6E6E73;
  font-family: var(--sc-font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
  line-height: 1.25;
}

.console-tab-btn:hover {
  color: #1D1D1F;
  border-color: rgba(0, 113, 227, 0.35);
}

.console-tab-btn[aria-selected="true"] {
  background: #0071E3;
  color: #FFFFFF;
  border-color: #0071E3;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.console-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
}

.console-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.pipeline-node {
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 11px 13px;
  font-family: var(--sc-font-mono);
}

.pipeline-node.gate-node {
  border-color: rgba(0, 113, 227, 0.4);
  background: rgba(0, 113, 227, 0.05);
}

.pipeline-node.gate-node[data-status="amber"] {
  border-color: rgba(178, 80, 0, 0.38);
  background: rgba(255, 149, 0, 0.08);
}

.pipeline-node.gate-node[data-status="rose"] {
  border-color: rgba(215, 0, 21, 0.38);
  background: rgba(255, 59, 48, 0.08);
}

.pipeline-node.gate-node[data-status="green"] {
  border-color: rgba(36, 138, 61, 0.38);
  background: rgba(52, 199, 89, 0.08);
}

.p-node-kicker {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #86868B;
  display: block;
  margin-bottom: 3px;
}

.p-node-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1D1D1F;
  display: block;
}

.p-node-sub {
  font-size: 10px;
  color: #0066CC;
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

.pipeline-arrow {
  color: #86868B;
  font-family: var(--sc-font-mono);
  font-size: 13px;
}

.console-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px;
  font-family: var(--sc-font-mono);
  font-size: 11.5px;
}

.telemetry-kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #86868B;
}

.t-val {
  color: #1D1D1F;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-verdict-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: var(--sc-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(178, 80, 0, 0.25);
  color: #B25000;
}

.console-verdict-bar[data-status="green"] {
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(36, 138, 61, 0.25);
  color: #248A3D;
}

.console-verdict-bar[data-status="rose"] {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(215, 0, 21, 0.25);
  color: #D70015;
}

/* Hero Hardware Proof Strip (Apple Bento Spec Strip) */
.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.proof-stat-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.proof-stat-val {
  font-family: var(--sc-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1D1D1F;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.proof-stat-val span {
  font-family: var(--sc-font-mono);
  font-size: 11px;
  color: #0071E3;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.proof-stat-label {
  font-size: 13px;
  color: #6E6E73;
  line-height: 1.45;
}

/* ==========================================================================
   4. TRUE PINNED 3-COLUMN SCROLLYTELLING TRACK
   ========================================================================== */
.showcase-experience {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: start;
  position: relative;
  padding: 64px 0 96px;
}

/* Sticky Chapter Jump List (Desktop Left Column) */
.chapter-jump-rail {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px 14px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.jump-rail-label {
  font-family: var(--sc-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #86868B;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 0 12px;
}

.jump-rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #6E6E73;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  line-height: 1.3;
  border: 1px solid transparent;
}

.jump-rail-item:hover {
  color: #1D1D1F;
  background: rgba(0, 0, 0, 0.04);
}

.jump-rail-item[aria-current="step"],
.jump-rail-item.active {
  color: #1D1D1F;
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.jump-rail-num {
  font-family: var(--sc-font-mono);
  font-size: 11px;
  color: #86868B;
  padding: 2px 6px;
  border-radius: 6px;
  background: #F5F5F7;
}

.jump-rail-item[aria-current="step"] .jump-rail-num,
.jump-rail-item.active .jump-rail-num {
  color: #FFFFFF;
  background: #0071E3;
}

/* Mobile Chapter Rail */
.mobile-chapter-rail {
  display: none;
  position: sticky;
  top: 48px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-chapter-rail::-webkit-scrollbar {
  display: none;
}

.mobile-rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 980px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
  color: #6E6E73;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
  transition: all 0.2s ease;
}

.mobile-rail-chip[aria-current="step"] {
  border-color: #0071E3;
  color: #FFFFFF;
  background: #0071E3;
}

/* ==========================================================================
   5. MAIN STORY TRACK & BENTO CHAPTER ARCHITECTURE
   ========================================================================== */
.story-track {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.chapter-section {
  scroll-margin-top: 84px;
  position: relative;
}

.chapter-narrative {
  margin-bottom: 28px;
}

.chapter-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sc-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0071E3;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
  margin-bottom: 14px;
}

.chapter-headline {
  font-family: var(--sc-font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: #1D1D1F;
  margin: 0 0 14px;
  text-wrap: balance;
}

.chapter-claim {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #6E6E73;
  margin: 0 0 16px;
  max-width: 62ch;
}

.chapter-proof {
  font-size: 14px;
  line-height: 1.6;
  color: #6E6E73;
  padding: 14px 18px;
  border-left: 3px solid #0071E3;
  background: #FFFFFF;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  max-width: 64ch;
}

/* Interactive Micro-Bar inside Chapters */
.chapter-interactive-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  font-family: var(--sc-font-body);
  font-size: 12.5px;
}

.interactive-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1D1D1F;
  font-weight: 600;
}

.interactive-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.micro-sim-btn {
  appearance: none;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #6E6E73;
  font-family: var(--sc-font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.micro-sim-btn:hover {
  color: #1D1D1F;
  border-color: #0071E3;
}

.micro-sim-btn[aria-pressed="true"] {
  background: #0071E3;
  color: #FFFFFF;
  border-color: #0071E3;
}

/* Sticky 3D WebGL Stage (Apple Studio Daylight Enclosure) */
.stage-mount-col {
  position: sticky;
  top: 76px;
}

.shared-boundary-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  margin: 0;
  background: radial-gradient(ellipse at 50% 42%, #FFFFFF 0%, #EEF1F6 82%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

.shared-boundary-stage .stage-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  z-index: 10;
  font-family: var(--sc-font-mono);
  font-size: 11px;
}

.stage-header .stage-title {
  color: #1D1D1F;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stage-header .stage-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0071E3;
}

.stage-header .stage-tag {
  color: #86868B;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Interactive Stage Chapter Switcher Pills */
.stage-hud-switcher {
  position: absolute;
  top: 48px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 10;
  pointer-events: auto;
}

.stage-hud-pill {
  appearance: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6E6E73;
  font-family: var(--sc-font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 980px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.stage-hud-pill:hover {
  color: #1D1D1F;
  border-color: #0071E3;
}

.stage-hud-pill.active {
  background: #0071E3;
  color: #FFFFFF;
  border-color: #0071E3;
}

.shared-boundary-stage .stage-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shared-boundary-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.stage-caption-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 2px;
  font-family: var(--sc-font-body);
}

.stage-caption-desc {
  display: block;
  font-size: 12px;
  color: #6E6E73;
  line-height: 1.4;
}

/* Static Fallback when WebGL/JS is disabled */
.stage-fallback-card {
  display: block;
  margin: 88px auto 0;
  width: calc(100% - 36px);
  max-width: 400px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px;
  font-family: var(--sc-font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #1D1D1F;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 5;
}

.shared-boundary-stage.webgl-active .stage-fallback-card {
  display: none;
}

/* ==========================================================================
   6. APPLE BENTO GRID FOR CHAPTER TILES
   ========================================================================== */
.chapter-tiles-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

/* First tile spans full width of the chapter Bento grid for flagship impact */
.chapter-tiles-row > .chapter-tile:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  background: #FFFFFF;
}

.chapter-tiles-row > .chapter-tile:first-child .tile-artifact {
  margin-top: 0;
}

.chapter-tile {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter-tile:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.tile-title {
  font-family: var(--sc-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #1D1D1F;
  margin: 0 0 8px;
}

.tile-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #6E6E73;
  margin: 0 0 16px;
}

.tile-artifact {
  margin-top: auto;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--sc-font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: #1D1D1F;
  overflow-x: auto;
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 980px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-amber {
  background: rgba(255, 149, 0, 0.12);
  color: #B25000;
  border: 1px solid rgba(178, 80, 0, 0.25);
}

.badge-cyan {
  background: rgba(0, 113, 227, 0.1);
  color: #0071E3;
  border: 1px solid rgba(0, 113, 227, 0.22);
}

.badge-green {
  background: rgba(52, 199, 89, 0.12);
  color: #248A3D;
  border: 1px solid rgba(36, 138, 61, 0.25);
}

.badge-rose {
  background: rgba(255, 59, 48, 0.12);
  color: #D70015;
  border: 1px solid rgba(215, 0, 21, 0.25);
}

/* Chapter Separator & Navigation Return */
.chapter-nav-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chapter-nav-return a {
  color: #0066CC;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--sc-font-body);
  transition: color 0.2s ease;
}

.chapter-nav-return a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7. INTERACTIVE UTILITIES BENTO ROW (#try-it) & CLOSING CTA
   ========================================================================== */
.try-it-section {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.try-it-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.try-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 30px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.try-card:hover {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.try-card-label {
  font-family: var(--sc-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0071E3;
  margin-bottom: 10px;
}

.try-card-title {
  font-family: var(--sc-font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1D1D1F;
  margin: 0 0 8px;
}

.try-card-desc {
  font-size: 14px;
  color: #6E6E73;
  line-height: 1.55;
  margin-bottom: 18px;
}

.try-card-preview {
  font-family: var(--sc-font-mono);
  font-size: 11px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1D1D1F;
  margin-bottom: 18px;
}

.try-card-link {
  font-size: 14px;
  font-weight: 500;
  color: #0066CC;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.closing-section {
  padding: 40px 0 28px;
}

.closing-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.closing-card h2 {
  font-family: var(--sc-font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -0.028em;
  color: #1D1D1F;
  margin: 10px auto 14px;
}

.closing-card p {
  max-width: 58ch;
  margin: 0 auto 28px;
  color: #6E6E73;
  font-size: 17px;
  line-height: 1.5;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .showcase-experience {
    grid-template-columns: 170px minmax(0, 1fr) 390px;
    gap: 24px;
  }
  .hero-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .showcase-experience {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .chapter-jump-rail {
    display: none;
  }
  .mobile-chapter-rail {
    display: flex;
  }
  .stage-mount-col {
    position: relative;
    top: 0;
    order: -1;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }
  .chapter-tiles-row > .chapter-tile:first-child {
    grid-template-columns: 1fr;
  }
  .try-it-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .showcase-container {
    padding: 0 16px;
  }
  .flagship-hero {
    padding: 40px 0 36px;
  }
  .console-scenario-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .console-pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline-arrow {
    display: none;
  }
  .hero-proof-strip {
    grid-template-columns: 1fr;
  }
  .chapter-tiles-row {
    grid-template-columns: 1fr;
  }
  .closing-card {
    padding: 32px 20px;
  }
}

/* ==========================================================================
   8. STREAMLINED LIVE GATEWAY PROOF CARD & 2x2 BENTO GUARANTEES
   ========================================================================== */
.live-proof-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.live-proof-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #F5F5F7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--sc-font-mono, monospace);
  font-size: 11px;
}

.live-proof-tour-bar {
  padding: 12px 16px;
  background: #F0F7FF;
  border-bottom: 1px solid #D0E4FF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-proof-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0071E3;
  color: #FFFFFF;
  padding: 7px 14px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.live-proof-tour-btn:hover {
  background: #0077ED;
}

.blast-radius-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.blast-radius-cell {
  background: #FFFFFF;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.45;
}

.blast-radius-cell.unfenced {
  background: #FFF9F9;
}

.blast-radius-cell.fenced {
  background: #F6FCF7;
}

.blast-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.blast-tag.red {
  background: #FFE2E0;
  color: #D70015;
}
.blast-tag.green {
  background: #DCFCE7;
  color: #15803D;
}

.blast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #1D1D1F;
}

.blast-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
}

.blast-list li span.bullet {
  font-weight: 700;
  flex-shrink: 0;
}

.live-act-launcher {
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.act-launcher-title {
  font-size: 11px;
  font-weight: 600;
  color: #86868B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.act-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.act-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  color: #1D1D1F;
  font-weight: 500;
  transition: all 0.15s ease;
}
.act-pill-btn:hover {
  background: #E8E8ED;
  border-color: rgba(0, 113, 227, 0.3);
  transform: translateY(-1px);
}

.act-pill-badge {
  font-family: var(--sc-font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.act-pill-badge.red { background: #FFE2E0; color: #D70015; }
.act-pill-badge.amber { background: #FEF3C7; color: #B45309; }
.act-pill-badge.green { background: #DCFCE7; color: #15803D; }
.act-pill-badge.blue { background: #E0F2FE; color: #0369A1; }
.act-pill-badge.purple { background: #F3E8FF; color: #7E22CE; }

.incident-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.incident-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 980px) {
  .incident-grid {
    grid-template-columns: 1fr;
  }
  .incident-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 2x2 Guarantees Bento Grid */
.guarantees-section {
  padding: 56px 0 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.guarantees-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guarantee-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.guarantee-card:hover {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.guarantee-tag {
  display: inline-block;
  font-family: var(--sc-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 12px;
  width: fit-content;
}
.guarantee-tag.amber { background: #FEF3C7; color: #B45309; }
.guarantee-tag.red { background: #FFE2E0; color: #D70015; }
.guarantee-tag.green { background: #DCFCE7; color: #15803D; }
.guarantee-tag.blue { background: #E0F2FE; color: #0369A1; }

.guarantee-title {
  font-family: var(--sc-font-display, sans-serif);
  font-size: 19px;
  font-weight: 700;
  color: #1D1D1F;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.guarantee-desc {
  font-size: 13.5px;
  color: #6E6E73;
  line-height: 1.55;
  margin-bottom: 18px;
}

.guarantee-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 14px;
  margin-top: auto;
}

.guarantee-metric {
  font-family: var(--sc-font-mono, monospace);
  font-size: 11px;
  color: #86868B;
}

.guarantee-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #0071E3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.guarantee-link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .blast-radius-grid {
    grid-template-columns: 1fr;
  }
  .act-pills-row {
    grid-template-columns: 1fr;
  }
  .guarantees-grid {
    grid-template-columns: 1fr;
  }
}
