/* indexlogo.prvx.app - Fleet logo concept gallery */

:root {
  --bg: #0a0b0d;
  --ink: #e9edf1;
  --ink-dim: #8a929c;
  --panel: #14171b;
  --panel-line: #21262c;
  --brand: #ff7a1a;
  --chip: #1c2027;

  --card-radius: 14px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--panel-line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,122,26,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(60,120,255,0.08), transparent 55%);
}

.page-hero .eyebrow {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-hero h1 .hl {
  color: var(--brand);
}

.page-hero .sub {
  max-width: 780px;
  color: var(--ink-dim);
  font-size: 18px;
  margin-bottom: 28px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--panel-line);
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.chip-zero { border-color: rgba(255,122,26,0.6); }

/* Concepts */
main.wrap {
  padding-top: 48px;
  padding-bottom: 96px;
}

.concept {
  padding: 32px 0;
  border-bottom: 1px solid var(--panel-line);
}

.concept:last-of-type {
  border-bottom: none;
}

.concept-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.concept-head .num {
  font-family: ui-monospace, monospace;
  font-size: 56px;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.concept h2 {
  margin: 6px 0 8px;
  font-size: 26px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.concept p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 780px;
}

/* Grid of pair logos */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .concept-head { grid-template-columns: 64px 1fr; }
  .concept-head .num { font-size: 40px; }
}

@media (max-width: 560px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Pair rows (v0.3 pairs page - 3 distinct pair-cards per concept, 2 icons each) */
.pair-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pair-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--card-radius);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.pair-card:hover {
  border-color: rgba(255,122,26,0.4);
  transform: translateY(-2px);
}

.pair-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-line);
}

.pair-label .letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--chip);
  border: 1px solid var(--panel-line);
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}

.pair-glyphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pair-glyphs figure {
  padding: 18px 8px 12px;
  background: transparent;
  border: 1px dashed var(--panel-line);
  border-radius: 10px;
  gap: 10px;
}

.pair-glyphs figure:hover {
  transform: none;
  border-color: rgba(255,122,26,0.4);
  border-style: solid;
}

.pair-glyphs figure svg {
  width: 60px;
  height: 60px;
}

.pair-glyphs figure figcaption {
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .pair-row { grid-template-columns: 1fr; gap: 14px; }
}

/* Rule list on pairs page hero */
.rule-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 8px;
}
.rule-list li {
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--ink-dim);
  font-size: 14px;
}
.rule-list strong {
  color: var(--ink);
  font-family: ui-monospace, monospace;
  margin-right: 8px;
}

/* Back-link inline */
.backlink {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,122,26,0.4);
  padding-bottom: 1px;
}
.backlink:hover {
  border-bottom-color: var(--brand);
}

figure {
  margin: 0;
  padding: 24px 12px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

figure:hover {
  border-color: rgba(255,122,26,0.4);
  transform: translateY(-2px);
}

figure svg {
  width: 84px;
  height: 84px;
  color: var(--ink);
  display: block;
}

figure figcaption {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Lightbox (click any figure -> big central icon, no chrome) */
#lightbox {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

#lightbox[hidden] {
  display: none;
}

#lightbox svg {
  width: 70vmin;
  height: 70vmin;
  max-width: 820px;
  max-height: 820px;
  color: var(--ink);
  pointer-events: none;
  transform: scale(var(--scale, 1));
  transform-origin: center center;
  transition: transform 0.06s linear;
  will-change: transform;
}

figure {
  cursor: zoom-in;
}

/* Playground pages (/line, /circle) - interactive shape tuning */
.playground {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 40px 0 96px;
}

@media (max-width: 900px) {
  .playground { grid-template-columns: 1fr; }
}

.preview {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--card-radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.preview svg {
  width: min(400px, 100%);
  height: auto;
  color: var(--ink);
  aspect-ratio: 1 / 1;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-row {
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}

.slider-row label {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.slider-row .val {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--brand);
  min-width: 48px;
  text-align: right;
}

.slider-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--brand);
}

.mode-row {
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mode-row .lbl {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  margin-right: 4px;
}

.mode-row button {
  background: var(--chip);
  border: 1px solid var(--panel-line);
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.mode-row button:hover {
  border-color: rgba(255,122,26,0.5);
}

.mode-row button.active {
  background: var(--brand);
  color: #0a0b0d;
  border-color: var(--brand);
  font-weight: 700;
}

.readout {
  margin-top: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.55;
}

.copy-btn {
  margin-top: 8px;
  background: var(--brand);
  color: #0a0b0d;
  border: none;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.copy-btn:hover {
  filter: brightness(1.1);
}

.copy-btn.copied {
  background: #4ade80;
}

/* Footer */
.page-foot {
  padding: 40px 0 64px;
  border-top: 1px solid var(--panel-line);
  color: var(--ink-dim);
  font-size: 14px;
}

.page-foot code {
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink);
}

.dim {
  color: var(--panel-line);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
