/* Yard Registry — Jamaica Business Intelligence */
:root {
  --bg: #0D1A12;
  --bg-1: #0f1a14;
  --bg-2: #131F17;
  --surface: #1A2B1F;
  --surface-2: #1f3025;
  --border: #1F3028;
  --border-2: #263d30;
  --text: #E8EDE9;
  --text-2: #6B8F74;
  --text-3: #62886d; /* lifted from #4a6854 (~2.8:1, failed WCAG AA) to ~4:1 while staying a step below --text-2 */
  --gold: #F9A825;
  --gold-soft: #fbc04a;
  --emerald: #22c55e;
  --emerald-soft: #4ade80;
  --navy: #2d4a8a;
  --red: #ef5a6f;
  --grid: rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  /* Operational-grade numerals: every digit occupies the same width so metrics
     never shift during refresh. Locks Yard Registry into the Bloomberg/Datadog
     visual category instead of generic SaaS. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.mono {
  font-family: 'DM Mono', 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Shared operational status bar — used across all primary pages */
.op-status-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.op-status-bar .inner {
  max-width: 1320px; margin: 0 auto; padding: 8px 32px;
  display: flex; align-items: center; gap: 14px;
  font-family: 'DM Mono', 'IBM Plex Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; overflow-x: auto;
  font-variant-numeric: tabular-nums;
}
.op-status-bar .inner::-webkit-scrollbar { display: none; }
.op-status-bar .dot {
  width: 6px; height: 6px; border-radius: 100px;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: op-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.op-status-bar b { color: var(--text); font-weight: 500; }
.op-status-bar .spacer { color: var(--text-3); opacity: 0.5; }
.op-status-bar a.status-link {
  color: var(--text-3); text-decoration: none;
  margin-left: auto; padding-left: 14px;
  transition: color .15s;
}
.op-status-bar a.status-link:hover { color: var(--text); }
@keyframes op-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
@media (max-width: 720px) {
  .op-status-bar .inner { padding: 8px 16px; gap: 10px; }
  .op-status-bar .hide-sm { display: none; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.shell { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

/* Type */
h1, h2, h3, h4 { margin: 0; font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 72px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--gold);
}
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.gold { color: var(--gold); }
.emerald { color: var(--emerald); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: #081A0E;
  font-weight: 600;
}
.btn-primary:hover { background: #16a34a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.25); }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.07); border-color: #3a4555; }
.btn-ghost { color: var(--text-2); padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); }
.btn-gold {
  background: var(--gold);
  color: #1a1305;
  font-weight: 550;
}
.btn-gold:hover { background: var(--gold-soft); }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(212,169,59,0.3), transparent 40%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
.dot-bg {
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Status chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.chip-red { color: #ef5a6f; }
.chip-amber { color: var(--gold); }
.chip-emerald { color: var(--emerald); }
.chip-blue { color: #5aa6ef; }

/* Pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.2; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  background: rgba(7,9,12,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: -0.015em;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo > span { white-space: nowrap; }
.nav-logo-mark {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold) 0%, #8a6a1f 100%);
  position: relative;
  display: grid; place-items: center;
  color: #1a1305;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(212,169,59,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.nav-links { display: flex; gap: 0; align-items: center; margin-left: 16px; }
.nav-link {
  font-size: 13px;
  color: var(--text-2);
  padding: 7px 10px;
  border-radius: 5px;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.has-caret::after {
  content: '▾'; margin-left: 4px; font-size: 9px; opacity: 0.6;
}

/* hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.burger-bar {
  display: block; width: 20px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* mobile dropdown */
.nav-mobile-menu {
  position: sticky; top: 64px; z-index: 49;
  background: rgba(10,13,18,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile-link {
  font-size: 15px; color: var(--text-2);
  padding: 10px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  font-family: inherit;
}
.nav-mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-mobile-divider {
  height: 1px; background: var(--border); margin: 6px 0;
}

/* Ambient glow */
@media (max-width: 1180px) {
  .nav-link.hide-md { display: none; }
}
@media (max-width: 1000px) {
  .nav-link.hide-sm { display: none; }
  .nav-cta .btn-ghost { display: none; }
}
