/* ============================================================
   DENIZEN BLU — shared design system
   Unmetered AI. Where intelligence belongs.
   ============================================================ */
:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --panel: #0e1424;
  --panel-2: #121a2e;
  --line: rgba(120, 150, 220, 0.14);
  --line-strong: rgba(120, 150, 220, 0.28);
  --ink: #eaf0ff;
  --ink-dim: #a7b3d4;
  --ink-faint: #6b78a0;
  --blu: #3b82f6;
  --blu-bright: #5b9bff;
  --blu-glow: #2563eb;
  --cyan: #22d3ee;
  --violet: #8b7bff;
  --amber: #f5b64c;
  --coral: #f97362;
  --good: #34d399;
  --radius: 16px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
img { max-width: 100%; }

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

/* ---------- background fx ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(37,99,235,0.20), transparent 60%),
    radial-gradient(48vw 48vw at 8% 12%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(50vw 50vw at 50% 108%, rgba(139,123,255,0.12), transparent 60%);
}
.grid-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(120,150,220,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,150,220,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(70% 55% at 50% 0%, #000 40%, transparent 100%);
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6,8,15,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.scrolled { border-bottom-color: var(--line); background: rgba(6,8,15,0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo { width: 32px; height: 32px; flex-shrink: 0; filter: drop-shadow(0 0 9px rgba(59,130,246,0.7)); transition: transform .4s cubic-bezier(.34,1.56,.64,1), filter .3s; }
.brand:hover .logo { transform: rotate(-10deg) scale(1.12); filter: drop-shadow(0 0 16px rgba(91,155,255,0.95)); }
.brand small { font-weight: 500; color: var(--ink-dim); font-size: 12.5px; margin-left: 2px; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-dim); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 14.5px; cursor: pointer;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--blu-bright), var(--blu-glow));
  color: #fff; box-shadow: 0 8px 26px rgba(37,99,235,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(37,99,235,0.62), inset 0 1px 0 rgba(255,255,255,0.28); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--blu); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 9px; }

.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.menu-btn svg { display: block; }

/* ---------- generic section ---------- */
section { padding: 78px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blu-bright); }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 14px; }
.sec-head p { color: var(--ink-dim); font-size: 17px; margin-top: 16px; }
.grad {
  background: linear-gradient(100deg, var(--blu-bright) 0%, var(--cyan) 30%, var(--violet) 55%, var(--blu-bright) 80%, var(--cyan) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 74px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; letter-spacing: -.035em; }
.page-hero p { max-width: 620px; margin: 22px auto 0; color: var(--ink-dim); font-size: 18px; }

/* ---------- pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500;
  color: var(--ink-dim); border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 7px 15px 7px 11px; background: rgba(255,255,255,0.02); margin-bottom: 28px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pill b { color: var(--ink); font-weight: 600; }

/* ---------- cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 44px rgba(0,0,0,0.4); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(59,130,246,0.14); border: 1px solid rgba(59,130,246,0.28); color: var(--blu-bright);
}
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--ink-dim); font-size: 14.5px; margin: 9px 0 0; }

/* ---------- check lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; }
.checks li svg { flex-shrink: 0; margin-top: 3px; color: var(--blu-bright); }

/* ---------- code mock ---------- */
.code-mock { background: #05070d; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.code-mock .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.code-mock .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-mock .bar span { margin-left: auto; font-size: 11.5px; color: var(--ink-faint); font-family: var(--mono); }
.code-mock pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); line-height: 1.7; color: #cdd8f2; }
.k { color: var(--violet); } .s { color: #7ee0a0; } .c { color: var(--ink-faint); } .f { color: var(--cyan); } .n { color: var(--amber); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
td b { color: var(--ink); }
.tick { color: var(--good); } .cross { color: var(--ink-faint); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--ink-faint); font-size: 13.5px; margin: 14px 0 0; max-width: 260px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--ink-dim); font-size: 14px; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; gap: 12px; }

/* ---------- responsive base ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .features, .grid-2, .foot-grid { grid-template-columns: 1fr; }
  .mobile-open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8,11,20,0.98); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; backdrop-filter: blur(14px);
  }
  .mobile-open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; }
}

/* ============================================================
   COMPONENTS shared across pages
   ============================================================ */

/* ---------- home hero ---------- */
.hero { padding: 84px 0 66px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.hero p.sub { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-dim); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--ink-faint); }
.trust { margin-top: 60px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; align-items: center; }
.trust .stat { text-align: center; }
.trust .stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, var(--ink-dim)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust .stat span { font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .09em; }
.trust .divide { width: 1px; height: 34px; background: var(--line); }

/* ---------- calculator ---------- */
.calc { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.calc-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 6px; }
.calc-left { padding: 34px 34px 30px; }
.calc-left h3 { font-size: 22px; font-weight: 700; }
.calc-left .lede { color: var(--ink-dim); font-size: 15px; margin: 10px 0 30px; }
.slider-row label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-dim); margin-bottom: 12px; }
.slider-row label b { color: var(--ink); font-size: 16px; font-weight: 700; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.09); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #eaf2ff, var(--blu-bright)); border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(59,130,246,0.22), 0 4px 12px rgba(0,0,0,0.5); transition: box-shadow .2s; }
input[type=range]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 8px rgba(59,130,246,0.28), 0 4px 12px rgba(0,0,0,0.5); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: var(--blu-bright); box-shadow: 0 0 0 5px rgba(59,130,246,0.22); }
.ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--ink-faint); }
.seats-ctrl { margin-top: 26px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; background: rgba(255,255,255,0.03); border: 0; color: var(--ink); font-size: 20px; cursor: pointer; transition: background .2s; }
.stepper button:hover { background: rgba(59,130,246,0.22); }
.stepper .val { width: 56px; text-align: center; font-weight: 700; font-size: 16px; }
.calc-right { background: var(--panel-2); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.bar-block { margin-bottom: 26px; }
.bar-block:last-child { margin-bottom: 0; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.bar-top .name { font-size: 13.5px; color: var(--ink-dim); font-weight: 500; }
.bar-top .amt { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.bar-track { height: 15px; border-radius: 100px; background: rgba(255,255,255,0.05); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; width: 0; transition: width .7s cubic-bezier(.4,0,.2,1); }
.bar-meter .bar-fill { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.bar-meter .amt { color: var(--amber); }
.bar-flat .bar-fill { background: linear-gradient(90deg, var(--blu-glow), var(--cyan)); box-shadow: 0 0 16px rgba(37,99,235,0.5); }
.bar-flat .amt { color: var(--blu-bright); }
.save-badge { margin-top: 24px; text-align: center; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(52,211,153,0.14), rgba(52,211,153,0.05)); border: 1px solid rgba(52,211,153,0.3); }
.save-badge .big { font-size: 30px; font-weight: 800; color: var(--good); letter-spacing: -.02em; }
.save-badge .lbl { font-size: 13px; color: var(--ink-dim); }
.calc-foot { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 18px; }

/* ---------- audience tabs ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.tab { padding: 11px 22px; border-radius: 100px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); color: var(--ink-dim); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .2s; font-family: var(--font); }
.tab.active { background: linear-gradient(180deg, var(--blu-bright), var(--blu-glow)); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.panel-card { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: 40px; }
.panel-card h3 { font-size: 26px; font-weight: 800; }
.panel-card p { color: var(--ink-dim); font-size: 15.5px; margin: 14px 0 22px; }
.panel-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.panel-card li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--ink); }
.panel-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--good); }

/* ---------- pricing card ---------- */
.price-wrap { max-width: 480px; margin: 0 auto; }
.price-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-strong); border-radius: 24px; padding: 4px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.price-card::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, var(--blu-bright), transparent 40%, transparent 60%, var(--violet)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-body { padding: 36px 34px; }
.price-tag-row { display: flex; align-items: center; justify-content: space-between; }
.price-tag { font-weight: 700; font-size: 15px; color: var(--ink); }
.badge { font-size: 11px; font-weight: 700; color: var(--blu-bright); background: rgba(59,130,246,0.14); border: 1px solid rgba(59,130,246,0.28); padding: 4px 10px; border-radius: 100px; letter-spacing: .04em; }
.amount { display: flex; align-items: flex-end; gap: 6px; margin: 22px 0 4px; }
.amount .cur { font-size: 30px; font-weight: 700; color: var(--ink-dim); }
.amount .num { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: .9; }
.amount .per { font-size: 15px; color: var(--ink-dim); margin-bottom: 8px; }
.price-seats { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.price-seats .lbl { font-size: 14px; color: var(--ink-dim); }
.price-total { text-align: center; font-size: 14px; color: var(--ink-dim); margin: 6px 0 22px; }
.price-total b { color: var(--ink); font-size: 17px; }
.plist { list-style: none; padding: 0; margin: 24px 0 0; }
.plist li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; }
.plist li svg { flex-shrink: 0; margin-top: 3px; color: var(--blu-bright); }
.price-card .btn { width: 100%; margin-top: 8px; }

/* ---------- fair use ---------- */
.fair { background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(139,123,255,0.07)); border: 1px solid var(--line-strong); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.fair h2 { font-size: 32px; font-weight: 800; }
.fair p { color: var(--ink-dim); font-size: 15.5px; margin-top: 16px; }
.fair .points { margin-top: 22px; display: grid; gap: 12px; }
.fair .points div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.fair .points svg { flex-shrink: 0; margin-top: 3px; color: var(--good); }
.gauge { text-align: center; background: rgba(6,8,15,0.5); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.gauge .ring { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.gauge .ring svg { transform: rotate(-90deg); }
.gauge .ring .center { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge .ring .center b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; display: block; }
.gauge .ring .center span { font-size: 12px; color: var(--ink-faint); }
.gauge .cap { font-size: 13.5px; color: var(--ink-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; text-align: left; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 22px 4px; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font); }
.qa .plus { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.qa .plus::before, .qa .plus::after { content: ""; position: absolute; background: var(--blu-bright); border-radius: 2px; }
.qa .plus::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.qa .plus::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform .3s; }
.qa.open .plus::after { transform: scaleY(0); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.qa .ans p { color: var(--ink-dim); font-size: 15px; padding: 0 4px 22px; margin: 0; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final-box { background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(34,211,238,0.08) 60%, rgba(139,123,255,0.14)); border: 1px solid var(--line-strong); border-radius: 28px; padding: 68px 40px; position: relative; overflow: hidden; }
.final-box::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; top: -180px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 65%); pointer-events: none; }
.final-box h2 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; position: relative; }
.final-box p { color: var(--ink-dim); font-size: 18px; margin: 18px auto 34px; max-width: 500px; position: relative; }
.final-box .hero-cta { position: relative; }

/* ---------- playground ---------- */
.pg { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.pg-panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.pg-panel h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin: 0 0 14px; }
.pg-field { margin-bottom: 20px; }
.pg-field > label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; }
.seg { display: flex; flex-direction: column; gap: 8px; }
.seg .opt { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 14px; transition: all .18s; }
.seg .opt:hover { border-color: var(--line-strong); }
.seg .opt.sel { border-color: var(--blu); background: rgba(59,130,246,0.1); }
.seg .opt small { color: var(--ink-faint); font-size: 11.5px; }
.range-val { font-size: 13px; color: var(--ink); font-weight: 700; }
.chat { background: #05070d; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; height: 560px; overflow: hidden; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-dim); }
.chat-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2s infinite; }
.chat-head .mtag { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--blu-bright); }
.chat-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; max-width: 88%; }
.msg .av { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .av { background: rgba(255,255,255,0.08); color: var(--ink); }
.msg.bot .av { background: linear-gradient(150deg, var(--blu-bright), var(--violet)); color: #fff; box-shadow: 0 0 14px rgba(59,130,246,0.5); }
.msg .bubble { padding: 12px 15px; border-radius: 13px; font-size: 14.5px; line-height: 1.6; }
.msg.user .bubble { background: linear-gradient(180deg, var(--blu-bright), var(--blu-glow)); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bubble { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.cursor-blink::after { content: "▋"; color: var(--blu-bright); animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.chat-input { padding: 16px 18px; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.chat-input input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 16px; color: var(--ink); font-family: var(--font); font-size: 14.5px; outline: none; transition: border-color .2s; }
.chat-input input:focus { border-color: var(--blu); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: 12.5px; padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--ink-dim); cursor: pointer; background: rgba(255,255,255,0.02); transition: all .18s; }
.chip:hover { border-color: var(--blu); color: var(--ink); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 232px 1fr; gap: 44px; align-items: start; }
.doc-side { position: sticky; top: 90px; }
.doc-side h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin: 22px 0 10px; }
.doc-side h5:first-child { margin-top: 0; }
.doc-side a { display: block; font-size: 14px; color: var(--ink-dim); padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; transition: all .18s; }
.doc-side a:hover { color: var(--ink); background: rgba(255,255,255,0.03); }
.doc-side a.active { color: var(--blu-bright); border-left-color: var(--blu); background: rgba(59,130,246,0.08); }
.doc-main { min-width: 0; }
.doc-main h2 { font-size: 30px; font-weight: 800; margin: 46px 0 6px; scroll-margin-top: 90px; }
.doc-main h2:first-child { margin-top: 0; }
.doc-main h3 { font-size: 19px; font-weight: 700; margin: 30px 0 6px; }
.doc-main p { color: var(--ink-dim); font-size: 15.5px; margin: 12px 0; }
.doc-main code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 6px; color: var(--cyan); }
.doc-main pre code { background: none; padding: 0; color: inherit; }
.lang-tabs { display: flex; gap: 6px; margin: 18px 0 0; }
.lang-tabs .lt { padding: 8px 16px; font-size: 13px; border-radius: 9px 9px 0 0; border: 1px solid var(--line); border-bottom: 0; background: rgba(255,255,255,0.02); color: var(--ink-dim); cursor: pointer; font-family: var(--font); }
.lang-tabs .lt.active { background: #05070d; color: var(--ink); }
.lang-body { display: none; }
.lang-body.active { display: block; }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; font-family: var(--mono); font-size: 13.5px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.method { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: .04em; }
.method.get { background: rgba(52,211,153,0.16); color: var(--good); }
.method.post { background: rgba(59,130,246,0.16); color: var(--blu-bright); }
.callout { border: 1px solid rgba(59,130,246,0.3); background: rgba(59,130,246,0.08); border-radius: 12px; padding: 16px 18px; margin: 18px 0; font-size: 14px; color: var(--ink-dim); }
.callout b { color: var(--ink); }

/* ---------- forms ---------- */
.form-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.frow { margin-bottom: 18px; }
.frow label { display: block; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 8px; font-weight: 500; }
.frow input, .frow select, .frow textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: 11px; padding: 13px 15px; color: var(--ink); font-family: var(--font); font-size: 14.5px; outline: none; transition: border-color .2s; }
.frow input:focus, .frow select:focus, .frow textarea:focus { border-color: var(--blu); }
.frow textarea { resize: vertical; min-height: 110px; }
.frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok { display: none; text-align: center; padding: 40px 20px; }
.form-ok.show { display: block; animation: fade .4s ease; }
.form-ok .big-check { width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,0.15); border: 1px solid rgba(52,211,153,0.4); display: grid; place-items: center; margin: 0 auto 18px; color: var(--good); }

/* ---------- logo strip ---------- */
.logos { display: flex; gap: 46px; justify-content: center; align-items: center; flex-wrap: wrap; opacity: .55; }
.logos span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-dim); }

/* ---------- misc responsive ---------- */
@media (max-width: 900px) {
  .calc-inner, .panel-card, .fair, .pg, .docs, .frow-2 { grid-template-columns: 1fr; }
  .doc-side { position: static; display: none; }
  .trust .divide { display: none; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .fair, .final-box, .price-body, .form-card { padding: 28px 20px; }
  .calc-left, .calc-right { padding: 22px; }
  .chat { height: 500px; }
}


/* ============================================================
   FX LAYER — coolness pass
   ============================================================ */

/* aurora blobs drifting behind everything */
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  will-change: transform;
}
.bg-fx::before {
  width: 46vw; height: 46vw; left: -12vw; top: 6vh;
  background: radial-gradient(circle, rgba(34,211,238,0.16), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.bg-fx::after {
  width: 52vw; height: 52vw; right: -16vw; top: 30vh;
  background: radial-gradient(circle, rgba(139,123,255,0.15), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(9vw,-7vh) scale(1.25); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.15); } to { transform: translate(-10vw,10vh) scale(.9); } }

/* neural-network canvas injected into heroes */
.hero, .page-hero, .final-box { position: relative; }
.net-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }

/* card shine sweep + glow ring on hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(160,200,255,0.09), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.card:hover::before { left: 130%; }
.card:hover .ic { box-shadow: 0 0 22px rgba(59,130,246,0.45); transform: scale(1.08) rotate(-4deg); }
.card .ic { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }

/* primary button sheen */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .5s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }
.btn-lg.btn-primary { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%,100% { box-shadow: 0 8px 26px rgba(37,99,235,0.42), inset 0 1px 0 rgba(255,255,255,0.28); }
  50% { box-shadow: 0 8px 40px rgba(37,99,235,0.75), 0 0 30px rgba(34,211,238,0.25), inset 0 1px 0 rgba(255,255,255,0.28); }
}

/* live network widget */
.net-widget {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px 26px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px rgba(37,99,235,0.08);
  position: relative; overflow: hidden;
}
.net-widget::before {
  content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(91,155,255,.6), transparent 30%, transparent 70%, rgba(34,211,238,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.net-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-dim); }
.net-head .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 1.6s infinite; }
.net-now { margin-left: auto; font-family: var(--mono); font-size: 15px; color: var(--cyan); font-weight: 700; text-shadow: 0 0 14px rgba(34,211,238,0.6); }
#netChart { width: 100%; height: 110px; display: block; margin: 10px 0 4px; }
.net-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.net-stats div { text-align: center; }
.net-stats b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.net-stats span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.net-cap { text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 12px; }
@media (max-width: 700px) { .net-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* count-up stats get tabular numerals so they don't jiggle */
.trust .stat b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .grad, .btn-lg.btn-primary, .bg-fx::before, .bg-fx::after { animation: none; }
  .net-fx { display: none; }
}

/* ---------- the living Commons mark ---------- */
.lg-spin { animation: lgSpin 44s linear infinite; transform-origin: 60px 55.7px; }
.lg-orb { transform-box: fill-box; transform-origin: center; animation: lgBreathe 5.2s ease-in-out infinite; }
.lg-o2 { animation-delay: -1.7s; }
.lg-o3 { animation-delay: -3.4s; }
.lg-core { transform-box: fill-box; transform-origin: center; animation: lgPulse 2.9s ease-in-out infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.055); } }
@keyframes lgPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .lg-spin, .lg-orb, .lg-core { animation: none; } }

/* ---------- Expression of interest modal ---------- */
.eoi-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 12, 0.72); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.eoi-overlay.open { opacity: 1; visibility: visible; }
.eoi-modal {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.98); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.eoi-overlay.open .eoi-modal { transform: translateY(0) scale(1); }
.eoi-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink-dim); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.eoi-close:hover { background: rgba(255,255,255,0.09); color: var(--ink); border-color: var(--line-strong); }
.eoi-body { padding: 34px 34px 30px; }
.eoi-body h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.eoi-lede { color: var(--ink-dim); font-size: 15px; margin: 12px 0 24px; }
.eoi-frow { display: flex; flex-direction: column; margin-bottom: 16px; }
.eoi-frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eoi-frow label { font-size: 13px; font-weight: 600; color: var(--ink-dim); margin-bottom: 7px; }
.eoi-opt { color: var(--ink-faint); font-weight: 500; }
.eoi-frow input, .eoi-frow select, .eoi-frow textarea {
  width: 100%; padding: 12px 14px; font-size: 14.5px; font-family: var(--font);
  color: var(--ink); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong); border-radius: 11px; outline: none;
  transition: border-color .2s, background .2s;
}
.eoi-frow textarea { resize: vertical; min-height: 70px; }
.eoi-frow input::placeholder, .eoi-frow textarea::placeholder { color: var(--ink-faint); }
.eoi-frow input:focus, .eoi-frow select:focus, .eoi-frow textarea:focus { border-color: var(--blu); background: rgba(59,130,246,0.06); }
.eoi-frow select { appearance: none; cursor: pointer; }
.eoi-submit { width: 100%; margin-top: 6px; justify-content: center; }
.eoi-fine { font-size: 12px; color: var(--ink-faint); text-align: center; margin: 14px 0 0; }
.eoi-err { display: none; margin: 0 0 14px; }
.eoi-err.show { display: block; }
.attest { border: 1px solid var(--line); border-radius: 12px; padding: 6px 4px; margin-bottom: 16px; }
.attest label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; cursor: pointer; font-size: 13.5px; color: var(--ink-dim); border-radius: 10px; transition: background .15s; }
.attest label:hover { background: rgba(255,255,255,0.02); }
.attest input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blu); flex-shrink: 0; }
.attest b { color: var(--ink); font-weight: 600; }
.eoi-done { display: none; text-align: center; padding: 10px 0 4px; }
.eoi-done.show { display: block; animation: fade .4s ease; }
.eoi-done h2 { margin-top: 18px; }
.eoi-check {
  width: 62px; height: 62px; margin: 0 auto; display: grid; place-items: center;
  border-radius: 50%; color: var(--good);
  background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.4);
}
.eoi-done .btn { margin-top: 22px; }
@media (max-width: 560px) {
  .eoi-frow-2 { grid-template-columns: 1fr; }
  .eoi-body { padding: 30px 22px 26px; }
}

/* ---------- Admin dashboard ---------- */
.admin-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; position: relative; z-index: 1;
}
.admin-shell-wide { align-items: flex-start; padding-top: 56px; }
.admin-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); padding: 34px;
}
.admin-h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.admin-lede { color: var(--ink-dim); font-size: 15px; margin: 12px 0 22px; }
.admin-lede code, .admin-empty code {
  font-family: var(--mono); font-size: 13px; color: var(--cyan);
  background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 6px;
}
.admin-frow { display: flex; flex-direction: column; margin-bottom: 16px; }
.admin-frow label { font-size: 13px; font-weight: 600; color: var(--ink-dim); margin-bottom: 7px; }
.admin-frow input, .admin-search {
  width: 100%; padding: 12px 14px; font-size: 14.5px; font-family: var(--font);
  color: var(--ink); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong); border-radius: 11px; outline: none;
  transition: border-color .2s, background .2s;
}
.admin-frow input::placeholder, .admin-search::placeholder { color: var(--ink-faint); }
.admin-frow input:focus, .admin-search:focus { border-color: var(--blu); background: rgba(59,130,246,0.06); }

.admin-dash { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
  .admin-controls { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
  .admin-controls .admin-search { flex: 1; min-width: 220px; }
  .admin-tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
  .admin-msg {
  display: inline-block; max-width: 320px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; vertical-align: bottom; color: var(--ink-dim);
  }
  .admin-msg-wrap {
  display: block; max-width: 520px; white-space: pre-wrap; word-break: break-word;
  color: var(--ink-dim);
  }
.admin-tbl-wrap {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table thead th {
  text-align: left; padding: 14px 18px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-faint); font-weight: 700;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--line);
}
.admin-table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.admin-table a { color: var(--blu-bright); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.admin-muted { color: var(--ink-faint); }
.admin-empty { padding: 40px 24px; text-align: center; color: var(--ink-dim); }
@media (max-width: 600px) {
  .admin-table thead { display: none; }
  .admin-table tbody td { display: block; padding: 6px 16px; border: none; }
  .admin-table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   MODEL CATALOG — filter pills + metadata cards
   ============================================================ */
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.fpill {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02); color: var(--ink-dim); font-weight: 600;
  font-size: 13.5px; cursor: pointer; transition: all .2s; font-family: var(--font); white-space: nowrap;
}
.fpill:hover { border-color: var(--blu); color: var(--ink); }
.fpill.active { background: linear-gradient(180deg, var(--blu-bright), var(--blu-glow)); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(37,99,235,0.4); }

.mcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcard {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: fade .4s ease;
}
.mcard:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 44px rgba(0,0,0,0.4); }
.mcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mcard-name { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-word; }
.mcard-fam { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.mcard-badge {
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 100px; letter-spacing: .04em;
  background: rgba(59,130,246,0.14); color: var(--blu-bright); border: 1px solid rgba(59,130,246,0.28); white-space: nowrap;
}
.mcard-badge.orig { background: rgba(139,123,255,0.14); color: var(--violet); border-color: rgba(139,123,255,0.28); }
.mcard-desc { font-size: 13.5px; color: var(--ink-dim); margin: 13px 0 16px; flex: 1; line-height: 1.5; }
.mcard-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.mcard-meta .mm { border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; }
.mcard-meta .mm span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 3px; }
.mcard-meta .mm b { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.mcard .btn { width: 100%; }
.mcat-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--ink-faint); font-size: 14px; }
@media (max-width: 900px) { .mcard-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CODE COPY BUTTON (shared)
   ============================================================ */
.code-mock { position: relative; }
.copy-btn {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-family: var(--font); font-weight: 600;
  padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.05); color: var(--ink-dim); cursor: pointer; transition: all .18s;
}
.copy-btn:hover { color: var(--ink); border-color: var(--blu); background: rgba(59,130,246,0.12); }
.copy-btn.copied { color: var(--good); border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.1); }
.copy-btn svg { display: block; }

/* quickstart wrapper on marketing pages */
.quickstart { max-width: 760px; margin: 0 auto; }
.quickstart .lang-body .code-mock { border-radius: 0 12px 12px 12px; }

/* ============================================================
   PLAYGROUND SWITCHER — top bar + settings drawer + copy
   ============================================================ */
.pg-topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.pg-topbar .tb-label { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); font-weight: 700; }
.pg-select { position: relative; }
.pg-select select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 11px 42px 11px 15px; color: var(--ink); font-family: var(--font); font-size: 14.5px; font-weight: 600;
  cursor: pointer; outline: none; transition: border-color .2s; min-width: 260px;
}
.pg-select select:focus, .pg-select select:hover { border-color: var(--blu); }
.pg-select::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-dim); border-bottom: 2px solid var(--ink-dim);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.pg-meter { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-dim); }
.pg-meter b { color: var(--good); font-weight: 700; }
.pg-gear {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 13.5px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03); color: var(--ink); cursor: pointer; transition: all .2s;
}
.pg-gear:hover { border-color: var(--blu); background: rgba(59,130,246,0.1); }
.pg-gear svg { display: block; }

.chat.wide { height: 600px; }

.settings-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(4,6,12,0.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.settings-overlay.open { opacity: 1; visibility: visible; }
.settings-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; z-index: 120;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px rgba(0,0,0,0.5); transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 26px; overflow-y: auto;
}
.settings-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.drawer-lede { color: var(--ink-faint); font-size: 13px; margin: 6px 0 24px; }
.drawer-close {
  width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink-dim); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.09); color: var(--ink); border-color: var(--line-strong); }
.set-field { margin-bottom: 26px; }
.set-field > label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 12px; font-weight: 500; }
.set-field > label b { color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.set-field .hint { font-size: 11.5px; color: var(--ink-faint); margin: 10px 0 0; }
.set-field textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 12px 14px; color: var(--ink); font-family: var(--font); font-size: 14px; outline: none;
  resize: vertical; min-height: 120px; line-height: 1.55; transition: border-color .2s;
}
.set-field textarea:focus { border-color: var(--blu); }

/* copy button inside chat bubbles for code responses */
.msg .bubble.code-bubble { font-family: var(--mono); font-size: 13px; line-height: 1.65; white-space: pre-wrap; position: relative; padding-top: 34px; background: #05070d; }
.bubble-copy {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-family: var(--font); font-weight: 600; padding: 5px 9px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.05); color: var(--ink-dim); cursor: pointer; transition: all .18s;
}
.bubble-copy:hover { color: var(--ink); border-color: var(--blu); }
.bubble-copy.copied { color: var(--good); border-color: rgba(52,211,153,0.4); }
