:root {
  --color-bg: #f6f7fb;
  --color-surface: #ffffff;
  --color-surface-strong: #121a2e;
  --color-text: #101729;
  --color-text-muted: #4b556c;
  --color-primary: #0f7b74;
  --color-primary-strong: #0a5e59;
  --color-accent: #cb8f2f;
  --color-border: #d7ddea;
  --color-focus: #1a56db;
  --color-subtle: #eef2f9;
  --gradient-hero: linear-gradient(160deg, #121a2e 0%, #1c2d4a 100%);

  --font-heading: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --fs-h1: clamp(2.35rem, 1.95rem + 1.9vw, 3.8rem);
  --fs-h2: clamp(1.95rem, 1.65rem + 1vw, 2.8rem);
  --fs-h3: clamp(1.35rem, 1.22rem + 0.45vw, 1.65rem);
  --fs-h4: clamp(1.16rem, 1.08rem + 0.24vw, 1.28rem);
  --fs-h5: 1.05rem;
  --fs-h6: 0.95rem;
  --fs-body: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  --fs-small: 0.9rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --shadow-sm: 0 10px 24px rgba(11, 19, 36, 0.08);
  --shadow-md: 0 16px 36px rgba(11, 19, 36, 0.12);
  --shadow-lg: 0 30px 70px rgba(9, 16, 31, 0.18);

  --container: min(1120px, 92vw);

  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 180ms;
  --motion-base: 420ms;
  --motion-slow: 720ms;
  --motion-distance-sm: 8px;
  --motion-distance-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% -8%, #eef1f9 0, transparent 34%),
    radial-gradient(circle at 92% 8%, #edf9f6 0, transparent 28%),
    var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-focus);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: var(--space-6) 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 23, 41, 0.16), transparent);
  opacity: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.05;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
}

small {
  font-size: var(--fs-small);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, #f6f7fb 86%, transparent);
  border-bottom: 1px solid rgba(17, 22, 42, 0.08);
}

.nav-wrap {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2.2rem;
  border-radius: 0.4rem;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text);
}

.nav-links a[aria-current="page"] {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  padding: 0.78rem 1.2rem;
  box-shadow: none;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(calc(-1 * var(--motion-distance-sm) / 8));
}

.btn-sm {
  font-size: var(--fs-small);
  padding: 0.58rem 0.92rem;
}

.btn-primary {
  color: #fff;
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-strong);
}

.btn-secondary {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #aeb8cb;
}

.btn-subtle {
  color: var(--color-text-muted);
  background: transparent;
  border-color: transparent;
}

.btn-subtle:hover,
.btn-subtle:focus-visible {
  color: var(--color-text);
  background: var(--color-subtle);
  border-color: #dbe3f2;
}

.hero {
  padding-top: var(--space-7);
  position: relative;
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 20rem;
  height: 20rem;
  right: -4rem;
  top: 2rem;
  background: radial-gradient(circle, rgba(15, 123, 116, 0.18) 0%, rgba(15, 123, 116, 0) 72%);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.hero::after {
  width: 14rem;
  height: 14rem;
  left: -3rem;
  bottom: 0.5rem;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.14) 0%, rgba(26, 86, 219, 0) 72%);
  animation: drift-b 18s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

.hero-motion > * {
  opacity: 0;
  transform: translateY(var(--motion-distance-md));
  animation: hero-in var(--motion-slow) var(--motion-ease) forwards;
}

.hero-motion > *:nth-child(1) {
  animation-delay: 40ms;
}

.hero-motion > *:nth-child(2) {
  animation-delay: 120ms;
}

.hero-copy h1 {
  margin: 0 0 var(--space-2);
  max-width: 16ch;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-primary-strong);
}

.lead {
  max-width: 56ch;
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
}

.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.trust-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}

.trust-list li {
  margin-bottom: 0.35rem;
}

.hero-focus {
  position: relative;
}

.focus-card {
  background: var(--gradient-hero);
  color: #f4f7fb;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.focus-label {
  margin: 0 0 var(--space-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #b7c9e6;
}

.focus-value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 2.5rem + 2vw, 4.6rem);
  line-height: 1;
  color: #ffffff;
}

.focus-text {
  margin: var(--space-2) 0 var(--space-3);
  color: #d8e6f6;
  max-width: 40ch;
}

.focus-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}

.focus-metrics div {
  min-width: 0;
  padding: 0.82rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.09);
}

.focus-metrics dt {
  margin-bottom: 0.22rem;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.focus-metrics dd {
  margin: 0;
  font-size: var(--fs-small);
  color: #dbe9f6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.caption {
  margin: 0;
  font-size: var(--fs-small);
  color: #c0d2eb;
}

.section-heading {
  margin-bottom: var(--space-3);
  max-width: 70ch;
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: var(--fs-small);
  color: var(--color-primary-strong);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  line-height: 1.1;
  max-width: 18ch;
}

.section-intro {
  margin: 0 0 var(--space-4);
  max-width: 72ch;
  color: var(--color-text-muted);
}

.pillars,
.service-grid {
  display: grid;
  gap: var(--space-3);
}

.card,
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c5d0e5;
}

.card h3,
.service-card h3,
.process-list h3 {
  margin: 0 0 0.45rem;
}

.card p,
.service-card p,
.process-list p,
.cta-panel p,
.site-footer p {
  margin: 0;
  color: var(--color-text-muted);
}

.services {
  background: color-mix(in srgb, var(--color-surface) 65%, #ebf3ff);
  border-block: 1px solid rgba(17, 22, 42, 0.08);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  display: grid;
  gap: var(--space-3);
}

.process-list li {
  counter-increment: process;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  right: var(--space-3);
  top: var(--space-3);
  font-family: var(--font-heading);
  color: #a6b0c6;
  font-size: var(--fs-h4);
}

.cta-panel {
  background: var(--color-surface-strong);
  border-radius: var(--radius-lg);
  color: #e7ecf6;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.cta-panel .kicker,
.cta-panel h2,
.cta-panel p {
  color: inherit;
}

.cta-panel h2 {
  margin-bottom: 0.7rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.next-steps {
  margin: var(--space-2) 0 0;
  padding-left: 1.2rem;
  color: #cfddf2;
}

.next-steps li + li {
  margin-top: 0.45rem;
}

.qual-form {
  display: grid;
  gap: var(--space-2);
}

.qual-form label {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-text);
}

.qual-form input,
.qual-form select,
.qual-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--color-text);
  padding: 0.78rem 0.9rem;
  font: inherit;
}

.qual-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.qual-form input:focus-visible,
.qual-form select:focus-visible,
.qual-form textarea:focus-visible {
  border-color: var(--color-focus);
}

.form-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.footer-cta {
  margin-top: var(--space-2);
}

.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-6) 0 var(--space-3);
  background: #09101f;
  color: #dbe6ff;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
}

.footer-brand {
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-body);
  color: #f7fbff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: #cdd9f6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-meta {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(238, 244, 255, 0.15);
}

.footer-meta p {
  font-size: var(--fs-small);
  color: #b6c2de;
}

.reveal {
  opacity: 1;
  transform: none;
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(var(--motion-distance-md));
    animation-name: section-reveal;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timing-function: var(--motion-ease);
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

  .section::before {
    animation: divider-in 1ms linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 18%;
  }
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(var(--motion-distance-md));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes divider-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-16px, 14px, 0) scale(1.06);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(14px, -12px, 0) scale(1.05);
  }
}

@media (min-width: 760px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

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

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

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

  .cta-panel {
    grid-template-columns: 1.45fr auto;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }
}

@media (max-width: 759px) {
  .nav-wrap {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.75rem 0;
  }

  .nav-wrap > nav {
    order: 3;
    width: 100%;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
    margin: 0.4rem 0 0;
  }

  .site-header .btn-sm {
    margin-left: auto;
  }

  .focus-metrics {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-motion > *,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
