/* ═══════════════════════════════════════════════════
   k365 — landing
   Aesthetic: dark technical instrument. Test-runner
   signal colors (phosphor pass / amber fail), mono
   display type, hairline grid, scanline grain.
   ═══════════════════════════════════════════════════ */

:root {
  /* surface */
  --bg:        #07090b;
  --bg-alt:    #0b0e12;
  --bg-tech:   #05070a;
  --surface:   #0f1319;
  --surface-2: #141a21;

  /* line */
  --line:      #1c242e;
  --line-soft: #161d25;

  /* text */
  --fg:        #e8edf2;
  --fg-mid:    #96a3b1;
  --fg-dim:    #5d6b7a;

  /* signal */
  --pass:      #4ade80;
  --pass-dim:  #1e5c3a;
  --fail:      #fbbf24;
  --fail-dim:  #6b4a08;
  --acc:       #4ade80;

  /* type */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;

  /* rhythm */
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(5rem, 11vw, 9rem);
  --r: 4px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--acc);
  color: #05070a;
  font-family: var(--mono);
  font-size: .8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── film grain / scanline atmosphere ──────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.028) 0 1px,
      transparent 1px 3px
    );
}

/* ── layout primitives ─────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 820px; }

.section {
  position: relative;
  padding-block: var(--sec-y);
  border-top: 1px solid var(--line-soft);
}
.section--alt { background: var(--bg-alt); }
.section--tech {
  background: var(--bg-tech);
  /* faint blueprint grid, keyed to the engineering section */
  background-image:
    linear-gradient(rgba(74,222,128,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ── typography ────────────────────────────────── */
.h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 .dim { color: var(--fg-dim); }

h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--fg-mid);
  max-width: 58ch;
}

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
}
.sec-head--center .sec-intro { margin-inline: auto; }

.sec-num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.sec-num--acc { color: var(--acc); }

.sec-intro {
  margin-top: 1.5rem;
  max-width: 62ch;
  color: var(--fg-mid);
  font-size: 1.02rem;
}

code {
  font-family: var(--mono);
  font-size: .875em;
  padding: .1em .4em;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--pass);
}

/* ── buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
}
.btn--sm { padding: .6rem 1.05rem; font-size: .8125rem; }
.btn--lg { padding: 1rem 1.85rem; font-size: .9375rem; }

.btn--primary {
  background: var(--acc);
  color: #05070a;
  font-weight: 700;
}
.btn--primary:hover {
  background: #6ee79b;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--fg-mid);
}
.btn--ghost:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
  transform: translateY(-2px);
}

/* ── navbar ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(7, 9, 11, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1rem var(--pad);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.02em;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--pass-dim);
  border-radius: 3px;
  background: rgba(74,222,128,.08);
  color: var(--pass);
}
.logo__mark svg { width: 15px; height: 15px; }
.logo__dim { color: var(--fg-dim); font-weight: 400; }

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--fg-mid);
}
.nav__links a {
  position: relative;
  padding-block: .25rem;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .75rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 9px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: .5rem var(--pad) 1.5rem;
  background: rgba(7,9,11,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .9rem;
}
.nav__mobile a { padding: .75rem 0; color: var(--fg-mid); }
.nav__mobile .btn { margin-top: .75rem; justify-content: center; color: #05070a; }

/* ── hero ──────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -25%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(74,222,128,.10) 0%, rgba(74,222,128,.03) 35%, transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .85rem .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mid);
}

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pass);
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--pass);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}

.hero__h1 {
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__h1-sub {
  display: block;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--fg-dim);
}

.hero .lede { margin-top: 1.75rem; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.25rem;
}
.hero__cta--center { justify-content: center; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2.25rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--fg-dim);
}
.trust li {
  position: relative;
  padding-left: 1rem;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pass-dim);
}

/* ── panel (shared instrument chrome) ──────────── */
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.03) inset,
    0 30px 70px -30px rgba(0,0,0,.9);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--fg-dim);
}
.panel__dots { display: flex; gap: 5px; flex: none; }
.panel__dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.panel__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  flex: none;
  margin-left: auto;
  padding: .15rem .5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tag--live {
  border-color: var(--pass-dim);
  background: rgba(74,222,128,.08);
  color: var(--pass);
}

.panel__body { padding: .5rem 0 0; }

.panel__foot {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: .8rem .9rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--fg-dim);
}
.panel__foot b { color: var(--fg); font-weight: 700; }

/* ── hero run log ──────────────────────────────── */
.runlog { font-family: var(--mono); font-size: .78rem; }
.runlog li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-mid);
}
.runlog__ico {
  flex: none;
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.runlog__ico::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--fg-dim);
}
.runlog__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.runlog__ms { margin-left: auto; flex: none; color: var(--fg-dim); font-size: .72rem; }

.runlog li[data-state="pass"] .runlog__ico { border-color: var(--pass-dim); background: rgba(74,222,128,.08); }
.runlog li[data-state="pass"] .runlog__ico::after { background: var(--pass); }

.runlog li[data-state="fail"] { color: var(--fg); }
.runlog li[data-state="fail"] .runlog__ico { border-color: var(--fail-dim); background: rgba(251,191,36,.1); }
.runlog li[data-state="fail"] .runlog__ico::after { background: var(--fail); }
.runlog li[data-state="fail"] .runlog__ms { color: var(--fail); }

.runlog li[data-state="run"] .runlog__ico::after {
  background: var(--fg-mid);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── hero trace block ──────────────────────────── */
.trace {
  margin: .35rem .55rem .55rem;
  padding: .75rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a0d11;
}
.trace__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--fg-dim);
}
.trace__label {
  padding: .1rem .4rem;
  border: 1px solid var(--fail-dim);
  border-radius: 2px;
  color: var(--fail);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.trace__crumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace__timeline {
  display: flex;
  gap: 2px;
  margin: .6rem 0;
  height: 6px;
}
.trace__timeline i {
  width: var(--w);
  border-radius: 1px;
  background: var(--pass-dim);
}
.trace__timeline i.is-fail {
  background: var(--fail);
  box-shadow: 0 0 12px rgba(251,191,36,.5);
}

.trace__line {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--fg-mid);
}
.trace__line b { color: var(--fail); font-weight: 500; }
.trace__line span { color: var(--fg-dim); }

/* ── problem cards ─────────────────────────────── */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.pain {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  transition: background .3s var(--ease);
}
.pain:hover { background: var(--surface); }
.pain__no {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--fail);
}
.pain h3 { margin-bottom: .6rem; }
.pain p { color: var(--fg-mid); font-size: .95rem; }

/* ── value row ─────────────────────────────────── */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value {
  padding-top: 1.25rem;
  border-top: 2px solid var(--pass-dim);
}
.value h3 { margin-bottom: .5rem; color: var(--pass); }
.value p { color: var(--fg-mid); font-size: .95rem; }

/* ── steps ─────────────────────────────────────── */
.steps { display: grid; gap: 1px; background: var(--line-soft); }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  background: var(--bg);
}
.step__no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--pass);
  background: var(--surface);
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--fg-mid); max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chips span {
  padding: .25rem .6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--fg-dim);
}

/* ── feature grid ──────────────────────────────── */
.grid-feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.feat {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bg-alt);
  transition: background .3s var(--ease);
}
.feat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--pass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.feat:hover { background: var(--surface); }
.feat:hover::before { transform: scaleX(1); }
.feat h3 { margin-bottom: .6rem; }
.feat p { color: var(--fg-mid); font-size: .92rem; }

/* ── technical rows ────────────────────────────── */
.tech { border-top: 1px solid var(--line); }
.tech__row {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.tech__row:hover { background: rgba(74,222,128,.025); }
.tech__row h3 { color: var(--pass); font-weight: 500; }
.tech__row p { color: var(--fg-mid); font-size: .95rem; }

/* ── audience ──────────────────────────────────── */
.who {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.who__card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.who__card:hover { border-color: var(--pass-dim); transform: translateY(-3px); }
.who__card h3 { margin-bottom: .6rem; }
.who__card p { color: var(--fg-mid); font-size: .92rem; }

/* ── integrations ──────────────────────────────── */
.integrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.int {
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--pass-dim);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
  transition: border-left-color .3s var(--ease);
}
.int:hover { border-left-color: var(--pass); }
.int h3 { margin-bottom: .5rem; }
.int p { color: var(--fg-mid); font-size: .9rem; }

/* ── reports ───────────────────────────────────── */
.reports {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.ticks { margin-top: 2rem; display: grid; gap: .85rem; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--fg-mid);
  font-size: .95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--pass);
  border-bottom: 1.5px solid var(--pass);
  transform: rotate(-45deg);
}

.panel--chart .panel__bar { gap: .5rem; }
.chart {
  position: relative;
  padding: 1.5rem 1rem 1rem;
  height: 240px;
}
.chart__grid {
  position: absolute;
  inset: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart__grid i { height: 1px; background: var(--line-soft); }

.chart__bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}
.chart__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--pass-dim), var(--pass));
  opacity: .85;
  transform-origin: bottom;
  animation: grow .8s var(--ease) backwards;
}
.chart__bars i.is-low {
  background: linear-gradient(to top, var(--fail-dim), var(--fail));
}
@keyframes grow { from { transform: scaleY(0); } }
.chart__bars i:nth-child(1)  { animation-delay: .02s }
.chart__bars i:nth-child(2)  { animation-delay: .06s }
.chart__bars i:nth-child(3)  { animation-delay: .10s }
.chart__bars i:nth-child(4)  { animation-delay: .14s }
.chart__bars i:nth-child(5)  { animation-delay: .18s }
.chart__bars i:nth-child(6)  { animation-delay: .22s }
.chart__bars i:nth-child(7)  { animation-delay: .26s }
.chart__bars i:nth-child(8)  { animation-delay: .30s }
.chart__bars i:nth-child(9)  { animation-delay: .34s }
.chart__bars i:nth-child(10) { animation-delay: .38s }
.chart__bars i:nth-child(11) { animation-delay: .42s }
.chart__bars i:nth-child(12) { animation-delay: .46s }
.chart__bars i:nth-child(13) { animation-delay: .50s }
.chart__bars i:nth-child(14) { animation-delay: .54s }

/* ── security ──────────────────────────────────── */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.sec-card {
  padding: 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--bg);
}
.sec-card h3 { margin-bottom: .5rem; color: var(--pass); }
.sec-card p { color: var(--fg-mid); font-size: .92rem; }

/* ── social proof ──────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.quote {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.quote blockquote {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg-mid);
}
.quote blockquote::before { content: "\201C"; color: var(--pass); }
.quote blockquote::after  { content: "\201D"; color: var(--pass); }
.quote figcaption {
  display: grid;
  gap: .15rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .78rem;
}
.quote figcaption b { color: var(--fg); font-weight: 500; }
.quote figcaption span { color: var(--fg-dim); }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 1.25rem;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.metric {
  display: grid;
  gap: .35rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  text-align: center;
}
.metric b {
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pass);
}
.metric span {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
}

.placeholder-note {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--fg-dim);
}

/* ── faq ───────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-size: 1.25rem;
  color: var(--pass);
  transition: transform .3s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--pass); }
.qa p {
  padding-bottom: 1.5rem;
  max-width: 68ch;
  color: var(--fg-mid);
  font-size: .95rem;
  animation: fadeUp .35s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ── final cta ─────────────────────────────────── */
.cta {
  position: relative;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  text-align: center;
}
.cta__glow {
  position: absolute;
  bottom: -60%;
  left: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(74,222,128,.13) 0%, transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta .lede { margin: 1.5rem auto 0; }

/* ── footer ────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.foot__brand p {
  margin-top: 1rem;
  max-width: 30ch;
  color: var(--fg-dim);
  font-size: .9rem;
}
.foot__col { display: grid; gap: .6rem; align-content: start; }
.foot__col h4 {
  margin-bottom: .35rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.foot__col a {
  font-size: .9rem;
  color: var(--fg-mid);
  transition: color .2s var(--ease);
}
.foot__col a:hover { color: var(--pass); }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--fg-dim);
}
.foot__status { display: inline-flex; align-items: center; gap: .5rem; }

/* ── scroll reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────── */
@media (max-width: 980px) {
  .hero__inner,
  .reports { grid-template-columns: 1fr; }
  .hero__panel { order: 2; }
  .tech__row { grid-template-columns: 1fr; gap: .5rem; }
  .foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--primary { display: none; }
  .nav.is-open .nav__mobile { display: flex; }
  .step { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 520px) {
  .foot__inner { grid-template-columns: 1fr; gap: 2rem; }
  .btn { width: 100%; justify-content: center; }
  .nav__actions .btn { width: auto; }
}

/* ── modal ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 7, 10, .82);
  backdrop-filter: blur(10px) saturate(120%);
  animation: backdropIn .25s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
@keyframes backdropIn { from { opacity: 0; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.modal__close:hover { color: var(--fg); border-color: var(--fg-dim); }
.modal__close svg { width: 16px; height: 16px; }

.modal__head { margin-bottom: 2rem; }
.modal__title {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.modal__sub { color: var(--fg-mid); font-size: .95rem; }

/* ── form fields ────────────────────────────────── */
.modal__form { display: grid; gap: 1.25rem; }

.field { display: grid; gap: .4rem; }

.field__label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mid);
}
.field__label span { color: var(--fail); }

.field__input,
.field__select {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field__input::placeholder { color: var(--fg-dim); }
.field__input:focus,
.field__select:focus {
  outline: none;
  border-color: var(--pass-dim);
  box-shadow: 0 0 0 3px rgba(74,222,128,.12);
}
.field__input.is-error,
.field__select.is-error { border-color: var(--fail); }

.field__select-wrap {
  position: relative;
  display: grid;
}
.field__select { padding-right: 2.5rem; cursor: pointer; }
.field__select option { background: var(--surface); }
.field__select-arrow {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fg-dim);
}
.field__select-arrow svg { width: 16px; height: 16px; }

.field__err {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--fail);
  min-height: 1em;
}

.modal__actions { margin-top: .5rem; }
.modal__submit {
  width: 100%;
  justify-content: center;
  position: relative;
}
.modal__submit.is-loading .submit-label { opacity: 0; }
.modal__submit.is-loading .submit-spinner { opacity: 1; }

.submit-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
}
.submit-spinner::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(5,7,10,.3);
  border-top-color: #05070a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── success state ──────────────────────────────── */
.modal__success {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0 .5rem;
}
.modal__success[hidden] { display: none; }
.success-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--pass-dim);
  background: rgba(74,222,128,.1);
  color: var(--pass);
}
.success-ico svg { width: 26px; height: 26px; }
.modal__success h3 {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
}
.modal__success p { color: var(--fg-mid); font-size: .95rem; }

/* also wire all "Request a Demo" nav/hero buttons */
[data-open-modal] { cursor: pointer; }

/* ── motion / contrast preferences ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .grain, .nav, .hero__glow, .cta__glow { display: none; }
  body { background: #fff; color: #000; }
}
