:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bg: #0a1020;
  --bg-2: #111a31;
  --panel: rgba(11, 17, 32, 0.82);
  --panel-2: rgba(19, 29, 54, 0.82);
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f7ff;
  --muted: #afbcf4;
  --cyan: #49d8e1;
  --blue: #6b96ff;
  --violet: #985eff;
  --amber: #f5b654;
  --success: #9af2d7;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(152, 94, 255, 0.18), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(73, 216, 225, 0.14), transparent 22%),
    linear-gradient(135deg, #09101e 0%, #10182e 42%, #141f3a 72%, #192349 100%);
  line-height: 1.6;
}

body.homepage .page-header {
  padding: 1.35rem 0 2rem;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(8, 13, 25, 0.46);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.site-nav-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.brand-lockup img {
  width: 88px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  letter-spacing: -0.03em;
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.45rem;
  border: 1px solid rgba(111, 150, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta-pill.primary {
  border: none;
  color: #06111f;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 34px rgba(80, 154, 255, 0.26);
}

.cta-pill:hover {
  transform: translateY(-2px);
}

.page-header {
  padding: 1.7rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1.5rem;
  align-items: stretch;
}

body.homepage .hero-grid {
  grid-template-columns: 1.04fr 0.96fr;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: 1.01;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.06;
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.18;
}

p {
  margin: 0;
}

.hero-copy,
.hero-panel,
.surface,
.card,
.compare-card,
.code-card,
.step-card,
.summary-strip {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), rgba(8, 12, 24, 0.9));
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.homepage .hero-copy {
  padding: 1.7rem;
}

.hero-panel {
  overflow: visible;
  min-height: 0;
  position: relative;
}

body.homepage .hero-panel {
  min-height: 0;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 42rem;
}

.hero-sublead {
  font-size: 1.02rem;
  color: #d7def8;
  margin-bottom: 1.5rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

body.homepage .button-row {
  margin-bottom: 1.1rem;
}

.mini-grid,
.card-grid,
.compare-grid,
.trust-grid,
.endpoint-grid,
.path-grid {
  display: grid;
  gap: 1rem;
}

.mini-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.homepage .mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  padding: 0.85rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-card span,
.card p,
.compare-card p,
.step-card p,
.summary-strip p,
.muted {
  color: var(--muted);
}

.card-grid.two,
.compare-grid.two,
.trust-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three,
.endpoint-grid,
.trust-grid.three,
.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.compare-card,
.step-card,
.code-card,
.summary-strip,
.surface {
  padding: 1.45rem;
}

.card h3,
.compare-card h3,
.step-card h3 {
  margin-bottom: 0.55rem;
}

.section {
  padding: 0 0 3.2rem;
}

body.homepage .section {
  padding: 0 0 2.1rem;
}

.section-head {
  margin-bottom: 1.4rem;
  max-width: 50rem;
}

.section-head p {
  color: var(--muted);
}

.process-board {
  position: relative;
  padding: 1.15rem;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
  background:
    radial-gradient(circle at 24% 26%, rgba(73, 216, 225, 0.13), transparent 19%),
    radial-gradient(circle at 74% 18%, rgba(152, 94, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(9, 13, 23, 0.98), rgba(12, 18, 34, 0.82));
}

.process-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.76rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e4ebff;
}

.chip.good {
  color: var(--success);
}

.process-columns {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1rem;
  align-items: start;
}

.capture-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  align-self: start;
}

.capture-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.capture-copy {
  padding: 0.9rem;
}

.capture-copy strong,
.process-step strong,
.branch-card strong,
.summary-strip strong,
.code-label,
.metric-label {
  display: block;
  margin-bottom: 0.35rem;
}

.step-stack {
  display: grid;
  gap: 0.7rem;
}

.process-step,
.branch-card,
.metric-card,
.code-label-row {
  padding: 0.88rem 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-step p,
.capture-copy p {
  font-size: 0.98rem;
  line-height: 1.45;
}

.summary-strip {
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.88), rgba(20, 28, 46, 0.86));
}

.inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.inline-metric {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inline-metric strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inline-metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-compact-note {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-compact-note strong {
  display: block;
  margin-bottom: 0.28rem;
}

.hero-compact-note p {
  color: var(--muted);
}

.dense-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
}

.stacked-cards {
  display: grid;
  gap: 1rem;
}

.branch-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.branch-link-grid .branch-card p:last-child {
  margin-top: 0.85rem;
}

.branch-card {
  min-height: 100%;
}

.branch-card a,
.inline-link {
  color: #dff4ff;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list li + li {
  margin-top: 0.45rem;
}

.kicker {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.table-grid {
  display: grid;
  gap: 0.9rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row:first-child {
  border-top: none;
  padding-top: 0;
}

.table-row strong {
  color: #eef4ff;
}

.code-card {
  overflow: hidden;
}

.code-label-row {
  margin-bottom: 0.9rem;
}

pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 20px;
  background: rgba(4, 7, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce6ff;
  font-size: 0.88rem;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.metric-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  min-height: 100%;
}

.metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.25rem;
}

.final-panel {
  text-align: center;
  padding: 2rem;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .hero-grid,
  .process-columns,
  .card-grid.four,
  .card-grid.three,
  .endpoint-grid,
  .path-grid,
  .trust-grid.three,
  .dense-grid,
  .branch-link-grid,
  .inline-metrics {
    grid-template-columns: 1fr;
  }

  .card-grid.two,
  .compare-grid.two,
  .trust-grid.two,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.homepage .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .process-board {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .brand-lockup img {
    width: 74px;
  }

  .hero-copy,
  .surface,
  .card,
  .compare-card,
  .code-card,
  .step-card,
  .summary-strip,
  .final-panel {
    padding: 1.2rem;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}
