@import url("../saurus_style/tokens.css");

:root {
  color-scheme: dark;
  --ink: #101815;
  --control: #07151d;
  --panel: rgba(11, 28, 29, 0.74);
  --panel-strong: rgba(229, 242, 233, 0.9);
  --panel-ink: #f2f8f4;
  --evidence-ink: #17211d;
  --muted: rgba(248, 245, 234, 0.7);
  --muted-dark: rgba(229, 242, 233, 0.66);
  --line: rgba(246, 243, 234, 0.16);
  --line-dark: rgba(229, 242, 233, 0.16);
  --signal: #8fd9bb;
  --green: #54b783;
  --green-deep: #143a2d;
  --green-soft: rgba(84, 183, 131, 0.16);
  --gold: var(--saurus-color-tape);
  --copper: #c06f4f;
  --white: #fffdf4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --page-gutter: clamp(20px, 5vw, 72px);
  --page-progress: 0;
  --ambient-grid-shift: 0px;
  --ambient-photo-shift: 0px;
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(84, 183, 131, 0.23), transparent 32%),
    radial-gradient(circle at 92% 30%, rgba(127, 183, 191, 0.14), transparent 30%),
    linear-gradient(145deg, #07151d 0%, #111916 46%, #1d241f 100%);
  background-attachment: fixed;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 0;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

::selection {
  background: var(--green);
  color: var(--ink);
}

h1, h2, h3, p, dl, dd { margin: 0; }

.page-ambient {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(246, 243, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 234, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  display: block;
  inset: 0;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  position: absolute;
  transform: translate3d(0, var(--ambient-grid-shift), 0);
  transition: transform 120ms linear;
}

.ambient-photo {
  filter: sepia(0.34) saturate(0.8) hue-rotate(142deg) contrast(1.24);
  height: 420px;
  opacity: 0.1;
  position: absolute;
  right: -120px;
  top: 150px;
  transform: translate3d(0, var(--ambient-photo-shift), 0) rotate(2deg);
  width: 760px;
  will-change: transform;
}

.scroll-meter {
  background: linear-gradient(90deg, var(--green), var(--signal), rgba(244, 208, 63, 0.7));
  height: 3px;
  inset: 0 0 auto;
  position: fixed;
  transform: scaleX(var(--page-progress));
  transform-origin: 0 50%;
  z-index: 30;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(11, 24, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin: 16px var(--page-gutter) 0;
  min-height: 68px;
  padding: 10px 18px;
  position: sticky;
  top: 16px;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(7, 21, 29, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.brand,
.nav {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 780;
  gap: 10px;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  height: 48px;
  width: 96px;
}

.nav {
  color: rgba(248, 245, 234, 0.68);
  font-size: 0.88rem;
  font-weight: 650;
  gap: 24px;
}

.nav a { white-space: nowrap; }
.nav a:not(.nav-cta):hover { color: var(--white); }

.nav-cta {
  background: var(--green);
  border-radius: 4px;
  color: var(--ink);
  padding: 8px 14px;
}

main { min-width: 0; }

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  min-height: calc(100svh - 88px);
  padding: clamp(52px, 7vw, 96px) var(--page-gutter) 72px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 820px;
}

.eyebrow {
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  color: var(--white);
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  font-weight: 790;
  letter-spacing: 0;
  line-height: 0.92;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 750;
  line-height: 1.08;
  max-width: 18ch;
}

h3 {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.32;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.62;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid rgba(246, 243, 234, 0.22);
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.button.secondary {
  background: rgba(246, 243, 234, 0.08);
  color: var(--white);
}

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  padding-top: 20px;
}

.hero-stats dt {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.hero-stats dd {
  color: rgba(248, 245, 234, 0.62);
  font-size: 0.82rem;
}

.signal-panel {
  background:
    linear-gradient(180deg, rgba(246, 250, 247, 0.94), rgba(224, 237, 228, 0.9));
  border: 1px solid rgba(143, 217, 187, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--evidence-ink);
  min-width: 0;
  overflow: hidden;
  padding: 22px;
  position: relative;
  transform: translate3d(0, var(--parallax-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.panel-wave {
  filter: sepia(0.18) saturate(1.35) hue-rotate(86deg) contrast(1.45);
  height: 62px;
  left: 22px;
  object-fit: cover;
  opacity: 0.42;
  position: absolute;
  right: 22px;
  top: 76px;
  width: calc(100% - 44px);
}

.panel-header {
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
}

.panel-header span,
.match-result span {
  color: #5a6b61;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.panel-header strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.signal-path {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto 1fr auto;
  margin: 44px 0 28px;
}

.signal-path span {
  background: #ddecdf;
  border: 1px solid #adcaba;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
}

.signal-path i {
  background: var(--green);
  display: block;
  height: 2px;
}

.match-result {
  background: var(--control);
  border-radius: 6px;
  color: var(--white);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.match-result span,
.match-result p {
  color: rgba(248, 245, 234, 0.68);
}

.match-result strong {
  font-size: 1.2rem;
}

.workflow,
.trust,
.fit,
.cta {
  padding: clamp(48px, 7vw, 84px) var(--page-gutter);
}

.workflow {
  background:
    linear-gradient(180deg, rgba(12, 29, 25, 0.74), rgba(7, 21, 29, 0.38));
  border-top: 1px solid var(--line);
  position: relative;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.steps,
.trust-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article,
.trust-grid article {
  border-top: 1px solid rgba(246, 243, 234, 0.18);
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.steps article > span {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 850;
}

.steps p,
.trust-grid p {
  color: var(--muted);
  font-size: 0.96rem;
}

.trust,
.cta {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(84, 183, 131, 0.12), transparent 34%),
    var(--panel);
  border-top: 1px solid rgba(143, 217, 187, 0.18);
  color: var(--panel-ink);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
}

.trust .eyebrow,
.fit .eyebrow,
.cta .eyebrow {
  color: var(--green);
}

.trust-grid article {
  border-color: var(--line-dark);
}

.trust-grid p,
.fit li,
.cta p {
  color: var(--muted-dark);
}

.fit {
  align-items: start;
  background:
    linear-gradient(90deg, rgba(84, 183, 131, 0.08), transparent 55%),
    rgba(7, 21, 29, 0.78);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
}

.audiences {
  list-style: none;
  margin: 0;
  padding: 0;
}

.audiences li {
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 650;
  padding: 16px 0;
}

.audiences li:first-child { padding-top: 0; }
.audiences li:last-child { border-bottom: 0; }

.cta {
  align-items: center;
}

.cta .button {
  justify-self: start;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: rgba(248, 245, 234, 0.58);
  display: flex;
  font-size: 0.82rem;
  gap: 16px;
  justify-content: space-between;
  padding: 28px var(--page-gutter);
}

.site-footer strong {
  color: var(--white);
  font-size: 1rem;
}

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

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y), 0);
}

.js .signal-panel.reveal.is-visible {
  transform: translate3d(0, var(--parallax-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.process-dock { display: none; }

@media (max-width: 980px) {
  .hero,
  .trust,
  .fit,
  .cta {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    max-width: 640px;
  }

  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    margin: 12px 16px 0;
  }

  .nav {
    gap: 10px;
    width: 100%;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    text-align: center;
    width: 100%;
  }

  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .hero-stats,
  .signal-path {
    grid-template-columns: 1fr;
  }

  .signal-path i {
    height: 22px;
    justify-self: center;
    width: 2px;
  }

  .ambient-photo {
    display: none;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
  .ambient-grid,
  .ambient-photo,
  .js .reveal,
  .js .reveal.is-visible,
  .signal-panel {
    transform: none;
  }
}
