/* ==========================================================================
   Kilnslot — Industrial Ceramic Kiln Design System
   Charcoal · Incandescent Orange · Ash
   ========================================================================== */

:root {
  --bg: #131211;
  --surface: #1B1918;
  --surface-raised: #24211F;
  --border: #322E2A;
  --border-strong: #4A443E;

  --text: #F2EDE4;
  --text-secondary: #ABA49A;
  --text-muted: #7C766E;

  --ember: #FF5A1F;
  --ember-hover: #FF713E;
  --ember-soft: rgba(255, 90, 31, 0.14);
  --amber: #FFA447;
  --paid: #A6D6B8;
  --paid-soft: rgba(166, 214, 184, 0.14);
  --danger: #FF6B6B;

  --ink-on-ember: #13110F;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --container: 1280px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(62% 48% at 78% 18%, rgba(255, 90, 31, 0.08) 0%, rgba(19, 18, 17, 0) 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ember);
  color: var(--ink-on-ember);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(19, 18, 17, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  margin-left: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-wallet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn-wallet:hover {
  border-color: var(--ember);
  background: #2A2623;
}

.wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.wallet-dot.is-connected {
  background: var(--paid);
  box-shadow: 0 0 8px rgba(166, 214, 184, 0.55);
}

/* ==========================================================================
   Hero Cover
   ========================================================================== */

.hero {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "copy chamber"
    "specs chamber";
  column-gap: 44px;
  row-gap: 28px;
  align-items: start;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}

.chamber-wrap {
  grid-area: chamber;
  min-width: 0;
  width: 100%;
  align-self: center;
}

.hero-specs {
  grid-area: specs;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.eyebrow {
  margin: 0 0 18px;
}

.eyebrow-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--amber);
  padding: 5px 10px;
  background: var(--ember-soft);
  border: 1px solid rgba(255, 90, 31, 0.32);
  border-radius: var(--radius-sm);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.1vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--ember);
  color: var(--ink-on-ember);
  border: 1px solid var(--ember);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--ember-hover);
  border-color: var(--ember-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--surface);
}

.spec-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-item dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   Signature Visual: Kiln Frame-Assembly Chamber
   ========================================================================== */

.chamber {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.chamber-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #171514;
  border-bottom: 1px solid var(--border);
}

.chamber-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chamber-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(255, 164, 71, 0.12);
  border: 1px solid rgba(255, 164, 71, 0.3);
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.chamber-job-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chamber-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

.counter-sep {
  color: var(--text-muted);
}

.counter-label {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--paid);
  letter-spacing: 0.06em;
}

.chamber-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F0E0D;
  overflow: hidden;
}

#kiln-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tile-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.tile-cell {
  position: relative;
  border-right: 1px solid rgba(242, 237, 228, 0.07);
  border-bottom: 1px solid rgba(242, 237, 228, 0.07);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 7px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.tile-cell[data-state="queued"] {
  background: rgba(18, 17, 16, 0.88);
}

.tile-cell[data-state="firing"] {
  background: rgba(255, 90, 31, 0.18);
  box-shadow: inset 0 0 0 1.5px var(--ember);
}

.tile-cell[data-state="requeued"] {
  background: rgba(255, 164, 71, 0.2);
  box-shadow: inset 0 0 0 1.5px var(--amber);
}

.tile-cell[data-state="paid"] {
  background: transparent;
  border-color: rgba(242, 237, 228, 0.04);
}

.tile-id {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(242, 237, 228, 0.42);
}

.tile-cell[data-state="firing"] .tile-id {
  color: #FFD1BA;
  font-weight: 600;
}

.tile-cell[data-state="paid"] .tile-id {
  opacity: 0.28;
}

.tile-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.tile-cell[data-state="firing"] .tile-status-dot {
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

.tile-cell[data-state="requeued"] .tile-status-dot {
  background: var(--amber);
}

.tile-cell[data-state="paid"] .tile-status-dot {
  background: rgba(166, 214, 184, 0.65);
}

.chamber-toast {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(19, 18, 17, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.chamber-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chamber-toast.is-warn {
  border-color: rgba(255, 164, 71, 0.6);
  color: var(--amber);
}

.chamber-toast.is-done {
  border-color: rgba(166, 214, 184, 0.55);
  color: var(--paid);
}

.chamber-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 16px;
  background: #171514;
  border-top: 1px solid var(--border);
}

.chamber-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.swatch-queued {
  background: #272421;
  border: 1px solid var(--border-strong);
}

.swatch-firing {
  background: var(--ember);
}

.swatch-paid {
  background: var(--paid);
}

.chamber-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chip {
  height: 32px;
  padding: 0 11px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-chip:hover {
  border-color: var(--ember);
  color: #FFD1BA;
}

.btn-chip-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-chip-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.chamber-caption {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Section: Protocol Mechanics
   ========================================================================== */

.section-mechanics {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ember);
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ember);
}

.step-layer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.step-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.step-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

/* ==========================================================================
   Expanded Content Sections (02–06)
   ========================================================================== */

.section-band {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-intro {
  margin: 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-copy {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* 02 / Worked Scenario Plate */

.schematic-plate {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 16px;
  background: #171514;
  border-bottom: 1px solid var(--border);
}

.plate-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(255, 164, 71, 0.12);
  border: 1px solid rgba(255, 164, 71, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
}

.plate-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.timeline-svg-wrap {
  padding: 20px 20px 14px;
  background: #141211;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.timeline-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.scenario-beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.beat-item {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

.beat-item:last-child {
  border-right: 0;
}

.beat-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-bottom: 8px;
}

.beat-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.beat-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-secondary);
}

/* 03 / Spot-Check Verification Split */

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 44px;
  align-items: center;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.check-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.check-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.check-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.gate-svg-wrap {
  padding: 18px;
  background: #141211;
}

.gate-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 04 / Two Sides of the Kiln (Interactive Role Ledger) */

.tab-bar {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  gap: 4px;
}

.tab-btn {
  min-height: 38px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.is-active {
  background: var(--ember);
  color: var(--ink-on-ember);
  font-weight: 600;
}

.ledger-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px;
}

.ledger-panel[hidden] {
  display: none;
}

.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
}

.ledger-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.ledger-main h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.ledger-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ledger-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ledger-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 1px;
}

.ledger-list strong {
  color: var(--text);
  font-weight: 600;
}

.compare-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  padding: 13px 16px;
  align-items: center;
}

.compare-head {
  background: #171514;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.compare-row {
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

.compare-head .is-kiln {
  color: var(--ember);
  font-weight: 600;
}

.compare-row .is-kiln {
  color: var(--text);
  font-weight: 500;
}

/* 05 / Elysium & Collateral Architecture */

.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.arch-layer {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-layer-onchain {
  border-color: rgba(255, 90, 31, 0.45);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.06) 0%, var(--surface) 42%);
}

.arch-layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.arch-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  padding: 4px 8px;
  border-radius: 3px;
}

.arch-tag-ember {
  color: var(--amber);
  background: var(--ember-soft);
  border-color: rgba(255, 90, 31, 0.4);
}

.arch-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.arch-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-items li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-items strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.arch-items span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.arch-items code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 12px;
}

.bridge-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--ember), var(--border-strong));
}

.bridge-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 06 / FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  gap: 44px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ember);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 64ch;
}

.faq-item code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

/* ==========================================================================
   Section: Pilot Queue (Primary CTA Target)
   ========================================================================== */

.section-pilot {
  padding: 72px 0 88px;
  border-top: 1px solid var(--border);
}

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px;
  align-items: start;
}

.pilot-lead {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 44ch;
}

.pilot-form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.role-toggle {
  border: 0;
  margin: 0;
  padding: 0;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-option {
  position: relative;
  cursor: pointer;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.role-option input:checked + span {
  border-color: var(--ember);
  background: var(--ember-soft);
  color: var(--text);
}

.role-option input:focus-visible + span {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.text-input::placeholder {
  color: var(--text-muted);
}

.text-input:focus {
  border-color: var(--ember);
  outline: none;
}

.btn-full {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-note.is-success {
  color: var(--paid);
}

.form-note.is-error {
  color: var(--danger);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

/* ==========================================================================
   Connect Wallet Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-status-box {
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.wallet-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.wallet-row-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

.wallet-notice {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.wallet-error {
  margin: 0;
  padding: 10px 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--danger);
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-actions .btn-primary,
.wallet-actions .btn-secondary {
  flex: 1 1 auto;
}

/* ==========================================================================
   Responsive — Tablet & Mobile (390px dedicated cover)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "chamber"
      "specs";
    gap: 28px;
  }

  .pilot-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-title {
    max-width: 18ch;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .scenario-beats,
  .split-feature,
  .ledger-grid,
  .arch-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .beat-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .beat-item:last-child {
    border-bottom: 0;
  }

  .arch-bridge {
    padding: 14px 0;
  }

  .bridge-line {
    width: 1px;
    height: 18px;
    background: var(--ember);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  .container {
    padding: 0 16px;
  }

  /* Keep logo and Connect Wallet visible without hamburger menu */
  .site-nav {
    display: none;
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .btn-wallet {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .hero-grid {
    gap: 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .eyebrow-code {
    font-size: 11px;
    padding: 4px 8px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.07;
    margin-bottom: 12px;
    max-width: none;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-cta-row {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-cta-row .btn-primary {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-cta-row .btn-secondary {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-specs {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 18px;
  }

  .spec-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .spec-item dt {
    margin-bottom: 0;
  }

  .chamber-bar {
    padding: 10px 12px;
  }

  .chamber-job-id {
    display: none;
  }

  .chamber-footer {
    padding: 10px 12px;
  }

  .chamber-controls {
    width: 100%;
  }

  .chamber-controls .btn-chip {
    flex: 1;
    height: 36px;
  }

  .tile-id {
    font-size: 9px;
  }

  .section-mechanics,
  .section-band,
  .section-pilot {
    padding: 48px 0;
  }

  .section-head-split {
    gap: 18px;
  }

  .tab-bar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
  }

  .ledger-panel {
    padding: 20px;
  }

  .check-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .compare-head,
  .compare-row {
    grid-template-columns: 1fr 1fr;
    padding: 11px 12px;
    font-size: 12px;
  }

  .compare-head span:first-child,
  .compare-row .compare-key {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(242, 237, 228, 0.08);
  }

  .arch-layer {
    padding: 20px;
  }

  .beat-item {
    padding: 18px 16px;
  }

  .timeline-svg-wrap {
    padding: 14px 12px 10px;
  }

  .timeline-svg {
    min-width: 560px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 16px 32px 16px 0;
  }

  .pilot-form {
    padding: 20px;
  }

  .role-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tile-cell,
  .chamber-toast,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
}
