/* =============================================================================
   ArgusPulse — shared design system (static, no build step).
   Dark-tech fintech infra. One accent (emerald). One radius scale. One theme (dark).
   ============================================================================= */

:root {
  --bg: #080c14;
  --bg-2: #0b1220;
  --surface: #0f1828;
  --surface-2: #131f33;
  --border: #1d2c45;
  --border-strong: #2a3d5c;
  --text: #e8eef9;
  --muted: #93a3bd;
  --muted-2: #64748b;
  --accent: #34d399;
  --accent-bright: #6ee7b7;
  --accent-dim: rgba(52, 211, 153, 0.12);
  --accent-ink: #052e1c;
  --danger: #f87171;
  --warn: #fbbf24;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 20px 60px -24px rgba(52, 211, 153, 0.35);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page-level ambient glow, fixed + non-interactive (perf-safe) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(52, 211, 153, 0.10), transparent 60%),
    radial-gradient(700px 600px at 8% 4%, rgba(56, 122, 255, 0.06), transparent 55%);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 68px; display: flex; align-items: center;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); transition: color .18s, background .18s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--text); }
@media (max-width: 820px) { .nav-links a:not(.btn):not(.active) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .18s, border-color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 9px 15px; font-size: 14px; }

/* ---------- Pills / eyebrows ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; color: var(--muted);
}
.pill .brand-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--accent-dim); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 104px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero .lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin-top: 22px; max-width: 30rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { color: var(--muted-2); font-size: 14px; margin-top: 18px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero .lede { max-width: none; } }

/* gradient highlight inside headline (single accent) */
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Code card (hero visual + snippets) ---------- */
.code-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.code-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.code-top .tl { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.code-top .label { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #c8d4e8; }
.code-card .k { color: var(--accent-bright); }
.code-card .s { color: #fbbf24; }
.code-card .c { color: var(--muted-2); }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 44px; justify-content: center; padding: 28px 0; }
.logos img { height: 26px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logos img:hover { opacity: .9; filter: grayscale(0); }
/* logos shipped as colored marks (no white CDN variant) get flattened to white */
.logos img.brand-fill { filter: brightness(0) invert(1); }
.logos img.brand-fill:hover { filter: brightness(0) invert(1); opacity: .9; }

/* ---------- Bento / feature grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .18s, background .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-bright); margin-bottom: 16px; }
.card .ico svg { width: 21px; height: 21px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.card-feature { background: linear-gradient(150deg, rgba(52,211,153,0.10), var(--surface) 55%); border-color: rgba(52,211,153,0.22); }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr 1fr; } .col-2,.col-3,.col-4,.col-6 { grid-column: span 1; } .col-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .col-6 { grid-column: span 1; } }

/* ---------- Comparison table ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: center; }
table.cmp thead th { background: var(--surface); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
table.cmp thead th:first-child, table.cmp td:first-child { text-align: left; }
table.cmp thead th.us { color: var(--accent); }
table.cmp td:first-child { color: var(--text); }
table.cmp tbody tr + tr td { border-top: 1px solid rgba(29,44,69,0.6); }
table.cmp .col-us { background: rgba(52,211,153,0.05); color: var(--text); font-weight: 500; }
table.cmp .yes { color: var(--accent); } table.cmp .no { color: var(--muted-2); } table.cmp .mid { color: var(--warn); }

/* ---------- Tabs (SDK) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); margin-bottom: 18px; }
.tab { padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border: 0; background: transparent; transition: color .15s, background .15s; }
.tab.active { color: var(--accent-ink); background: var(--accent); }
.tabpanel { display: none; } .tabpanel.active { display: block; }

/* ---------- Compliance list ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; background: rgba(255,255,255,0.015); }
.fact b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border: 1px solid rgba(52,211,153,0.25); border-radius: var(--radius-lg); padding: 56px 28px; background: radial-gradient(700px 300px at 50% 0%, rgba(52,211,153,0.10), transparent 70%), var(--surface); }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 36px); }
.cta-band p { color: var(--muted); margin: 14px auto 28px; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 24px; }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 30px; padding-bottom: 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer nav a { color: var(--muted); transition: color .15s; }
.footer nav a:hover { color: var(--text); }
.footer .copy { color: var(--muted-2); font-size: 13px; width: 100%; border-top: 1px solid var(--border); padding-top: 18px; }

/* ---------- Sub-page hero (centered) ---------- */
.page-hero { padding: clamp(48px, 7vw, 76px) 0 28px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin-top: 14px; }
.page-hero p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 42rem; }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.callout .ic { flex-shrink: 0; color: var(--accent-bright); width: 22px; height: 22px; margin-top: 1px; }
.callout b { display: block; margin-bottom: 6px; color: var(--text); }
.callout p, .callout li { color: var(--muted); font-size: 14px; }
.callout ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.callout.accent { border-color: rgba(52,211,153,0.25); background: linear-gradient(150deg, rgba(52,211,153,0.08), var(--surface) 60%); }
.callout.warn { border-color: rgba(251,191,36,0.25); background: linear-gradient(150deg, rgba(251,191,36,0.07), var(--surface) 60%); }
.callout.warn .ic { color: var(--warn); }

/* ---------- Steps (quickstart) ---------- */
.steps { display: grid; gap: 48px; }
.step-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.step-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 16px; background: var(--accent-dim); color: var(--accent-bright); border: 1px solid rgba(52,211,153,0.25); }
.step-head h2 { font-size: 21px; }
.step-head p { color: var(--muted); font-size: 14.5px; margin-top: 5px; }

/* ---------- Code block (multi-line, optional tab bar) ---------- */
.codeblock { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.codeblock pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #c8d4e8; white-space: pre; }
.codeblock + .codeblock { margin-top: 14px; }
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-btn { padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; } .tab-panel.active { display: block; }
.code-label { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

/* shared syntax tokens */
.kw { color: #c792ea; } .str { color: #c3e88d; } .cmt { color: var(--muted-2); font-style: italic; }
.fn { color: #82aaff; } .var { color: #dfe8f5; } .num { color: #f78c6c; } .op { color: #89ddff; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(52,211,153,0.5); box-shadow: var(--shadow-accent); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 13px; border-radius: var(--radius-pill); white-space: nowrap; }
.plan h3 { font-size: 18px; }
.plan .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.plan .price { margin: 20px 0 22px; font-family: var(--font-display); }
.plan .price b { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price span { color: var(--muted); font-size: 15px; font-family: var(--font-body); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--accent); flex-shrink: 0; font-weight: 700; }
.plan .btn { width: 100%; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Status ---------- */
.status-banner { display: flex; align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color .3s; }
.status-banner .dot { width: 14px; height: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.rows { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rows-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 14px; }
.row + .row { border-top: 1px solid rgba(29,44,69,0.6); }
.badge { padding: 3px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.tabnum { font-variant-numeric: tabular-nums; }
.s-up { color: var(--accent); } .s-degraded { color: var(--warn); } .s-down { color: var(--danger); } .s-unknown { color: var(--muted); }
.badge-up { background: rgba(52,211,153,0.10); color: var(--accent); border-color: rgba(52,211,153,0.25); }
.badge-degraded { background: rgba(251,191,36,0.10); color: var(--warn); border-color: rgba(251,191,36,0.25); }
.badge-down { background: rgba(248,113,113,0.10); color: var(--danger); border-color: rgba(248,113,113,0.25); }
.badge-unknown { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }
.dot-up { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-degraded { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot-down { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.dot-unknown { background: var(--muted); }
.dot-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
#refresh-ring { transform: rotate(-90deg); transform-origin: 50% 50%; }
#refresh-ring circle.track { stroke: var(--border); fill: none; stroke-width: 2.5; }
#refresh-ring circle.fill { stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-dasharray: 56.5; stroke-dashoffset: 56.5; transition: stroke-dashoffset 1s linear; }

/* ---------- Next-steps / link cards ---------- */
.link-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .18s, border-color .18s, background .18s; }
a.link-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.link-card b { display: block; margin-bottom: 6px; }
.link-card p { color: var(--muted); font-size: 14px; }

/* inline code */
code.inl { font-family: var(--font-mono); font-size: 0.86em; color: var(--accent-bright); background: rgba(52,211,153,0.08); padding: 1px 6px; border-radius: 6px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card, .link-card, .status-banner { transition: none; }
  .dot-pulse { animation: none; }
}
