/* ============================================
   xos — Website Styles
   Warm-neutral brand system (locked 2026-07-19).
   Palette source: o/what/orgs/com/iwl/iamox/brand/ox-xos-brand-system.md
   Replaces the prior GitHub-Primer-derived (#0D1117) 26-slide deck.
   ============================================ */

:root {
  --bg: #13110D;
  --bg-card: #1C1913;
  --bg-elevated: #221E17;
  --border: #33302A;
  --text: #E8E4DB;
  --text-secondary: #BDB6A9;
  --text-muted: #8F8878;
  --cyan: #00F0FF;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --orange: #FF9F1C;
  --orange-dim: rgba(255, 159, 28, 0.15);
  --seal-red: #C8461E;
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

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

code {
  font-family: var(--font-mono);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.wrap {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  color: var(--text-muted);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

/* ============================================
   BACKGROUND GRID (warm neutral, per brand doc)
   ============================================ */
.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 136, 120, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 136, 120, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.grid-bg > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER — pixel ox-head masthead (xos surface,
   per the mark-usage matrix: never mixed with the
   brush mark in the same masthead)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 17, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-lockup img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.brand-lockup .wordmark {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-lockup .wordmark .bracket {
  color: var(--text-muted);
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav.site-nav a.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

.nav-link-disabled {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.55;
  cursor: default;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.15rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--cyan);
  color: #0A0908;
  box-shadow: 0 0 0 rgba(0, 240, 255, 0);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 640px) {
  nav.site-nav a.nav-link { display: none; }
}

/* ============================================
   HERO — placeholder visual slot.
   McKelly is choosing a JS-driven hero visual from
   10 concepts (2026-07-19 steer); this is deliberately
   NOT a slogan-led hero. `.hero-visual` is the named
   slot a future JS visual drops into/replaces. What's
   here now (a breathing pixel ox-head) is an honest
   CSS-only placeholder, not the intended final hero.
   ============================================ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vw, 6rem) 0;
}

.hero .eyebrow {
  margin-bottom: 2.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  margin-bottom: 2rem;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  filter: blur(8px);
  animation: hero-pulse 4s ease-in-out infinite;
}

.hero-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px var(--cyan-glow));
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero .subhead {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.hero .btn-primary,
.hero .btn-secondary {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

/* ============================================
   SECTION SHELL
   ============================================ */
section.block {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--border);
}

.block-header {
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.block-header h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0.75rem 0 0.9rem;
}

.block-header .lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ============================================
   CONCEPT BLOCK — kb · code · media · bin
   ============================================ */
.registry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .registry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .registry-grid { grid-template-columns: 1fr; }
}

.registry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.registry-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.registry-card .glyph {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.75rem;
}

.registry-card h3 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: lowercase;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.registry-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.terminal-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.terminal-block .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-block .terminal-header .dots {
  display: flex;
  gap: 0.3rem;
}

.terminal-block .terminal-header .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-block .terminal-body {
  padding: 1.1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-x: auto;
}

.terminal-block .tree-line {
  white-space: pre;
}

.t-cyan { color: var(--cyan); }
.t-orange { color: var(--orange); }
.t-muted { color: var(--text-muted); }

/* ============================================
   OX ONTOLOGY SECTION — brush ensō, own block,
   never mixed with the pixel-head masthead mark.
   ============================================ */
.ox-section {
  background: radial-gradient(ellipse at top left, rgba(255, 159, 28, 0.05), transparent 60%),
              var(--bg);
}

.ox-section .ox-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 780px) {
  .ox-section .ox-layout {
    grid-template-columns: 1fr;
  }
}

.ox-mark-frame {
  display: flex;
  justify-content: center;
}

.ox-mark-frame img {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.ox-section .eyebrow { color: var(--orange); }

.ox-section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin: 0.75rem 0 1rem;
}

.ox-section p.lede {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.dimension-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dimension-chip {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

.dimension-chip .d-key {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.dimension-chip .d-gloss {
  color: var(--text-muted);
}

.ox-footnote {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ox-footnote .seal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--seal-red);
  margin-right: 0.4em;
}

/* ============================================
   CTA BLOCK
   ============================================ */
.cta-block {
  text-align: center;
}

.cta-block .block-header {
  max-width: 44ch;
  margin: 0 auto 2.25rem;
}

.cta-block .terminal-block {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.cta-block .terminal-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.cta-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-block .btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .brand-lockup img { width: 20px; height: 20px; }
.site-footer .brand-lockup .wordmark { font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.footer-link-disabled {
  opacity: 0.55;
  cursor: default;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   SCROLL-IN ANIMATION
   ============================================ */
.anim-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-in.visible {
  opacity: 1;
  transform: translateY(0);
}
