:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5f6f75;
  --surface: #ffffff;
  --surface-soft: #eef5f3;
  --line: #d4e0df;
  --teal: #0f766e;
  --teal-dark: #0f4d56;
  --gold: #c6922e;
  --blue: #2b5f95;
  --shadow: 0 18px 44px rgba(23, 33, 38, 0.12);
  --landing-section-gap: clamp(56px, 6vw, 78px);
  --brand-gap: 10px;
  --brand-logo-size: 54px;
  --brand-title-size: 1.18rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f7f6;
}

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

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(212, 224, 223, 0.86);
  color: var(--ink);
  background: rgba(244, 247, 246, 0.92);
  box-shadow: 0 12px 30px rgba(23, 33, 38, 0.08);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--brand-gap);
  font-weight: 700;
}

.nav-brand strong {
  display: block;
  font-size: var(--brand-title-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-logo {
  display: block;
  flex: 0 0 auto;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  object-fit: contain;
}

.nav-link {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
  font-weight: 850;
}

.nav-link:hover {
  background: #105f59;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(540px, 76vh, 760px);
  overflow: hidden;
  align-items: center;
  padding: 76px clamp(20px, 7vw, 112px) 58px;
  color: #ffffff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 44, 50, 0.92) 0%, rgba(7, 44, 50, 0.70) 38%, rgba(7, 44, 50, 0.08) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.06) 70%, rgba(244, 247, 246, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(710px, 100%);
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(660px, 100%);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-keywords li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

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

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-cta {
  gap: 10px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.24);
}

.primary-cta:hover {
  background: #105f59;
}

.secondary-cta {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.feature-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e5f2ef;
}

.feature-icon {
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-card:nth-child(2) .feature-icon {
  color: var(--blue);
  background: #e8f0f7;
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--gold);
  background: #fbf1dc;
}

.feature-card:nth-child(4) .feature-icon {
  color: var(--teal);
  background: #e2f3f2;
}

.section,
.source-band,
.workflow-band,
.final-cta,
.faq-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  scroll-margin-top: 88px;
  padding: var(--landing-section-gap) 0;
}

.section-heading {
  max-width: 720px;
}

.section h2,
.source-copy h2,
.workflow-copy h2,
.final-cta h2,
.faq-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.source-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: center;
  margin-top: var(--landing-section-gap);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(43, 95, 149, 0.05)),
    var(--surface);
  box-shadow: var(--shadow);
}

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

.source-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.source-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.source-links {
  display: grid;
  gap: 10px;
}

.source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #ffffff;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(23, 33, 38, 0.06);
}

.source-links a:first-child {
  color: #ffffff;
  background: var(--teal);
}

.source-links a:hover {
  border-color: rgba(15, 118, 110, 0.36);
  transform: translateY(-1px);
}

.source-links span {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature-card {
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 38, 0.06);
}

.feature-kicker {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.feature-card p,
.steps span {
  color: var(--muted);
  line-height: 1.5;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
  padding: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: #123f47;
}

.workflow-band .eyebrow {
  color: #f0bb55;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 92px;
  padding: 18px 18px 18px 72px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #123f47;
  background: #ffffff;
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: var(--landing-section-gap) 0;
}

.primary-cta.dark {
  min-width: 166px;
  background: var(--ink);
}

.primary-cta.dark:hover {
  background: #0f171b;
}

.faq-section {
  margin-top: var(--landing-section-gap);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.faq-card {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 38, 0.06);
}

.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.22;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand links"
    "tagline credit";
  align-items: flex-end;
  column-gap: 24px;
  row-gap: 6px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  grid-area: brand;
  display: block;
  color: var(--ink);
}

.site-footer p {
  grid-area: tagline;
  margin: 0;
}

.site-footer nav {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 850;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-credit {
  grid-area: credit;
  justify-self: end;
  align-self: end;
  max-width: min(640px, 100%);
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

.footer-credit a {
  color: var(--teal-dark);
  font-weight: inherit;
}

.footer-credit a:hover {
  color: var(--teal);
}

.footer-made {
  display: inline;
}

.scroll-top-button {
  position: fixed;
  right: clamp(18px, 3vw, 38px);
  bottom: 82px;
  z-index: 30;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 16px 34px rgba(15, 76, 86, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.scroll-top-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover {
  background: #105f59;
}

.scroll-top-button:focus-visible {
  outline: 3px solid rgba(198, 146, 46, 0.46);
  outline-offset: 4px;
}

.legal-page {
  background: #f4f7f6;
}

.legal-nav {
  position: sticky;
  color: var(--ink);
  background: rgba(244, 247, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.legal-nav .nav-link {
  border-color: rgba(15, 118, 110, 0.16);
  color: #ffffff;
  background: var(--teal);
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.legal-nav .nav-link:hover {
  color: #ffffff;
  background: #105f59;
}

.legal-main {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
}

.legal-hero {
  padding: 84px 0 34px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(23, 33, 38, 0.06);
}

.legal-back-link span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  line-height: 1;
}

.legal-back-link:hover {
  color: var(--teal);
  border-color: rgba(15, 118, 110, 0.32);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.legal-hero p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.legal-content {
  margin-bottom: 70px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(23, 33, 38, 0.07);
}

.legal-content article {
  min-width: 0;
}

.legal-content article + article {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--teal-dark);
  background: var(--surface-soft);
}

.legal-content a,
.legal-content code {
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  :root {
    --landing-section-gap: clamp(48px, 7vw, 64px);
  }

  .hero {
    min-height: clamp(520px, 74vh, 680px);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 44, 50, 0.86), rgba(7, 44, 50, 0.58) 58%, rgba(244, 247, 246, 0.98) 100%),
      rgba(7, 44, 50, 0.22);
  }

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

  .source-band {
    grid-template-columns: 1fr;
  }

  .workflow-band {
    padding: 32px;
  }
}

@media (max-width: 620px) {
  :root {
    --brand-gap: 8px;
    --brand-logo-size: clamp(36px, 10.5vw, 42px);
    --brand-title-size: 1.02rem;
    --landing-section-gap: 46px;
  }

  .site-nav {
    gap: clamp(6px, 2.4vw, 10px);
    padding: 12px clamp(10px, 3.5vw, 14px);
  }

  .nav-brand strong {
    line-height: 1.15;
  }

  .nav-logo {
    width: var(--brand-logo-size);
    height: var(--brand-logo-size);
  }

  .nav-link {
    min-height: 36px;
    padding: 8px clamp(8px, 2.8vw, 11px);
    font-size: clamp(0.74rem, 3.2vw, 0.82rem);
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding: 68px 18px 56px;
  }

  .hero-content {
    padding-top: 16px;
  }

  .hero-actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .feature-grid,
  .faq-grid,
  .source-band,
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .faq-card {
    min-height: 0;
    padding: 20px;
  }

  .source-band {
    gap: 22px;
    padding: 22px;
  }

  .workflow-band {
    gap: 24px;
    padding: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tagline"
      "links"
      "credit";
    align-items: start;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .site-footer nav {
    justify-self: center;
    justify-content: center;
    margin-top: 8px;
    text-align: center;
  }

  .legal-hero {
    padding-top: 58px;
  }

  .legal-hero h1 {
    font-size: clamp(1.72rem, 8vw, 2.05rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .scroll-top-button {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .footer-credit {
    justify-self: center;
    box-sizing: border-box;
    max-width: 100%;
    padding-inline: 56px;
    text-align: center;
  }

  .footer-made {
    display: block;
    margin-top: 2px;
  }

  .legal-page .scroll-top-button {
    bottom: 74px;
  }

}
