:root {
  --bg: #f8fbff;
  --bg-soft: #eef5ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #071120;
  --ink-soft: #30415d;
  --muted: #6d7c91;
  --line: rgba(19, 49, 92, 0.12);
  --line-strong: rgba(0, 76, 190, 0.22);
  --blue: #0757d8;
  --blue-2: #0c7dff;
  --cyan: #09b7d9;
  --green: #0f9f6e;
  --red: #c6414c;
  --shadow: 0 18px 48px rgba(19, 49, 92, 0.12);
  --shadow-soft: 0 12px 30px rgba(19, 49, 92, 0.08);
  --radius: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.96) 34%, #f8fbff),
    radial-gradient(circle at 12% 12%, rgba(7, 87, 216, 0.08), transparent 28%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

main {
  overflow: clip;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: top 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(24px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(180%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(7, 87, 216, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 87, 216, 0.12);
}

.wordmark strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wordmark small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav-links a {
  position: relative;
  color: #1f2d44;
  font-size: 14px;
  font-weight: 700;
  line-height: 76px;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(5, 74, 190, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1268f4, #074ec2);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 87, 216, 0.23);
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.header-cta:hover,
.primary-button:hover {
  box-shadow: 0 16px 32px rgba(7, 87, 216, 0.3);
  filter: saturate(1.08);
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: #10233f;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.secondary-button:hover {
  border-color: rgba(7, 87, 216, 0.42);
  background: #fff;
  color: var(--blue);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.menu-button.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 124px clamp(24px, 5vw, 64px) 60px;
  overflow: hidden;
}

.motion-field {
  position: absolute;
  inset: 76px 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 87, 216, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 87, 216, 0.09) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.95));
  opacity: 0.52;
}

.scanline {
  position: absolute;
  top: 18%;
  left: -10%;
  width: 120%;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(7, 125, 255, 0.16), transparent);
  animation: scan 7s linear infinite;
}

.circuit-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 87, 216, 0.44), transparent);
  opacity: 0.7;
}

.line-a {
  top: 22%;
  left: 0;
  width: 48%;
  animation: slideX 8s ease-in-out infinite;
}

.line-b {
  top: 57%;
  right: 4%;
  width: 42%;
  animation: slideX 9s ease-in-out infinite reverse;
}

.line-c {
  top: 81%;
  left: 9%;
  width: 70%;
  animation: slideX 11s ease-in-out infinite;
}

.binary-stream {
  position: absolute;
  color: rgba(7, 87, 216, 0.18);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  animation: floatCode 9s ease-in-out infinite;
}

.stream-a {
  top: 13%;
  left: 45%;
}

.stream-b {
  right: 3%;
  bottom: 23%;
  animation-delay: -4s;
}

.motion-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(19, 49, 92, 0.08);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.motion-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d7e2f2;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 2px 8px rgba(19, 49, 92, 0.24);
  transition: transform 180ms ease, background 180ms ease;
}

.motion-toggle input:checked + .toggle-track {
  background: #bfd1ea;
}

.motion-toggle input:checked + .toggle-track::after {
  background: var(--blue);
  transform: translateX(16px);
}

.hero-copy {
  max-width: 610px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: #08111f;
  font-size: clamp(48px, 5.1vw, 74px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero-copy h1 span {
  color: var(--blue);
}

.hero-subtitle {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 54px;
  padding-inline: 28px;
}

.assurance-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 490px;
  margin-top: 46px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.assurance-row span {
  color: #284462;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.research-stack {
  position: relative;
  min-height: 640px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(19, 49, 92, 0.08);
  color: #1b2d49;
  font-size: 13px;
  font-weight: 800;
}

.version-pill,
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.12);
  animation: pulse 1.7s ease-in-out infinite;
}

.memo-panel {
  position: absolute;
  top: 0;
  right: 13%;
  z-index: 3;
  width: min(560px, 86%);
}

.memo-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px 0;
}

.memo-tabs button,
.capability-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.memo-tabs button.selected,
.capability-tabs button.selected {
  border-color: var(--blue);
  color: var(--blue);
}

.memo-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(210px, 1fr);
  gap: 18px;
  padding: 20px 18px 22px;
}

.memo-content h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.memo-content p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.agent-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agent-map span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(7, 87, 216, 0.16);
  border-radius: 6px;
  background: linear-gradient(180deg, #f9fbff, #edf5ff);
  color: #1f3f72;
  font-size: 12px;
  font-weight: 900;
  animation: nodeGlow 2.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.workflow-panel {
  position: absolute;
  top: 92px;
  right: 0;
  z-index: 5;
  width: min(410px, 58%);
}

.workflow-table {
  display: grid;
  padding: 12px 14px 16px;
}

.workflow-row {
  display: grid;
  grid-template-columns: 0.78fr 1.25fr 74px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(19, 49, 92, 0.08);
  background: transparent;
  color: #20354f;
  text-align: left;
}

.workflow-row:hover {
  background: rgba(7, 87, 216, 0.045);
}

.workflow-row span {
  font-size: 12px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 10px !important;
}

.status.done {
  background: rgba(15, 159, 110, 0.1);
  color: var(--green);
}

.status.running {
  background: rgba(7, 87, 216, 0.1);
  color: var(--blue);
}

.status.pending {
  background: rgba(109, 124, 145, 0.12);
  color: var(--muted);
}

.protocol-panel {
  position: absolute;
  top: 315px;
  left: 1%;
  z-index: 4;
  width: min(445px, 60%);
}

.protocol-grid {
  display: grid;
  gap: 9px;
  padding: 16px 18px 10px;
}

.protocol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.protocol-row strong {
  color: var(--ink);
  font-weight: 800;
}

.health-strip {
  display: grid;
  grid-template-columns: 96px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 10px 18px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-strip strong {
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 159, 110, 0.1);
  color: var(--green);
  font-size: 11px;
}

.sparkline {
  display: flex;
  height: 32px;
  align-items: end;
  gap: 3px;
}

.sparkline i {
  width: 3px;
  height: var(--height);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  animation: barPulse 1.8s ease-in-out infinite;
}

.pipeline-panel {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 2;
  width: min(640px, 82%);
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.pipeline-steps span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgba(7, 87, 216, 0.14);
  border-radius: 6px;
  background: #f8fbff;
  color: #213a5c;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.wave-line {
  height: 34px;
  margin: 0 18px 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(7, 87, 216, 0.1), rgba(9, 183, 217, 0.18), rgba(7, 87, 216, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(7, 87, 216, 0.18) 16px 18px);
  animation: slideX 4s linear infinite;
}

.stats-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1160px;
  margin: 0 auto;
  padding: 42px 24px;
}

.stat-card {
  min-height: 136px;
  padding: 18px 30px;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 14px;
  color: #1d3454;
  font-size: 15px;
  font-weight: 800;
}

.stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.section {
  position: relative;
  padding: 106px clamp(24px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.16;
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.centered p:not(.eyebrow) {
  margin-inline: auto;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
}

.principle-card,
.case-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(19, 49, 92, 0.05);
}

.principle-card {
  padding: 30px;
}

.card-index,
.case-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.principle-card h3,
.case-card h3,
.process-step h3 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.principle-card p,
.case-card p,
.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.services-section {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.55), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, transparent 0 110px, rgba(7, 87, 216, 0.045) 110px 111px);
}

.capability-tabs {
  display: flex;
  max-width: 760px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.capability-list {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.capability-row {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(250px, 0.9fr) minmax(300px, 1.05fr) 112px;
  gap: 26px;
  align-items: center;
  min-height: 188px;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(19, 49, 92, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.capability-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.capability-row:hover {
  border-color: rgba(7, 87, 216, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.capability-number {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.capability-main h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.06em;
}

.capability-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span,
.tech-cloud button,
.intake-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f9ff;
  color: #375172;
  font-size: 11px;
  font-weight: 800;
}

.case-evidence {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.case-evidence span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.case-evidence h4 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.case-evidence ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.row-action {
  justify-self: end;
  min-width: 92px;
  min-height: 38px;
  border: 1px solid rgba(7, 87, 216, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 87, 216, 0.06);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.partners-section {
  background: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
}

.case-card {
  min-height: 228px;
  padding: 28px;
}

.process-section {
  background: linear-gradient(180deg, var(--bg-soft), rgba(255, 255, 255, 0.2));
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.process-track::before {
  position: absolute;
  top: 42px;
  right: 9%;
  left: 9%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan), rgba(7, 87, 216, 0.16));
}

.process-step {
  position: relative;
  min-height: 210px;
  padding: 74px 24px 24px;
}

.process-step span {
  position: absolute;
  top: 20px;
  left: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(7, 87, 216, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 0 0 8px rgba(7, 87, 216, 0.06);
}

.tech-section {
  background: #fff;
}

.tech-cloud {
  display: flex;
  max-width: 980px;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-cloud button {
  min-height: 42px;
  padding-inline: 18px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tech-cloud button:hover {
  border-color: rgba(7, 87, 216, 0.42);
  background: #fff;
  color: var(--blue);
  transform: translateY(-1px);
}

.contact-section {
  padding: 76px clamp(24px, 5vw, 64px) 100px;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.contact-box h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.06em;
}

.contact-box p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.email-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 44px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #f4f8ff;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-links a,
.site-footer small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dialog-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 17, 32, 0.46);
  backdrop-filter: blur(8px);
}

.dialog-backdrop[hidden] {
  display: none;
}

.contact-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 17, 32, 0.28);
}

.close-dialog {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  letter-spacing: -0.06em;
}

.contact-dialog p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.intake-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scan {
  0% {
    transform: translateY(-120%) rotate(-8deg);
  }
  100% {
    transform: translateY(760%) rotate(-8deg);
  }
}

@keyframes slideX {
  0%,
  100% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(18px);
  }
}

@keyframes floatCode {
  0%,
  100% {
    opacity: 0.15;
    transform: translateY(0);
  }
  50% {
    opacity: 0.34;
    transform: translateY(-26px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.72);
  }
}

@keyframes nodeGlow {
  0%,
  100% {
    border-color: rgba(7, 87, 216, 0.14);
    box-shadow: none;
  }
  50% {
    border-color: rgba(7, 87, 216, 0.38);
    box-shadow: 0 0 0 5px rgba(7, 87, 216, 0.07);
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.reduce-motion * {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

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

/* ===== Stunning motion enhancements (MotionSites / ReactBits inspired) ===== */

/* Aurora mesh-gradient background (light-adapted) */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.6;
}
.aurora span {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
}
.aurora .a1 {
  background: radial-gradient(circle, rgba(7, 87, 216, 0.32), transparent 60%);
  top: -12%;
  left: -10%;
  animation: auroraDrift1 30s var(--ease) infinite;
}
.aurora .a2 {
  background: radial-gradient(circle, rgba(9, 183, 217, 0.26), transparent 60%);
  bottom: -18%;
  right: -10%;
  animation: auroraDrift2 36s var(--ease) infinite;
}
.aurora .a3 {
  background: radial-gradient(circle, rgba(124, 92, 246, 0.2), transparent 60%);
  top: 28%;
  left: 42%;
  animation: auroraDrift3 42s var(--ease) infinite;
}
@keyframes auroraDrift1 { 50% { transform: translate(22%, 16%) scale(1.15); } }
@keyframes auroraDrift2 { 50% { transform: translate(-18%, -12%) scale(1.2); } }
@keyframes auroraDrift3 { 50% { transform: translate(-14%, 18%) scale(0.9); } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue-2));
}

/* Hero cursor glow (scoped behind content) */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(7, 125, 255, 0.1), transparent 60%);
}

/* Keep hero copy & panels above the glow */
.hero-copy { position: relative; z-index: 1; }
.research-stack { z-index: 1; }

/* Blur-text hero reveal (ReactBits "Blur Text") */
.blur-line { display: block; }
.blur-line .bw {
  display: inline-block;
  color: #08111f;
  filter: blur(14px);
  opacity: 0;
  transform: translateY(22px);
  animation: blurIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms);
}
@keyframes blurIn { to { filter: blur(0); opacity: 1; transform: none; } }
.blur-line .bw.grad {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Spotlight cards (ReactBits "Spotlight Card") */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(7, 87, 216, 0.12), transparent 42%);
}
.spotlight:hover::after { opacity: 1; }

/* 3D tilt */
.tilt { transition: transform 0.25s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* Magnetic buttons */
.magnetic { transition: transform 0.25s var(--ease), box-shadow 0.25s ease, filter 0.25s ease; will-change: transform; }

/* Tech marquee (MotionSites) */
.marquee-band {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.marquee {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1180px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .research-stack {
    min-height: 620px;
  }

  .memo-panel {
    right: 24%;
  }

  .capability-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .case-evidence,
  .row-action {
    grid-column: 2;
  }

  .case-evidence {
    padding-left: 0;
    border-left: 0;
  }

  .row-action {
    justify-self: start;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    height: 70px;
    padding-inline: 20px;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    justify-content: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    line-height: 48px;
    padding-inline: 12px;
  }

  .nav-links a::after {
    bottom: 9px;
    left: 12px;
    right: auto;
    width: 42px;
  }

  .hero-section {
    padding: 106px 20px 40px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .assurance-row,
  .stats-grid,
  .principles,
  .case-grid,
  .process-track,
  .contact-box,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .research-stack {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .memo-panel,
  .workflow-panel,
  .protocol-panel,
  .pipeline-panel {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .memo-content,
  .pipeline-steps {
    grid-template-columns: 1fr;
  }

  .workflow-row {
    grid-template-columns: 0.72fr 1fr 72px;
  }

  .stats-grid {
    padding: 26px 20px;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 76px 20px;
  }

  .capability-tabs {
    justify-content: flex-start;
  }

  .capability-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-evidence,
  .row-action {
    grid-column: auto;
  }

  .process-track::before {
    display: none;
  }

  .contact-section {
    padding-inline: 20px;
  }

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

@media (max-width: 560px) {
  .wordmark strong {
    font-size: 19px;
  }

  .wordmark small {
    font-size: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .dialog-actions .primary-button,
  .dialog-actions .secondary-button {
    width: 100%;
  }

  .memo-tabs {
    overflow-x: auto;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 10px;
  }

  .motion-toggle {
    right: 10px;
    bottom: 10px;
  }
}
