/*
 * BlattCo Flagship Website -- Synthwave / Outrun Vector-Noir Stylesheet (T-004)
 * Pinned Palette (0 pure red):
 *   Obsidian Void: #000000 | Deep Glass: #09090e | Panel: #11111a
 *   Cyber Neon Yellow: #fcee0a | Hot Magenta: #ff2bd6
 *   Electric Violet: #b829ff | Ice Cyan: #38bdf8 | Matrix Emerald: #00f59b
 */

:root {
  --bg-void: #000000;
  --bg-glass: #000000;
  --bg-glass-legacy: #09090e;
  --bg-panel: #050505;
  --bg-elevated: #0a0a0a;
  --txt-main: #f3f4f8;
  --txt-muted: #9ca3be;
  --neon-yellow: #fcee0a;
  --neon-magenta: #ff2bd6;
  --neon-violet: #b829ff;
  --neon-cyan: #38bdf8;
  --neon-emerald: #00f59b;
  --border-dim: rgba(56, 189, 248, 0.24);
  --border-bright: rgba(252, 238, 10, 0.65);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: #000000;
  color: var(--txt-main);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  background-color: #000000;
  background-image: none;
  line-height: 1.55;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.txt-yellow { color: var(--neon-yellow); }
.txt-cyan { color: var(--neon-cyan); }
.txt-magenta { color: var(--neon-magenta); }
.txt-violet { color: var(--neon-violet); }
.txt-emerald { color: var(--neon-emerald); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.12rem 0.38rem;
  border-radius: 4px;
}

/* Telemetry Ribbon */
.telemetry-ribbon {
  background: #000000;
  border-bottom: 1px solid rgba(252, 238, 10, 0.28);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.4rem 0;
}

.ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ribbon-item {
  color: var(--txt-muted);
  letter-spacing: 0.04em;
}

.ribbon-portal-btn {
  background: rgba(255, 43, 214, 0.12);
  color: var(--neon-yellow);
  border: 1px solid var(--neon-magenta);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.22rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ribbon-portal-btn:hover {
  background: rgba(255, 43, 214, 0.28);
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--txt-main);
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 1.5px solid var(--neon-yellow);
  box-shadow: 0 0 22px rgba(252, 238, 10, 0.32);
  object-fit: cover;
  flex-shrink: 0;
  background: #000000;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  color: var(--neon-yellow);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-link {
  color: var(--txt-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--neon-yellow);
  background: rgba(252, 238, 10, 0.08);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-brand-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.hero-master-logo {
  width: 220px;
  height: 220px;
  border-radius: 14px;
  border: 2px solid var(--neon-yellow);
  box-shadow: 0 0 32px rgba(252, 238, 10, 0.28), 0 0 14px rgba(56, 189, 248, 0.22);
  object-fit: cover;
  flex-shrink: 0;
  background: #000000;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 43, 214, 0.45);
  background: rgba(255, 43, 214, 0.08);
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-lead {
  color: var(--txt-muted);
  font-size: 1.04rem;
  margin: 0 0 1.5rem;
  max-width: 64ch;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.65rem;
}

.stat-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
}

.stat-lbl {
  font-size: 0.74rem;
  color: var(--txt-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.72rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-primary {
  background: var(--neon-yellow);
  color: #000000;
  border: 1px solid var(--neon-yellow);
  box-shadow: 0 0 18px rgba(252, 238, 10, 0.28);
}

.btn-primary:hover {
  background: #fff44f;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.1);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-overwatch {
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.2), rgba(252, 238, 10, 0.2));
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.3);
}

.btn-overwatch:hover {
  background: var(--neon-yellow);
  color: #000000;
}

.btn-full {
  width: 100%;
}

/* Hero Tesseract Stage */
.hero-stage-card {
  background: #000000;
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.16);
  overflow: hidden;
}

.stage-header, .stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #000000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.stage-header {
  border-bottom: 1px solid var(--border-dim);
}

.stage-title {
  color: var(--neon-cyan);
  font-weight: 700;
}

.stage-status {
  color: var(--neon-yellow);
}

.canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
}

#hypercube-canvas {
  width: 100%;
  max-width: 460px;
  height: auto;
  cursor: crosshair;
  display: block;
  touch-action: none;
}

.stage-footer {
  border-top: 1px solid var(--border-dim);
  color: var(--txt-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

/* Sections */
.section-block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-dim);
}

.section-alt {
  background: #000000;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  color: var(--txt-main);
}

.cyber-input {
  background: #000000;
  color: var(--txt-main);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.62rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  width: 100%;
}

.cyber-input:focus {
  outline: none;
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(252, 238, 10, 0.25);
}

.search-box-wrap {
  min-width: 310px;
  flex: 0 1 380px;
}

/* Category Tabs & Arsenal Grid */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.65rem;
}

.cat-pill { background: var(--bg-panel); color: var(--txt-muted); border: 1px solid var(--border-dim); border-radius: 6px; padding: 0.5rem 0.9rem; font-family: var(--font-mono); font-size: 0.76rem; cursor: pointer; transition: all 0.15s ease; }
.cat-pill.active, .cat-pill:hover { color: #000000; background: var(--neon-yellow); border-color: var(--neon-yellow); font-weight: 700; }
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.35rem; }
.arsenal-card { background: var(--bg-panel); border: 1px solid var(--border-dim); border-radius: 10px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; }
.arsenal-card:hover { transform: translateY(-3px); border-color: var(--neon-yellow); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65); }
.card-top { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.85rem; }
.card-icon { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(252, 238, 10, 0.45); flex-shrink: 0; background: #000000; }
.card-status { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--neon-emerald); letter-spacing: 0.06em; }
.card-title { margin: 0.15rem 0 0.2rem; font-size: 1.15rem; color: var(--neon-yellow); }
.card-subtitle { margin: 0; font-size: 0.8rem; color: var(--neon-cyan); }
.card-summary { font-size: 0.88rem; color: var(--txt-muted); margin: 0 0 1rem; }
.stack-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.stack-tag { font-family: var(--font-mono); font-size: 0.7rem; background: rgba(184, 41, 255, 0.14); color: #e5c6ff; border: 1px solid rgba(184, 41, 255, 0.38); padding: 0.18rem 0.5rem; border-radius: 4px; }
.card-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; background: #000000; padding: 0.65rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.08); }
.metric-cell { display: flex; flex-direction: column; }
.metric-lbl { font-size: 0.68rem; color: var(--txt-muted); }
.metric-val { font-family: var(--font-mono); font-size: 0.78rem; color: var(--txt-main); font-weight: 700; }
.kujo-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.kujo-panel { background: var(--bg-panel); border: 1px solid var(--border-dim); border-radius: 10px; padding: 1.35rem; }
.panel-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-dim); padding-bottom: 0.85rem; }
.panel-head h3 { margin: 0; font-size: 1.05rem; color: var(--neon-yellow); }
.panel-sub { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--neon-cyan); }
.layer-checklist { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.86rem; color: var(--txt-muted); }
.layer-checklist strong { color: var(--txt-main); }
