:root {
  --background: #f8f9fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --ink: #0d1321;
  --muted: #5d6675;
  --quiet: #66707d;
  --line: #dfe3e9;
  --line-strong: #cfd5de;
  --accent: #2854d7;
  --accent-dark: #1d3fab;
  --accent-soft: #e9eeff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 28px 70px rgba(23, 31, 49, 0.08);
  --content-width: 1160px;
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #7b94ed 48%, transparent 84%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 16px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(207, 213, 222, 0.76);
  background: rgba(248, 249, 251, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark > span {
  width: 13px;
  height: 13px;
  border: 4px solid var(--accent);
  border-radius: 3px;
  transform: rotate(45deg);
}

.desktop-nav,
.legal-nav {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 30px;
  padding: 0;
  list-style: none;
}

.desktop-nav a,
.legal-nav a,
.nav-home {
  color: #343c4a;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.legal-nav a:hover,
.nav-home:hover,
.legal-nav a[aria-current="page"] {
  color: var(--accent);
}

.desktop-nav .nav-contact {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 17px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.desktop-nav .nav-contact:hover {
  border-color: #b8c5ee;
  background: var(--accent-soft);
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] summary {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-nav ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  list-style: none;
}

.mobile-nav a {
  display: block;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: var(--surface-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%, rgba(68, 105, 220, 0.13), transparent 31rem),
    linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
}

.hero::before {
  position: absolute;
  top: -20%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(40, 84, 215, 0.09);
  border-radius: 50%;
  content: "";
}

.hero-shell {
  position: relative;
  display: flex;
  min-height: 580px;
  align-items: center;
  padding-block: 92px;
}

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

.eyebrow,
.section-label {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7.5vw, 6.65rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 19px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(40, 84, 215, 0.2);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 28px rgba(40, 84, 215, 0.24);
  color: #ffffff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
  color: #2f3744;
}

.button-secondary:hover {
  border-color: #b8c2d2;
  background: #ffffff;
  color: var(--ink);
}

.section {
  padding-block: clamp(84px, 10vw, 136px);
}

.section-heading {
  margin-bottom: 52px;
}

.section-heading h2,
.contact-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-note {
  max-width: 440px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-section {
  background: var(--surface);
}

.about-copy {
  display: grid;
  border-top: 1px solid var(--line-strong);
  grid-template-columns: repeat(2, 1fr);
}

.about-copy p {
  margin: 0;
  padding: 36px 42px 0 0;
  color: #303846;
  font-size: clamp(1.25rem, 2.15vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.about-copy p + p {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 42px;
}

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

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

.service-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c6d1f2;
  box-shadow: 0 20px 45px rgba(34, 50, 92, 0.08);
}

.card-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 96px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  place-items: center;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.22rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.contact-section {
  background: var(--surface);
}

.contact-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 360px;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  border: 1px solid #ccd6f1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 126, 231, 0.16), transparent 23rem),
    #f0f4ff;
  padding: clamp(34px, 6vw, 72px);
}

.contact-card::after {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(40, 84, 215, 0.18);
  border-radius: 50%;
  content: "";
}

.contact-card h2 {
  margin-bottom: 24px;
}

.contact-card p:not(.section-label) {
  margin-bottom: 7px;
  color: var(--muted);
}

.contact-address {
  color: var(--accent);
  font-weight: 650;
}

.button-email {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f2f4f7;
  color: #555e6c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 0.7fr;
  gap: 38px;
  padding-block: 58px 50px;
}

.footer-grid p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.footer-brand .wordmark {
  margin-bottom: 20px;
}

.footer-brand p {
  line-height: 1.7;
}

.footer-label {
  margin-bottom: 13px !important;
  color: var(--quiet);
  font-size: 0.75rem !important;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-grid a:not(.wordmark),
.footer-links {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
}

.footer-bottom p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.76rem;
}

.legal-main {
  background:
    radial-gradient(circle at 82% 6%, rgba(68, 105, 220, 0.1), transparent 27rem),
    var(--surface);
}

.legal-article {
  max-width: 880px;
  padding-block: 94px 124px;
}

.legal-header {
  margin-bottom: 70px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 42px;
}

.legal-header h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7vw, 5.5rem);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.last-updated {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 0.86rem;
}

.legal-content {
  max-width: 750px;
}

.legal-content section + section {
  margin-top: 48px;
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.legal-content p {
  margin-bottom: 14px;
  color: #4f5867;
  font-size: 1rem;
  line-height: 1.78;
}

.legal-content a {
  color: var(--accent);
}

.legal-footer {
  background: var(--surface-soft);
}

.error-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 30%, rgba(68, 105, 220, 0.13), transparent 30rem),
    var(--background);
}

.error-main {
  display: flex;
  min-height: calc(100vh - 73px);
  max-width: 760px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-block: 80px;
}

.error-main h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.error-main > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 920px) {
  .hero-shell {
    min-height: 550px;
  }

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

  .service-card {
    display: grid;
    min-height: 0;
    align-items: start;
    grid-template-columns: 54px 0.8fr 1.2fr;
    gap: 20px;
  }

  .card-number,
  .service-card h3,
  .service-card p {
    margin: 0;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .legal-nav {
    gap: 15px;
  }

  .legal-nav a {
    font-size: 0.8rem;
  }

  .hero-shell {
    min-height: auto;
    padding-block: 76px;
  }

  .hero h1 {
    margin-bottom: 24px;
  }

  .section-heading-row {
    display: block;
  }

  .section-note {
    margin-top: 24px;
  }

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

  .about-copy p {
    padding: 30px 0 0;
  }

  .about-copy p + p {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 30px 0 0;
  }

  .service-card {
    display: block;
    padding: 24px;
  }

  .service-card .card-number {
    margin-bottom: 68px;
  }

  .service-card h3 {
    margin-bottom: 12px;
  }

  .contact-card {
    display: block;
    min-height: 0;
  }

  .button-email {
    margin-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    padding-bottom: 5px;
  }

  .footer-links {
    flex-direction: row;
    gap: 18px;
  }

  .legal-article {
    padding-block: 70px 90px;
  }

  .legal-header {
    margin-bottom: 54px;
  }
}

@media (max-width: 460px) {
  .nav-shell {
    min-height: 66px;
  }

  .legal-nav li:first-child {
    display: none;
  }

  .hero-actions,
  .hero-actions .button,
  .button-email {
    width: 100%;
  }

  .contact-address {
    overflow-wrap: anywhere;
  }

  .contact-card::after {
    display: none;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body,
  .legal-main {
    background: #ffffff;
  }

  .legal-article {
    max-width: none;
    padding: 0;
  }
}
