/* ============================================================ */
/*  coreucx.ai - marketing site styles (layers on app.css tokens) */
/* ============================================================ */

html, body { height: auto; }
body {
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}
.eyebrow.center::before { display: none; }

h1, h2, h3 { letter-spacing: -0.025em; font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
h3 { font-size: 19px; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); line-height: 1.6; text-wrap: pretty; }

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

.btn-xl {
  height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: all 140ms ease;
}
.btn-xl.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-xl.primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in oklab, var(--accent), transparent 70%); }
.btn-xl:hover { border-color: var(--border-strong); background: var(--bg-2); }
.btn-xl.ghost { background: transparent; }

/* ============================================================ */
/*  NAV                                                          */
/* ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--bg), transparent 20%);
  backdrop-filter: blur(12px);
  transition: border-color 200ms ease, background 200ms ease;
}
.site-nav.scrolled { border-bottom-color: var(--border); background: color-mix(in oklab, var(--bg), transparent 8%); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: var(--accent-fg); flex-shrink: 0;
}
.logo .logo-glyph { width: 20px; height: 20px; }
.logo .wordmark { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo .wm-name { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.logo .wm-sub {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint);
}
.logo .dim { color: var(--text-faint); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-md); font-size: 14px; color: var(--text-muted);
  transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); transition: all 120ms;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }

.nav-btn {
  height: 34px; padding: 0 14px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all 120ms;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.nav-btn:hover { border-color: var(--border-strong); background: var(--bg-2); }
.nav-btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.nav-btn.primary:hover { filter: brightness(1.06); }

.burger { display: none; width: 34px; height: 34px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }

/* ============================================================ */
/*  HERO                                                         */
/* ============================================================ */
.hero { padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  opacity: 0.7;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse, color-mix(in oklab, var(--accent), transparent 82%), transparent 65%);
  filter: blur(20px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 60ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; color: var(--text-muted);
}
.hero-badge .tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-fg);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero-sub { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-sub span { display: inline-flex; align-items: center; gap: 6px; }
.hero-sub .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-success); }

/* hero product mock */
.hero-mock {
  margin: 48px auto 0; max-width: 1080px; position: relative; z-index: 1;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-mock-bar {
  height: 38px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: var(--bg-2);
}
.hero-mock-bar .dots { display: flex; gap: 6px; }
.hero-mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-mock-bar .addr {
  margin-left: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px;
}
.hero-mock-body { display: grid; grid-template-columns: 240px 1fr; min-height: 420px; }

/* inbox mock */
.inbox-side { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); }
.inbox-side .ch-head { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 8px 10px 4px; }
.inbox-ch { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--r-md); font-size: 13px; color: var(--text-muted); cursor: default; }
.inbox-ch.active { background: var(--accent-soft); color: var(--accent-soft-fg); }
.inbox-ch .ic { width: 16px; height: 16px; display: grid; place-items: center; }
.inbox-ch .count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.inbox-ch.active .count { background: var(--accent); color: var(--accent-fg); border-color: transparent; }

.inbox-main { display: flex; flex-direction: column; }
.inbox-toolbar { height: 42px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 13px; }
.conv { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.conv:hover { background: var(--bg-2); }
.conv .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 12px; flex-shrink: 0; position: relative; }
.conv .ch-badge { position: absolute; bottom: -3px; right: -3px; width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; border: 2px solid var(--surface); }
.conv .ch-badge svg { width: 9px; height: 9px; }
.conv .body { flex: 1; min-width: 0; }
.conv .row1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.conv .nm { font-weight: 500; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; }
.conv .via { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.conv .t { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; padding-left: 8px; }
.conv .msg { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.conv .pill-ai { margin-top: 5px; }

/* ============================================================ */
/*  LOGO / CHANNEL STRIP                                         */
/* ============================================================ */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; background: var(--bg-2); }
.strip-label { text-align: center; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 18px; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.strip-ch { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.strip-ch svg { width: 17px; height: 17px; opacity: 0.8; }

/* ============================================================ */
/*  SECTION HEADER                                               */
/* ============================================================ */
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; }
.sec-head.center { align-items: center; text-align: center; margin: 0 auto; }

/* ============================================================ */
/*  FEATURE - split rows                                         */
/* ============================================================ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.flip .feature-visual { order: -1; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-item .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-soft-fg); display: grid; place-items: center; flex-shrink: 0; }
.feature-item .ft-t { font-weight: 500; font-size: 14.5px; }
.feature-item .ft-d { font-size: 13.5px; color: var(--text-muted); margin-top: 1px; }

.feature-visual {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-md); overflow: hidden; min-height: 320px;
}
.visual-bar { height: 36px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg-2); }
.visual-bar .label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.visual-bar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* flow studio mock */
.fs-canvas { background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px; }
.fs-flow { display: flex; align-items: center; gap: 12px; padding: 26px 20px; overflow-x: auto; min-height: 320px; box-sizing: border-box; }
.fs-stage { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
.fs-node { display: flex; gap: 9px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; box-shadow: var(--shadow-sm); }
.fs-ic { width: 28px; height: 28px; border-radius: 7px; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.fs-nt { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fs-ns { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); white-space: nowrap; margin-top: 1px; }
.fs-wire { width: 26px; height: 2px; background: var(--border-strong); position: relative; flex-shrink: 0; }
.fs-wire::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 6px solid var(--border-strong); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* ============================================================ */
/*  CHANNELS GRID                                                */
/* ============================================================ */
.ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.ch-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 15px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; transition: all 160ms ease; position: relative; overflow: hidden;
}
.ch-card > div:not(.stat) { flex: 1 1 auto; min-width: 0; }
.ch-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ch-card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ch-card .nm { font-weight: 600; font-size: 15px; }
.ch-card .meta { font-size: 12.5px; color: var(--text-muted); }
.ch-card .stat { flex-basis: 100%; margin-top: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; padding-top: 4px; }
.ch-card .stat .live { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); }

/* ============================================================ */
/*  BRING YOUR OWN CARRIER                                       */
/* ============================================================ */
/* PRICING */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; align-items: start; }
.price-card { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-kind { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.price-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); letter-spacing: 0.04em; }
.price-amt { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.price-amt .per { font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.price-note { font-size: 13px; color: var(--text-muted); min-height: 38px; }
.price-feats { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.price-feats li { font-size: 13.5px; padding-left: 24px; position: relative; color: var(--text); }
.price-feats li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }

/* PRICING PAGE - comparison + rate tables */
.rate-table { width: 100%; border-collapse: collapse; margin-top: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.rate-table th, .rate-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.rate-table thead th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); background: var(--bg-2); }
.rate-table td.num, .rate-table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table tbody tr:hover td { background: var(--bg-2); }
.rate-table .svc { display: flex; align-items: center; gap: 10px; }
.rate-table .svc .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 14px; text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table th:last-child, .cmp-table td:last-child { border-right: 0; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { font-size: 15px; font-weight: 600; background: var(--bg-2); }
.cmp-table thead th.hl { color: var(--accent); }
.cmp-table .yes { color: var(--c-success); font-weight: 600; }
.cmp-table .no { color: var(--text-faint); }
.cmp-table td.feat { font-size: 13.5px; color: var(--text-muted); }
.price-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 18px 20px; }
.faq-item h4 { font-size: 14.5px; margin: 0 0 6px; }
.faq-item p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }
@media (max-width: 880px) { .price-faq { grid-template-columns: 1fr; } .rate-table th, .rate-table td, .cmp-table th, .cmp-table td { padding: 11px 12px; font-size: 13px; } }

.byoc {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  overflow: hidden;
}
.byoc-copy {
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.byoc-copy h3 { font-size: 24px; }
.byoc-copy p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.byoc-carriers {
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.byoc-label {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-faint); text-align: right;
}
.byoc-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: flex-start;
}
.carrier-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 8px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 140ms ease, transform 140ms ease;
  flex: 0 0 102px; width: 102px; height: 87px;
}
.carrier-slot:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.carrier-slot .carrier-logo {
  width: 100%; height: 36px; flex-shrink: 0;
  background-color: var(--text-muted);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background-color 140ms ease;
  display: none;
}
.carrier-slot.has-logo .carrier-logo { display: block; }
.carrier-slot.has-logo:hover .carrier-logo { background-color: var(--text); }
.carrier-slot.has-logo .carrier-mono { display: none; }
.carrier-slot .carrier-mono {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.02em;
}
.carrier-slot .carrier-name {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.03em; text-align: center;
}
.byoc-note { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; text-align: right; }

/* CRM integrations: force two rows of 4 (4 × 102px + 3 × 8px gap = 432px) */
.byoc-row.crm-row { max-width: 432px; margin-left: auto; }
/* reveal real brand colours on hover: the logo image clips itself via its own
   mask, so showing it as a full-colour background renders the true logo */
.byoc-row .carrier-slot.has-logo:hover .carrier-logo {
  background-color: transparent;
  background-image: var(--logo-img);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Pipedrive: filled-circle logo - neutral white-circle/grey-p by default,
   true colours (green circle / white p) on hover. */
.byoc-row .carrier-slot.logo-full .carrier-logo {
  -webkit-mask: none !important; mask: none !important;
  background-color: transparent;
  background-image: var(--logo-neutral);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.byoc-row .carrier-slot.logo-full:hover .carrier-logo {
  background-image: var(--logo-img);
}
/* tinted silhouette: recolours to a brand colour on hover */
.byoc-row .carrier-slot.logo-tint:hover .carrier-logo {
  background-color: var(--tint);
  background-image: none;
}
.byoc.byoc-crm { grid-template-columns: 1fr auto; }
.byoc-carriers:has(#crmRow) { width: 504px; }
.byoc-carriers:has(#carrierRow) { width: 834px; }

@media (max-width: 880px) {
  .byoc { grid-template-columns: 1fr; align-items: stretch; }
  .byoc-copy { border-bottom: 1px solid var(--border); }
  .byoc-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 520px) {
  .byoc-row { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================ */
/*  STATS BAND                                                   */
/* ============================================================ */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 40px 28px; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .v { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-cell .v .u { font-size: 22px; color: var(--accent); }
.stat-cell .l { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================ */
/*  PLATFORM / ARCHITECTURE                                      */
/* ============================================================ */
.arch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.arch-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.arch-card .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.arch-card h3 { font-size: 16px; }
.arch-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.arch-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.arch-tag { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-muted); }

/* ============================================================ */
/*  PRODUCT FAMILY                                               */
/* ============================================================ */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.fam-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 14px; transition: all 160ms; position: relative; overflow: hidden;
}
.fam-card.featured { border-color: var(--accent); }
.fam-card.featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.fam-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fam-card .fam-top { display: flex; align-items: center; justify-content: space-between; }
.fam-card .fam-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.fam-card .fam-logo .m { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #fff; }
.fam-card .fam-kind { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-muted); }
.fam-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; flex: 1; }
.fam-card .fam-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--accent); font-family: var(--font-mono); }
.fam-card .fam-link svg { width: 13px; height: 13px; transition: transform 140ms; }
.fam-card:hover .fam-link svg { transform: translateX(3px); }

/* ============================================================ */
/*  CTA                                                          */
/* ============================================================ */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 64px 40px; text-align: center; background: var(--surface); }
.cta-band .hero-grid { opacity: 1; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ============================================================ */
/*  FOOTER                                                       */
/* ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 30ch; }
.footer-brand p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 0 0 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-muted); padding: 5px 0; transition: color 120ms; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint); flex-wrap: wrap; gap: 12px; }
.footer-bottom .mono { font-family: var(--font-mono); }

/* ============================================================ */
/*  AUTH MODAL                                                   */
/* ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: color-mix(in oklab, #000, transparent 45%); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 180ms ease; padding: 20px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 920px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(12px) scale(0.99); transition: transform 200ms ease; max-height: 92vh;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-aside { background: var(--bg-2); border-right: 1px solid var(--border); padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; }
.modal-aside .hero-grid { opacity: 0.5; }
.modal-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; height: 100%; }
.modal-aside h3 { font-size: 22px; }
.modal-aside .pt { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); }
.modal-aside .pt svg { width: 16px; height: 16px; color: var(--c-success); flex-shrink: 0; margin-top: 2px; }
.modal-aside .aside-foot { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

.modal-main { padding: 32px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-tabs { display: flex; gap: 4px; padding: 3px; background: var(--bg-2); border-radius: var(--r-md); border: 1px solid var(--border); margin-bottom: 24px; }
.modal-tab { flex: 1; height: 32px; border-radius: 5px; border: 0; background: transparent; color: var(--text-muted); font-size: 13.5px; font-weight: 500; transition: all 140ms; }
.modal-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 30px; height: 30px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: grid; place-items: center; }
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }

.auth-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.auth-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth-field label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.auth-field input, .auth-field select {
  height: 40px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font-size: 14px; outline: none; transition: all 120ms;
  width: 100%; min-width: 0; box-sizing: border-box;
}
.auth-field input:focus, .auth-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); background: var(--surface); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.auth-row > * { min-width: 0; }
.auth-submit { height: 44px; border-radius: var(--r-md); border: 0; background: var(--accent); color: var(--accent-fg); font-size: 14.5px; font-weight: 600; margin-top: 6px; transition: all 140ms; }
.auth-submit:hover { filter: brightness(1.06); }
.auth-meta { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }
.auth-meta a { color: var(--accent); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 12px; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-sso { display: flex; gap: 10px; }
.auth-sso button { flex: 1; height: 40px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 120ms; }
.auth-sso button:hover { background: var(--bg-2); border-color: var(--border-strong); }
.auth-fine { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 6px; line-height: 1.5; }
.auth-fine a { color: var(--text-muted); text-decoration: underline; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.checkbox-line input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ============================================================ */
/*  reveal animation                                             */
/* ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ */
/*  RESPONSIVE                                                   */
/* ============================================================ */
@media (max-width: 920px) {
  .modal { grid-template-columns: 1fr; max-width: 440px; }
  .modal-aside { display: none; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-visual { order: 0; }
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
  .arch, .family { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-mock-body { grid-template-columns: 1fr; }
  .inbox-side { display: none; }
  .section-pad { padding: 64px 0; }
}
@media (max-width: 520px) {
  .ch-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn-xl { width: 100%; justify-content: center; }
}

/* nav mobile drawer */
.mobile-menu { position: fixed; inset: 60px 0 0; background: var(--bg); z-index: 49; padding: 24px; display: none; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 12px; border-radius: var(--r-md); font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu .mm-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ============================================================ */
/*  STATUS PAGE                                                  */
/* ============================================================ */
.status-hero { padding: 56px 0 24px; position: relative; overflow: hidden; }
.status-hero .wrap { position: relative; z-index: 1; }
.status-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 26px; border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--c-success), transparent 60%);
  background: color-mix(in oklab, var(--c-success), transparent 90%);
}
.status-banner .pulse {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-success); display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-success), transparent 40%);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse { 0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--c-success),transparent 40%);} 70%{box-shadow:0 0 0 14px color-mix(in oklab,var(--c-success),transparent 100%);} 100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--c-success),transparent 100%);} }
.status-banner.degraded { border-color: color-mix(in oklab, var(--c-warning), transparent 60%); background: color-mix(in oklab, var(--c-warning), transparent 90%); }
.status-banner.degraded .pulse { background: var(--c-warning); }
.status-banner .sb-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.status-banner .sb-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.status-banner .sb-meta { margin-left: auto; text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.status-banner .sb-meta strong { color: var(--text); font-weight: 600; display: block; font-size: 16px; }

.status-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-ok { background: var(--c-success); } .dot-warn { background: var(--c-warning); } .dot-down { background: var(--c-danger); } .dot-ai { background: var(--c-ai); }

.status-section { margin-top: 18px; }
.status-section h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.status-section h2 .uptime { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--text-muted); }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.svc-name { font-weight: 600; font-size: 14.5px; }
.svc-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.svc-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.svc-badge.ok { background: color-mix(in oklab, var(--c-success), transparent 88%); color: var(--c-success); }
.svc-badge.warn { background: color-mix(in oklab, var(--c-warning), transparent 86%); color: oklch(0.62 0.15 75); }
.svc-badge.down { background: color-mix(in oklab, var(--c-danger), transparent 88%); color: var(--c-danger); }
.svc-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.uptime-bars { display: flex; gap: 2px; align-items: flex-end; height: 30px; }
.uptime-bars i { flex: 1; height: 100%; border-radius: 2px; background: var(--c-success); opacity: 0.85; transition: opacity 120ms; }
.uptime-bars i.warn { background: var(--c-warning); }
.uptime-bars i.down { background: var(--c-danger); }
.uptime-bars i:hover { opacity: 1; }
.svc-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; }
.metric-card .ml { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.metric-card .mv { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.metric-card .mv .u { font-size: 15px; color: var(--text-muted); }
.metric-card .mtrend { font-family: var(--font-mono); font-size: 11px; color: var(--c-success); margin-top: 2px; }

.cluster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.node-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 16px; }
.node-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.node-top .nn { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.node-top .pill { margin-left: auto; }
.node-bar { margin-bottom: 8px; }
.node-bar .nb-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.node-bar .nb-label .mono { font-family: var(--font-mono); }
.node-bar .track { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.node-bar .track .fill { height: 100%; border-radius: 3px; background: var(--accent); }
.node-bar .track .fill.warn { background: var(--c-warning); }

.incident-list { display: flex; flex-direction: column; gap: 12px; }
.incident { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; }
.incident .inc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.incident .inc-top .pill { font-size: 10.5px; }
.incident .inc-date { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.incident .inc-title { font-weight: 600; font-size: 14px; }
.incident .inc-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.incident.resolved { border-left: 3px solid var(--c-success); }
.incident.maint { border-left: 3px solid var(--c-info); }

@media (max-width: 880px) {
  .svc-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .cluster-grid { grid-template-columns: 1fr; }
}
