:root {
  --bg: #0b0f19;
  --surface: #111827;
  --surface-2: #0f172a;
  --surface-hover: #1a2234;
  --border: #1f2937;
  --border-highlight: #374151;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #d1d5db;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --rose: #f87171;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
  color: #e5e7eb;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(59, 130, 246, 0.28); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-emerald { background: var(--emerald); color: #052e22; box-shadow: 0 6px 20px rgba(16, 185, 129, 0.24); }
.btn-emerald:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: rgba(17, 24, 39, 0.72); border-color: var(--border-highlight); color: var(--text); }
.btn-outline:hover { background: var(--surface-hover); border-color: #4b5563; }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 11px 14px; }
.btn-ghost:hover { color: var(--text); }

.prod-hero { padding: 46px 0 54px; border-bottom: 1px solid var(--border); text-align: center; }
.prod-hero.hero-pulse {
  background: radial-gradient(62% 52% at 50% 0%, rgba(59, 130, 246, 0.18) 0%, rgba(11, 15, 25, 0) 72%);
}
.prod-hero.hero-ledger {
  background: radial-gradient(62% 52% at 50% 0%, rgba(16, 185, 129, 0.16) 0%, rgba(11, 15, 25, 0) 72%);
}

.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 0.79rem; font-weight: 600; margin-bottom: 20px; }
.pill-blue { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.28); }
.pill-emerald { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.28); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pill-dot-emerald { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.pill-dot-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.prod-hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.032em; line-height: 1.12; max-width: 880px; margin: 0 auto 18px; }
.grad-blue { background: linear-gradient(95deg, #60a5fa 0%, #38bdf8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-emerald { background: linear-gradient(95deg, #34d399 0%, #60a5fa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-lead { font-size: 1.04rem; color: var(--text-muted); max-width: 740px; margin: 0 auto 28px; }
.hero-lead strong { color: #e5e7eb; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 32px; }

.proof-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.proof-chip { background: rgba(17, 24, 39, 0.8); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-align: left; }
.proof-chip strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.proof-chip span { display: block; font-size: 0.77rem; color: var(--text-muted); line-height: 1.38; }

.section { padding: 64px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.55) 0%, rgba(11, 15, 25, 0.35) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header { text-align: center; margin-bottom: 38px; }
.section-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.eyebrow-blue { color: #60a5fa; }
.eyebrow-emerald { color: #34d399; }
.section-header h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); max-width: 680px; margin: 0 auto; font-size: 0.96rem; }

/* Interactive Sandbox Frame */
.sandbox-shell { background: #080b12; border: 1px solid var(--border-highlight); border-radius: var(--radius); padding: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.sandbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #182132; }
.sandbox-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sandbox-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-right: 2px; }
.chip-btn { background: #111827; color: #9ca3af; border: 1px solid #243044; border-radius: 7px; padding: 5px 10px; font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all 0.14s ease; }
.chip-btn:hover { color: #f9fafb; border-color: #4b5563; }
.chip-btn.active-blue { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border-color: rgba(59, 130, 246, 0.55); }
.chip-btn.active-emerald { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.55); }
.sandbox-foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.76rem; color: #7b879a; }

/* Grids & Cards */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.info-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.card-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 6px; margin-bottom: 10px; }
.card-tag-blue { background: var(--accent-soft); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.card-tag-emerald { background: var(--emerald-soft); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: #0d1322; color: var(--text-muted); font-size: 0.83rem; font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .col-key { font-weight: 700; color: var(--text); width: 28%; }
.data-table .col-val { color: var(--text-soft); }
.data-table thead th.col-pro-blue { background: rgba(59, 130, 246, 0.16); color: #fff; border-left: 1px solid rgba(59, 130, 246, 0.3); }
.data-table tbody td.col-pro-blue { background: rgba(59, 130, 246, 0.05); color: #f3f4f6; border-left: 1px solid rgba(59, 130, 246, 0.18); }
.data-table thead th.col-pro-emerald { background: rgba(16, 185, 129, 0.16); color: #fff; border-left: 1px solid rgba(16, 185, 129, 0.3); }
.data-table tbody td.col-pro-emerald { background: rgba(16, 185, 129, 0.05); color: #f3f4f6; border-left: 1px solid rgba(16, 185, 129, 0.18); }
.chk { color: #34d399; font-weight: 800; margin-right: 5px; }
.dash { color: #64748b; font-weight: 700; margin-right: 5px; }

/* Steps & Code Card */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-size: 0.82rem; font-weight: 800; margin-bottom: 12px; }
.step-num-blue { background: var(--accent-soft); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.step-num-emerald { background: var(--emerald-soft); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.code-card { margin-top: 22px; background: #070a11; border: 1px solid var(--border-highlight); border-radius: 12px; overflow: hidden; }
.code-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; background: #0f172a; border-bottom: 1px solid var(--border); font-size: 0.77rem; color: var(--text-muted); }
.code-card pre { padding: 14px 16px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.78rem; line-height: 1.55; color: #cbd5e1; }

/* FAQ Accordion */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 0.96rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; color: #60a5fa; }
.faq-item p { padding: 0 20px 16px; font-size: 0.89rem; color: var(--text-muted); line-height: 1.6; }

/* Cross-Sell Banner & Studio Footer */
.cta-banner { background: var(--surface); border: 1px solid var(--border-highlight); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.cta-banner h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.cta-banner p { font-size: 0.9rem; color: var(--text-muted); max-width: 620px; }
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.studio-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 0.86rem; padding: 24px 0; }
.studio-footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.studio-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.studio-footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .proof-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid-2, .cards-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prod-hero { padding: 36px 0 42px; }
  .proof-bar { grid-template-columns: 1fr; }
  .sandbox-shell, .info-card, .cta-banner { padding: 16px; }
}

