/* ===== NEXUS Verbindung landing page ===== */

:root {
  --gold: #f6b82c;
  --gold-strong: #ffc83f;
  --gold-soft: rgba(246, 184, 44, 0.18);
  --bronze: #8a5a2d;
  --bg: #070708;
  --bg-2: #0d0e11;
  --panel: #111214;
  --panel-2: #17181d;
  --ink: #f5f5f2;
  --muted: #a8afbd;
  --muted-2: #798293;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(246, 184, 44, 0.28);
  --max-width: 1220px;
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(246, 184, 44, 0.35);
}

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

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(92vw, var(--max-width));
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold-strong);
  color: #11110f;
  box-shadow: 0 12px 30px rgba(246, 184, 44, 0.18);
}

.btn-primary:hover {
  background: #ffd769;
  box-shadow: 0 16px 38px rgba(246, 184, 44, 0.26);
}

.btn-ghost {
  background: rgba(8, 8, 9, 0.58);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(246, 184, 44, 0.55);
  background: rgba(18, 18, 20, 0.78);
}

.btn-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 8, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo-mask {
  position: relative;
  display: block;
  width: 158px;
  height: 57px;
  overflow: hidden;
}

.brand-logo-mask-sm {
  width: 120px;
  height: 43px;
}

.brand-logo {
  position: absolute;
  top: -118%;
  left: -8%;
  width: 116%;
  max-width: none;
  height: auto;
}

.footer-brand .brand-logo {
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a,
.footer-nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.nav a:hover,
.footer-nav a:hover,
.mobile-nav a:hover {
  color: var(--gold-strong);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(580px, 72svh, 720px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.231) translateX(20%) translateY(-20%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 1) 0%, rgba(7, 7, 8, 0.85) 35%, rgba(7, 7, 8, 0.45) 70%, rgba(7, 7, 8, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.4) 0%, rgba(7, 7, 8, 0.18) 44%, rgba(7, 7, 8, 0.9) 100%);
}

.hero-inner {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 10vw, 118px) 0 clamp(58px, 8vw, 92px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 6.25rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-inner .eyebrow {
  display: block;
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d4d8df;
  font-size: 1.22rem;
  line-height: 1.65;
}

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

.hero-metrics {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(44px, 8vw, 78px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(246, 184, 44, 0.23);
  border-radius: var(--radius);
  background: rgba(246, 184, 44, 0.16);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(7, 7, 8, 0.74);
}

.hero-metrics dt {
  margin: 0;
  color: var(--gold-strong);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* ===== Sections ===== */
.section {
  padding: clamp(70px, 9vw, 112px) 0;
}

main section[id],
.legal-section[id] {
  scroll-margin-top: 104px;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(36px, 6vw, 58px);
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.07;
  text-wrap: balance;
}

.section-head p {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.demo-section,
.workflow-section {
  background: var(--bg);
}

.demo-section {
  padding-top: 44px;
}

.feature-section,
.contact-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--bg-2);
}

/* ===== Video ===== */
.video-frame {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.video-frame video.active {
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: #111;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/map final version hero.png") center / cover no-repeat;
  opacity: 0.76;
  transform: scale(1.01);
  transition: transform 220ms ease, opacity 220ms ease;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.5);
}

.video-placeholder:hover::before {
  opacity: 0.9;
  transform: scale(1.035);
}

.play-btn,
.video-placeholder-label {
  position: relative;
  z-index: 1;
}

.play-btn {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-strong);
  color: #101010;
  box-shadow: 0 16px 42px rgba(246, 184, 44, 0.28);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.video-placeholder:hover .play-btn {
  transform: scale(1.06);
  box-shadow: 0 18px 50px rgba(246, 184, 44, 0.4);
}

.video-placeholder-label {
  color: #f6f7f8;
  font-size: 0.94rem;
  font-weight: 700;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.feature-card {
  min-height: 258px;
  padding: clamp(24px, 3.1vw, 38px);
  border: 1px solid rgba(138, 90, 45, 0.88);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #111110, #0c0d0d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 22px 54px rgba(0, 0, 0, 0.25);
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.feature-card:hover {
  border-color: rgba(246, 184, 44, 0.7);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 28px 70px rgba(0, 0, 0, 0.36);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: #1b1c1f;
  color: #ffad13;
  box-shadow: inset 0 0 0 1px rgba(246, 184, 44, 0.05);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
}

.feature-card h3 {
  margin: 0;
  color: #f8f8f4;
  font-size: 1.48rem;
  font-weight: 850;
  line-height: 1.16;
}

.feature-card p {
  margin: 18px 0 0;
  color: #aab3c2;
  font-size: 1.05rem;
  line-height: 1.72;
}

/* ===== Workflow ===== */
.pipeline-scroll {
  min-height: 470svh;
  padding: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(246, 184, 44, 0.1), transparent 32vw),
    var(--bg);
}

.pipeline-sticky {
  position: sticky;
  top: 80px;
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  padding: clamp(52px, 6vw, 78px) 0;
}

.pipeline-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.pipeline-demo {
  display: block;
}

.pipeline-stage-meter {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.pipeline-stage-meter span {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 180ms ease, width 180ms ease;
}

.pipeline-stage-meter span.is-active {
  width: 54px;
  background: var(--gold-strong);
}

.pipeline-visual {
  position: relative;
  overflow: hidden;
  min-height: min(40svh, 420px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    #090a0c;
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transition: min-height 260ms ease;
}

.pipeline-scroll:not([data-stage="0"]) .pipeline-visual {
  min-height: min(68svh, 710px);
}

.pipeline-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 8, 0.88), rgba(7, 7, 8, 0.28) 52%, rgba(7, 7, 8, 0.74));
  pointer-events: none;
}

.pipeline-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 184, 44, 0.09), transparent 24%),
    radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.045), transparent 20%);
  pointer-events: none;
}

.pipeline-compare {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 54px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pipeline-scroll:not([data-stage="0"]) .pipeline-compare {
  opacity: 0;
  transform: translateY(-14px);
}

.compare-brief {
  width: min(100%, 360px);
  min-height: 108px;
  border-left: 1px solid rgba(246, 184, 44, 0.28);
  padding-left: 16px;
}

.compare-nexus {
  justify-self: end;
  width: min(100%, 360px);
}

.compare-brief span {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 760;
  line-height: 1.15;
}

.compare-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li {
  min-height: 20px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
}

.compare-list li:first-child {
  color: #dfe3ea;
  font-weight: 560;
}

.pipeline-search {
  position: absolute;
  top: clamp(132px, 22%, 176px);
  left: 50%;
  z-index: 4;
  width: min(680px, calc(100% - 48px));
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pipeline-scroll[data-stage="0"] .pipeline-search {
  opacity: 0;
  transform: translate(-50%, 18px);
}

.prompt-box {
  border: 1px solid rgba(246, 184, 44, 0.28);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(8, 9, 11, 0.86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
}

.prompt-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prompt-box p {
  margin: 0;
  color: #f4f4f0;
  font-size: clamp(1rem, 1.8vw, 1.34rem);
  font-weight: 430;
  line-height: 1.45;
  min-height: 2.9em;
}

.prompt-box p.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 4px;
  background: var(--gold-strong);
  transform: translateY(2px);
}

.company-cloud {
  position: absolute;
  inset: 360px 34px 76px;
  z-index: 2;
  opacity: 1;
  transition: opacity 220ms ease;
}

.pipeline-scroll[data-stage="0"] .company-cloud {
  opacity: 0;
}

.company-cloud span {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  color: rgba(224, 229, 238, var(--alpha, 0.72));
  font-size: 0.92rem;
  font-weight: 330;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease, font-size 220ms ease;
}

.company-cloud span.is-final {
  left: 50%;
  top: 42%;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 330;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  transform: translate(-50%, -50%);
  width: min(88%, 760px);
  text-shadow: 0 0 34px rgba(246, 184, 44, 0.26);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.contact-copy {
  max-width: 560px;
}

.contact-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 2.95rem;
  font-weight: 850;
  line-height: 1.08;
  text-wrap: balance;
}

.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7dbe2;
  font-size: 0.96rem;
  font-weight: 650;
}

.contact-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--gold-strong);
  transform: rotate(45deg);
}

.contact-email {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-email a {
  color: var(--gold-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #101115;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #c7ccd6;
  font-size: 0.86rem;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(0, 0, 0, 0.24);
  color: var(--ink);
  font-size: 0.96rem;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(214, 218, 226, 0.36);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(246, 184, 44, 0.86);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 3px rgba(246, 184, 44, 0.16);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--gold-strong);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070708;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

/* ===== Legal pages ===== */
.legal-main {
  background: var(--bg);
}

.legal-hero {
  padding: clamp(58px, 9vw, 96px) 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 184, 44, 0.08), rgba(246, 184, 44, 0)),
    #08090a;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: 4.15rem;
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.legal-content {
  padding: clamp(48px, 8vw, 86px) 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101115;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-toc a:hover {
  color: var(--gold-strong);
}

.legal-panel {
  display: grid;
  gap: 22px;
}

.legal-section {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101115;
}

.legal-section h2,
.legal-section h3 {
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

.legal-section h2 {
  font-size: 1.75rem;
}

.legal-section h3 {
  margin-top: 22px;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-section a {
  color: var(--gold-strong);
}

.legal-section p {
  margin: 12px 0 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-meta {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.address-block {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
}

.address-block a {
  color: var(--gold-strong);
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero h1 {
    font-size: 5.15rem;
  }

  .section-head h2 {
    font-size: 2.55rem;
  }

  .feature-card h3 {
    font-size: 1.35rem;
  }

  .feature-card p {
    font-size: 1rem;
  }

  .contact-copy h2 {
    font-size: 2.45rem;
  }

  .legal-hero h1 {
    font-size: 3.35rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-logo-mask {
    width: 138px;
    height: 50px;
  }

  .nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    gap: 14px;
    overflow: hidden;
    padding: 0 4vw;
    border-top: 1px solid transparent;
    background: rgba(7, 7, 8, 0.96);
    opacity: 0;
    transition: max-height 260ms ease, opacity 180ms ease, padding 260ms ease, border-color 260ms ease;
  }

  .mobile-nav.open {
    max-height: 360px;
    padding: 20px 4vw 24px;
    border-top-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
  }

  .mobile-nav .btn {
    width: 100%;
    color: #11110f;
  }

  .hero {
    min-height: 620px;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 7, 8, 0.34), rgba(7, 7, 8, 0.84) 58%, rgba(7, 7, 8, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 7, 8, 0.78), rgba(7, 7, 8, 0.28), rgba(7, 7, 8, 0.72));
  }

  .hero-inner {
    justify-content: flex-end;
  }

  .pipeline-scroll {
    min-height: 420svh;
    padding: 0;
  }

  .pipeline-sticky {
    position: sticky;
    top: 64px;
    min-height: calc(100svh - 64px);
    padding: 24px 0;
  }

  .pipeline-visual {
    min-height: min(78svh, 600px);
  }

  .pipeline-scroll:not([data-stage="0"]) .pipeline-visual {
    min-height: min(78svh, 600px);
  }

  /* Stages overlay in the pinned panel so the compare cleanly fades out. */
  .pipeline-compare {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pipeline-scroll:not([data-stage="0"]) .pipeline-compare {
    opacity: 0;
    transform: translateY(-12px);
  }

  .compare-brief {
    min-height: auto;
    width: auto;
  }

  .compare-nexus {
    justify-self: stretch;
    width: auto;
  }

  .pipeline-search {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    margin: 0;
    padding: 0;
  }

  .pipeline-scroll[data-stage="0"] .pipeline-search {
    transform: translate(-50%, 16px);
  }

  .company-cloud {
    position: absolute;
    inset: 140px 14px 48px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 8px 10px;
  }

  .company-cloud span {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .company-cloud span.is-final {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: auto;
    font-size: 1.05rem;
    border-color: rgba(246, 184, 44, 0.5);
    background: rgba(246, 184, 44, 0.12);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(90vw, var(--max-width));
  }

  .section {
    padding: 64px 0;
  }

  .demo-section {
    padding-top: 40px;
  }

  .hero-inner {
    padding-top: 66px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .section-head h2,
  .contact-copy h2 {
    font-size: 2.08rem;
  }

  .feature-card h3 {
    font-size: 1rem;
    line-height: 1.18;
  }

  .feature-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .legal-hero h1 {
    font-size: 2.65rem;
  }

  .legal-section h2 {
    font-size: 1.45rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-metrics div {
    padding: 12px 10px;
  }

  .hero-metrics dt {
    font-size: 1.08rem;
  }

  .hero-metrics dd {
    font-size: 0.72rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 224px;
    padding: 16px 14px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
  }

  .feature-icon svg {
    width: 21px;
    height: 21px;
  }

  .video-frame {
    width: calc(100vw - 24px);
    margin-left: 50%;
    transform: translateX(-50%);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) and (max-height: 760px) {
  .hero {
    min-height: 570px;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .hero h1 {
    font-size: 2.95rem;
  }

  .hero-lede {
    margin-top: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    min-height: 42px;
    padding: 10px 16px;
  }

  .hero-metrics {
    display: none;
  }

  .demo-section {
    padding-top: 28px;
  }
}

@media (max-width: 460px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-logo-mask {
    width: 122px;
    height: 44px;
  }

  .brand-logo-mask-sm {
    width: 112px;
    height: 40px;
  }

  .eyebrow {
    font-size: 0.71rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .section-head h2,
  .contact-copy h2 {
    font-size: 1.9rem;
  }

  .legal-hero h1 {
    font-size: 2.28rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .feature-card {
    min-height: 218px;
    padding: 14px 12px;
  }

  .feature-card h3 {
    font-size: 0.94rem;
  }

  .feature-card p {
    font-size: 0.76rem;
  }

  .contact-form,
  .legal-section {
    margin-left: -2px;
    margin-right: -2px;
  }
}

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