/* DoJu Systems — single stylesheet.
   Dark by design. No webfonts, no external requests, no JavaScript.
   The CSP sends style-src 'self', so inline style="" attributes are blocked —
   everything lives here. All motion is CSS-only and respects
   prefers-reduced-motion. */

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

:root {
  color-scheme: dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --bg: #06090d;
  --text: #e9eff5;
  --text-muted: #93a4b6;
  --text-dim: #6c7d8f;

  --border: rgba(255, 255, 255, 0.08);
  --border-lit: rgba(61, 219, 196, 0.38);

  --accent: #3ddbc4;
  --accent-b: #4d8dff;
  --accent-ink: #04211d;
  --glow: rgba(61, 219, 196, 0.22);
  --down: #ff5f70;

  --radius: 14px;
  --measure: 40rem;
  --container: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

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

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fixed backdrop layers. position:fixed takes these out of the flex flow,
   so they never become flex items of <body>. */

/* Trading-chart grid: bright major gridlines every 144px over a finer minor
   grid every 36px, faded out towards the edges. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 144px 144px, 144px 144px, 36px 36px, 36px 36px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    #000 20%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 90% 60% at 50% 0%,
    #000 20%,
    transparent 78%
  );
}

/* Slow-drifting aurora. Soft radial gradients, no filter: blur() — the
   gradients are already soft, and this stays cheap to composite. */
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(
      38% 44% at 22% 18%,
      rgba(61, 219, 196, 0.16),
      transparent 70%
    ),
    radial-gradient(
      34% 40% at 78% 8%,
      rgba(77, 141, 255, 0.14),
      transparent 70%
    ),
    radial-gradient(
      30% 34% at 62% 62%,
      rgba(61, 219, 196, 0.07),
      transparent 72%
    );
  animation: drift 34s var(--ease) infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.12);
  }
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 660;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.3rem + 3.4vw, 3.75rem);
  background: linear-gradient(174deg, #ffffff 12%, #9fb3c4 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms var(--ease);
}

a:hover {
  color: #7df0dd;
}

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

/* ---------- layout ---------- */

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

main {
  flex: 1;
}

.section {
  padding-block: clamp(3.25rem, 7.5vw, 6rem);
  position: relative;
}

/* Hairline rule that fades out at both ends. */
.section + .section::before,
.section--sunken::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12) 22%,
    rgba(255, 255, 255, 0.12) 78%,
    transparent
  );
}

.section--sunken {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022),
    rgba(255, 255, 255, 0)
  );
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 20;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 9, 13, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: 4.25rem;
  padding-block: 0.75rem;
}

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

.brand__mark {
  display: block;
  width: 1.95rem;
  height: 1.95rem;
  flex: none;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--glow));
  transition: transform 300ms var(--ease);
}

/* Candlestick mark: rising three-candle sequence. Up candles inherit
   currentColor so the mark still recolours from one property. */
.brand__mark .cw {
  stroke-width: 1.6;
  stroke-linecap: round;
}

.brand__mark .cw.up {
  stroke: currentColor;
}

.brand__mark .cb.up {
  fill: currentColor;
}

.brand__mark .cw.down {
  stroke: var(--down);
}

.brand__mark .cb.down {
  fill: var(--down);
}

.brand:hover .brand__mark {
  transform: scale(1.07);
}

.brand__name {
  white-space: nowrap;
}

.brand__suffix {
  color: var(--text-dim);
  font-weight: 500;
}

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

.nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 520;
  padding-block: 0.3rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

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

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    border-color 200ms var(--ease), color 200ms var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #34c8dc);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px -10px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -10px rgba(61, 219, 196, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px var(--glow);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

/* ---------- eyebrow + lede ---------- */

.eyebrow {
  display: inline-flex;
  /* flex-start (not center) so the dot stays on the first line when the
     label wraps on narrow screens. */
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  font-weight: 500;
}

/* Live-looking status dot. */
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.8s var(--ease) infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 219, 196, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(61, 219, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 219, 196, 0);
  }
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 9vw, 7.5rem);
  /* Bottom padding must exceed .hero__viz height so the candles and trace
     never run through the text or buttons. */
  padding-bottom: clamp(10.5rem, 19vw, 16rem);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 20ch;
}

.hero .lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
}

/* Hero backdrop: candlesticks with a static, softly-blurred latency trace
   sitting over them. Both purely decorative (the markup is aria-hidden). */
.hero__viz {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(130px, 21vw, 215px);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 14%,
    #000 86%,
    transparent
  );
}

.hero__viz svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* --- candles --- */

/* Muted, desaturated red/green so the candles sit behind everything as
   background texture instead of competing with the trace and the copy. */
.hero__candles {
  opacity: 0.34;
}

.hero__candles .wick {
  stroke-width: 1.4;
}

.hero__candles .up {
  stroke: #2f8f74;
  fill: #2f8f74;
}

.hero__candles .down {
  stroke: #8f4450;
  fill: #8f4450;
}

/* --- candles appear and disappear --- */
/* Each candle grows from its base, holds, then fades, staggered left to
   right so the chart continually draws and redraws itself. */

.hero__candles .candle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: candle 9s var(--ease) infinite;
}

.hero__candles .candle rect {
  stroke: none;
}

@keyframes candle {
  0% {
    opacity: 0;
    transform: scaleY(0.3);
  }
  9% {
    opacity: 1;
    transform: scaleY(1);
  }
  62% {
    opacity: 1;
    transform: scaleY(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scaleY(0.3);
  }
}

.hero__candles .candle:nth-child(1) { animation-delay: 0.00s; }
.hero__candles .candle:nth-child(2) { animation-delay: 0.28s; }
.hero__candles .candle:nth-child(3) { animation-delay: 0.56s; }
.hero__candles .candle:nth-child(4) { animation-delay: 0.84s; }
.hero__candles .candle:nth-child(5) { animation-delay: 1.12s; }
.hero__candles .candle:nth-child(6) { animation-delay: 1.40s; }
.hero__candles .candle:nth-child(7) { animation-delay: 1.68s; }
.hero__candles .candle:nth-child(8) { animation-delay: 1.96s; }
.hero__candles .candle:nth-child(9) { animation-delay: 2.24s; }
.hero__candles .candle:nth-child(10) { animation-delay: 2.52s; }
.hero__candles .candle:nth-child(11) { animation-delay: 2.80s; }
.hero__candles .candle:nth-child(12) { animation-delay: 3.08s; }
.hero__candles .candle:nth-child(13) { animation-delay: 3.36s; }
.hero__candles .candle:nth-child(14) { animation-delay: 3.64s; }
.hero__candles .candle:nth-child(15) { animation-delay: 3.92s; }
.hero__candles .candle:nth-child(16) { animation-delay: 4.20s; }
.hero__candles .candle:nth-child(17) { animation-delay: 4.48s; }
.hero__candles .candle:nth-child(18) { animation-delay: 4.76s; }
.hero__candles .candle:nth-child(19) { animation-delay: 5.04s; }
.hero__candles .candle:nth-child(20) { animation-delay: 5.32s; }
.hero__candles .candle:nth-child(21) { animation-delay: 5.60s; }
.hero__candles .candle:nth-child(22) { animation-delay: 5.88s; }
.hero__candles .candle:nth-child(23) { animation-delay: 6.16s; }
.hero__candles .candle:nth-child(24) { animation-delay: 6.44s; }
.hero__candles .candle:nth-child(25) { animation-delay: 6.72s; }

/* ---------- credential badge ---------- */
/* Drawn in-house rather than using a vendor logo: no third-party asset, no
   external request (the CSP blocks those anyway), and no implication of
   endorsement beyond the factual certification. */

.credential {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.9rem;
  padding: 0.9rem 1.25rem 0.9rem 1.05rem;
  border: 1px solid var(--border-lit);
  border-radius: 12px;
  background: linear-gradient(
    150deg,
    rgba(61, 219, 196, 0.1),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: 0 0 30px -18px var(--glow);
}

.credential__seal {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  color: var(--accent);
  filter: drop-shadow(0 0 7px var(--glow));
}

.credential__title {
  display: block;
  font-weight: 640;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.credential__sub {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* Inline variant for use inside a card. align-self stops it stretching to
   the full card width, since the card is a column flex container. */
.credential--inline {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.4rem 0.7rem;
  gap: 0.5rem;
  border-radius: 8px;
}

.credential--inline .credential__seal {
  width: 1.15rem;
  height: 1.15rem;
}

.credential--inline .credential__title {
  font-size: 0.8125rem;
  font-weight: 600;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.014)
  );
  overflow: hidden;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}

/* Spotlight that fades in on hover. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 55% at 20% 0%, var(--glow), transparent 72%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-lit);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.9), 0 0 34px -18px var(--glow);
}

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

.card > * {
  position: relative;
}

.card__icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 7px var(--glow));
  transition: transform 300ms var(--ease);
}

.card:hover .card__icon {
  transform: translateY(-2px) scale(1.06);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9688rem;
  margin-bottom: 1.2rem;
}

.card__link {
  margin-top: auto;
  font-weight: 580;
  font-size: 0.9375rem;
  text-decoration: none;
}

.card__link::after {
  /* display:inline-block collapses a leading space in content, so the gap
     has to come from margin. */
  content: "\2192";
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 240ms var(--ease);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* ---------- capability list ---------- */
/* Explicitly one or two columns — never auto-fit, which silently becomes
   three on a wide viewport and misaligns the rows. */

.caps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  counter-reset: cap;
  border-top: 1px solid var(--border);
}

@media (min-width: 46em) {
  .caps {
    grid-template-columns: 1fr 1fr;
  }
}

.caps li {
  position: relative;
  counter-increment: cap;
  padding: 1.45rem 0 1.45rem 3.4rem;
  border-bottom: 1px solid var(--border);
  transition: border-color 260ms var(--ease);
}

.caps li::before {
  content: counter(cap, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.55;
  transition: opacity 260ms var(--ease), text-shadow 260ms var(--ease);
}

.caps li:hover::before {
  opacity: 1;
  text-shadow: 0 0 10px var(--glow);
}

.caps li:hover {
  border-color: var(--border-lit);
}

.caps strong {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  max-width: var(--measure);
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.95rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-b));
  box-shadow: 0 0 10px var(--glow);
}

.checklist strong {
  color: var(--text);
  font-weight: 580;
}

/* ---------- audience ---------- */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.audience > div {
  padding-top: 1.25rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), transparent) 1;
}

.audience h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

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

/* ---------- technology stack ---------- */

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stack__group {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  transition: border-color 260ms var(--ease);
}

.stack__group:hover {
  border-color: var(--border-lit);
}

.stack__icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 7px var(--glow));
}

.stack__group h3 {
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.stack__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack__items li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- comparison table ---------- */
/* The wrapper scrolls, not the page: a min-width on the table keeps columns
   readable on a phone without ever pushing <body> sideways. */

.table-wrap {
  overflow-x: auto;
  margin-top: 2.25rem;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  min-width: 33rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 0.85rem 1.15rem 0.85rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-wrap th {
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  border-bottom-color: var(--border-lit);
  white-space: nowrap;
}

.table-wrap td {
  color: var(--text-muted);
}

.table-wrap td:first-child {
  color: var(--text);
  font-weight: 580;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
/* Plain visible headings and answers rather than a collapsed accordion —
   question-shaped h3s are what long-tail search actually matches on. */

.faq {
  display: grid;
  gap: 1.9rem;
  margin-top: 2.5rem;
  max-width: 44rem;
}

.faq h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.faq p {
  margin: 0 0 0.7em;
  color: var(--text-muted);
  font-size: 0.9688rem;
  max-width: none;
}

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

/* ---------- contact ---------- */

.contact-block {
  margin-top: 2.25rem;
  padding: 1.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(61, 219, 196, 0.07),
    rgba(255, 255, 255, 0.015)
  );
  max-width: var(--measure);
}

.contact-block dl {
  margin: 0;
  display: grid;
  gap: 1.3rem;
}

.contact-block dt {
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.contact-block dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.note {
  font-size: 0.875rem;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-top: 2.25rem;
  max-width: var(--measure);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding-block: 2.5rem;
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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

.site-footer p {
  margin: 0;
}

/* ---------- error page ---------- */

.center-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance, staggered. */
  .hero .eyebrow {
    animation: rise 0.7s 0.04s var(--ease) both;
  }
  .hero h1 {
    animation: rise 0.7s 0.13s var(--ease) both;
  }
  .hero .lede {
    animation: rise 0.7s 0.22s var(--ease) both;
  }
  .hero .btn-row {
    animation: rise 0.7s 0.31s var(--ease) both;
  }

  /* Scroll-driven reveals. Progressive enhancement: browsers without
     scroll-driven animation support simply show the content as normal. */
  @supports (animation-timeline: view()) {
    .section .eyebrow,
    .section > .container > h2,
    .section > .container > .lede,
    .section > .container > p,
    .card,
    .caps li,
    .audience > div,
    .checklist li,
    .contact-block,
    .note,
    .section .btn-row {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Candles rest at opacity 0 and are revealed by their animation, so the
     blanket rule above would leave them invisible. Show them outright. */
  .hero__candles .candle {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
