/* KVAScout public site
   Palette: navy #070B1A, blue #2F6BFF, cyan #00E5FF (use #00A9CC on light
   backgrounds), amber #FF8A1F for CTA buttons only.
   No gradient text. Headlines use solid colors only. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #070b1a;
  --surface: #0e1530;
  --grid: #1c2647;
  --blue: #2f6bff;
  --cyan: #00e5ff;
  --cyan-light-bg: #00a9cc; /* reserved for text on light backgrounds */
  --white: #ffffff;
  --grey-100: #e6eaf2;
  --grey-300: #a7b0c8;
  --grey-500: #6b7591;
  --grey-700: #2a3350;
  --amber: #ff8a1f;
  --text: #e6eaf2;
  --muted: #a7b0c8;
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: Inter, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 72rem;
  --header-h: 4.5rem;
  --radius: 0.875rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--white);
}

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

::selection {
  background: var(--blue);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 64rem) {
  .wrap {
    width: min(var(--wrap), calc(100% - 5rem));
  }
}

@media (min-width: 52rem) {
  .category {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
  }

  .category-head {
    margin-bottom: 0;
  }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--grid);
  background: rgba(7, 11, 26, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  margin-right: auto;
}

.logo img {
  height: 2.15rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--grey-300);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 0.4rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav a[aria-current="page"] {
  background: rgba(47, 107, 255, 0.12);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--grid);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 624.9375rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-cta {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: #ff9d42;
  color: var(--navy);
  border-color: #ff9d42;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--grey-700);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(0, 229, 255, 0.06);
}

.header-inner .btn-cta {
  padding: 0.7rem 1.1rem;
  flex: 0 0 auto;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---- Backgrounds ---- */
.grid-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, rgba(28, 38, 71, 0.85) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 38, 71, 0.85) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% 10% -10%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(47, 107, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(0, 229, 255, 0.1), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0 28px,
    rgba(0, 229, 255, 0.025) 28px 29px
  );
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.35rem);
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.accent {
  color: var(--cyan);
}

.lede,
.hero-lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--grey-300);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.hero-copy {
  max-width: 42rem;
}

/* ---- Layout sections ---- */
.section {
  padding: 4.5rem 0;
}

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

.section-head {
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
}

.band {
  border-block: 1px solid var(--grid);
  background: var(--surface);
}

.split-2,
.cards-2,
.cards-3,
.cards-4 {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  box-shadow: none;
  height: 100%;
}

.card:hover {
  border-color: rgba(47, 107, 255, 0.55);
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover h3,
a.card:hover .card-title {
  color: var(--cyan);
}

.card p,
.card li {
  color: var(--grey-300);
}

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

.step-num,
.mono-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.85rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--grey-500);
}

.step-num span.label {
  color: var(--cyan);
}

.icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--grid);
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.04);
}

.icon-wrap svg {
  width: 1.35rem;
  height: 1.35rem;
}

.list-plain {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.list-plain li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.4rem 0;
}

.list-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}

.stat-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
}

.stat-band p {
  margin: 0 0 0.4rem;
  color: var(--grey-100);
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 44rem;
}

.stat-band cite,
.source {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}

.source a {
  color: var(--grey-300);
}

.built-for h3 {
  margin-top: 0.25rem;
}

.cta-band {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(47, 107, 255, 0.2), transparent 50%),
    var(--surface);
  border-block: 1px solid var(--grid);
  padding: 4rem 0;
  text-align: left;
}

.cta-band p {
  color: var(--grey-300);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

/* ---- Prose pages ---- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
}

.page-hero + .section {
  padding-top: 1.5rem;
}

.page-hero .lede {
  margin-bottom: 0;
}

.prose {
  max-width: 44rem;
}

.prose p {
  color: var(--grey-300);
}

.category {
  padding: 2.25rem 0;
  border-top: 1px solid var(--grid);
}

.category:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.category-head .icon-wrap {
  margin-bottom: 0;
}

.category-head h2 {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

.flow {
  display: grid;
  gap: 1.25rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-index {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}

.flow-step p {
  margin: 0;
  color: var(--grey-300);
}

.note-box {
  border: 1px solid var(--grid);
  border-left: 3px solid var(--blue);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.25rem;
  color: var(--grey-300);
}

.note-box strong {
  color: var(--white);
  font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--grid);
  padding: 3rem 0 2rem;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p,
.footer-col a,
.footer-note,
.copyright {
  color: var(--grey-500);
  font-size: 0.875rem;
}

.footer-brand .logo img {
  height: 1.9rem;
  margin-bottom: 1rem;
}

.footer-brand a.mail {
  color: var(--grey-300);
  text-decoration: none;
  font-weight: 500;
}

.footer-brand a.mail:hover {
  color: var(--cyan);
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin: 0 0 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0.35rem 0;
}

.footer-col a {
  color: var(--grey-300);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-note {
  margin: 2.25rem 0 0.75rem;
  max-width: 46rem;
  line-height: 1.6;
}

.copyright {
  margin: 0;
}

/* ---- Coming soon ---- */
body.coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.coming-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.coming-main::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(47, 107, 255, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 10%, rgba(0, 229, 255, 0.08), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.coming-panel {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.coming-panel .logo {
  justify-content: center;
  margin: 0 0 1.75rem;
}

.coming-panel .logo img {
  height: 3rem;
}

.coming-panel h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 1.5rem;
}

.coming-panel .status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.5rem;
}

.coming-panel .mail {
  display: inline-flex;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 0.15rem;
}

.coming-panel .mail:hover {
  color: var(--cyan);
}

.coming-footer {
  padding: 1.25rem 0 1.75rem;
  text-align: center;
}

.coming-footer p {
  margin: 0;
  color: var(--grey-500);
  font-size: 0.8125rem;
}

/* ---- 404 ---- */
.not-found {
  min-height: calc(100vh - var(--header-h) - 14rem);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

/* ---- Mobile ---- */
@media (max-width: 64rem) {
  .cards-4,
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .header-inner {
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .header-inner .btn-cta {
    order: 1;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(7, 11, 26, 0.97);
    border-bottom: 1px solid var(--grid);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.4rem;
    border-radius: 0;
    border-bottom: 1px solid var(--grid);
  }

  .cards-2,
  .cards-3,
  .cards-4,
  .split-2,
  .flow-step,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .logo img {
    height: 1.85rem;
  }
}

@media (max-width: 28rem) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .header-inner .btn-cta {
    padding: 0.6rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
