/* Harmony Intelligence — dark marketing site */

* { box-sizing: border-box; }

:root {
  /* Dark surface tokens (override the cream defaults from colors_and_type.css) */
  --d-bg:        #07061A;
  --d-bg-2:      #0C0A24;
  --d-bg-3:      #14122E;
  --d-line:      rgba(255, 255, 255, 0.08);
  --d-line-2:    rgba(255, 255, 255, 0.14);
  --d-fg:        #F2F1F8;
  --d-fg-2:      rgba(242, 241, 248, 0.72);
  --d-fg-3:      rgba(242, 241, 248, 0.50);
  --d-fg-4:      rgba(242, 241, 248, 0.32);
  --d-purple:    #A87BFF;       /* slightly lighter than brand purple — needed for AA contrast on near-black */
  --d-purple-2:  #8848F8;
  --d-purple-bg: rgba(168, 123, 255, 0.10);
  --d-purple-line: rgba(168, 123, 255, 0.28);
  --d-success:   #6EE7A6;
  --d-crit:      #FF6B86;
  --d-warn:      #FFB572;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--d-bg);
  color: var(--d-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--d-purple); color: var(--d-bg); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 80px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--d-line); }

/* Mono eyebrow used everywhere */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-fg-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--d-purple);
  opacity: 0.6;
}

/* Display + headings */
.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  color: var(--d-fg);
}
.display--sm {
  font-size: clamp(44px, 6.4vw, 52px);
}
.h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  color: var(--d-fg);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  color: var(--d-fg);
}
.h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
  color: var(--d-fg);
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--d-fg-2);
  margin: 0;
  max-width: 620px;
  font-weight: 400;
}
.body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--d-fg-2);
  margin: 0;
}
.small {
  font-size: 13px;
  line-height: 1.55;
  color: var(--d-fg-3);
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 200ms cubic-bezier(.4,0,.2,1),
              border-color 200ms cubic-bezier(.4,0,.2,1),
              color 200ms cubic-bezier(.4,0,.2,1),
              transform 120ms cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary {
  background: var(--d-purple);
  color: var(--d-bg);
}
.btn--primary:hover { background: #BD97FF; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--d-fg);
  border-color: var(--d-line-2);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.30); color: var(--d-fg); background: rgba(255,255,255,0.05); }
.btn--sm { padding: 9px 14px; font-size: 13px; }

/* Premium animated demo CTA — dark pill with a brand-purple liquid-lamp glow */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.btn--demo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #1a1733 0%, #0c0a1c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 280ms cubic-bezier(.34,1.56,.64,1), box-shadow 320ms ease, border-color 320ms ease;
}
.btn--demo > span,
.btn--demo > i { position: relative; z-index: 2; transition: text-shadow 280ms ease, transform 280ms cubic-bezier(.34,1.56,.64,1); }
/* liquid-lamp glow — brand-purple blobs over navy; drifts slowly, faster on hover */
.btn--demo::before {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: 0;
  background:
    radial-gradient(40% 60% at 36% 46%, rgba(136, 72, 248, 0.62) 0%, rgba(136, 72, 248, 0) 62%),
    radial-gradient(42% 58% at 64% 56%, rgba(106, 47, 216, 0.52) 0%, rgba(106, 47, 216, 0) 62%),
    radial-gradient(46% 64% at 50% 34%, rgba(136, 72, 248, 0.40) 0%, rgba(136, 72, 248, 0) 66%);
  filter: blur(9px);
  animation: demoLava 20s linear infinite;
}
.btn--demo:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 16px 38px rgba(0, 0, 0, 0.48);
}
/* hover: liquid lamp speeds up noticeably (brand colours kept) */
.btn--demo:hover::before {
  animation-duration: 4s;
}
.btn--demo:hover > i { transform: translateX(3px); }
.btn--demo:active { transform: translateY(0); }
@keyframes demoLava {
  0%   { transform: translate(0%, 0%) scale(1) rotate(0deg); }
  25%  { transform: translate(11%, -8%) scale(1.18) rotate(10deg); }
  50%  { transform: translate(-3%, 9%) scale(1.08) rotate(-6deg); }
  75%  { transform: translate(-10%, -5%) scale(1.14) rotate(7deg); }
  100% { transform: translate(0%, 0%) scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--demo::before { animation: none; }
}

/* Mono link with arrow */
.mlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--d-fg);
  transition: gap 200ms cubic-bezier(.4,0,.2,1);
  font-weight: 500;
}
.mlink:hover { gap: 12px; }
.mlink svg { width: 14px; height: 14px; }
.mlink { white-space: nowrap; }

/* Inline social icons (Lucide dropped brand glyphs) */
.sicon { width: 15px; height: 15px; display: inline-block; vertical-align: middle; }
.footer__socials .sicon { width: 16px; height: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 6, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms cubic-bezier(.4,0,.2,1);
}
.nav.is-scrolled { border-bottom-color: var(--d-line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand img { height: 46px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.footer__brand img { height: 28px; width: auto; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--d-fg);
}
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--d-fg-2);
  transition: color 200ms cubic-bezier(.4,0,.2,1);
}
.nav__link:hover, .nav__link.is-active { color: var(--d-fg); }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  border: 1px solid var(--d-line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--d-fg); border-radius: 2px; transition: transform 220ms ease, opacity 180ms ease; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav .nav__actions {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 28px 22px;
    background: rgba(7, 6, 26, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--d-line);
    display: none;
  }
  .nav.is-open .nav__actions { display: flex; }
  .nav__actions .nav__link { padding: 8px 2px; font-size: 15px; text-align: center; }
  .nav__actions .btn { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--d-line);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 1100px 520px at 78% -25%, rgba(168, 123, 255, 0.07) 0%, transparent 62%);
}
/* Subtle grid */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__inner {
  position: relative;
}
.nav__actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) {
  .nav__actions .btn--ghost { display: flex; }
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--d-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--d-fg-2);
  margin-bottom: 36px;
  width: fit-content;
}
.hero__chip-tag {
  background: var(--d-purple);
  color: var(--d-bg);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__chip a { color: var(--d-fg); margin-left: 4px; }

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero__copy {
  position: relative;
  z-index: 2;
  width: 52%;
  max-width: 640px;
}
@media (max-width: 1024px) {
  .hero__copy { width: 100%; max-width: 680px; }
}
@media (max-width: 720px) {
  .hero__copy { width: 100%; max-width: 560px; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.7vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 26px;
}
.hero h1 .hl { color: var(--d-fg); font-style: normal; }

.hero__lede {
  font-size: clamp(15px, 1.5vw, 18.5px);
  line-height: 1.5;
  color: var(--d-fg-2);
  margin: 0 0 40px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero terminal preview */
.hero__terminal-wrap {
  position: absolute;
  top: 50%;
  left: 56%;
  right: -170px;
  transform: translateY(-50%);
  z-index: 1;
}
@media (max-width: 1024px) {
  .hero__terminal-wrap {
    position: static;
    transform: none;
    left: auto;
    right: auto;
    margin-top: 40px;
  }
}
/* Hero findings dashboard */
.hero__dash {
  position: relative;
  width: 100%;
  isolation: isolate;
}
@media (max-width: 1024px) {
  .hero__dash { width: 100%; max-width: none; }
}
/* Soft ambient glow behind the card (no hard rectangle) */
.hero__dash::before {
  content: "";
  position: absolute;
  inset: -60px -40px -60px -80px;
  background: radial-gradient(58% 62% at 42% 38%, rgba(136, 72, 248, 0.30) 0%, rgba(136, 72, 248, 0) 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.dash__scene {
  position: absolute;
  top: -22px;
  left: -38px;
  right: -14px;
  bottom: -22px;
  border-radius: 22px;
  background:
    radial-gradient(130% 100% at 16% 14%, rgba(136, 72, 248, 0.34) 0%, rgba(136, 72, 248, 0) 56%),
    linear-gradient(158deg, #1b1440 0%, #0f0a28 54%, #090718 100%);
  border: 1px solid var(--d-line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 0;
  display: none;
}
.dash__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(80% 75% at 22% 24%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 75% at 22% 24%, #000 35%, transparent 78%);
}
/* Concentric "radar" rings, lower-left */
.dash__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 10, 30, 0.72);
  border: 1px solid var(--d-line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--d-fg-2);
  white-space: nowrap;
}
.dash__pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--d-purple);
  box-shadow: 0 0 0 4px rgba(168, 123, 255, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
.dash__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Report-style findings table */
.rtable { display: flex; flex-direction: column; }
.rtable__head,
.rtable__row {
  display: grid;
  grid-template-columns: 200px 104px 104px 44px minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
}
.rtable__head {
  padding: 0 10px 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--d-fg-4);
  border-bottom: 1px solid var(--d-line-2);
}
.rtable__head span { white-space: nowrap; }
@media (max-width: 1024px) {
  .rtable__head, .rtable__row { grid-template-columns: 120px 108px 108px 44px minmax(140px, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .dash__card { padding: 18px; }
}
.rtable__hc { text-align: left; }
.rtable__row {
  padding: 11px 10px;
  border-bottom: 1px solid var(--d-line);
}
.rtable__row:last-child { border-bottom: 0; }
.rtable__id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--d-fg-3);
  letter-spacing: 0.02em;
}
.rtable__desc {
  font-size: 13px;
  color: var(--d-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.score--crit { color: #FFD2DA; background: rgba(255, 77, 109, 0.30); }
.score--high { color: #FFB3C0; background: rgba(255, 107, 134, 0.16); }
.score--med  { color: #F6D98A; background: rgba(244, 171, 74, 0.18); }
.score--low  { color: #B6F0CF; background: rgba(110, 231, 166, 0.16); }
.rtable__meter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
.rtable__meter i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-sizing: border-box;
}
.rtable__meter i.on  { background: rgba(255, 255, 255, 0.82); }
.rtable__meter i.off { border: 1px solid rgba(255, 255, 255, 0.26); }
.dash__card {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-right: 0;
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  background: rgba(15, 12, 36, 0.92);
  border: 1px solid var(--d-line-2);
  border-radius: 16px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 58px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dash__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--d-fg);
  margin: 0;
}
.dash__chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-fg-3);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--d-line);
}
.dash__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--d-line);
}
.dash__sev {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--d-fg-2);
}
.dash__sev b { color: var(--d-fg); font-weight: 700; }
.dash__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash__dot--crit { background: var(--d-crit); box-shadow: 0 0 10px rgba(255, 107, 134, 0.5); }
.dash__dot--high { background: var(--d-warn); }
.dash__dot--med  { background: #F4D06A; }
.dash__dot--low  { background: var(--d-success); }
.dash__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}
.dash__delta svg { width: 12px; height: 12px; }
.dash__delta--bad  { color: var(--d-crit); background: rgba(255, 107, 134, 0.12); }
.dash__delta--good { color: var(--d-success); background: rgba(110, 231, 166, 0.12); }
.dash__delta--flat { color: var(--d-fg-4); background: rgba(255, 255, 255, 0.05); }
.t-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-right: 10px;
  vertical-align: 1px;
}
/* Terminal tags — monochrome by default; only a confirmed critical earns color */
.t-tag--recon,
.t-tag--trace,
.t-tag--poc,
.t-tag--verify { background: rgba(255,255,255,0.05); color: var(--d-fg-3); border: 1px solid var(--d-line); }
.t-tag--found  { background: rgba(255, 107, 134, 0.10); color: var(--d-crit); border: 1px solid rgba(255, 107, 134, 0.25); }
.fc-term__line .muted { color: var(--d-fg-4); }
.fc-term__line .ok    { color: var(--d-success); }
.fc-term__line .crit, .fc-term__line.crit { color: var(--d-crit); font-weight: 600; }
.fc-term__line .hl    { color: var(--d-fg); }

/* Trust strip */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
}
.trust__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  color: var(--d-fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
.trust__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--d-fg-3);
  letter-spacing: -0.02em;
  text-align: center;
  opacity: 0.7;
}
@media (max-width: 760px) {
  .trust__row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Section heading block */
.shead { max-width: 720px; margin-bottom: 36px; }
.shead .eyebrow { margin-bottom: 18px; }
.shead h2 { margin-bottom: 16px; }

/* ---------- How it works (4-step) ---------- */
/* How it works — pinned scroll-through stepper */
/* How it works — static compressed 6-row grid (built-for-security divider styling) */
.flow {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--d-line);
}
.flow-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 200px;
  border-bottom: 1px solid var(--d-line);
}
.flow-card__text { min-width: 0; }
.flow-card__viz { min-width: 0; }
.flow-card__text {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 0;
}
.flow-card__viz {
  position: relative;
  padding: 14px 0;
  align-self: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.flow-card__viz--code { overflow: hidden; }
.flow-card__viz--code .code { width: 100%; max-width: 420px; margin: 0 auto; box-sizing: border-box; }
.flow-card__viz--report { height: auto; overflow: visible; align-self: center; }
.fc-doc {
  width: 100%; max-width: 420px; margin: 0 auto; box-sizing: border-box;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--d-line-2);
  border-radius: 10px;
  overflow: hidden;
}
.fc-doc__head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--d-fg-3);
}
.fc-doc__head svg { width: 12px; height: 12px; color: var(--d-fg-4); flex-shrink: 0; }
.fc-doc .code {
  border: none; border-radius: 0; background: transparent;
  margin: 0; width: 100%; max-width: none; box-sizing: border-box;
  max-height: 155px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.flow-card__num {
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--d-line-2); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em; color: var(--d-fg-2);
}
.flow-card__title {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--d-fg); line-height: 1.1; margin: 0;
}
.flow-card__copy {
  font-size: 14.5px; line-height: 1.6; color: var(--d-fg-2);
  margin: 0; max-width: 42ch; text-wrap: pretty;
}
@media (max-width: 640px) {
  .flow-card { grid-template-columns: 1fr; gap: 18px; }
  .flow-card__text { padding: 24px 0 6px; }
  .flow-card__viz { padding: 6px 0 24px; }
  .flow-card__title { font-size: 22px; }
}

/* viz · shared horizontal node graph (steps 01 + 03) */
.fc-graph {
  position: relative;
  width: 100%;
  max-width: 408px;
  aspect-ratio: 360 / 150;
  margin: 0 auto;
}
.fc-graph__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.fc-graph__wires path { fill: none; stroke: var(--d-line-2); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.fc-graph__wires path.dead { stroke: var(--d-line); stroke-dasharray: 4 5; }
.fc-graph__hub {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--d-purple-line); background: var(--d-bg-3);
  box-shadow: 0 0 16px rgba(168, 123, 255, 0.32);
  display: flex; align-items: center; justify-content: center; color: var(--d-fg); z-index: 2;
}
.fc-graph__hub svg { width: 22px; height: 22px; stroke-width: 1.6; }
.fc-graph__node {
  position: absolute; right: 0; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--d-line); background: var(--d-bg-2);
  display: flex; align-items: center; justify-content: center; color: var(--d-fg-2); z-index: 2;
}
.fc-graph__node svg { width: 17px; height: 17px; stroke-width: 1.6; }
.fc-graph__node--found { border-color: var(--d-purple-line); color: var(--d-purple); box-shadow: 0 0 9px rgba(168, 123, 255, 0.25); }
.fc-graph__node--dead { opacity: 0.5; }
/* split variant — hub centered, nodes fan out both sides */
.fc-graph--split .fc-graph__hub { left: 50%; transform: translate(-50%, -50%); }
.fc-graph--split .fc-graph__node--left { left: 0; right: auto; }

/* viz · investigation — auto-scrolling agent terminal */
.fc-term {
  width: 100%; max-width: 420px; margin: 0 auto; box-sizing: border-box;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--d-line-2);
  border-radius: 10px;
  overflow: hidden;
}
.fc-term__head {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(255, 255, 255, 0.015);
}
.fc-term__dots { display: flex; gap: 5px; }
.fc-term__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.fc-term__title { font-family: var(--font-mono); font-size: 10.5px; color: var(--d-fg-3); white-space: nowrap; }
.fc-term__status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--d-success);
}
.fc-term__status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-success); box-shadow: 0 0 7px var(--d-success);
  animation: termPulse 1.6s ease-in-out infinite;
}
@keyframes termPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.fc-term__viewport { height: 132px; overflow: hidden; position: relative; }
.fc-term__viewport::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.35) 100%);
}
.fc-term__track { display: flex; flex-direction: column; animation: termScroll 17s linear infinite; }
.fc-term__lines { display: flex; flex-direction: column; padding: 8px 14px; }
.fc-term__line {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.95;
  color: var(--d-fg-3); white-space: nowrap;
}
.fc-term__line .t-tag { margin-right: 8px; }
@keyframes termScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fc-term__track { animation: none; }
  .fc-term__status::before { animation: none; }
}
/* slack brand mark + code string/comment colours */
.fc-slack__brand { margin-bottom: 4px; }
.fc-slack__mark { width: 22px; height: 22px; display: block; }
.code .c-str { color: #8fd6a0; }
.code .c-cmt { color: var(--d-fg-4); }

/* viz · remediation — GitHub PR feed (auto-scrolling) */
.fc-prs {
  width: 100%; max-width: 420px; margin: 0 auto; box-sizing: border-box;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  overflow: hidden;
}
.fc-prs__head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--d-line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--d-fg-3);
}
.fc-prs__head i { width: 15px; height: 15px; color: var(--d-fg-2); }
.fc-prs__gh { width: 15px; height: 15px; color: var(--d-fg-2); flex: none; }
.fc-prs__viewport { height: 56px; overflow: hidden; }
.fc-prs__list { display: flex; flex-direction: column; transition: transform 600ms cubic-bezier(.4,0,.2,1); will-change: transform; }
.fc-prs__row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--d-line);
  opacity: 0; transform: translateY(12px);
  transition: opacity 360ms ease, transform 440ms cubic-bezier(.34,1.4,.64,1);
}
.fc-prs--live .fc-prs__row.is-shown { opacity: 1; transform: translateY(0); }
.fc-prs__row i { width: 15px; height: 15px; color: var(--d-purple); flex: none; }
.fc-prs__title { font-size: 12.5px; color: var(--d-fg); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-prs__badge {
  flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: #15052e; background: var(--d-purple);
  padding: 2px 8px; border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  .fc-prs--live .fc-prs__row { opacity: 1; transform: none; }
  .fc-prs__viewport { height: auto; }
  .fc-prs__list { transition: none; }
}

/* viz · continuous testing — critical finding as a plain slack message */
.fc-slack__text strong { color: var(--d-fg); font-weight: 700; }
.fc-slack__text + .fc-slack__text { margin-top: 7px; }
.fc-slack__link { color: #4aa3ff; text-decoration: underline; }
.fc-slack__text code {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--d-fg); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--d-line); border-radius: 4px; padding: 1px 5px;
}

/* viz · easy onboarding — slack thread */
.fc-slack {
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  width: 100%; max-width: 420px; margin: 0 auto;
  border: 1px solid var(--d-line-2);
  border-radius: 14px;
  background: var(--d-bg-2);
  padding: 18px 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.fc-slack::before {
  content: '';
  position: absolute;
  left: 16px; right: 16px; top: -9px; height: 18px;
  border: 1px solid var(--d-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--d-bg);
  z-index: -1;
}
.fc-slack__msg { display: flex; gap: 10px; align-items: flex-start; }
.fc-slack__av {
  width: 34px; height: 34px; border-radius: 8px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.fc-slack__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-slack__av--harmony { background: var(--d-bg-3); border: 1px solid var(--d-line); padding: 5px; }
.fc-slack__av--user {
  background: linear-gradient(160deg, #8a6cf0 0%, #5e39c2 100%); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.fc-slack__body { min-width: 0; }
.fc-slack__head { display: flex; align-items: baseline; gap: 8px; }
.fc-slack__name { font-weight: 700; font-size: 13px; color: var(--d-fg); }
.fc-slack__time { font-size: 11px; color: var(--d-fg-4); }
.fc-slack__text { font-size: 12.5px; line-height: 1.5; color: var(--d-fg-2); margin: 3px 0 0; text-wrap: pretty; }
/* live auto-scrolling feed (compact) */
.fc-slack--live { padding-top: 16px; }
.fc-slack__viewport { height: 76px; overflow: hidden; position: relative; }
.fc-slack__feed { display: flex; flex-direction: column; gap: 14px; transition: transform 600ms cubic-bezier(.4,0,.2,1); will-change: transform; }
.fc-slack--live .fc-slack__msg {
  opacity: 0; transform: translateY(12px);
  transition: opacity 360ms ease, transform 440ms cubic-bezier(.34,1.4,.64,1);
}
.fc-slack--live .fc-slack__msg.is-shown { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fc-slack--live .fc-slack__msg { opacity: 1; transform: none; }
  .fc-slack__feed { transition: none; }
  .fc-slack__viewport { height: auto; }
}
/* Find — code + tooltip */
.code {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--d-fg-2);
  margin: 0;
  white-space: pre;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
}
.code .c-key { color: #c9a9ff; }
.code .c-fn { color: #6fb3ff; }
.vuln-tip {
  position: absolute;
  right: -6px;
  bottom: 8px;
  width: 80%;
  background: #16132e;
  border: 1px solid var(--d-line-2);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.vuln-tip__title { font-size: 12.5px; font-weight: 600; color: var(--d-fg); display: flex; align-items: center; gap: 7px; }
.vuln-tip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-purple); box-shadow: 0 0 8px rgba(168, 123, 255, 0.6); flex-shrink: 0; }
.vuln-tip__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-fg-4); margin-top: 9px; }
.vuln-tip__body { font-size: 11.5px; line-height: 1.5; color: var(--d-fg-2); margin: 4px 0 0; }
.vuln-tip__code {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--d-crit); background: rgba(255, 107, 134, 0.1);
  border: 1px solid rgba(255, 107, 134, 0.22); border-radius: 4px; padding: 1px 5px;
  overflow-wrap: anywhere;
}
.vuln-tip__pre {
  font-family: var(--font-mono); font-size: 10px; line-height: 1.6;
  color: var(--d-fg-2); margin: 6px 0 0; white-space: pre;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px; padding: 8px 10px; overflow: hidden;
}

.backers {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--d-line);
  text-align: center;
}

/* Backers people grid */
.backers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
@media (max-width: 760px) { .backers__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 460px) { .backers__grid { grid-template-columns: 1fr; } }
.backer__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--d-fg);
  line-height: 1.2;
}
.backer__name a {
  color: var(--d-fg-3);
  display: inline-flex;
  transition: color 200ms;
}
.backer__name a:hover { color: var(--d-purple); }
.backer__name .sicon { width: 15px; height: 15px; }
.backer__role {
  font-size: 14px;
  color: var(--d-fg-3);
  margin-top: 6px;
  line-height: 1.4;
}
.founders .backer { display: flex; flex-direction: column; }
.founders .backer__role { margin-top: 4px; }
/* Placeholder hand-drawn "signature" above founder names (not a real signature) */
.backer__sig {
  display: flex;
  align-items: flex-end;
  height: 46px;
  margin-top: -6px;
  margin-bottom: 14px;
  opacity: 0.85;
}
.backer__sig img { height: 32px; width: auto; display: block; }
.backer__sig--lg img { height: 46px; }
.backer__socials { display: flex; gap: 14px; margin-top: 14px; }
.backer__socials a { color: var(--d-fg-3); display: inline-flex; transition: color 200ms; }
.backer__socials a:hover { color: var(--d-purple); }
.backer__socials .sicon { width: 17px; height: 17px; }

/* ---------- Writing module (blog/case study cards) ---------- */
.writing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .writing { grid-template-columns: 1fr; } }

.post {
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms, background 200ms, transform 200ms;
  text-decoration: none;
  color: inherit;
  min-height: 240px;
}
.post:hover {
  border-color: var(--d-line-2);
  background: var(--d-bg-3);
}
.post__kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-fg-3);
}
.post__title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--d-fg);
  margin: 0;
  flex: 1;
}
.post__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  display: flex;
  gap: 12px;
  align-items: center;
}
.post__meta::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--d-line);
}

/* ---------- Final CTA ---------- */
.final {
  padding: 140px 0 160px;
  text-align: center;
  border-top: 1px solid var(--d-line);
  position: relative;
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 760px 340px at 50% 120%, rgba(168, 123, 255, 0.10) 0%, transparent 64%);
  pointer-events: none;
}
.final__inner { position: relative; }
.final h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.9vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 auto 24px;
  color: var(--d-fg);
}
.final p {
  font-size: 18px;
  color: var(--d-fg-2);
  margin: 0 auto 36px;
  max-width: 540px;
  line-height: 1.5;
}
.final__ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: 0 0 36px;
  background: var(--d-bg);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand img { height: 28px; }
.footer__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 13.5px;
  color: var(--d-fg-2);
  transition: color 200ms;
}
.footer__nav a:hover { color: var(--d-purple); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--d-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__socials {
  display: flex; gap: 16px;
}
.footer__socials a { color: var(--d-fg-3); transition: color 200ms; }
.footer__socials a:hover { color: var(--d-purple); }
.footer__socials svg { width: 16px; height: 16px; }

/* ============================================================
   Sub-page styles
   ============================================================ */

/* Page header (used on careers/contact/blog) */
.phead {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--d-line);
  position: relative;
  overflow: hidden;
}
.phead__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 700px 300px at 80% 0%, rgba(168, 123, 255, 0.12) 0%, transparent 65%);
}
.phead__inner { position: relative; }
.phead .eyebrow { margin-bottom: 18px; }
.phead h1 { margin: 0 0 18px; font-size: 38px; }
.phead .lede { max-width: 680px; }

/* Form pages (contact / try-a-pentest) — unified full-page glow */
.phead--form {
  border-bottom: none;
  overflow: clip;
  padding: 60px 0 100px;
}
.phead--form .phead__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 480px at 50% 0%, rgba(168, 123, 255, 0.14) 0%, transparent 65%);
}
.phead--form .phead__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phead--form h1,
.phead--form .lede { text-align: center; }
.phead--form .lede { font-size: 16px; max-width: 100%; }
.phead--form .contact { margin-top: 48px; text-align: left; }
.phead--form .form { background: none; border: none; border-radius: 0; padding: 0; }

/* ---------- Careers ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 96px;
}
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value {
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 28px;
  background: var(--d-bg-2);
}
.value__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.value h3 { margin-bottom: 10px; }

.roles {
  border: 1px solid var(--d-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--d-bg-2);
}
.role {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--d-line);
  transition: background 200ms;
}
.role:last-child { border-bottom: 0; }
.role:hover { background: var(--d-bg-3); }
.role__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--d-fg);
  letter-spacing: -0.005em;
}
.role__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.role__cta svg { width: 12px; height: 12px; transition: transform 200ms; }
.role:hover .role__cta svg { transform: translateX(3px); }

@media (max-width: 760px) {
  .role { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .role__meta { font-size: 11px; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
.contact--solo { grid-template-columns: 1fr; max-width: 720px; width: 100%; }
.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact__row { display: flex; flex-direction: column; gap: 6px; }
.contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact__row dd {
  margin: 0;
  font-size: 16px;
  color: var(--d-fg);
}
.contact__row dd a { color: var(--d-fg); text-decoration: underline; text-underline-offset: 3px; }
.contact__row dd a:hover { color: var(--d-fg-2); }

.form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 32px;
}
.form--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  padding: 40px;
}
.form--grid .field--full,
.form--grid .form__submit,
.form--grid .form__success,
.form--grid .form__disclaimer { grid-column: 1 / -1; }
.form__disclaimer { color: var(--d-fg-3); font-size: 12px; margin-top: 4px; }
.form--grid .field label {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--d-fg);
}
.form--grid .form__submit { justify-self: start; margin-top: 4px; }
@media (max-width: 560px) {
  .form--grid { grid-template-columns: 1fr; padding: 28px; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-fg-3);
}
.field__opt { color: var(--d-fg-4); text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.field__req { color: var(--d-purple); margin-left: 1px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--d-bg);
  border: 1px solid var(--d-line-2);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--d-fg);
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.field input::placeholder, .field textarea::placeholder { color: var(--d-fg-4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--d-purple);
  box-shadow: 0 0 0 4px rgba(168, 123, 255, 0.18);
}
.form__submit { margin-top: 8px; align-self: flex-start; }
.form.is-sent { opacity: 0.4; pointer-events: none; user-select: none; }

/* ---------- Blog index + post ---------- */
.posts-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--d-line);
}
.posts-list__item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--d-line);
  align-items: baseline;
  transition: padding-left 200ms;
}
.posts-list__item:hover { padding-left: 12px; }
.posts-list__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.posts-list__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--d-fg);
  line-height: 1.25;
}
.posts-list__title small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--d-fg-3);
  letter-spacing: 0;
  margin-top: 6px;
  line-height: 1.45;
}
.posts-list__kind {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .posts-list__item { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
}

/* Long-form article */
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 0 96px;
}
.article__crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.article__crumbs a { color: var(--d-fg-2); }
.article__crumbs svg { width: 12px; height: 12px; }
.article h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--d-fg);
}
.article__meta {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--d-fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--d-line);
}
.article__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--d-fg-4); }
.article__meta .article__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--d-fg);
}
.article__meta .article__author span {
  text-decoration: underline;
  text-decoration-color: var(--d-purple);
  text-underline-offset: 3px;
}
.article__meta .article__author:hover { color: var(--d-purple); }
.article__meta .article__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  margin: 0;
  flex-shrink: 0;
  display: inline;
}
.article p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--d-fg-2);
  margin: 0 0 24px;
}
.article p strong { color: var(--d-fg); font-weight: 600; }
.article img,
.article video {
  width: 100%;
  border: 1px solid var(--d-line);
  border-radius: 10px;
  margin: 10px 0 28px;
  display: block;
  background: var(--d-bg-2);
}
.article h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--d-fg);
  margin: 56px 0 18px;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--d-fg);
  margin: 36px 0 12px;
}
.article ul {
  padding-left: 22px;
  margin: 0 0 24px;
  color: var(--d-fg-2);
}
.article ul li { font-size: 17px; line-height: 1.7; margin-bottom: 6px; }
.article ul li::marker { color: var(--d-fg-3); }
.article code, .article .ic {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--d-fg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--d-line);
}
.article pre {
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--d-fg);
  margin: 24px 0 32px;
}
.article pre .com { color: var(--d-fg-3); }
.article pre .kw  { color: var(--d-crit); }
.article pre .str { color: var(--d-success); }
.article pre .num { color: var(--d-warn); }
.article pre .var { color: #8DC0FF; }

.article a {
  color: var(--d-fg);
  text-decoration: underline;
  text-decoration-color: var(--d-purple);
  text-underline-offset: 3px;
  transition: color 150ms;
}
.article a:hover { color: var(--d-purple); }

.callout {
  border-left: 2px solid var(--d-purple);
  background: var(--d-purple-bg);
  padding: 18px 22px;
  border-radius: 4px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--d-fg);
  margin: 28px 0;
}
.callout strong { color: var(--d-fg); display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   Wireframe sections (v2)
   ============================================================ */

/* Centered section head variant */
.shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.shead--center .eyebrow { justify-content: center; }

/* ---------- Customer reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--d-bg-2);
  border: 1px solid var(--d-line);
  border-radius: 10px;
  padding: 32px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 24px;
  transition: border-color 200ms cubic-bezier(.4,0,.2,1), background 200ms;
}
.review:hover { border-color: var(--d-purple-line); background: var(--d-bg-3); }
.review__quote {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--d-fg);
  margin: 0;
  font-weight: 500;
  text-wrap: pretty;
}
.review__foot {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}
.review__person { display: flex; align-items: flex-start; gap: 15px; }
/* Nudge the name/role block down so the name sits at the avatar's vertical centre */
.review__meta { margin-top: 20px; }
/* Keep "Read more" aligned with the avatar's centre */
.review__link { margin-top: 21px; }
@media (max-width: 560px) {
  .review__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .review__person { flex-direction: row; align-items: center; gap: 14px; }
  .review__link { align-self: flex-end; }
}
.review__avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--d-bg-3);
  border: 1px solid var(--d-line-2);
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review__avatar--initials {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--d-fg-2);
  background: linear-gradient(180deg, #1a1733 0%, #0c0a1c 100%);
  border-color: var(--d-purple-line);
}
.review__foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.review__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--d-fg);
  letter-spacing: 0;
}
.review__logo { display: inline-flex; align-items: center; min-height: 30px; }
.review__logo img {
  width: auto;
  display: block;
}
.review__logo--ox img { height: 22px; opacity: 0.75; }
.review__logo--town img { height: 30px; opacity: 0.95; }
.review__logo--placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-fg-4);
  padding: 7px 12px;
  border: 1px dashed var(--d-line-2);
  border-radius: 8px;
}
.review__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--d-fg-3);
}
.review__name { color: var(--d-fg); font-weight: 600; }
.review__role { color: var(--d-fg-3); font-size: 13px; line-height: 1.35; }
.review__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-purple);
  white-space: nowrap;
  transition: gap 200ms cubic-bezier(.4,0,.2,1);
}
.review__link svg { width: 13px; height: 13px; }
.review:hover .review__link { gap: 10px; }

.reviews__logos { margin-top: 56px; text-align: center; }
.reviews__logos-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-fg-3);
  margin: 0 0 28px;
}

/* ---------- Comparison chart ---------- */
.compare {
  border: 1px solid var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--d-bg-2);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  align-items: stretch;
}
.compare__row { border-top: 1px solid var(--d-line); }
.compare__cell {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--d-fg-2);
  border-right: 1px solid var(--d-line);
}
.compare__cell:last-child { border-right: 0; }
.compare__cell--label {
  justify-content: flex-start;
  text-align: left;
  color: var(--d-fg);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.4;
}
.compare__head .compare__cell { padding-top: 24px; padding-bottom: 24px; }
.compare__col { flex-direction: column; gap: 4px; }
.compare__colname {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--d-fg);
  letter-spacing: -0.01em;
}
.compare__colsub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--d-fg-3);
  white-space: nowrap;
}
/* Highlighted Harmony column */
.compare__col--hi {
  background: var(--d-purple-bg);
  position: relative;
}
.compare__head .compare__col--hi { box-shadow: inset 0 2px 0 var(--d-purple); }
.compare__head .compare__col--hi .compare__colname { color: var(--d-purple); }

/* check / cross / partial marks */
.cmark {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmark svg { width: 15px; height: 15px; }
.cmark--yes { background: rgba(110, 231, 166, 0.12); color: var(--d-success); }
.cmark--no  { color: var(--d-fg-4); }
.cmark--part {
  color: var(--d-warn);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
/* text values in comparison cells */
.compare__val {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--d-fg-3);
  text-align: center;
}
.compare__val--pos { color: var(--d-fg); font-weight: 600; }
.compare__val--mid { color: var(--d-fg-2); }
.compare__val--neg { color: var(--d-fg-4); }
.compare__col--hi .compare__val--pos { color: var(--d-fg); }
@media (max-width: 700px) {
  .compare__head, .compare__row { grid-template-columns: 1.15fr 1fr 1fr 1fr; }
  .compare__cell { padding: 13px 8px; font-size: 12px; }
  .compare__cell--label { padding-left: 12px; font-size: 12px; }
  .compare__head .compare__cell { padding-top: 16px; padding-bottom: 16px; }
  .compare__colname { font-size: 13px; }
  .compare__colsub { display: none; }
  .compare__val { font-size: 12px; line-height: 1.3; }
}
@media (max-width: 420px) {
  .compare__head, .compare__row { grid-template-columns: 1.05fr 1fr 1fr 1fr; }
  .compare__cell { padding: 11px 5px; }
  .compare__cell--label { padding-left: 9px; font-size: 11.5px; }
  .compare__colname { font-size: 11.5px; }
  .compare__val { font-size: 11px; }
}

/* ---------- Proof points (divider grid — matches How it works) ---------- */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
}
@media (max-width: 940px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof__card:nth-child(2n) { border-right: 0; }
  .proof__card:nth-child(-n+2) { border-bottom: 1px solid var(--d-line); }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; }
  .proof__card { border-right: 0 !important; border-bottom: 1px solid var(--d-line); }
  .proof__card:last-child { border-bottom: 0; }
}
.proof__card {
  padding: 38px 28px 34px;
  border-right: 1px solid var(--d-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proof__card:last-child { border-right: 0; }
.proof__icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--d-line-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--d-fg-2);
  margin-bottom: 4px;
}
.proof__icon svg {
  width: 16px;
  height: 16px;
  color: var(--d-fg-2);
  stroke-width: 1.75;
}
.proof__title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--d-fg);
  margin: 0;
  text-wrap: balance;
}
.proof__copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--d-fg-2);
  margin: 0;
  text-wrap: pretty;
}

.faq__posts { margin-top: 72px; }
.faq__posts-head { margin-bottom: 36px; }
.writing--blog {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: none;
}
.writing--blog .post {
  min-height: 180px;
  padding: 32px;
  gap: 18px;
  border-radius: 10px;
}
.writing--blog .post__title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  flex: 0 0 auto;
}
.writing--blog .post .review__link {
  margin-top: auto;
  transition: gap 200ms cubic-bezier(.4,0,.2,1);
}
.writing--blog .post:hover .review__link { gap: 10px; }
@media (max-width: 600px) {
  .writing--blog { grid-template-columns: 1fr; }
}
.review__link--standalone { transition: gap 200ms cubic-bezier(.4,0,.2,1); }
.review__link--standalone:hover { gap: 10px; }
.faq__posts-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-fg-3);
  margin: 0 0 24px;
}

/* ---------- Why we built Harmony ---------- */
.whybuilt {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  grid-template-areas: "copy media" "founders media";
  column-gap: 64px;
  align-items: start;
}
.whybuilt__copy { grid-area: copy; display: flex; flex-direction: column; gap: 16px; }
.whybuilt__media { grid-area: media; min-height: 0; overflow: hidden; align-self: stretch; position: relative; }
.whybuilt__media .imgph { position: absolute; inset: 0; }
.founders {
  grid-area: founders;
  align-self: end;
  display: flex;
  gap: 56px;
  padding-top: 44px;
}
@media (max-width: 900px) {
  .whybuilt {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "founders" "media";
    column-gap: 0;
    row-gap: 36px;
  }
  .whybuilt__media { height: auto; display: flex; justify-content: center; }
  .whybuilt__media .imgph { position: static; height: auto; aspect-ratio: 4 / 3; min-height: 0; width: 100%; max-width: 560px; }
  .whybuilt__media .imgph img { object-position: center 40%; }
  .founders { padding-top: 0; }
}
@media (max-width: 560px) { .founders { gap: 32px; flex-wrap: wrap; } }
.whybuilt__copy .eyebrow { margin-bottom: 4px; }
.whybuilt__copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--d-fg);
  text-wrap: pretty;
}
.whybuilt__sig {
  margin-bottom: 24px;
  max-width: 520px;
  color: var(--d-fg-3);
}

/* Labelled image placeholder */
.imgph {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--d-line-2);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--d-bg-2);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.022) 0,
    rgba(255,255,255,0.022) 1px,
    transparent 1px,
    transparent 11px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgph__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-fg-4);
  padding: 6px 12px;
  border: 1px solid var(--d-line);
  border-radius: 999px;
  background: rgba(7, 6, 26, 0.6);
}
@media (max-width: 880px) {
  .imgph { aspect-ratio: 16 / 10; max-width: 480px; }
}

/* ---------- Responsive fixes (tablet + mobile) ---------- */
@media (max-width: 760px) {
  .section { padding: 44px 0; }
  .section--tight { padding: 28px 0; }
  .hero { padding: 60px 0 52px; }
  .final { padding: 80px 0 88px; }
  .phead { padding: 60px 0 44px; }
}
@media (max-width: 640px) {
  .rtable__head, .rtable__row {
    grid-template-columns: 136px 1fr 1fr;
    gap: 10px;
  }
  .rtable__head span:nth-child(4),
  .rtable__head span:nth-child(5),
  .rtable__id,
  .rtable__desc { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
}
/* Tablet: card fits fully — remove the right-fade */
@media (min-width: 761px) and (max-width: 1024px) {
  .dash__card {
    -webkit-mask-image: none;
    mask-image: none;
    border-right: 1px solid var(--d-line-2);
  }
}
