/* ═══════════════════════════════════════════════════
   BRMH AI — Marketing site
   Dark slate theme · no blue · emerald accent
   System font stack · zero dependencies
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #0e0e10;
  --bg-elev: #131316;
  --bg-card: #16161a;
  --bg-input: #1a1a1f;
  --border: #3f3f46;
  --border-soft: #2a2a30;
  --text: #e4e4e7;
  --text-dim: #a1a1aa;
  --text-mute: #71717a;
  --accent: #10b981;        /* emerald — semantic "live/success" */
  --accent-dim: #059669;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --amber: #f59e0b;
  --red: #ef4444;
  --ok: #10b981;
  --no: #71717a;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

img, svg { vertical-align: middle; }

::selection { background: var(--accent-soft); color: var(--accent); }

/* ── scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2e2e33; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: var(--font);
}
.btn i { width: 16px; height: 16px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent);
  color: #06120d;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dim); color: #06120d; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-dim); background: var(--bg-card); }

/* ── nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.brand-name { font-family: var(--mono); letter-spacing: 0.02em; }
.brand-accent { color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle i { width: 20px; height: 20px; display: block; }

/* ── hero ── */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 800px 400px at 20% -10%, rgba(16,185,129,0.08), transparent),
    radial-gradient(ellipse 600px 300px at 90% 10%, rgba(245,158,11,0.05), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(120deg, #34d399, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-sub em {
  color: var(--text);
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 0.9em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.hero-points i { width: 17px; height: 17px; color: var(--ok); }

/* ── terminal ── */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red { background: var(--red); opacity: 0.8; }
.t-yellow { background: var(--amber); opacity: 0.8; }
.t-green { background: var(--accent); opacity: 0.8; }
.t-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terminal-body .line {
  color: var(--text);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.terminal-body .line.visible { opacity: 1; transform: none; }
.terminal-body.done .line::after { display: none; }
.terminal-body .dim { color: var(--text-dim); }
.terminal-body .muted { color: var(--text-mute); }
.terminal-body .ok { color: var(--ok); }
.terminal-body .strong { font-weight: 700; }
.terminal-body .prompt { color: var(--accent); margin-right: 6px; }
.terminal-body .line::after {
  content: "";
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── providers strip ── */
.providers { margin-top: 72px; text-align: center; }
.providers-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.providers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}
.providers-row span {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
  opacity: 0.8;
  transition: opacity 0.15s, color 0.15s;
}
.providers-row span:hover { opacity: 1; color: var(--text); }

/* ── sections shared ── */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 800;
}
.section-sub { color: var(--text-dim); font-size: 16px; }

/* ── cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; }

/* ── problem ── */
.problem { background: var(--bg-elev); border-bottom: 1px solid var(--border-soft); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.problem-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius);
  padding: 20px 28px;
  max-width: 780px;
  margin: 0 auto;
}
.problem-banner i { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.problem-banner p { color: var(--text-dim); font-size: 15px; }
.problem-banner strong { color: var(--text); }

/* ── how it works ── */
.layers { max-width: 720px; margin: 0 auto; }
.layer {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.layer-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.layer-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.layer-body h3 i { width: 18px; height: 18px; color: var(--accent); }
.layer-body p { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.layer-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.layer-list li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.layer-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
}
.layer-arrow { display: flex; justify-content: center; padding: 10px 0; }
.layer-arrow i { width: 18px; height: 18px; color: var(--text-mute); }

.flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 56px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 28px;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.flow-num { font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.flow-step p { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.flow-step.accent p { color: var(--accent); }
.flow-step.accent .flow-num { color: var(--accent); }
.flow-arrow { width: 16px; height: 16px; color: var(--text-mute); flex-shrink: 0; }

/* ── features ── */
.features { border-top: 1px solid var(--border-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── compare ── */
.compare { background: var(--bg-elev); border-top: 1px solid var(--border-soft); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.compare-table td.row-label {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}
.compare-table .col-brmh {
  background: var(--accent-soft);
  border-left: 1px solid rgba(16,185,129,0.25);
  border-right: 1px solid rgba(16,185,129,0.25);
  color: var(--text);
}
.compare-table th.col-brmh {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.compare-table td.col-brmh { font-size: 13px; }
.compare-table td.strong { font-weight: 600; }
.compare-table .ok { width: 16px; height: 16px; color: var(--ok); }
.compare-table .no { width: 15px; height: 15px; color: var(--no); }

/* ── metrics ── */
.metrics { background: var(--bg); border-top: 1px solid var(--border-soft); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric-value {
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.metric-value .unit { font-size: 0.5em; color: var(--accent); }
.metric-value .plus { color: var(--accent); }
.metric-label { color: var(--text-mute); font-size: 13px; margin-top: 6px; }

/* ── roadmap ── */
.roadmap { border-top: 1px solid var(--border-soft); }
.timeline { max-width: 640px; margin: 0 auto; position: relative; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border-soft);
}
.tl-item { position: relative; padding: 0 0 32px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -36px; top: 4px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-dot i { width: 14px; height: 14px; }
.tl-item.done .tl-dot { border-color: var(--accent); }
.tl-item.done .tl-dot i { color: var(--accent); }
.tl-item.active .tl-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2s infinite;
}
.tl-item.active .tl-dot i { color: var(--accent); animation: spin 2s linear infinite; }
.tl-item.future .tl-dot { opacity: 0.5; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0.05); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.tl-body h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.tl-body p { color: var(--text-dim); font-size: 14px; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 1px;
}
.tag-done { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(16,185,129,0.3); }
.tag-active { color: var(--amber); background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); }

/* ── pricing ── */
.pricing { background: var(--bg-elev); border-top: 1px solid var(--border-soft); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.15), 0 16px 48px rgba(0,0,0,0.35);
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #06120d;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 17px; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price .amount { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.price .period { color: var(--text-mute); font-size: 14px; }
.price-desc { color: var(--text-mute); font-size: 13px; margin-bottom: 20px; }
.price-list { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.price-list i { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

/* ── cta ── */
.cta { background: var(--bg); }
.cta-box {
  text-align: center;
  background:
    radial-gradient(ellipse 600px 300px at 50% -20%, rgba(16,185,129,0.1), transparent),
    var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 72px 32px;
}
.cta-box h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.015em; margin-bottom: 12px; }
.cta-box p { color: var(--text-dim); font-size: 16px; max-width: 520px; margin: 0 auto 32px; }
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-form input::placeholder { color: var(--text-mute); }
.cta-note { font-size: 13px !important; margin-top: 16px !important; min-height: 20px; }
.cta-note.ok { color: var(--accent) !important; }

/* ── footer ── */
.footer { border-top: 1px solid var(--border-soft); padding: 64px 0 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-tag { color: var(--text-mute); font-size: 13px; margin-top: 14px; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer-meta i { width: 15px; height: 15px; color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links a { color: var(--text-mute); display: inline-flex; align-items: center; gap: 4px; }
.footer-links a:hover { color: var(--text); }
.footer-links i { width: 13px; height: 13px; }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-links.open a { padding: 10px 0; }
  .problem-grid, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .cta-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 72px 0; }
}
