/* =========================================================
   BALOS — Core Stylesheet
   Palette: near-black, white, silver/chrome glass
   Type: Space Grotesk (display) + Inter (body) + JetBrains Mono (data)
   ========================================================= */

:root {
  --ink: #0b0f16;          /* near-black text / surfaces */
  --ink-soft: #3a4250;     /* secondary text */
  --paper: #f7f8fa;        /* page background */
  --paper-raised: #ffffff; /* card background */
  --silver: #d7dce3;       /* borders, hairlines */
  --silver-strong: #aeb6c2;
  --chrome: #eef1f4;       /* subtle fills */
  --signal: #1f7a5c;       /* single accent: "monitoring active" green */
  --signal-soft: rgba(31, 122, 92, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-card: 0 1px 2px rgba(11, 15, 22, 0.04), 0 12px 32px -16px rgba(11, 15, 22, 0.18);
  --shadow-raised: 0 1px 2px rgba(11, 15, 22, 0.05), 0 24px 48px -20px rgba(11, 15, 22, 0.28);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faint engineering-grid backdrop, echoes "system running in the background" */
body {
  background-image:
    linear-gradient(rgba(11,15,22,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,15,22,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono {
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ---------- Status pill: the site's signature element ----------
   A live-monitoring indicator used across pages to reinforce that
   Balos runs continuously, not a one-off deliverable. */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--signal-soft);
  border: 1px solid rgba(31, 122, 92, 0.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(31, 122, 92, 0.55);
  animation: pulseDot 2.2s ease-out infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(31, 122, 92, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(31, 122, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 122, 92, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(11, 15, 22, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(11, 15, 22, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--silver-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn-on-dark:hover { border-color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
}

.nav-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  /* logo PNG is black-on-transparent; force it to white so it reads
     against the dark circle behind it */
  filter: brightness(0) invert(1);
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(11,15,22,0.05); }
.nav-links a.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(11,15,22,0.08); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--silver);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  margin: 18px 0 20px;
}

.hero-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Hero visual: a mock "compliance console" card — grounded in the
   real product rather than an abstract 3D shape */
.console {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: #e7eaef;
  box-shadow: var(--shadow-raised);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.console-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }

.console-title {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.console-body { padding: 22px; }

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.console-row:last-child { border-bottom: none; }

.console-tag {
  color: rgba(255,255,255,0.55);
}

.console-value { color: #e7eaef; font-weight: 600; }
.console-value.ok { color: #6fd7ad; }
.console-value.warn { color: #e9b872; }

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.divider {
  height: 1px;
  background: var(--silver);
  border: none;
}

/* ---------- Grid layouts ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tile {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile h3 { font-size: 18px; }
.tile p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver);
}

.step {
  background: var(--paper-raised);
  padding: 32px 28px;
  border-right: 1px solid var(--silver);
}
.step:last-child { border-right: none; }

.step-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--signal);
  margin-bottom: 14px;
  display: block;
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,0.65); margin-top: 10px; font-size: 14.5px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: #eef1f4; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--silver);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 34ch;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--ink); }

/* ---------- Social icon row (footer + contact page) ---------- */
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--silver-strong);
  color: var(--ink-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--silver);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Booking block (contact page) ---------- */
.booking-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver);
}

.booking-side {
  background: var(--ink);
  color: #fff;
  padding: 44px;
}

.booking-side h3 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.booking-side p { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 24px; }

.booking-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.booking-embed {
  padding: 44px;
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.embed-frame {
  min-height: 480px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--silver-strong);
  background: var(--chrome);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

#calendly-embed {
  min-height: 640px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.embed-frame p {
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 32ch;
}

/* ---------- Simple contact form (fallback to booking) ---------- */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.form-feedback {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--signal);
}

/* ---------- Page header (about / services / contact) ---------- */
.page-hero {
  padding: 60px 0 20px;
}

.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 14px; }
.page-hero p { color: var(--ink-soft); font-size: 16px; max-width: 56ch; margin-top: 16px; }

/* ---------- About page ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.founder-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  background: var(--chrome);
  border: 1px solid var(--silver);
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-list li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--silver);
}
.values-list li:first-child { padding-top: 0; }
.values-list li:last-child { border-bottom: none; }

.values-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--signal);
  flex-shrink: 0;
  width: 30px;
}

.values-list h4 { font-size: 16px; margin-bottom: 6px; }
.values-list p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Services page ---------- */
.service-row {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--silver);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }

.service-row h3 { font-size: 20px; margin-bottom: 8px; }
.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-detail p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }

.service-detail ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* ---------- Proof gallery (real product screenshots) ---------- */
.proof-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver);
  background: var(--ink);
  box-shadow: var(--shadow-card);
}

.proof-video video {
  width: 100%;
  display: block;
}

.proof-video-caption {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.proof-video-caption p {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proof-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--silver);
  background: var(--paper-raised);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.proof-shot {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--chrome);
  border-bottom: 1px solid var(--silver);
}

.proof-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.proof-caption {
  padding: 16px 18px;
}

.proof-caption span.eyebrow { margin-bottom: 6px; display: block; }
.proof-caption p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Utility ---------- */
.hidden { display: none; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
