:root {
  color-scheme: dark;
  --bg-canvas: #020617;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #111c33;
  --bg-inset: #081022;
  --border-subtle: #1e293b;
  --border-strong: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-tint: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.32);
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-tint: rgba(99, 102, 241, 0.14);
  --indigo-border: rgba(129, 140, 248, 0.34);
  --sky-400: #38bdf8;
  --amber-300: #fcd34d;
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 1120px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .live-dot {
    animation: none !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(920px 460px at 14% -4%, rgba(16, 185, 129, 0.12), transparent 62%),
    radial-gradient(760px 420px at 88% 2%, rgba(99, 102, 241, 0.11), transparent 64%),
    var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald-500);
  color: #022c22;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.85rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.72);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.48rem 0.95rem;
  border-radius: 9999px;
  background: var(--emerald-500);
  color: #022c22;
  transition: background-color 140ms ease, transform 140ms ease;
}

.nav-cta:hover {
  background: var(--emerald-400);
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-divider {
  border-top: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-400);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero {
    padding: 4.5rem 0 4.25rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
  }
}

.anchor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
  margin-bottom: 1.1rem;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: var(--emerald-400);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.9);
  }
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  max-width: 58ch;
  font-size: 1.075rem;
  color: var(--text-secondary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn-primary {
  background: var(--emerald-500);
  color: #022c22;
  border: 1px solid var(--emerald-400);
}

.btn-primary:hover {
  background: var(--emerald-400);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--emerald-400);
}

.hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Preview Dashboard Card */
.preview-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 16, 34, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pill-emerald {
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
}

.pill-indigo {
  background: var(--indigo-tint);
  border: 1px solid var(--indigo-border);
  color: var(--indigo-400);
}

.ring-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

.ring-metric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
}

.ring-metric span {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ring-caption {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ring-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.ring-wrap svg {
  width: 78px;
  height: 78px;
  transform: rotate(-90deg);
}

.ring-pct {
  position: absolute;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mini-stack {
  display: grid;
  gap: 0.65rem;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.mini-row strong {
  display: block;
  font-size: 0.83rem;
  color: var(--text-primary);
}

.mini-row small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-highlight {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(15, 23, 42, 0.98) 45%);
}

.card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-400);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.card-tag-indigo {
  color: var(--indigo-400);
  background: var(--indigo-tint);
  border-color: var(--indigo-border);
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.feature-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 9999px;
  background: var(--emerald-400);
}

.feature-list strong {
  color: var(--text-primary);
}

/* Step cards */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
}

/* Pricing */
.price-figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.price-unit {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.callout-banner {
  margin-top: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.callout-banner p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.callout-banner strong {
  color: var(--text-primary);
}

/* Legal / Document pages */
.doc-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.doc-body {
  padding: 2.5rem 0 4rem;
  display: grid;
  gap: 1.25rem;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.5rem;
}

.doc-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.doc-card p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

th,
td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  background: var(--bg-inset);
  color: var(--text-primary);
  font-weight: 700;
}

td {
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  color: var(--emerald-400);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.95);
  padding: 2.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-primary {
  margin: 0 0 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a:hover,
.footer-primary a:hover {
  color: var(--emerald-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link {
  color: var(--emerald-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}
