:root {
  --bg: #ffffff;
  --surface: #f6fbff;
  --surface-strong: #eaf6ff;
  --panel: #ffffff;
  --text: #17212b;
  --body-copy: #33414e;
  --muted: #5f6f7d;
  --line: #d9e7f2;
  --blue: #2f8fd3;
  --blue-dark: #176fa9;
  --blue-soft: #dff1ff;
  --header-bg: rgba(255, 255, 255, 0.96);
  --button-primary-text: #ffffff;
  --input-bg: #ffffff;
  --input-border: #c9dae8;
  --shadow: 0 18px 46px rgba(23, 33, 43, 0.08);
  --radius: 8px;
}

html[data-theme="dark"] {
  --bg: #0f1720;
  --surface: #121e29;
  --surface-strong: #183247;
  --panel: #172431;
  --text: #eef6fb;
  --body-copy: #d8e5ee;
  --muted: #aebfca;
  --line: #2a4152;
  --blue: #6bbff0;
  --blue-dark: #9bd8ff;
  --blue-soft: #173a53;
  --header-bg: rgba(15, 23, 32, 0.96);
  --button-primary-text: #06111a;
  --input-bg: #0f1720;
  --input-border: #3a566a;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 500;
}

h1 {
  max-width: 920px;
  font-size: 5rem;
}

h2 {
  font-size: 2.85rem;
}

h3 {
  font-size: 1.22rem;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(900px, calc(100% - 40px));
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 32px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header .brand::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  flex: 0 0 auto;
}

.site-header .brand {
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--body-copy);
  font-size: 0.95rem;
  font-weight: 400;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  text-decoration: none;
}

.site-nav .nav-cta {
  border: 1px solid var(--blue);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--body-copy);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 7px 11px;
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--text);
}

.theme-toggle-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

.hero {
  padding-top: 104px;
}

.hero.compact {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.hero-copy,
.stack,
.section-heading {
  display: grid;
  gap: 22px;
}

.lead {
  color: var(--body-copy);
  font-size: 1.35rem;
  line-height: 1.48;
}

.eyebrow {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.actions,
.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: var(--button-primary-text);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: var(--panel);
  color: var(--blue-dark);
}

.hero-panel,
.featured-resource,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
}

.hero-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow span {
  position: relative;
  display: block;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--body-copy);
  font-weight: 400;
}

.flow span::before {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.statement {
  padding-left: 18px;
  border-left: 4px solid var(--blue);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 400;
}

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

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.wide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
}

.card p,
.wide-card p,
.article-list p,
.featured-resource p {
  color: var(--muted);
}

.card-icon {
  display: inline-flex;
  width: fit-content;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 500;
}

.accent-card {
  background: var(--surface-strong);
  border-color: #b8dcf5;
}

.service-card a,
.wide-card a {
  font-weight: 500;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.comparison > div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.comparison > div:nth-child(2n + 1) {
  border-right: 1px solid var(--line);
}

.comparison > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.comparison-head {
  background: var(--surface-strong);
  color: var(--blue-dark);
  font-weight: 500;
}

.cta-section {
  padding-top: 70px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cta-box h2 {
  max-width: 760px;
  font-size: 2.25rem;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-grid p {
  max-width: 430px;
  margin-top: 14px;
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 400;
}

.footer-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

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

.check-grid p {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--body-copy);
  font-weight: 400;
}

.clean-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.timeline li {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  counter-increment: step;
  font-weight: 400;
}

.timeline li::before {
  display: block;
  margin-bottom: 18px;
  color: var(--blue-dark);
  content: counter(step, decimal-leading-zero);
  font-size: 0.82rem;
  font-weight: 500;
}

.service-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 24px;
}

.wide-card div {
  display: grid;
  gap: 10px;
}

.featured-resource {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
}

.featured-resource > div {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list article {
  display: grid;
  grid-template-columns: 56px 0.65fr 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

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

.article-list span {
  color: var(--blue-dark);
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 54px;
  align-items: start;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--body-copy);
  font-size: 0.92rem;
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 12px 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid var(--blue-soft);
}

.contact-form .full,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.clipboard-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.clipboard-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.22rem;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .site-header {
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero-grid,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .card-grid.four,
  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-box,
  .featured-resource,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .article-list article {
    grid-template-columns: 48px 1fr;
  }

  .article-list p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .lead {
    font-size: 1.12rem;
  }

  .cta-box h2 {
    font-size: 1.65rem;
  }

  .container,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .site-header {
    min-height: 70px;
  }

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.1;
  }

  .actions,
  .contact-options,
  .button {
    width: 100%;
  }

  .card-grid.three,
  .card-grid.four,
  .check-grid,
  .timeline,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .featured-resource,
  .contact-form {
    padding: 22px;
  }
}
