:root {
  --navy: #0b2d3d;
  --navy-soft: #153f52;
  --blue: #3f7289;
  --teal: #2e716b;
  --teal-dark: #245c57;
  --sea: #dcebe7;
  --sea-light: #eff6f4;
  --ice: #f5f9fa;
  --white: #ffffff;
  --text: #496474;
  --line: #d8e4e8;
  --shadow: 0 24px 70px rgba(11, 45, 61, 0.1);
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

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

body::selection {
  background: var(--sea);
  color: var(--navy);
}

button,
input,
textarea {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7fb0ca;
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 228, 232, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}

.brand img {
  width: 148px;
  height: auto;
}

.brand span,
.footer-brand span {
  padding: 4px 7px;
  border: 1px solid rgba(63, 114, 137, 0.35);
  border-radius: 999px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-self: end;
}

.primary-nav a {
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: var(--teal);
}

.mobile-nav-only {
  display: none;
}

.menu-button {
  display: none;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--teal);
}

.button-small {
  min-height: 44px;
  padding-inline: 17px;
  font-size: 12px;
}

.header-cta {
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  justify-self: end;
  white-space: nowrap;
}

.header-cta-compact {
  display: none;
}

.hero-actions > .button,
.form-actions > .button {
  border-radius: 999px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid var(--blue);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.hero {
  min-height: 730px;
  padding-block: 88px 82px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(54px, 7vw, 94px);
}

.hero-copy {
  animation: fade-up 650ms ease both;
}

.eyebrow {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin: 20px 0 24px;
  font-size: clamp(48px, 5.8vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero-trust {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
}

.hero-trust span {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.hero-trust span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--sea-light);
}

.extraction-preview {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--sea);
  box-shadow: var(--shadow);
  animation: fade-up 650ms 120ms ease both;
}

.preview-topline {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-topline > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.note-panel,
.output-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.note-panel {
  padding: 21px;
}

.panel-label {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.note-panel p {
  margin: 14px 0 0;
  color: #3b5360;
  font: 12px/1.85 "SFMono-Regular", Consolas, monospace;
}

.note-panel mark {
  padding: 2px 1px;
  border-radius: 3px;
  background: var(--sea);
  color: var(--navy);
}

.flow-label {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-label span {
  height: 1px;
  background: var(--line);
}

.output-panel {
  overflow: hidden;
}

.output-row {
  min-height: 52px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 72px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
}

.output-row strong {
  color: var(--navy);
  font-size: 11px;
}

.output-heading {
  min-height: 36px;
  border-top: 0;
  background: var(--sea-light);
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.linked-status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sea);
  color: var(--teal-dark);
  font-size: 8px;
  font-weight: 800;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--ice);
}

.proof-grid {
  min-height: 126px;
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 0.7fr 1.9fr;
  align-items: center;
}

.proof-grid > div {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.proof-grid strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.proof-grid span {
  margin-top: 7px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-grid p {
  max-width: 440px;
  margin: 0 0 0 42px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.section {
  padding-block: 118px;
}

.section-intro {
  max-width: 770px;
  margin-bottom: 54px;
}

.section-intro.compact {
  max-width: 670px;
}

.section-intro h2,
.security-copy h2,
.evidence-copy h2,
.about-grid h2,
.contact-copy h2 {
  margin: 17px 0 20px;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 620;
}

.section-intro p,
.security-copy > p,
.evidence-copy > p,
.contact-copy > p,
.about-grid p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 390px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy);
  text-align: left;
}

.success-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--sea-light);
}

.success-card {
  width: min(680px, 100%);
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-card img {
  width: 180px;
  height: auto;
}

.success-card h1 {
  margin: 42px 0 16px;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.success-card p {
  max-width: 480px;
  margin: 0 auto 30px;
  color: var(--text);
  line-height: 1.7;
}

.service-card.is-active {
  transform: translateY(-5px);
  border-color: #a9cbc4;
  background: var(--sea);
  box-shadow: 0 18px 45px rgba(11, 45, 61, 0.08);
}

.card-label,
.card-number {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card-number {
  margin-top: 52px;
  color: var(--blue);
}

.service-card h3 {
  margin: 17px 0 14px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.service-card small {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 10px;
  line-height: 1.6;
}

.security-section {
  padding-block: 118px;
  background: var(--navy);
  color: var(--white);
}

.security-grid {
  display: block;
}

.security-copy {
  max-width: 980px;
}

.eyebrow-light {
  color: #8fc4bc;
}

.security-copy h2 {
  color: var(--white);
}

.security-copy > p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.66);
}

.security-copy ul {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  list-style: none;
}

.security-copy li {
  position: relative;
  padding: 13px 0 13px 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.security-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #9ed0c8;
  font-weight: 800;
}

.process-section {
  padding-bottom: 132px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.process-grid article {
  min-height: 250px;
  padding: 28px 38px 0 0;
  border-right: 1px solid var(--line);
}

.process-grid article + article {
  padding-left: 38px;
}

.process-grid article:last-child {
  border-right: 0;
}

.process-grid article > span {
  width: 54px;
  height: 54px;
  border: 1px solid #b9d8d2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sea);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.process-grid h3 {
  margin: 34px 0 12px;
  font-size: 27px;
}

.process-grid p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.evidence-section {
  padding-block: 118px;
  background: var(--sea-light);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  align-items: center;
  gap: 86px;
}

.evidence-copy .button {
  margin-top: 31px;
}

.research-focus-list {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.research-focus-list span {
  padding: 8px 11px;
  border: 1px solid #bfd8d2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.button-secondary {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.publication-card {
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid #cddfda;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(11, 45, 61, 0.08);
}

.publication-meta {
  display: flex;
  justify-content: space-between;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-card h3 {
  margin: 65px 0 22px;
  font-size: clamp(25px, 3.1vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.publication-card > p {
  margin: 0;
  color: var(--text);
}

.publication-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publication-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--sea-light);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.about-section {
  padding-block: 118px;
  background: var(--navy-soft);
  color: var(--white);
}

.about-section .eyebrow {
  color: #9ed0c8;
}

.about-section .about-grid h2 {
  color: var(--white);
}

.about-section .about-grid p {
  color: rgba(255, 255, 255, 0.7);
}

.about-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 94px;
  align-items: start;
}

.about-grid h2 {
  margin-top: 0;
}

.about-grid p + p {
  margin-top: 22px;
}

.contact-section {
  padding-block: 112px;
  border-top: 1px solid var(--line);
  background: var(--ice);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 88px;
}

.contact-form {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(11, 45, 61, 0.07);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form label > span {
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 114, 137, 0.1);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
}

.form-actions small {
  max-width: 230px;
  color: var(--text);
  font-size: 9px;
  line-height: 1.5;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--sea-light);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}

footer {
  padding-block: 56px;
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.footer-brand img {
  width: 154px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  border-color: rgba(255, 255, 255, 0.25);
  color: #b7d6d0;
}

.footer-inner > p {
  justify-self: end;
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: right;
}

.footer-inner nav {
  grid-column: 1 / -1;
  padding-block: 23px;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
}

.footer-inner nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.footer-inner > small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .primary-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    box-shadow: 0 18px 35px rgba(11, 45, 61, 0.08);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav .mobile-nav-only {
    display: block;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--white);
  }

  .menu-button span {
    width: 18px;
    height: 1px;
    background: var(--navy);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-block: 80px 96px;
  }

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

  .extraction-preview {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-block: 24px;
  }

  .proof-grid p {
    grid-column: 1 / -1;
    max-width: none;
    margin: 22px 0 0;
  }

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

  .service-card {
    min-height: 300px;
  }

  .evidence-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .security-copy,
  .evidence-copy,
  .contact-copy {
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .page-shell,
  .header-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 70px;
    gap: 8px;
  }

  .brand img {
    width: 132px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .header-cta-full {
    display: none;
  }

  .header-cta-compact {
    display: inline;
  }

  .primary-nav {
    top: 70px;
  }

  .hero {
    min-height: auto;
    padding-block: 60px 74px;
    gap: 62px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .extraction-preview {
    padding: 13px;
    border-radius: 18px;
  }

  .preview-topline > span {
    display: none;
  }

  .note-panel {
    padding: 16px;
  }

  .note-panel p {
    font-size: 10px;
  }

  .output-row {
    grid-template-columns: 0.9fr 1.2fr 58px;
    padding-inline: 11px;
    gap: 7px;
    font-size: 9px;
  }

  .output-row strong {
    font-size: 9px;
  }

  .linked-status {
    padding: 4px 6px;
    font-size: 7px;
  }

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

  .proof-grid > div {
    padding: 15px 0;
  }

  .proof-grid > div:nth-child(2) {
    padding-left: 20px;
    border-right: 0;
  }

  .proof-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .section,
  .security-section,
  .evidence-section,
  .about-section,
  .contact-section {
    padding-block: 84px;
  }

  .section-intro h2,
  .security-copy h2,
  .evidence-copy h2,
  .about-grid h2,
  .contact-copy h2 {
    font-size: clamp(36px, 11vw, 49px);
  }

  .service-card {
    min-height: 330px;
    padding: 24px;
  }

  .security-copy ul {
    grid-template-columns: 1fr;
  }

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

  .process-grid article,
  .process-grid article + article {
    min-height: auto;
    padding: 26px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-grid article:last-child {
    border-bottom: 0;
  }

  .process-grid h3 {
    margin-top: 24px;
  }

  .publication-card {
    padding: 27px;
  }

  .publication-card h3 {
    margin-top: 44px;
  }

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

  .contact-form {
    padding: 23px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner > p {
    justify-self: start;
    text-align: left;
  }

  .footer-inner nav,
  .footer-inner > small {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
