/* Nimbrae marketing site — design system
   Rich, layered, modern (not minimal): gradients, depth, texture, strong hierarchy. */
:root {
  --bg:        #0a0b14;
  --bg-2:      #0f1120;
  --surface:   #151830;
  --surface-2: #1c2142;
  --border:    #2a3060;
  --text:      #eef1ff;
  --text-dim:  #aab0d8;
  --text-mute: #7b82ad;
  --brand:     #7c5cff;
  --brand-2:   #a98bff;
  --accent-vellum:   #7c5cff;
  --accent-nuntia:   #c04bb6;
  --accent-capella:  #22a7f0;
  --accent-scriptoria:#e0982b;
  --accent-praesidium:#18b26b;
  --ok:        #34d399;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 40px -12px rgba(0,0,0,.6), 0 2px 8px -2px rgba(0,0,0,.4);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);
  --maxw:      1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -5%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at 5% 10%, rgba(192,75,182,.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-dim); }
.mute2 { color: var(--text-mute); }

/* ---- top nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,11,20,.9), rgba(10,11,20,.6));
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--accent-nuntia)); box-shadow: 0 0 20px rgba(124,92,255,.5); }
.nav nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav nav a { color: var(--text-dim); padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav nav a:hover, .nav nav a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--accent-nuntia)); color: #fff; box-shadow: 0 8px 24px -6px rgba(124,92,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(124,92,255,.7); text-decoration: none; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }

/* ---- sections ---- */
.section { padding: 80px 0; }
.section.tight { padding: 48px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--brand-2); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-dim); max-width: 720px; }
.gradient-text { background: linear-gradient(120deg, var(--brand-2), var(--accent-nuntia), var(--accent-capella)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- hero ---- */
.hero { padding: 90px 0 60px; position: relative; overflow: hidden; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .s { }
.hero-stats .s b { font-size: 30px; font-weight: 800; display: block; }
.hero-stats .s span { color: var(--text-mute); font-size: 13px; }

/* ---- cards / grid ---- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.card .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.card .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; }
.tag.live { background: rgba(52,211,153,.15); color: var(--ok); }
.tag.soon { background: rgba(224,152,43,.15); color: var(--accent-scriptoria); }
.tag.planned { background: rgba(123,130,173,.16); color: var(--text-dim); }

/* family accents */
.fam-vellum    { --fa: var(--accent-vellum); }
.fam-nuntia    { --fa: var(--accent-nuntia); }
.fam-capella   { --fa: var(--accent-capella); }
.fam-scriptoria{ --fa: var(--accent-scriptoria); }
.fam-praesidium{ --fa: var(--accent-praesidium); }
.fam-accent { color: var(--fa); }
.card .glyph.fa { background: linear-gradient(135deg, var(--fa), color-mix(in srgb, var(--fa) 55%, #000)); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--fa) 70%, transparent); }

/* ---- demo frame ---- */
.demo-shell {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-lg);
}
.demo-chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.demo-chrome .dots { display: flex; gap: 6px; }
.demo-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.demo-chrome .dots i:nth-child(1){ background:#ff5f57; } .demo-chrome .dots i:nth-child(2){ background:#febc2e; } .demo-chrome .dots i:nth-child(3){ background:#28c840; }
.demo-chrome .url { margin-left: 10px; font-size: 12px; color: var(--text-mute); font-family: ui-monospace, monospace; }
.demo-chrome .badge-try { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--brand-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.demo-body { padding: 18px; min-height: 280px; }
.demo-controls { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; align-items: center; }
.demo-controls .hint { font-size: 12px; color: var(--text-mute); margin-left: auto; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--border); padding: 50px 0 40px; margin-top: 40px; color: var(--text-mute); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px){ footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
footer.site a { display: block; color: var(--text-dim); font-size: 14px; padding: 3px 0; }

/* ---- misc ---- */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { padding: 8px 0 8px 30px; position: relative; color: var(--text-dim); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.kbd { font-family: ui-monospace, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; color: var(--text-dim); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } * { scroll-behavior: auto !important; } }
