/* ═══════════════════════════════════════════════════════════════
   UPLABS BRUTALIST — Master CSS
   Bloomberg-terminal × ledger printout × engineering datasheet
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ===================== TOKENS ===================== */
.bru {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --dim: #888;
  --line: #2a2a2a;
  --line-dim: #1a1a1a;
  --paper: #f0eee5;
  --paper-2: #e6e3d6;
  --paper-3: #faf8ef;

  --acid: #cfff5e;
  --orange: #ff6b3d;
  --warn: #ffd23f;
  --rose: #ff4a6b;

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', system-ui, sans-serif;
}
.bru[data-accent="acid"]    { --acid: #cfff5e; }
.bru[data-accent="cyan"]    { --acid: #5dd8ff; }
.bru[data-accent="amber"]   { --acid: #ffaf3d; }
.bru[data-accent="magenta"] { --acid: #ff5de8; }

.bru {
  background: var(--paper);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
.bru * { box-sizing: border-box; }
.bru a { color: inherit; }
.bru img { max-width: 100%; }

/* ===================== STATUS BAR ===================== */
.bru-status {
  background: var(--bg);
  color: var(--fg);
  padding: 8px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.bru-status .ok { color: var(--acid); }
.bru-status .warn { color: var(--warn); }
.bru-status b { font-weight: 700; color: var(--fg); }
.bru-status .blink {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--acid);
  vertical-align: middle;
  margin-right: 8px;
  animation: bru-blink 1.6s steps(2) infinite;
}
@keyframes bru-blink { 50% { opacity: 0.3; } }

/* ===================== HEADER / NAV ===================== */
.bru-header {
  border-bottom: 2px solid var(--bg);
  padding: 18px 24px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bru-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--bg);
}
.bru-logo::after {
  content: "_";
  color: var(--acid);
  filter: drop-shadow(0 0 4px var(--acid));
  margin-left: 2px;
  animation: bru-blink 1s steps(2) infinite;
}
.bru-nav {
  display: flex;
  gap: 0;
  font-family: var(--mono);
  font-size: 12px;
}
.bru-nav a {
  color: var(--bg);
  text-decoration: none;
  padding: 6px 14px;
  border-right: 1px solid var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.bru-nav a:first-child { border-left: 1px solid var(--bg); }
.bru-nav a:hover, .bru-nav a.active { background: var(--bg); color: var(--acid); }
.bru-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg);
  color: var(--acid);
  padding: 10px 18px;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.bru-cta:hover { background: var(--acid); color: var(--bg); }
.bru-cta::before { content: "▶ "; }

/* ===================== BUTTONS ===================== */
.bru-btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  background: var(--acid);
  color: var(--bg);
  padding: 14px 24px;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}
.bru-btn::before { content: "[ "; }
.bru-btn::after { content: " ]"; }
.bru-btn:hover { background: var(--bg); color: var(--acid); }
.bru-btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 1px solid var(--bg);
}
.bru-btn-ghost:hover { background: var(--bg); color: var(--acid); }
.bru-btn-dark {
  background: var(--acid);
  color: var(--bg);
}
.bru-btn-dark.on-dark {
  background: var(--acid);
  color: var(--bg);
}

/* ===================== HERO TERMINAL ===================== */
.bru-hero {
  background: var(--bg);
  color: var(--fg);
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 64px;
  border-bottom: 2px solid var(--bg);
  position: relative;
  overflow: hidden;
}
.bru-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 23px, rgba(255,255,255,0.018) 23px, rgba(255,255,255,0.018) 24px);
  pointer-events: none;
}
.bru-hero-prompt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 32px;
}
.bru-hero-prompt b { color: var(--acid); font-weight: 500; }
.bru-hero-prompt .cursor {
  display: inline-block;
  width: 9px; height: 14px;
  background: var(--acid);
  vertical-align: middle;
  margin-left: 4px;
  animation: bru-blink 1s steps(2) infinite;
}
.bru-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 92px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.bru-hero h1 .acid { color: var(--acid); font-weight: 800; }
.bru-hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 4px;
  color: var(--dim);
}
.bru-hero-deck {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 56ch;
  margin: 0 0 36px;
}
.bru-hero-deck b { color: var(--fg); font-weight: 500; }
.bru-hero-actions { display: flex; gap: 12px; }
.bru-hero-actions .bru-btn-ghost { color: var(--fg); border-color: var(--line); }
.bru-hero-actions .bru-btn-ghost:hover { border-color: var(--acid); color: var(--acid); background: transparent; }

/* Terminal panel in hero */
.bru-term {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  height: fit-content;
  position: relative;
  z-index: 1;
}
.bru-term-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.02);
}
.bru-term-bar .dots { display: flex; gap: 4px; }
.bru-term-bar .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.bru-term-bar .dots span:nth-child(1) { background: var(--orange); }
.bru-term-bar .dots span:nth-child(2) { background: var(--warn); }
.bru-term-bar .dots span:nth-child(3) { background: var(--acid); }
.bru-term-body {
  padding: 16px 14px;
  color: var(--fg);
  line-height: 1.7;
  margin: 0;
  white-space: pre;
  font-family: var(--mono);
}
.bru-term-body .pp { color: var(--acid); }
.bru-term-body .dim { color: var(--dim); }
.bru-term-body .ok { color: var(--acid); }
.bru-term-body .warn { color: var(--warn); }
.bru-term-body .key { color: var(--orange); }
.bru-term-body .num { color: var(--acid); }
.bru-term-body .tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--line);
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* ===================== TICKER ===================== */
.bru-ticker {
  background: var(--paper);
  border-bottom: 2px solid var(--bg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bru-ticker > div {
  padding: 20px 24px;
  border-right: 1px solid var(--bg);
}
.bru-ticker > div:last-child { border-right: 0; }
.bru-ticker .label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bru-ticker .label::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--acid);
  display: inline-block;
}
.bru-ticker .num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.bru-ticker .num small {
  font-size: 22px;
  color: var(--bg);
  font-weight: 500;
  margin-left: 4px;
}

/* ===================== SECTIONS ===================== */
.bru-section {
  padding: 56px 24px 64px;
  border-bottom: 2px solid var(--bg);
}
.bru-section.dark { background: var(--bg); color: var(--fg); }
.bru-section.dark a { color: var(--fg); }

.bru-section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: end;
  border-bottom: 1px solid var(--bg);
  padding-bottom: 14px;
  margin-bottom: 32px;
}
.bru-section.dark .bru-section-head { border-bottom-color: var(--line); }
.bru-section-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
}
.bru-section.dark .bru-section-tag { color: var(--dim); }
.bru-section-tag::before { content: "# "; color: var(--orange); }
.bru-section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.bru-section h2 .acid { color: var(--acid); }
.bru-section-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  text-align: right;
}
.bru-section-meta b { color: var(--bg); }
.bru-section.dark .bru-section-meta b { color: var(--fg); }

/* ===================== SERVICES (CODE-STYLE CARDS) ===================== */
.bru-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--bg);
  background: var(--bg);
  font-family: var(--mono);
}
.bru-services article {
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: var(--bg);
  transition: background 100ms;
  cursor: pointer;
}
.bru-services article:hover { background: var(--paper-3); }
.bru-services article:not(:last-child) { border-right: 1px solid var(--bg); }
.bru-services .tag-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bru-services .id {
  background: var(--bg);
  color: var(--acid);
  padding: 3px 8px;
}
.bru-services .pill {
  border: 1px solid var(--bg);
  padding: 2px 7px;
  color: var(--bg);
}
.bru-services h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.bru-services .desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--bg);
  margin: 0;
}
.bru-services pre {
  background: var(--bg);
  color: var(--fg);
  padding: 14px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  overflow: hidden;
  font-family: var(--mono);
  white-space: pre;
}
.bru-services pre .cm { color: var(--dim); }
.bru-services pre .kw { color: var(--orange); }
.bru-services pre .st { color: var(--acid); }
.bru-services pre .nm { color: var(--warn); }
.bru-services pre .dim { color: var(--dim); }
.bru-services .more {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid var(--bg);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: auto;
}
.bru-services .more::before { content: "$ "; color: var(--orange); }
.bru-services article:hover .more { color: var(--orange); border-bottom-color: var(--orange); }

/* ===================== VENTURES GRID ===================== */
.bru-ventures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--bg);
  background: var(--bg);
}
.bru-ventures article {
  background: var(--paper);
  padding: 24px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: background 100ms;
  text-decoration: none;
  color: var(--bg);
  min-height: 220px;
}
.bru-ventures article:hover { background: var(--paper-3); }
.bru-ventures article:nth-child(3n+1):not(:last-child),
.bru-ventures article:nth-child(3n+2):not(:last-child) { border-right: 1px solid var(--bg); }
.bru-ventures article:not(:nth-last-child(-n+3)) { border-bottom: 1px solid var(--bg); }
.bru-ventures .v-id {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
}
.bru-ventures .v-id b { color: var(--bg); }
.bru-ventures h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0;
}
.bru-ventures .v-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--bg);
  margin: 0;
  flex: 1;
}
.bru-ventures .v-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--dim);
  text-transform: uppercase;
  border-top: 1px dashed var(--bg);
  padding-top: 10px;
  margin-top: 4px;
}
.bru-ventures .v-meta b { color: var(--bg); display: block; font-weight: 500; }
.bru-ventures .v-arrow {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 16px;
  color: var(--bg);
}
.bru-ventures article:hover .v-arrow { color: var(--orange); }

/* ===================== PROCESS BAR (DARK) ===================== */
.bru-process {
  background: var(--bg);
  color: var(--fg);
  padding: 56px 24px;
  border-bottom: 2px solid var(--bg);
}
.bru-process h2 {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 32px;
}
.bru-process h2 .acid { color: var(--acid); }
.bru-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bru-process-grid > div {
  padding: 22px 18px 24px;
  border-right: 1px solid var(--line);
}
.bru-process-grid > div:last-child { border-right: 0; }
.bru-process-grid .pn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--acid);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}
.bru-process-grid h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.bru-process-grid p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
}

/* ===================== CTA STRIP ===================== */
.bru-cta-strip {
  background: var(--acid);
  color: var(--bg);
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  border-bottom: 2px solid var(--bg);
}
.bru-cta-strip h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.bru-cta-strip p {
  font-family: var(--mono);
  font-size: 14px;
  margin: 0;
  max-width: 56ch;
}
.bru-cta-strip .actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.bru-cta-strip .bru-btn { background: var(--bg); color: var(--acid); }
.bru-cta-strip .bru-btn:hover { background: var(--paper); color: var(--bg); }
.bru-cta-strip .bru-btn-ghost { background: transparent; color: var(--bg); border-color: var(--bg); }
.bru-cta-strip .bru-btn-ghost:hover { background: var(--bg); color: var(--acid); }

/* ===================== FOOTER ===================== */
.bru-foot {
  background: var(--bg);
  color: var(--fg);
  padding: 56px 24px 28px;
}
.bru-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
.bru-foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--acid);
  margin: 0 0 14px;
  font-weight: 500;
}
.bru-foot ul { list-style: none; padding: 0; margin: 0; }
.bru-foot li { margin-bottom: 8px; }
.bru-foot a {
  color: var(--fg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.bru-foot a:hover { color: var(--acid); }
.bru-foot .ascii {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--acid);
  white-space: pre;
  margin: 0 0 16px;
}
.bru-foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
