/*
 * DigitalZillions — "Signal" design system.
 *
 * Dark, luminous, technical. The house accent is the green sampled from the
 * DigitalZillions mark (#5AD450); each product overrides --accent locally so a
 * grid of cards reads as one family with four members rather than four
 * unrelated sites.
 *
 * Everything is self-hosted: no CDN, no external font service, no tracking.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------------------------------------------------------------- tokens */

:root {
  /* canvas */
  --bg: #07090c;
  --bg-raised: #0b0e13;
  --bg-elevated: #10141a;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* ink */
  --fg: #e9eef3;
  --fg-strong: #ffffff;
  --fg-muted: #94a0ae;
  --fg-faint: #7a8794;

  /* house accent, sampled from the DigitalZillions mark */
  --brand: #5ad450;
  --brand-bright: #7ee874;
  --brand-deep: #2e9e28;
  --brand-ink: #04140a;
  --brand-rgb: 90, 212, 80;

  /* per-product tint; overridden inline on cards and product pages */
  --accent: var(--brand);
  --accent-rgb: var(--brand-rgb);
  --accent-ink: var(--brand-ink);

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.0625rem, 1.01rem + 0.28vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.29rem + 1.05vw, 2.125rem);
  --step-4: clamp(1.875rem, 1.5rem + 1.85vw, 3rem);
  --step-5: clamp(2.5rem, 1.72rem + 3.9vw, 4.75rem);

  /* layout */
  --shell: 1180px;
  --shell-narrow: 760px;
  --gutter: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
  --section-y: clamp(4rem, 2.6rem + 7vw, 8.5rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 44px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.95);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

/* -------------------------------------------------------------- base ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--fg-strong);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(var(--accent-rgb), 0.35);
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease),
    text-decoration-color var(--dur) var(--ease);
}

a:hover {
  color: var(--brand-bright);
  text-decoration-color: currentColor;
}

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

::selection {
  background: rgba(var(--brand-rgb), 0.28);
  color: #fff;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 3rem 0;
}

/* ------------------------------------------------------------- utilities */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-narrow {
  max-width: var(--shell-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

/* The page header already carries its own bottom padding and a rule. */
.page-head + .section,
.page-head + .section-tight {
  padding-top: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Mono micro-label used above section headings. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 1.1rem;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
  flex: none;
}

.lede {
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 44ch;
}

.muted {
  color: var(--fg-muted);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
}

.section-head p {
  color: var(--fg-muted);
  font-size: var(--step-1);
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--hairline);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg-strong);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 26px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(var(--brand-rgb), 0.45));
  transition: filter var(--dur) var(--ease);
}

.brand:hover {
  color: var(--fg-strong);
}

.brand:hover img {
  filter: drop-shadow(0 0 18px rgba(var(--brand-rgb), 0.7));
}

.brand em {
  font-style: normal;
  color: var(--brand);
}

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

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--fg-strong);
  background: var(--surface-hover);
}

.nav-links a[aria-current="page"] {
  color: var(--fg-strong);
}

/* Duplicate of the Support link, kept because being easy to reach is the point. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--fg-strong) !important;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav-cta:hover {
  border-color: rgba(var(--brand-rgb), 0.55);
  background: rgba(var(--brand-rgb), 0.1);
  box-shadow: 0 0 24px -8px rgba(var(--brand-rgb), 0.6);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), 0.85);
}

.btn-primary:hover {
  background: var(--brand-bright);
  color: var(--brand-ink);
  box-shadow: 0 14px 38px -12px rgba(var(--accent-rgb), 1);
}

.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--fg-strong);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--fg-strong);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

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

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 3rem + 8vw, 9rem) clamp(3.5rem, 2.4rem + 5vw, 6rem);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Two soft radial pools: house green low-left, a cool violet high-right. */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-bg::before {
  width: 46rem;
  height: 34rem;
  left: -12rem;
  top: -8rem;
  background: radial-gradient(
    closest-side,
    rgba(var(--accent-rgb), 0.22),
    transparent 72%
  );
}

.hero-bg::after {
  width: 40rem;
  height: 30rem;
  right: -14rem;
  top: -4rem;
  background: radial-gradient(
    closest-side,
    rgba(124, 92, 255, 0.16),
    transparent 72%
  );
}

/* Faint circuit traces echoing the mark. */
/*
 * Height is pinned to the viewBox height so a tall hero doesn't scale the
 * traces up into the copy — they stay background texture, never a subject.
 */
.trace-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 620px;
  opacity: 0.34;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    transparent 78%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    transparent 78%
  );
}

.trace-field .trace {
  stroke: rgba(var(--brand-rgb), 0.24);
  stroke-width: 1;
  fill: none;
}

.trace-field .node {
  fill: var(--bg);
  stroke: rgba(var(--brand-rgb), 0.4);
  stroke-width: 1.25;
}

.trace-field .node-lit {
  fill: rgba(var(--brand-rgb), 0.75);
  stroke: none;
  animation: pulse 4.5s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* Sits inside .shell, so it stays flush with the nav's left edge. */
.hero-inner {
  position: relative;
  max-width: 46rem;
}

/* ------------------------------------------------------- home brand lockup */

.hero-home {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.4rem + 5vw, 6rem);
}

.hero-lockup {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 54rem;
  margin-inline: auto;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(104px, 6rem + 7vw, 176px);
  aspect-ratio: 364 / 422;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  animation: mark-float 7s ease-in-out infinite;
}

/* Breathing pool of brand light behind the mark. */
.hero-mark::before {
  content: "";
  position: absolute;
  width: 270%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(var(--brand-rgb), 0.2),
    transparent 72%
  );
  filter: blur(30px);
  animation: glow-breathe 6.5s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--brand);
  filter: drop-shadow(0 0 26px rgba(var(--brand-rgb), 0.45))
    drop-shadow(0 2px 40px rgba(var(--brand-rgb), 0.25));
}

/* Slowly rotating arc, masked to a hairline ring. */
.hero-ring {
  position: absolute;
  width: 188%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(var(--brand-rgb), 0.6) 46deg,
    transparent 116deg,
    transparent 244deg,
    rgba(124, 92, 255, 0.5) 304deg,
    transparent 352deg
  );
  /*
   * Four stops, not two: stopping at "opaque from 79%" leaves everything out
   * to the element's edge visible, which reads as a disc rather than a ring.
   * The outer pair closes the band again.
   */
  mask: radial-gradient(
    closest-side,
    transparent 76%,
    #000 78.5%,
    #000 81%,
    transparent 83.5%
  );
  -webkit-mask: radial-gradient(
    closest-side,
    transparent 76%,
    #000 78.5%,
    #000 81%,
    transparent 83.5%
  );
  animation: ring-spin 18s linear infinite;
}

.hero-home h1 {
  font-size: inherit;
  margin-bottom: 1.1rem;
}

.hero-wordmark {
  display: block;
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.038em;
  color: var(--fg-strong);
  margin-bottom: 0.3em;
}

.hero-wordmark em {
  font-style: normal;
  background: linear-gradient(
    100deg,
    var(--brand-bright),
    var(--brand) 38%,
    #37c9a8 62%,
    var(--brand-bright)
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordmark-sweep 9s ease-in-out infinite;
}

.hero-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--fg-muted);
}

.hero-home .lede {
  max-width: 46ch;
  margin-inline: auto;
  font-size: var(--step-1);
}

.hero-home .btn-row,
.hero-home .hero-meta {
  justify-content: center;
}

.hero-home .hero-meta {
  width: 100%;
  max-width: 46rem;
  gap: 0.5rem 1.5rem;
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wordmark-sweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero h1 {
  font-size: var(--step-5);
  margin-bottom: 0.5em;
}

.hero h1 .grad {
  background: linear-gradient(
    100deg,
    var(--brand-bright) 0%,
    var(--brand) 42%,
    #37c9a8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 40ch;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

.hero-meta strong {
  color: var(--fg);
  font-weight: 500;
}

/* ------------------------------------------------------------ page header */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem) clamp(2rem, 1.5rem + 2.5vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -50% 30% auto -20%;
  height: 30rem;
  background: radial-gradient(
    closest-side,
    rgba(var(--accent-rgb), 0.14),
    transparent 70%
  );
  filter: blur(70px);
  pointer-events: none;
}

.page-head > * {
  position: relative;
}

.page-head h1 {
  margin-bottom: 0.4em;
}

.page-head .lede {
  max-width: 56ch;
  font-size: var(--step-1);
}

/* ------------------------------------------------------------ breadcrumbs */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.crumbs a {
  color: var(--fg-faint);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.18);
}

/* ------------------------------------------------------------ status pill */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/*
 * Status colours are semantic, not per-product: on a crimson-tinted card an
 * accent-coloured "Available" pill reads as an error.
 */
.status-live {
  color: var(--brand);
  border-color: rgba(var(--brand-rgb), 0.4);
  background: rgba(var(--brand-rgb), 0.1);
}

.status-live::before {
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}

.status-beta {
  color: #7ab6ff;
  border-color: rgba(122, 182, 255, 0.35);
  background: rgba(122, 182, 255, 0.1);
}

.status-soon {
  color: #e8b45c;
  border-color: rgba(232, 180, 92, 0.32);
  background: rgba(232, 180, 92, 0.09);
}

.status-exploring {
  color: var(--fg-faint);
}

/* ---------------------------------------------------------- project cards */

/* 26rem keeps a four-product catalogue as a balanced 2x2 rather than 3+1. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(
      160deg,
      rgba(var(--accent-rgb), 0.07),
      transparent 46%
    ),
    var(--bg-raised);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* Hairline of product colour along the top edge. */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.7) 22%,
    rgba(var(--accent-rgb), 0.7) 78%,
    transparent
  );
  opacity: 0.65;
  transition: opacity var(--dur) var(--ease);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--shadow-lift), 0 0 60px -30px rgba(var(--accent-rgb), 0.8);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:focus-within {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.project-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-card h3 {
  font-size: var(--step-2);
  margin: 0;
  margin-right: auto;
  letter-spacing: -0.024em;
}

.project-card h3 a {
  color: var(--fg-strong);
  text-decoration: none;
}

/* Make the whole card clickable while keeping a real focusable link. */
.project-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.9688rem;
}

.project-card .tagline {
  color: var(--fg);
  font-weight: 500;
}

/*
 * space-between with the metadata as one wrappable run: literal separators
 * between flex children strand a dangling "|" at the start of a wrapped line.
 */
.project-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

.project-card-foot .foot-meta {
  min-width: 0;
}

/* Links that must sit above the card's full-bleed click target. */
.project-card-foot a,
.project-card .above {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------- features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.feature h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
  flex: none;
}

.feature p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.9688rem;
}

/* Bulleted highlight list with mark-style ticks. */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--fg-muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.85);
  background: rgba(var(--accent-rgb), 0.16);
}

/* ------------------------------------------------------------------ panel */

.panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.panel-accent {
  background: linear-gradient(
      160deg,
      rgba(var(--accent-rgb), 0.08),
      transparent 50%
    ),
    var(--bg-raised);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.split {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split-3-2 {
    grid-template-columns: 3fr 2fr;
  }
  .split-2-3 {
    grid-template-columns: 2fr 3fr;
  }
  .split-even {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sticky sidebar for support/product pages. */
@media (min-width: 900px) {
  .sticky-aside {
    position: sticky;
    top: 6rem;
  }
}

/* -------------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--fg-strong);
  letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: auto;
  margin-top: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq .answer {
  padding: 0 0 1.5rem;
  color: var(--fg-muted);
  max-width: 68ch;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ forms */

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid .span-2 {
    grid-column: 1 / -1;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/*
 * align-content: start so a field without a hint doesn't stretch its input to
 * match the height of a neighbour that has one.
 */
.field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.005em;
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--fg-faint);
}

.field .req {
  color: var(--accent);
  margin-left: 0.15em;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9688rem;
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  appearance: none;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(1.2em), calc(100% - 14px) calc(1.2em);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-faint);
  opacity: 0.7;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(var(--brand-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.16);
  background: var(--bg-raised);
}

/* Honeypot — hidden from people, visible to naive bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.875rem;
  color: var(--fg-faint);
  margin: 0;
}

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  font-size: 0.9375rem;
}

.form-status[data-state="ok"] {
  border-color: rgba(var(--brand-rgb), 0.45);
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--fg-strong);
}

.form-status[data-state="error"] {
  border-color: rgba(232, 92, 92, 0.5);
  background: rgba(232, 92, 92, 0.1);
  color: #ffd9d9;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ prose */

.prose {
  max-width: 68ch;
  color: var(--fg-muted);
  font-size: 1.0313rem;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  color: var(--fg-strong);
  scroll-margin-top: 6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--fg-strong);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin: 0 0 1.4em;
}

.prose li {
  margin-bottom: 0.55em;
}

.prose li::marker {
  color: rgba(var(--brand-rgb), 0.75);
}

.prose > p:first-of-type {
  color: var(--fg);
}

.prose blockquote {
  margin: 1.75em 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(var(--brand-rgb), 0.6);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--fg);
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

/*
 * Contact/Company rows in the legal pages. A grid rather than <strong> + <br>
 * so the labels share a column and the values line up under each other,
 * whatever length the labels are.
 */
.contact-block {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.75rem;
  margin: 2rem 0 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-block dt {
  font-weight: 600;
  color: var(--fg);
}

.contact-block dd {
  margin: 0;
  color: var(--fg-muted);
}

@media (max-width: 30rem) {
  .contact-block {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .contact-block dd:not(:last-child) {
    margin-bottom: 0.9rem;
  }
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

/* --------------------------------------------------------------- listrows */

.rows {
  border-top: 1px solid var(--hairline);
}

.row-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: padding-inline-start var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.row-link:hover {
  background: var(--surface);
  padding-inline-start: 0.75rem;
}

.row-link .row-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--fg-strong);
  letter-spacing: -0.015em;
}

.row-link .row-sub {
  color: var(--fg-faint);
  font-size: 0.9062rem;
}

.row-link .row-main {
  margin-right: auto;
  min-width: 0;
}

.row-link .arrow {
  flex: none;
  color: var(--fg-faint);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.row-link:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ------------------------------------------------------------------- CTA  */

.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(
      150deg,
      rgba(var(--brand-rgb), 0.12),
      transparent 55%
    ),
    var(--bg-raised);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  text-align: center;
}

.cta h2 {
  margin-bottom: 0.4em;
}

.cta p {
  color: var(--fg-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.cta .btn-row {
  justify-content: center;
}

/* Two CTAs side by side, so the ideas box and the support box don't read as
   the same panel repeated. */
.cta-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: stretch;
}

.cta-grid .cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

.cta-grid .cta p {
  margin-inline: 0;
}

.cta-grid .cta .btn-row {
  justify-content: flex-start;
  margin-top: auto;
}

/* ---------------------------------------------------------------- footer  */

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem) 2rem;
  margin-top: var(--section-y);
  color: var(--fg-faint);
  font-size: 0.9062rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 26ch;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0;
  color: var(--fg-faint);
}

/* h2 for heading order; the mono micro-label styling is unchanged. */
.footer h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

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

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

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8438rem;
}

.footer-base p {
  margin: 0;
}

.footer-base .spacer {
  margin-left: auto;
}

/* ---------------------------------------------------------------- motion  */

/*
 * Scoped to .js so the page is fully legible when scripting is unavailable or
 * fails — the animation is an enhancement, never a precondition for content.
 */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- print   */

@media print {
  .nav,
  .footer,
  .hero-bg,
  .trace-field,
  .btn-row {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
