/* ==========================================================================
   Xodus33 — company website

   White backgrounds, soft mesh-gradient heroes, rounded bordered cards with a
   top accent bar, and content that reveals as you scroll.

   The homepage lockup is a live recreation of the company mark: the atom-X
   emblem, wordmark and tagline are real SVG and text, so nothing ever crops.
   Company accent is Persian Blue; Quanta QA surfaces use the product green.
   ========================================================================== */

:root {
  --background: #ffffff;
  --foreground: #0b1220;
  --muted: #475569;
  --border: #e2e8f0;
  --surface: #f8fafc;

  /* Company accent — Persian Blue, from the mark */
  --blue: #1c39bb;
  --blue-dark: #142a8c;
  --blue-soft: #e3e8fb;

  /* Quanta QA product accent */
  --green: #82ad8a;
  --green-dark: #295237;
  --green-soft: #eaf3ec;

  --max: 1280px;
  --header-h: 92px;

  --font-sans: "Exo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-math: "Times New Roman", Times, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* keep anchored headings clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.18s;
}
.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.5rem);
  line-height: 1.24;
}

p {
  margin: 0;
  line-height: 1.68;
  color: var(--muted);
}

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

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
}

.small-note {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.mono,
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--background);
}

.section.surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mesh {
  background-image:
    radial-gradient(at 15% 20%, rgba(28, 57, 187, 0.14) 0%, transparent 55%),
    radial-gradient(at 80% 25%, rgba(130, 173, 138, 0.2) 0%, transparent 55%),
    radial-gradient(at 45% 85%, rgba(28, 57, 187, 0.09) 0%, transparent 55%),
    radial-gradient(at 85% 85%, rgba(130, 173, 138, 0.13) 0%, transparent 55%);
}

.grid-pattern {
  background-image:
    linear-gradient(to right, rgba(28, 57, 187, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 57, 187, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 45%, #000 30%, transparent 100%);
}

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.button > span {
  transition: transform 0.2s;
}
.button:hover > span {
  transform: translate(2px, -2px);
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(28, 57, 187, 0.5);
}
.primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 40px -12px rgba(28, 57, 187, 0.55);
}

.outline {
  background: #fff;
  color: var(--foreground);
  border-color: var(--border);
}
.outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.quanta-theme .primary {
  background: var(--green-dark);
  box-shadow: 0 10px 30px -12px rgba(41, 82, 55, 0.45);
}
.quanta-theme .primary:hover {
  background: #1d3a27;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}
.inline-link > span {
  transition: transform 0.2s;
}
.inline-link:hover > span {
  transform: translate(2px, -2px);
}
.inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.is-qa .inline-link {
  color: var(--green-dark);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.quanta-theme .pill {
  color: var(--green-dark);
  border-color: rgba(130, 173, 138, 0.5);
  background: var(--green-soft);
}
.quanta-theme .pill::before {
  background: var(--green);
}

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header — solid the moment the page moves, so nothing hides beneath it
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck,
body.menu-open .site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark {
  width: 46px;
  flex: none;
}
/* the real lettering, sized to the header rather than set in a typeface */
.brand .brand-wordmark {
  width: 186px;
  margin-top: 0;
  flex: none;
}
.footer-brand .brand-wordmark {
  width: 198px;
  margin-top: 0;
  flex: none;
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name > strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--muted);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-header nav > a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(11, 18, 32, 0.82);
  transition: color 0.2s;
}
.site-header nav > a:hover {
  color: var(--blue);
}
.site-header nav > a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px !important;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.22s;
}
.menu-toggle span:nth-child(1) {
  top: 16px;
}
.menu-toggle span:nth-child(2) {
  bottom: 16px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Homepage hero — the mark, rebuilt as live page elements
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(40px, 5vw, 72px) 0 clamp(120px, 12vw, 172px);
  overflow: hidden;
  background: #fff;
}
.hero .layer {
  z-index: -1;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* The lockup: emblem + wordmark + tagline */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pixel-exact crops of the official logo artwork.
   Container width drives everything; margins are percentages of that width,
   so the crop holds at any size and nothing is ever cut off. */
.logo-crop {
  display: block;
  overflow: hidden;
  line-height: 0;
}
.logo-crop img {
  display: block;
  max-width: none;
  height: auto;
}

/* emblem window: x 224..1029 (805 wide), y 96..917 (821 tall) of 1254 */
.logo-emblem {
  width: clamp(200px, 27vw, 330px);
  aspect-ratio: 805 / 821;
}
.logo-emblem img {
  width: 155.78%;
  margin-left: -27.83%;
  margin-top: -11.93%;
}

/* wordmark + tagline window: x 83..1168 (1085 wide), y 926..1164 (238 tall) */
.logo-wordmark {
  width: min(100%, 620px);
  aspect-ratio: 1085 / 238;
  margin-top: clamp(10px, 1.6vw, 22px);
}
.logo-wordmark img {
  width: 115.58%;
  margin-left: -7.65%;
  margin-top: -85.35%;
}

.hero-copy {
  max-width: 48rem;
  margin: clamp(34px, 4.5vw, 54px) auto 0;
}
.hero-copy .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}
.hero-copy .button-row {
  justify-content: center;
}

/* Physics blueprint elements scattered behind the lockup, as in the mark */
.physics {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  color: var(--blue);
}
.physics > * {
  position: absolute;
  opacity: 0.5;
}
.physics .eq {
  font-family: var(--font-math);
  font-style: italic;
  font-size: clamp(0.85rem, 1.3vw, 1.4rem);
  white-space: nowrap;
  color: var(--blue);
}
.physics svg {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.1;
  overflow: visible;
}
/* solid dots (nuclei, vertices, electrons) */
.physics .node {
  fill: var(--blue);
  stroke: none;
}

/* Equations drift and breathe */
.physics .float {
  animation: physics-float 13s ease-in-out infinite;
}
.physics .float-slow {
  animation: physics-float 19s ease-in-out infinite;
}
@keyframes physics-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-11px);
    opacity: 1;
  }
}

/* Rotating groups — orbits and the galaxy arm */
.physics .turn,
.physics .turn-rev,
.physics .turn-fast,
.physics .turn-slow {
  transform-box: fill-box;
  transform-origin: center;
}
.physics .turn {
  animation: physics-turn 26s linear infinite;
}
.physics .turn-rev {
  animation: physics-turn 18s linear infinite reverse;
}
.physics .turn-fast {
  animation: physics-turn 11s linear infinite;
}
.physics .turn-slow {
  animation: physics-turn 44s linear infinite;
}
@keyframes physics-turn {
  to {
    transform: rotate(360deg);
  }
}

/* Energy flowing along a line — spiral arms, funnel walls, the photon */
.physics .flow {
  stroke-dasharray: 7 9;
  animation: physics-flow 2.4s linear infinite;
}
.physics .p-funnel .flow {
  animation-duration: 3.6s;
}
.physics .p-spiral .flow {
  stroke-dasharray: 5 7;
  animation-duration: 4.2s;
}
@keyframes physics-flow {
  to {
    stroke-dashoffset: -32;
  }
}

/* Lattice pulse */
.physics .breathe {
  transform-box: fill-box;
  transform-origin: center;
  animation: physics-breathe 9s ease-in-out infinite;
}
@keyframes physics-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.07) rotate(6deg);
    opacity: 1;
  }
}

/* The gravity well sits slightly tilted and rocks as it ripples */
.physics .p-funnel {
  animation: physics-warp 11s ease-in-out infinite;
}
@keyframes physics-warp {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }
  50% {
    transform: rotate(1.5deg) translateY(-8px);
  }
}
.physics .p-wave,
.physics .p-globe,
.physics .p-atom,
.physics .p-feynman {
  animation: physics-float 17s ease-in-out infinite;
}
.physics .p-spiral {
  animation: physics-float 23s ease-in-out infinite;
}

/* Placement — mirrors the composition of the mark, kept clear of the lockup
   and of the copy block that sits beneath it. */
.p-schrodinger { left: 2.5%; top: 13%; }
.p-wave        { left: 0;    top: 24%; }
.p-emc2        { left: 6%;   top: 44%; }
.p-gauss       { left: 3%;   top: 56%; }
.p-maxwell     { left: 2%;   top: 66%; }
.p-atom        { left: 3%;   bottom: 16%; }
.p-hamilton    { left: 12%;  bottom: 6%; }
.p-globe       { left: 21%;  bottom: -7%; }

.p-spiral      { right: 3%;  top: 5%; }
.p-hex         { right: 18%; top: 13%; }
.p-decay       { right: 4%;  top: 30%; }
.p-dirac       { right: 3%;  top: 40%; }
.p-einstein    { right: 4%;  top: 50%; }
.p-funnel      { right: 2%;  top: 59%; }
.p-feynman     { right: 5%;  bottom: 12%; }
.p-uncertain   { right: 12%; bottom: 5%; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 34px);
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.scroll-cue:hover {
  border-color: var(--blue);
}
.scroll-cue > span {
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* --------------------------------------------------------------------------
   Interior page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: clamp(80px, 9vw, 128px) 0;
}
.page-hero .layer {
  z-index: -1;
}
.page-hero h1 {
  margin-top: 20px;
  max-width: 18ch;
}
.page-hero .lead {
  margin-top: 24px;
  max-width: 58ch;
}
.page-hero .pill {
  margin-top: 18px;
}
.page-hero .button {
  margin-top: 36px;
}
.page-hero.compact {
  padding: clamp(70px, 7vw, 104px) 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.back-link:hover {
  color: var(--blue);
}

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-jump a {
  padding: 8px 18px;
  border: 1px solid rgba(28, 57, 187, 0.3);
  border-radius: 999px;
  background: rgba(227, 232, 251, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  transition: background 0.2s;
}
.hero-jump a:hover {
  background: var(--blue-soft);
}

/* --------------------------------------------------------------------------
   Section heading block
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}
.section-head > div:first-child {
  max-width: 40rem;
}
.section-head h2 {
  margin-top: 18px;
}
.section-head > div:first-child > p {
  margin-top: 20px;
  font-size: 1.1rem;
}

@media (min-width: 880px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 56px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 36px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.2);
}
.card.is-qa::before {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card-top .mono {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.is-qa .card-icon {
  background: var(--green-soft);
  color: var(--green-dark);
}

.card h3 {
  margin-top: 24px;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
}
.card > p {
  margin-top: 14px;
  flex: 1;
  font-size: 0.95rem;
}
.card .inline-link {
  margin-top: 26px;
  align-self: flex-start;
}

.node-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.node-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.node-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.is-qa .node-list li::before {
  background: var(--green);
}

.step-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
}
.step {
  padding: 32px 28px 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 57, 187, 0.35);
  box-shadow: 0 20px 60px -24px rgba(15, 23, 42, 0.18);
}
.step .mono {
  font-size: 0.66rem;
}
.step h3 {
  margin-top: 16px;
}
.step p {
  margin-top: 12px;
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   Product detail block
   -------------------------------------------------------------------------- */

.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  scroll-margin-top: 120px;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark), var(--green));
}
.product-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-copy {
  padding: clamp(32px, 4vw, 56px);
}
.product-copy h2 {
  margin-top: 22px;
}
.product-copy .lead {
  margin-top: 12px;
  font-weight: 600;
  color: var(--green-dark);
}
.product-copy > p:not(.lead) {
  margin-top: 16px;
}
.product-copy .button {
  margin-top: 30px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.product-meta span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.1;
}
.product-meta strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--foreground);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 40px;
  border-left: 1px solid var(--border);
  background: linear-gradient(135deg, var(--green-soft), #fff 55%, rgba(227, 232, 251, 0.55));
}
.product-visual .layer {
  opacity: 0.55;
}
.product-visual-inner {
  position: relative;
  text-align: center;
}
.product-visual img {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 26px;
  box-shadow: 0 20px 50px -18px rgba(41, 82, 55, 0.4);
  transition: transform 0.3s;
}
.product:hover .product-visual img {
  transform: scale(1.04);
}
.product-visual .mono {
  margin-top: 24px;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.product-visual strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

/* --------------------------------------------------------------------------
   Quanta QA workflow tabs
   -------------------------------------------------------------------------- */

.workflow {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px -30px rgba(15, 23, 42, 0.25);
}
.workflow-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--green-soft);
  border-bottom: 1px solid rgba(130, 173, 138, 0.35);
}
.product-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}
.workflow-top > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.workflow-top strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-dark);
}
.workflow-top div > span {
  font-size: 0.8rem;
  color: var(--muted);
}
.preview-label {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  white-space: nowrap;
}

.workflow-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.workflow-tabs button {
  flex: 1;
  padding: 16px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.workflow-tabs button:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}
.workflow-tabs button[aria-selected="true"] {
  color: var(--green-dark);
  border-bottom-color: var(--green);
  background: var(--green-soft);
}

.workflow-panel {
  padding: 36px 32px 32px;
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 1.2rem;
}
.workflow-panel .mono {
  margin-top: 22px;
  font-size: 0.64rem;
  color: var(--green-dark);
}
.workflow-panel h3 {
  margin-top: 12px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}
.workflow-panel > p:not(.mono) {
  margin-top: 14px;
  font-size: 0.95rem;
}
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.flow-tags span {
  padding: 5px 14px;
  border: 1px solid rgba(130, 173, 138, 0.45);
  border-radius: 999px;
  background: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-dark);
}
.workflow-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.workflow-bottom > span:last-child {
  margin-left: auto;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* --------------------------------------------------------------------------
   Capability grid
   -------------------------------------------------------------------------- */

.capability-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
}
.capability {
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.capability:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 173, 138, 0.5);
  box-shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.2);
}
.capability .mono {
  font-size: 0.66rem;
  color: var(--green-dark);
}
.capability h3 {
  margin-top: 14px;
  font-size: 1.05rem;
}
.capability p {
  margin-top: 10px;
  font-size: 0.89rem;
}

/* --------------------------------------------------------------------------
   Split layouts
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.split.top {
  align-items: start;
}
.split h2 {
  margin-top: 18px;
}
.split > div > p {
  margin-top: 20px;
}
.split .button {
  margin-top: 30px;
}
.split .inline-link {
  margin-top: 26px;
}
.split .small-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.company-art {
  display: grid;
  place-items: center;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(227, 232, 251, 0.6), #fff 60%, var(--green-soft));
}
.company-art .logo-emblem {
  width: clamp(170px, 23vw, 260px);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: rgba(28, 57, 187, 0.3);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--blue);
}
.faq details > p {
  padding: 0 24px 22px;
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card {
  margin-top: 28px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(227, 232, 251, 0.55), #fff 70%);
}
.contact-card .mono {
  font-size: 0.64rem;
  color: var(--muted);
}
.email-link {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--blue);
  word-break: break-word;
}
.email-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-card .copy-email {
  margin-top: 18px;
}
.copy-status {
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--green-dark);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px -30px rgba(15, 23, 42, 0.22);
}
.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.94rem;
  font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}
.email-draft {
  padding: 16px 18px;
  border: 1px solid rgba(130, 173, 138, 0.45);
  border-radius: 12px;
  background: var(--green-soft);
}
.email-draft p {
  font-size: 0.89rem;
  color: var(--green-dark);
}
.email-draft .inline-link {
  margin-top: 10px;
  color: var(--green-dark);
}

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

.cta-band {
  padding: clamp(80px, 8vw, 112px) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cta-inner {
  position: relative;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
}
.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.cta-inner::before {
  top: -96px;
  right: -96px;
  background: rgba(28, 57, 187, 0.16);
}
.cta-inner::after {
  bottom: -96px;
  left: -96px;
  background: rgba(130, 173, 138, 0.26);
}
.cta-inner > div {
  position: relative;
}
.cta-inner h2 {
  margin-top: 18px;
}
.cta-inner .lead {
  margin-top: 20px;
  max-width: 36rem;
}
.cta-inner > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose {
  max-width: 72ch;
}
.prose h2 {
  margin-top: 48px;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}
.prose h2:first-of-type {
  margin-top: 28px;
}
.prose p {
  margin-top: 16px;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-top {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding-top: clamp(52px, 6vw, 72px);
  padding-bottom: clamp(40px, 5vw, 56px);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .mark {
  width: 48px;
  flex: none;
}
.footer-brand strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.footer-top > div:first-child > p {
  margin-top: 20px;
  max-width: 24rem;
  font-size: 0.9rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col > .mono {
  margin-bottom: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--foreground);
}
.footer-col a {
  font-size: 0.89rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--blue);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-bottom .mono {
  font-size: 0.62rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
}
.will-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-grid .will-reveal:nth-child(2).is-visible,
.step-grid .will-reveal:nth-child(2).is-visible,
.capability-grid .will-reveal:nth-child(2).is-visible {
  transition-delay: 0.08s;
}
.step-grid .will-reveal:nth-child(3).is-visible,
.capability-grid .will-reveal:nth-child(3).is-visible {
  transition-delay: 0.16s;
}
.capability-grid .will-reveal:nth-child(4).is-visible {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
  /* thin out the blueprint elements before they crowd the lockup */
  .p-gauss,
  .p-maxwell,
  .p-einstein,
  .p-hex,
  .p-globe {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 76px;
  }
  .menu-toggle {
    display: block;
  }
  .site-header nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: 14px 20px 26px;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  body.menu-open .site-header nav {
    display: flex;
  }
  body.menu-open {
    overflow: hidden;
  }
  .site-header nav > a {
    padding: 15px 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-cta {
    margin: 18px 0 0;
    padding: 15px 20px !important;
    border-bottom: 0 !important;
    text-align: center;
  }

  .card-grid,
  .step-grid,
  .split,
  .cta-inner,
  .product-inner,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-visual {
    border-left: 0;
    border-top: 1px solid var(--border);
    min-height: 260px;
  }
  .split .company-art {
    order: 2;
  }
  /* the lockup owns the hero on small screens */
  .physics {
    display: none;
  }
}

@media (max-width: 620px) {
  .container,
  .hero-inner {
    padding: 0 20px;
  }
  .capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-sub {
    display: none;
  }
  .brand .mark {
    width: 40px;
    height: 40px;
  }
  .workflow-tabs button {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 14px 6px;
  }
  .product-meta {
    gap: 22px;
  }
  .hero-copy .button-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
  }
  .emblem .spin {
    animation: none;
  }
}
