/* ============================================================
   Ragbee shared design system (site.css)
   Implements the new visual language over the legacy class
   vocabulary so all public pages render consistently.
   Load AFTER page-specific styles so these rules win.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #07090f;
  --bg-2: #0d1117;
  --surface: #0d1117;
  --surface-2: #111726;
  --card: #121a33;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.14);
  --text: #f2f5fa;
  --muted: #9aa5b5;
  --soft: #6b7686;
  --blue: #4f8cff;
  --blue-soft: #93c5fd;
  --green: #3ecf8e;
  --green-soft: #3ecf8e;
  --accent: #f5b301;
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  background: var(--bg) !important;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: rgba(245, 179, 1, 0.3); }

.wrap, .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.78);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 24px !important;
}
.nav .container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em;
}
.brand img { height: 26px; width: 26px; border-radius: 8px; vertical-align: middle; }
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-size: 0.925rem; font-weight: 500; color: var(--muted); flex-wrap: wrap;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.button, .btn, .button-secondary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.button, .btn-primary {
  background: linear-gradient(180deg, #ffc42e, #f5a401) !important;
  color: #171208 !important;
  box-shadow: 0 4px 20px rgba(245, 164, 1, 0.22);
}
.button:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(245, 164, 1, 0.32); }
.button-secondary, .btn-ghost, .btn-secondary {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border-soft);
  color: var(--text) !important;
}
.button-secondary:hover, .btn-ghost:hover, .btn-secondary:hover { background: rgba(255, 255, 255, 0.05) !important; }

/* ---------- typography ---------- */
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.pill, .eyebrow {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  background: rgba(245, 179, 1, 0.12); color: var(--accent);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.kicker { color: var(--accent); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.hero { padding: 72px 0 56px; }
.status-box { border-radius: 14px; }

/* ---------- sections & cards ---------- */
.section { margin-top: 40px; padding: 40px 0; }
.section-intro { color: var(--muted); max-width: 52em; font-size: 1.03rem; }
.card, .feature, .pillar, .usecase, .mini-card, .stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover, .feature:hover, .pillar:hover, .usecase:hover, .mini-card:hover, .stack-item:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
}
.card strong, .feature strong, .pillar strong, .usecase strong, .mini-card strong, .stack-item strong {
  color: var(--text);
}
p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
ul.clean { padding-left: 18px; color: var(--muted); }
.quote { color: #dbeafe; }
.footer-note { color: var(--soft); font-size: 0.9rem; margin-top: 26px; }

/* ---------- pricing (legacy classes) ---------- */
.pricing-card, .plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.pricing-card.recommended { border-color: rgba(245, 179, 1, 0.5); box-shadow: 0 0 0 1px rgba(245, 179, 1, 0.25); }
.plan-badge { background: var(--accent); color: #171208; border-radius: 999px; font-weight: 800; }
.plan-features li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

/* ---------- statuses ---------- */
.status { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status.live { background: rgba(62, 207, 142, 0.12); color: var(--green); }
.status.rolling { background: rgba(79, 140, 255, 0.12); color: var(--blue-soft); }

/* ---------- v2 nav/footer markup ---------- */
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.container.nav-inner { padding: 0 24px; }
.btn { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; }
.btn-primary { background: linear-gradient(180deg, #ffc42e, #f5a401); color: #171208; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
  color: var(--soft);
  font-size: 0.875rem;
  background: var(--bg);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--text); font-size: 0.85rem; margin: 0 0 12px; }
.foot-grid a { display: block; margin-bottom: 8px; color: var(--soft); }
.foot-grid a:hover { color: var(--text); }
.pubnav-wrap { background: var(--bg); border-bottom: 1px solid var(--border); }
.pubnav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.pubnav-wrap .brand { color: var(--text); }
.pubnav-wrap .nav-links a { color: var(--muted); }
.pubnav-wrap .nav-links a:hover { color: var(--text); }
.pubfooter { background: var(--bg); border-top: 1px solid var(--border); padding: 28px 0; }

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .grid-2, .grid-3, .plans, .pricing-grid, .foot-grid { grid-template-columns: 1fr !important; }
  .nav-links { flex-wrap: wrap; }
  .hero, .section { padding-left: 0; padding-right: 0; }
  h1 { font-size: 2.1rem; }
}
