/* Romeo Golf - shared premium design system for all venture demos.
   Dark, cinematic, glassmorphic. Include via:  <link rel="stylesheet" href="./assets/brand.css"> */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #eaeef7;
  --muted: #97a1b4;
  --faint: #6b7488;
  --brand: #6ea8fe;     /* signal blue */
  --brand-2: #8be0c8;   /* mint */
  --accent: #f4b860;    /* warm gold */
  --danger: #ff6b6b;
  --ok: #46d39a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(110, 168, 254, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(139, 224, 200, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; color: var(--brand-2); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--brand) 45%, var(--brand-2) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* glass */
.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: var(--radius);
}
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--stroke-2); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; margin: 0 auto; max-width: var(--maxw);
}
.nav-pills {
  display: flex; gap: 6px; padding: 6px;
  background: rgba(10, 16, 30, 0.5); border: 1px solid var(--stroke);
  border-radius: 999px; backdrop-filter: blur(12px);
}
.nav-pills a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.nav-pills a:hover { color: var(--text); text-decoration: none; }
.nav-pills a.active { color: #061018; background: linear-gradient(180deg, #fff, #cfe0ff); }
.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--brand)); box-shadow: 0 0 16px var(--brand); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--stroke-2); color: var(--text); cursor: pointer;
  background: var(--panel-2); transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, #fff, #cfe0ff); color: #061018; border-color: transparent; box-shadow: 0 10px 30px -8px rgba(110, 168, 254, .5); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }

/* badges + chips */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid var(--stroke); background: var(--panel-2); color: var(--muted); }
.badge-ok { color: var(--ok); border-color: rgba(70, 211, 154, .3); }
.badge-brand { color: var(--brand); border-color: rgba(110, 168, 254, .3); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(70,211,154,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(70,211,154,.5)} 70%{box-shadow:0 0 0 10px rgba(70,211,154,0)} 100%{box-shadow:0 0 0 0 rgba(70,211,154,0)} }

/* layout helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hero { padding: 92px 0 64px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.stat { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.kpi { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--stroke); border: 0; margin: 0; }
.footer { padding: 40px 0; color: var(--faint); font-size: .85rem; border-top: 1px solid var(--stroke); }

/* canvas bg */
#constellation { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.section, .nav, .footer { position: relative; z-index: 1; }

/* chat / agent UI (reused by AI demos) */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; max-height: 460px; overflow-y: auto; }
.bubble { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.bubble.user { align-self: flex-end; background: linear-gradient(180deg, #2b6fff, #2356d6); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }
.bubble.bot.typing { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--stroke); }
.chat-input input, .field { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke-2); background: rgba(0,0,0,.25); color: var(--text); font: inherit; }
.chat-input input:focus, .field:focus { outline: none; border-color: var(--brand); }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-pills { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }
