/* ==========================================================================
   LENS STUDIO & CLAD (SPECS) DESIGN SYSTEM
   Dark Luxury Spatial AR Palette (Aligned with Build The Invisible)
   ========================================================================== */

:root {
  --paper: #070709;
  --white: #101017;
  --ink: #f0f3f8;
  --muted: #8e99ab;
  --dim: #5a6475;
  --line: #1c1d29;
  --line-strong: #2c2e40;
  --yellow: #fffc00;
  --yellow-glow: rgba(255, 252, 0, 0.28);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --display: "Syne", sans-serif;
  --body: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
}

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

html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ==========================================================================
   APP SHELL & TOPBAR
   ========================================================================== */
.app-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 78px;
  flex: 0 0 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font: 800 13px var(--mono);
  background: var(--yellow);
  color: #000;
  padding: 9px 8px;
  border-radius: 2px;
  letter-spacing: -0.05em;
}

.brand strong, .brand small {
  display: block;
}

.brand strong {
  font: 800 12px var(--display);
  letter-spacing: 0.04em;
}

.brand small {
  font: 10px var(--mono);
  color: var(--muted);
  margin-top: 3px;
}

.mode-nav {
  display: flex;
  gap: 7px;
}

.mode-btn, .event-link, .secondary-action, .primary-action, .icon-btn {
  font: 700 11px var(--mono);
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-btn {
  padding: 11px 14px;
}

.mode-btn:hover {
  color: var(--ink);
}

.mode-btn.is-active {
  color: var(--yellow);
  border-bottom: 2px solid var(--yellow);
}

.event-link {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 11px 15px;
  background: var(--white);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-link span {
  color: var(--yellow);
  font-size: 14px;
}

.event-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ==========================================================================
   VIEWS CONTAINER
   ========================================================================== */
.view {
  display: none;
  height: calc(100vh - 130px);
  min-height: 0;
  overflow: hidden;
}

.view.is-visible {
  display: block;
}

#lab.view.is-visible,
#workflow.view.is-visible,
#recipes.view.is-visible {
  overflow-y: auto;
}

/* ==========================================================================
   VIEW 01: SLIDE DECK LAYOUT (Matching BTI)
   ========================================================================== */
.deck-layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  height: 100%;
  min-height: 0;
}

.deck-rail {
  border-right: 1px solid var(--line);
  padding: 36px 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.rail-label, .slide-top, .slide-bottom, .lab-header, .panel-bar, .global-footer {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
}

.slide-list {
  display: grid;
  gap: 5px;
  margin-top: 37px;
}

.slide-nav {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  cursor: pointer;
  font: 11px var(--body);
  transition: all 0.15s ease;
}

.slide-nav span {
  font: 10px var(--mono);
}

.slide-nav strong {
  font-weight: 500;
}

.slide-nav:hover {
  color: var(--ink);
}

.slide-nav.is-active {
  color: var(--ink);
}

.slide-nav.is-active span {
  color: var(--yellow);
}

.slide-nav.is-active strong {
  font-weight: 700;
}

.rail-foot {
  font: 10px var(--mono);
  line-height: 1.7;
  color: var(--muted);
  margin-top: auto;
}

.rail-foot span:last-child {
  font-size: 9px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(255, 252, 0, 0.15);
}

/* Slide Stage */
.slide-stage {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  padding: 36px 5.2vw 75px;
  display: flex;
  flex-direction: column;
}

.slide {
  display: none;
  height: 100%;
  min-height: 0;
  animation: rise 0.45s ease both;
}

.slide.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.slide-top, .slide-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.slide-top span:first-child {
  color: var(--yellow);
}

.slide-bottom {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-copy {
  margin: auto 0;
}

.eyebrow {
  font: 700 10px var(--mono);
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-copy h1, .slide h2 {
  font: 800 clamp(52px, 7.5vw, 104px)/0.88 var(--display);
  letter-spacing: -0.06em;
}

.slide em {
  color: var(--yellow);
  font-style: normal;
}

.hero-note {
  font: 500 18px/1.4 var(--body);
  margin-top: 32px;
  margin-left: 6px;
  color: var(--muted);
}

.split-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7vw;
  flex: 1;
}

.slide h2 {
  font-size: clamp(40px, 5.5vw, 76px);
}

.lede {
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 24px;
}

/* Hero Signal */
.hero-signal {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: clamp(38px, 6vh, 70px);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  max-width: min(760px, 50vw);
}

.hero-signal i {
  height: 1px;
  background: var(--line);
  position: relative;
}

.hero-signal i:after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 3px;
  background: var(--yellow);
}

.hero-signal b {
  grid-column: 1/-1;
  color: var(--yellow);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  margin-top: 9px;
}

/* Hero Image Slide Backgrounds */
.hero-image-slide, .handoff-slide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-image-slide:before, .handoff-slide:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.98) 0%, rgba(7, 7, 9, 0.78) 12%, rgba(7, 7, 9, 0.35) 28%, rgba(7, 7, 9, 0) 45%, rgba(7, 7, 9, 0) 65%, rgba(7, 7, 9, 0.22) 80%, rgba(7, 7, 9, 0.75) 94%, rgba(7, 7, 9, 0.98) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.98) 0%, rgba(7, 7, 9, 0.66) 9%, rgba(7, 7, 9, 0.22) 23%, rgba(7, 7, 9, 0) 38%, rgba(7, 7, 9, 0) 66%, rgba(7, 7, 9, 0.2) 82%, rgba(7, 7, 9, 0.72) 95%, rgba(7, 7, 9, 0.98) 100%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.98) 0%, rgba(7, 7, 9, 0.88) 32%, rgba(7, 7, 9, 0.3) 58%, rgba(7, 7, 9, 0.04) 80%),
    linear-gradient(0deg, rgba(7, 7, 9, 0.75), rgba(7, 7, 9, 0) 40%);
  pointer-events: none;
}

.hero-image-slide .hero-bg, .handoff-slide .hero-bg {
  position: absolute;
  inset: -24px;
  z-index: 0;
  background: transparent;
}

.hero-image-slide .hero-bg img, .handoff-slide .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 44%, rgba(0, 0, 0, 0.86) 64%, rgba(0, 0, 0, 0.5) 82%, rgba(0, 0, 0, 0.14) 96%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 44%, rgba(0, 0, 0, 0.86) 64%, rgba(0, 0, 0, 0.5) 82%, rgba(0, 0, 0, 0.14) 96%, transparent 100%);
  filter: contrast(1.1) brightness(0.85);
}

.hero-image-slide .slide-top,
.hero-image-slide .hero-copy,
.hero-image-slide .hero-signal,
.hero-image-slide .split-slide,
.hero-image-slide .slide-bottom,
.handoff-slide .slide-top,
.handoff-slide .handoff-content-box,
.handoff-slide .slide-bottom {
  position: relative;
  z-index: 2;
}

.hero-image-slide .hero-copy {
  max-width: min(820px, 55vw);
}

/* ==========================================================================
   SLIDE CONTROLS (Matching BTI)
   ========================================================================== */
.slide-controls {
  position: absolute;
  bottom: 24px;
  left: 5.2vw;
  right: 5.2vw;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 10;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.progress {
  height: 2px;
  background: var(--line);
  flex: 1;
  margin: 0 10px;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--yellow);
  width: 12.5%;
  transition: width 0.35s ease;
}

/* ==========================================================================
   REALITY SPECTRUM (Slide 2)
   ========================================================================== */
.spectrum {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spectrum .spectrum-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  border-top: 0;
  padding-top: 18px;
  position: relative;
}

.spectrum .spectrum-line:before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 26px;
  border-top: 1px solid var(--line);
  z-index: 0;
}

.spectrum-point {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  font: 700 10px var(--mono);
  letter-spacing: 0.08em;
  transition: color 0.15s ease;
}

.spectrum-point i {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--paper);
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.spectrum-point span {
  padding: 4px 6px;
  background: rgba(7, 7, 9, 0.86);
  border-radius: 2px;
}

.spectrum-point:hover,
.spectrum-point:focus-visible,
.spectrum-point.is-active {
  color: var(--yellow);
}

.spectrum-point:hover i,
.spectrum-point:focus-visible i,
.spectrum-point.is-active i {
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(255, 252, 0, 0.12), 0 0 14px var(--yellow-glow);
}

.spectrum .spectrum-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.spectrum .spectrum-labels span {
  min-width: 0;
  font: 700 11px var(--mono);
  color: var(--ink);
}

.spectrum .spectrum-labels small {
  display: block;
  margin-top: 4px;
  font: 10px var(--body);
  color: var(--muted);
  line-height: 1.25;
}

.spectrum-card {
  border: 1px solid var(--line);
  background: rgba(16, 16, 23, 0.85);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  min-height: 220px;
}

.spectrum-card span {
  display: block;
  color: var(--yellow);
  font: 700 10px var(--mono);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.spectrum-card h3 {
  font: 800 clamp(20px, 2.2vw, 30px)/0.95 var(--display);
  letter-spacing: -0.04em;
  margin: 0;
}

.spectrum-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.spectrum-card dl {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.spectrum-card dt {
  color: var(--yellow);
  font: 700 9px var(--mono);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.spectrum-card dd {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.spectrum-device-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(7, 7, 9, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.spectrum-device-groups section {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
}

.spectrum-device-groups section:last-child {
  border-right: 0;
}

.spectrum-device-groups b,
.spectrum-device-groups span {
  display: block;
}

.spectrum-device-groups b {
  color: var(--yellow);
  font: 700 8px var(--mono);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.spectrum-device-groups span {
  color: var(--muted);
  font: 500 10px/1.25 var(--body);
  letter-spacing: 0;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spectrum-device-groups span:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.spectrum-device-groups span:last-child {
  padding-bottom: 0;
}

/* ==========================================================================
   HARDWARE MATRIX (Slide 3)
   ========================================================================== */
.hardware-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hw-card-visual {
  background: rgba(16, 16, 23, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: 22px 18px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.hw-card-visual.highlight-specs {
  border-color: rgba(255, 252, 0, 0.5);
  background: rgba(16, 16, 23, 0.88);
  box-shadow: 0 0 24px rgba(255, 252, 0, 0.08);
}

.hw-card-badge {
  font: 700 9px var(--mono);
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.specs-badge {
  color: var(--yellow);
}

.hw-card-visual h3 {
  font: 800 18px var(--display);
  margin-bottom: 8px;
}

.hw-card-visual p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

.hw-spec-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}

.hw-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.hw-spec-row span {
  color: var(--muted);
}

.hw-spec-row strong {
  font: 700 11px var(--mono);
  color: var(--ink);
}

.v-specs {
  color: var(--yellow) !important;
}

.v-gen5 {
  color: var(--cyan) !important;
}

.note-bar {
  grid-column: 1 / -1;
  padding: 12px 16px;
  background: rgba(16, 16, 23, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 252, 0, 0.25);
  border-radius: 4px;
  font: 11px var(--mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-bar strong {
  color: var(--yellow);
}

/* ==========================================================================
   DEVELOPMENT TRACKS (Slide 4)
   ========================================================================== */
.tracks-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.foundation-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
  padding: 12px 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 11px var(--mono);
  color: var(--muted);
}

.foundation-banner strong {
  color: var(--yellow);
}

.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.track-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.track-box.track-clad {
  border-color: rgba(255, 252, 0, 0.4);
  background: linear-gradient(180deg, rgba(255, 252, 0, 0.04), var(--white));
}

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.track-tag {
  font: 700 9px var(--mono);
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.track-version {
  font: 10px var(--mono);
  color: var(--dim);
}

.track-box h4 {
  font: 700 16px var(--display);
  margin-bottom: 14px;
}

.flow-steps-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.flow-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.step-num-pill {
  font: 700 10px var(--mono);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-clad .step-num-pill {
  background: rgba(255, 252, 0, 0.15);
  color: var(--yellow);
}

/* ==========================================================================
   SIK GESTURE CARDS (Slide 5)
   ========================================================================== */
.gesture-grid-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gesture-card-btn {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px 14px;
  border-radius: 6px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.gesture-card-btn:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.gesture-card-btn.is-active {
  border-color: var(--yellow);
  background: rgba(255, 252, 0, 0.06);
  box-shadow: 0 0 16px rgba(255, 252, 0, 0.1);
}

.gesture-svg-icon {
  width: 32px;
  height: 32px;
  stroke: var(--yellow);
  fill: none;
  stroke-width: 1.8;
  margin-bottom: 14px;
}

.gesture-card-btn h4 {
  font: 700 14px var(--display);
  margin-bottom: 6px;
}

.gesture-card-btn p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.gesture-api-badge {
  font: 10px var(--mono);
  color: var(--yellow);
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ==========================================================================
   CLAD 4 PILLARS (Slide 6)
   ========================================================================== */
.clad-pillars-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.clad-pillar-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 18px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.clad-pillar-box:hover {
  border-color: var(--yellow);
  background: rgba(255, 252, 0, 0.04);
}

.pillar-big-letter {
  font: 900 44px/1 var(--display);
  color: var(--yellow);
  margin-bottom: 12px;
  opacity: 0.95;
}

.clad-pillar-box h3 {
  font: 700 16px var(--display);
  margin-bottom: 8px;
}

.clad-pillar-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   TERMINAL & LEAF TEST SUITE (Slide 7)
   ========================================================================== */
.terminal-board {
  background: #08090c;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.term-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #101217;
  border-bottom: 1px solid var(--line);
  font: 10px var(--mono);
  color: var(--muted);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }

.term-body {
  padding: 18px;
  font: 12px/1.65 var(--mono);
  color: #c9d1d9;
  overflow-x: auto;
}

.term-body code {
  font-family: inherit;
}

/* ==========================================================================
   HANDOFF SLIDE (Slide 8)
   ========================================================================== */
.handoff-content-box {
  position: relative;
  z-index: 2;
  margin: auto 0;
  max-width: min(760px, 50vw);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #000;
  font: 700 12px var(--mono);
  padding: 16px 24px;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 28px;
  box-shadow: 0 10px 24px rgba(255, 252, 0, 0.2);
  transition: all 0.18s ease;
  border: 0;
  cursor: pointer;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 252, 0, 0.3);
}

.secondary-action {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  font: 700 11px var(--mono);
  padding: 14px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.secondary-action:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.secondary-action:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==========================================================================
   CODELAB VIEW (02 / LAB - Matching BTI Layout with Full Width Content)
   ========================================================================== */
.lab-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 124px);
}

.lab-sidebar {
  background: #0b0c10;
  color: #fff;
  padding: 62px 48px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.lab-sidebar .eyebrow {
  color: var(--yellow);
}

.lab-sidebar h2 {
  font: 800 48px/0.95 var(--display);
  letter-spacing: -0.05em;
}

.lab-sidebar em {
  color: var(--yellow);
  font-style: normal;
}

.side-copy {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 20px;
}

.lab-steps {
  margin-top: 45px;
  display: grid;
}

.lab-step-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--muted);
  padding: 14px 0;
  cursor: pointer;
  font: 13px var(--body);
  transition: all 0.15s ease;
}

.lab-step-btn span.num {
  font: 10px var(--mono);
  color: var(--dim);
}

.lab-step-btn:hover {
  color: #fff;
}

.lab-step-btn.is-active {
  color: #fff;
  font-weight: 600;
}

.lab-step-btn.is-active span.num {
  color: var(--yellow);
  font-weight: 700;
}

.docs-links-bar {
  font: 10px var(--mono);
  color: var(--yellow);
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-links-bar a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.docs-links-bar a:hover {
  color: var(--yellow);
}

.lab-main {
  width: 100%;
  padding: 62px 6vw;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lab-main a, .lab-callout a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.lab-main a:hover, .lab-callout a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--yellow-glow);
}

.lab-badge-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font: 700 10px var(--mono);
  background: rgba(255, 252, 0, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 252, 0, 0.3);
  margin-right: 6px;
}

.lab-header span:first-child {
  color: var(--yellow);
}

#codelabBody {
  padding-top: 45px;
}

#codelabBody h1 {
  font: 800 clamp(38px, 5vw, 68px)/0.95 var(--display);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.lab-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 32px;
}

.lab-callout {
  padding: 16px 20px;
  background: rgba(255, 252, 0, 0.06);
  border: 1px solid rgba(255, 252, 0, 0.25);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.lab-callout strong {
  font: 700 11px var(--mono);
  color: var(--yellow);
  display: block;
  margin-bottom: 6px;
}

.lab-callout p {
  color: var(--ink);
}

.code-box-styled {
  background: #0b0c10;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 16px 0 28px;
  overflow: hidden;
}

.code-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #111218;
  border-bottom: 1px solid var(--line);
  font: 10px var(--mono);
  color: var(--muted);
}

.code-box-styled pre {
  padding: 16px;
  font: 13px/1.65 var(--mono);
  color: #d1d7e0;
  overflow-x: auto;
}

.copy-code-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 9px var(--mono);
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-code-btn:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.checklist-container {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 4px;
  margin: 28px 0;
}

.custom-chk-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.custom-chk-label:first-of-type {
  border-top: 0;
}

.custom-chk-label input {
  display: none;
}

.custom-chk-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  background: #0b0c10;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.custom-chk-box:after {
  content: "✓";
  font: 700 11px var(--mono);
  color: #000;
  display: none;
}

.custom-chk-label input:checked + .custom-chk-box {
  background: var(--yellow);
  border-color: var(--yellow);
}

.custom-chk-label input:checked + .custom-chk-box:after {
  display: block;
}

.custom-chk-label input:checked ~ .chk-text {
  color: var(--muted);
  text-decoration: line-through;
}

.chk-text {
  font-size: 13px;
  color: var(--ink);
}

.lab-footer {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   VIEW 03 & 04 (WORKFLOW & PROMPT RECIPES - FULL WIDTH)
   ========================================================================== */
.workflow-layout, .recipes-layout {
  width: 100%;
  max-width: 100%;
  padding: 62px 6vw 80px;
}

.workflow-head, .recipes-head {
  margin-bottom: 38px;
}

.workflow-head h2, .recipes-head h2 {
  font: 800 clamp(36px, 5vw, 64px) var(--display);
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.circuit-board-styled {
  width: 100%;
}

.recipes-grid-styled {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  width: 100%;
}

.recipe-card-styled {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.recipe-meta-row {
  display: flex;
  justify-content: space-between;
  font: 700 9px var(--mono);
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 12px;
}

.recipe-card-styled p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

/* ==========================================================================
   PROGRESSIVE NEXT BAR & SECTIONS
   ========================================================================== */
.progressive-next-bar {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(18, 18, 24, 0.9), rgba(12, 12, 16, 0.95));
  border: 1px solid rgba(255, 252, 0, 0.25);
  border-radius: 8px;
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 252, 0, 0.05);
}

.next-step-tag {
  display: inline-block;
  font: 700 9px var(--mono);
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.progressive-next-bar h3 {
  font: 800 clamp(20px, 2.5vw, 26px) var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.progressive-next-bar p {
  font-size: 14px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .progressive-next-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* ==========================================================================
   CUSTOM CELEBRATION MODAL
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.custom-modal-backdrop.is-open {
  display: flex;
}

.custom-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #0f0f14;
  border: 1px solid rgba(255, 252, 0, 0.35);
  border-radius: 12px;
  padding: 36px 32px 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 252, 0, 0.12);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.custom-modal-backdrop.is-open .custom-modal-card {
  transform: scale(1) translateY(0);
}

.modal-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 252, 0, 0.25) 0%, rgba(255, 252, 0, 0) 70%);
  pointer-events: none;
}

.modal-eyebrow {
  display: inline-block;
  font: 700 10px var(--mono);
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-title {
  font: 800 clamp(24px, 3.5vw, 30px) var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.modal-body {
  font-size: 14px;
  color: #b0b0b8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.modal-btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.modal-btn-primary {
  background: var(--yellow);
  color: #000;
  border: 1px solid var(--yellow);
  font: 800 11px var(--mono);
  letter-spacing: 0.08em;
  padding: 12px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(255, 252, 0, 0.25);
}

.modal-btn-primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.global-footer {
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 9, 0.96);
  z-index: 20;
}

.global-footer a {
  color: var(--yellow);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .view {
    height: auto;
    min-height: calc(100vh - 130px);
    overflow: visible;
  }

  .deck-layout, .lab-layout {
    display: block;
    height: auto;
  }

  .deck-rail {
    display: none;
  }

  .slide-stage {
    height: auto;
    min-height: 650px;
    padding: 24px 20px 80px;
  }

  .slide {
    height: auto;
    min-height: 530px;
  }

  .split-slide, .hardware-matrix-grid, .tracks-grid, .gesture-grid-visual, .clad-pillars-4 {
    grid-template-columns: 1fr;
  }

  .hero-signal {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-signal i {
    display: none;
  }

  .topbar {
    padding: 0 18px;
  }

  .mode-btn {
    padding: 10px 8px;
    font-size: 10px;
  }
}
