/* babacapital.app — design system mirrored from the PWA (ops/pwa/serve/index.html) */

:root {
  --bg: #0a0e1a;
  --surface: #131826;
  --surface-2: #1a2034;
  --surface-3: #232b44;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f0f3fa;
  --text-2: #b6c0d6;
  --text-3: #6e7a96;
  --green: #30d158;
  --red: #ff453a;
  --amber: #ffd60a;
  --blue: #0a84ff;
  --purple: #bf5af2;
  --teal: #64d2ff;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

/* Sticky blurred header (mirrors the PWA's app-header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms, color 120ms;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.cta {
  background: var(--blue);
  color: white;
  padding: 8px 16px;
  font-weight: 600;
}
.nav a.cta:hover { background: #1e8eff; color: white; }
.nav a.active { color: var(--text); background: var(--surface-2); }

/* Content */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  position: relative;
}
.hero h1 {
  margin: 14px 0 22px;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.6px;
  max-width: 900px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .sub {
  font-size: 19px;
  color: var(--text-2);
  max-width: 680px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  transition: transform 80ms, background 120ms;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #1e8eff; color: white; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-accent { background: var(--teal); color: var(--bg); }
.btn-accent:hover { background: #84dcff; }
.btn:active { transform: scale(0.97); }

/* Section primitives */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section.no-rule { border-top: none; }
section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}
section .h-sub {
  color: var(--text-2);
  font-size: 17px;
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 48px;
}

/* Card grid (mirrors PWA's status-grid + venue-tile) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color 120ms, transform 120ms;
}
.card:hover { border-color: var(--border-strong); }
.card .card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.card .card-eyebrow.blue { color: var(--blue); }
.card .card-eyebrow.teal { color: var(--teal); }
.card .card-eyebrow.green { color: var(--green); }
.card .card-eyebrow.amber { color: var(--amber); }
.card .card-eyebrow.purple { color: var(--purple); }
.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}
.card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.card .card-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Pills (mirrors PWA) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pill.fresh { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.pill.amber { background: rgba(255, 214, 10, 0.16); color: var(--amber); }
.pill.red { background: rgba(255, 69, 58, 0.16); color: var(--red); }
.pill.info { background: rgba(10, 132, 255, 0.16); color: var(--blue); }
.pill.teal { background: rgba(100, 210, 255, 0.16); color: var(--teal); }
.pill.purple { background: rgba(191, 90, 242, 0.16); color: var(--purple); }

/* Quote / promise block */
.promise {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.promise .quote {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.4;
  margin: 14px 0 18px;
}

/* List rows (used on /contact and feature list) */
.list-rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: background 120ms, border-color 120ms;
}
.row:hover { background: var(--surface-2); border-color: var(--border-strong); }
.row .row-title { font-size: 15px; font-weight: 600; }
.row .row-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }

/* Pricing */
.price-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: left;
}
.price {
  display: flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.price .num { font-size: 56px; font-weight: 700; letter-spacing: -1.5px; }
.price .per { color: var(--text-3); font-size: 16px; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 60px;
  color: var(--text-3);
  font-size: 13px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-grid h4 {
  color: var(--text-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.foot-grid a { display: block; padding: 4px 0; color: var(--text-3); }
.foot-grid a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px; padding-top: 18px;
  font-size: 12px; color: var(--text-3);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* Article / insights */
article.insight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 24px;
}
article.insight .meta {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 14px;
}
article.insight h2 { font-size: 28px; letter-spacing: -0.6px; margin: 0 0 14px; }
article.insight p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
article.insight ul { color: var(--text-2); padding-left: 22px; }
article.insight ul li { margin: 8px 0; line-height: 1.55; }
article.insight strong { color: var(--text); }
article.insight .source {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3);
}

/* Mobile fine-tune */
@media (max-width: 760px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero .sub { font-size: 16px; }
  section { padding: 48px 0; }
  section h2 { font-size: 28px; }
  .price-card, .promise { padding: 28px; }
  .nav a:not(.cta) { display: none; }
}
