/* ============================================================
   BHGroupAI landing page
   Design tokens + component styles (no inline styles in markup)
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0A1428;
  --bg-elevated: #0D1B33;
  --bg-footer: #060D1C;

  /* Text */
  --text: #E6EEF8;
  --text-strong: #E6EEF8;
  --text-muted: rgba(230, 238, 248, 0.72);
  --text-dim: rgba(230, 238, 248, 0.68);
  --text-faint: rgba(230, 238, 248, 0.6);
  --text-ghost: rgba(230, 238, 248, 0.45);

  /* Lines */
  --border: rgba(230, 238, 248, 0.1);
  --border-subtle: rgba(230, 238, 248, 0.08);
  --border-field: rgba(230, 238, 248, 0.15);

  /* Brand */
  --accent: #00D4FF;
  --on-accent: #071020;
  --live: #FF4D4D;

  /* Type */
  --font-display: 'Space Grotesk', Helvetica, sans-serif;
  --font-body: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --font-mono: monospace;

  /* Layout */
  --container: 1180px;
  --section-y: 96px;
  --section-x: 48px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 16px;
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  color: var(--text);
  font-family: var(--font-body);
  min-width: 320px;
}

h1, h2, h3, p { margin: 0; }

img { display: block; }

a { color: inherit; }

::placeholder { color: rgba(230, 238, 248, 0.35); }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--section-x);
}

.section {
  border-top: 1px solid var(--border-subtle);
}

.section--elevated { background: var(--bg-elevated); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  text-wrap: balance;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--sm { font-size: 15px; padding: 10px 22px; border-radius: var(--radius-sm); }
.btn--lg { font-size: 16px; padding: 14px 30px; }
.btn--block { width: 100%; padding: 14px; font-size: 16px; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(1.12); }

.btn--ghost {
  color: var(--text);
  font-weight: 500;
  border: 1px solid rgba(230, 238, 248, 0.25);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Logo mark (scalable via CSS vars)
   ============================================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand__name em { color: var(--accent); font-style: normal; }

.logo-mark {
  --size: 30px;
  --bracket: 9px;
  --bw: 2.5px;
  --ring: 12px;
  --dot: 4px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: none;
}

.logo-mark--sm {
  --size: 24px;
  --bracket: 7px;
  --bw: 2px;
  --ring: 10px;
  --dot: 3px;
}

.logo-mark__corner {
  position: absolute;
  width: var(--bracket);
  height: var(--bracket);
}
.logo-mark__corner--tl { top: 0; left: 0; border-top: var(--bw) solid var(--accent); border-left: var(--bw) solid var(--accent); border-top-left-radius: 5px; }
.logo-mark__corner--tr { top: 0; right: 0; border-top: var(--bw) solid var(--accent); border-right: var(--bw) solid var(--accent); border-top-right-radius: 5px; }
.logo-mark__corner--bl { bottom: 0; left: 0; border-bottom: var(--bw) solid var(--accent); border-left: var(--bw) solid var(--accent); border-bottom-left-radius: 5px; }
.logo-mark__corner--br { bottom: 0; right: 0; border-bottom: var(--bw) solid var(--accent); border-right: var(--bw) solid var(--accent); border-bottom-right-radius: 5px; }

.logo-mark__ring,
.logo-mark__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.logo-mark__ring { width: var(--ring); height: var(--ring); border: var(--bw) solid var(--accent); }
.logo-mark__dot { width: var(--dot); height: var(--dot); background: var(--accent); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--section-x);
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  flex: none;
  border: 1px solid rgba(230, 238, 248, 0.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button + button { border-left: 1px solid rgba(230, 238, 248, 0.12); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--text); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--section-x) 110px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Live camera feed */
.feed {
  position: relative;
  aspect-ratio: 1140 / 588;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 238, 248, 0.12);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.feed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed__badge {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  background: rgba(7, 16, 32, 0.65);
  padding: 4px 10px;
  border-radius: 6px;
}

.feed__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
  animation: bh-scan 5s ease-in-out infinite;
}

@keyframes bh-scan {
  0%   { top: 4%;  opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { top: 94%; opacity: 0.85; }
  60%  { opacity: 0; }
  100% { top: 4%;  opacity: 0; }
}

/* ============================================================
   Cards / grids
   ============================================================ */

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card--hover { transition: border-color 0.18s ease; }
.card--hover:hover { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }

.card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* Solution icon badge + glyphs */
.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  display: grid;
  place-items: center;
}

.glyph { width: 18px; height: 18px; border: 2px solid var(--accent); }
.glyph--square { border-radius: 4px; }
.glyph--circle { border-radius: 50%; }
.glyph--diamond { transform: rotate(45deg); border-radius: 3px; }
.glyph--bars { border-radius: 3px; display: flex; align-items: flex-end; }
.glyph--bars::after { content: ""; width: 100%; height: 8px; background: var(--accent); }

/* ============================================================
   How it works
   ============================================================ */

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0;
}

.step__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.step__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ============================================================
   Why us
   ============================================================ */

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}

.reason {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.reason__marker {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.reason__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}
.reason__text strong { color: var(--text-strong); font-weight: 600; }

/* ============================================================
   Who it's for
   ============================================================ */

.audience-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audience-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.audience-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ============================================================
   Proof
   ============================================================ */

.proof-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.proof-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.proof-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof-card__img--left-top { object-position: left top; }
.proof-card__img--top { object-position: top; }

.proof-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
}

.stat__unit {
  font-size: 14px;
  color: var(--text-faint);
}

.proof-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--section-x);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.contact__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  font-size: 15px;
}

.meta-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.meta-row__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  width: 76px;
  flex: none;
}

.meta-row__value { color: rgba(230, 238, 248, 0.8); }

/* Form */
.form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(230, 238, 248, 0.85);
}

.field-group__optional { font-weight: 400; color: var(--text-ghost); }

.field {
  background: var(--bg);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.field:focus { border-color: var(--accent); }
.field--textarea { resize: vertical; }

/* Honeypot — off-screen, never shown to real users. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}
.form__status--ok { color: var(--accent); }
.form__status--error { color: #ff6b6b; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-footer);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(230, 238, 248, 0.55);
}

.footer__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-faint);
}

.footer-link {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-link:hover { color: var(--accent); }

.footer__copy {
  border-top: 1px solid rgba(230, 238, 248, 0.07);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-ghost);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 940px) {
  .hero,
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .grid-2,
  .grid-3,
  .reasons { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 20px; }
}

@media (max-width: 720px) {
  :root { --section-y: 64px; --section-x: 22px; }
  .nav { padding: 16px 22px; }
  .nav__links { display: none; }
  .nav__right { gap: 0; }
  .hero { padding: 56px 22px 64px; }
  .footer__inner { padding: 40px 22px; }
  .hero__title { font-size: 38px; }
  .section-title,
  .contact__title { font-size: 30px; }
  .grid-4 { grid-template-columns: 1fr; }
}
