:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --muted: #aeb8c5;
  --subtle: #768397;
  --panel: #111821;
  --panel-strong: #182538;
  --line: rgba(174, 184, 197, 0.18);
  --line-strong: rgba(174, 184, 197, 0.28);
  --blue: #69a7d8;
  --teal: #52c7bd;
  --cyan: #2ca6c8;
  --amber: #d5a75f;
  --charcoal: #080d12;
  --slate: #0d141d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(8, 13, 18, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(160px, 18vw, 236px);
  height: auto;
}

nav {
  gap: clamp(14px, 3vw, 30px);
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

nav a::after {
  display: block;
  width: 0;
  height: 2px;
  margin-top: 4px;
  content: "";
  background: var(--teal);
  transition: width 160ms ease;
}

nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  min-height: 90vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#telemetry-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

#telemetry-canvas {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.97), rgba(8, 13, 18, 0.72) 48%, rgba(8, 13, 18, 0.36)),
    linear-gradient(0deg, rgba(8, 13, 18, 0.94), rgba(8, 13, 18, 0.14) 42%, rgba(8, 13, 18, 0.76));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 72px;
}

.hero-dashboard {
  position: absolute;
  right: clamp(20px, 6vw, 92px);
  bottom: clamp(42px, 8vh, 92px);
  z-index: 2;
  width: min(410px, 34vw);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(24, 37, 56, 0.9), rgba(13, 20, 29, 0.92)),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.dashboard-header,
.signal-row,
.workflow-map {
  border: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.36);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-note {
  margin: 12px 0 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #051312;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.signal-row {
  margin-top: 10px;
  padding: 12px;
}

.signal-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.metric-label {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-row strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.signal-bar {
  position: relative;
  height: 7px;
  overflow: hidden;
  background: rgba(174, 184, 197, 0.12);
}

.signal-bar::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  content: "";
  background: var(--teal);
}

.signal-bar.amber::before {
  background: var(--amber);
}

.signal-bar.blue::before {
  background: var(--blue);
}

.workflow-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}

.workflow-step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 70px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(82, 199, 189, 0.14), transparent),
    rgba(17, 24, 33, 0.74);
}

.workflow-step strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.workflow-step small {
  color: var(--subtle);
  font-size: 0.68rem;
  line-height: 1.25;
}

.workflow-step::after {
  position: absolute;
  top: 50%;
  right: -11px;
  width: 10px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.workflow-step:last-child::after {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 32px;
  font-size: 4.55rem;
  line-height: 1.02;
  font-weight: 760;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.8rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.hero-copy,
.copy-block,
.contact p,
.service-card p,
.audience-list,
.process-list {
  color: var(--muted);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 44px;
  font-size: 1.18rem;
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #04100f;
}

.button.secondary {
  background: rgba(245, 247, 250, 0.04);
  border-color: var(--line-strong);
}

.button:hover {
  transform: translateY(-1px);
}

.section,
.contact,
.site-footer {
  padding: 88px clamp(20px, 5vw, 72px);
}

.section {
  background:
    linear-gradient(180deg, rgba(13, 20, 29, 0.98), rgba(13, 20, 29, 1)),
    var(--slate);
  border-bottom: 1px solid var(--line);
}

.section.alt {
  background:
    linear-gradient(135deg, rgba(105, 167, 216, 0.06), transparent 32%),
    #0a1118;
  border-top: 1px solid var(--line);
}

.section-grid,
.status-section,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.copy-block p:last-child,
.service-card p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.copy-block p {
  max-width: 560px;
  line-height: 1.75;
}

.contact > div p {
  max-width: 520px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(105, 167, 216, 0.07), transparent 46%),
    var(--panel);
  border: 1px solid var(--line);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.service-card:nth-child(2),
.service-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(82, 199, 189, 0.08), transparent 46%),
    var(--panel-strong);
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal), rgba(82, 199, 189, 0));
}

.service-card h3 {
  color: var(--ink);
}

.card-index {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
}

.service-features {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-features li {
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(8, 13, 18, 0.34);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.audience-list,
.process-list,
.governance-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li,
.process-list li,
.governance-list li {
  position: relative;
  padding: 18px 18px 18px 46px;
  background:
    linear-gradient(90deg, rgba(82, 199, 189, 0.08), transparent 40%),
    var(--panel);
  border: 1px solid var(--line);
}

.audience-list li::before,
.process-list li::before,
.governance-list li::before {
  position: absolute;
  top: 23px;
  left: 18px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--teal);
}

.audience-list strong,
.process-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.audience-list strong::after,
.process-list strong::after {
  content: ":";
}

.audience-list span,
.process-list span {
  display: block;
  margin-top: 6px;
}

.audience-list small {
  display: block;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* WEB-9 — hero trust badges */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  padding: 6px 13px;
  color: var(--muted);
  background: rgba(82, 199, 189, 0.06);
  border: 1px solid rgba(82, 199, 189, 0.22);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* WEB-10 — visitor qualification */
.familiar-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  max-width: 1200px;
}

.familiar-list li {
  position: relative;
  padding: 18px 18px 18px 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.familiar-list li {
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.familiar-list li:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.familiar-list li::before {
  position: absolute;
  top: 21px;
  left: 18px;
  width: 14px;
  height: 14px;
  content: "";
  border: 1px solid var(--line-strong);
  background: rgba(82, 199, 189, 0.06);
  transition: background 160ms ease, border-color 160ms ease;
}

.familiar-list li.selected {
  color: var(--ink);
  border-color: rgba(82, 199, 189, 0.5);
  background: rgba(82, 199, 189, 0.08);
}

.familiar-list li.selected::before {
  content: "✓";
  background: var(--teal);
  border-color: var(--teal);
  color: #04100f;
  font-size: 0.65rem;
  font-weight: 900;
  text-align: center;
  line-height: 14px;
}

.familiar-close {
  max-width: 680px;
  margin: 0;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 600;
}

/* WEB-11 — proof flow cards */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  position: relative;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(105, 167, 216, 0.07), transparent 48%),
    var(--panel);
  border: 1px solid var(--line);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.proof-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.proof-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), rgba(105, 167, 216, 0));
}

.proof-card h3 {
  color: var(--ink);
}

.proof-card p,
.governance-list {
  color: var(--muted);
}

.proof-flow {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.proof-step {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.32);
}

.proof-step + .proof-arrow + .proof-step {
  border-top: none;
}

.proof-step.built {
  border-color: rgba(105, 167, 216, 0.28);
  background: rgba(105, 167, 216, 0.05);
}

.proof-step.result {
  border-color: rgba(82, 199, 189, 0.28);
  background: rgba(82, 199, 189, 0.05);
}

.proof-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--subtle);
}

.proof-step.built .proof-label {
  color: var(--blue);
}

.proof-step.result .proof-label {
  color: var(--teal);
}

.proof-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.proof-arrow {
  text-align: center;
  padding: 3px 0;
  color: var(--subtle);
  font-size: 0.9rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.18);
}

/* WEB-12 — integration ecosystem */
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: flex-start;
}

.tool-list li {
  padding: 10px 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}

.tool-list li:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.governance-section {
  border-top: 1px solid var(--line);
}

.status-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.status-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--panel);
}

dt {
  color: var(--subtle);
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--ink);
}

.contact {
  background:
    linear-gradient(90deg, rgba(82, 199, 189, 0.1), transparent 46%),
    #101923;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact .button {
  justify-self: start;
}

.contact-email {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: start;
  gap: 18px;
  color: var(--subtle);
  background: var(--charcoal);
  font-size: 0.94rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* Privacy / prose page */
.page-hero {
  padding: 140px clamp(20px, 5vw, 72px) 64px;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 3.2rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.page-meta {
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p,
.prose li,
.prose address {
  color: var(--muted);
  line-height: 1.75;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--teal);
}

.prose address {
  font-style: normal;
  margin-bottom: 24px;
  line-height: 1.9;
}

.prose-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.91rem;
}

.prose-table th {
  text-align: left;
  padding: 11px 16px;
  background: var(--panel-strong);
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}

.prose-table td {
  padding: 12px 16px;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.prose-note {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--panel);
  border-left: 3px solid var(--line);
  color: var(--subtle);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .page-title {
    font-size: 2.2rem;
  }

  .prose-table td:first-child {
    white-space: normal;
  }
}

/* end prose page */


@media (max-width: 1120px) {
  .hero-dashboard {
    width: min(360px, 38vw);
    right: clamp(20px, 4vw, 48px);
  }

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

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 188px;
    padding-bottom: 32px;
  }

  .hero-dashboard {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100% - 40px, 620px);
    margin: 0 auto 48px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-grid,
  .status-section,
  .contact,
  .service-grid,
  .proof-grid,
  .familiar-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section,
  .contact,
  .site-footer {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-content {
    width: min(100% - 32px, 900px);
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .dashboard-header,
  .signal-row > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-step::after {
    display: none;
  }

  .brand img {
    width: 180px;
  }

  .status-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
