:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #18212f;
  --muted: #647084;
  --line: #d9e1ec;
  --accent: #002fa7;
  --accent-dark: #002575;
  --accent-soft: #dbe8ff;
  --shadow: 0 24px 70px rgba(34, 51, 82, 0.13);
  --radius: 8px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101722;
    --surface: #172131;
    --surface-soft: #202c3c;
    --text: #edf3fb;
    --muted: #aeb9c8;
    --line: #2d3c50;
    --accent: #7ea7ff;
    --accent-dark: #a9c5ff;
    --accent-soft: #1d3154;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 47, 167, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--surface-soft));
  color: var(--text);
  min-width: 320px;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(247, 247, 248, 0.88);
  border-bottom: 1px solid rgba(217, 225, 236, 0.7);
  backdrop-filter: blur(18px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(16, 23, 34, 0.86);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 34px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

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

.nav-links a:focus-visible,
.button:focus-visible,
.company-info a:focus-visible,
.site-footer a:focus-visible,
.proof-band a:focus-visible,
.filing-grid a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1.24fr);
  gap: 40px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  padding: 40px 0 48px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

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

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media picture {
  display: block;
}

.service-card.image-card picture {
  display: block;
  height: 100%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  pointer-events: none;
}

.proof-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .proof-band {
    background: rgba(23, 33, 49, 0.68);
  }
}

.proof-band div {
  min-height: 104px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band span,
.company-info dt {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.proof-band strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.32;
}

.proof-band a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.proof-band div:first-child strong {
  font-size: clamp(18px, 1.7vw, 22px);
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.section-heading.compact {
  max-width: 650px;
}

.section-heading h2,
.boundary-panel h2,
.contact-card h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.boundary-panel p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card.large {
  grid-row: span 2;
  min-height: 518px;
  background:
    linear-gradient(140deg, rgba(0, 47, 167, 0.1), transparent 46%),
    var(--surface);
}

.service-card.accent {
  background: var(--accent-soft);
}

.service-card.image-card {
  padding: 0;
  overflow: hidden;
}

.service-card.image-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.service-card h3 {
  margin: 24px 0 12px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.16;
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.process-list li {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list strong {
  font-size: 22px;
  line-height: 1.24;
}

.process-list span {
  color: var(--muted);
  line-height: 1.75;
}

.boundary-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
  padding: 44px;
  border-radius: var(--radius);
  background: #18212f;
  color: #ffffff;
}

.filing-card {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filing-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
}

.filing-copy p,
.filing-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.filing-grid div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 45%, transparent), transparent);
}

.filing-grid div:last-child {
  border-right: 0;
}

.filing-grid span {
  color: var(--muted);
  font-size: 13px;
}

.filing-grid strong {
  font-size: 24px;
  line-height: 1.2;
}

.filing-grid a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.boundary-panel p,
.boundary-list {
  color: #d6deea;
}

.boundary-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 17px;
  line-height: 1.55;
}

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

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.company-info {
  display: grid;
  gap: 20px;
  margin: 0;
}

.company-info div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.company-info div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.company-info dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.company-info a,
.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-media,
  .proof-band,
  .section {
    animation: rise-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-media {
    animation-delay: 110ms;
  }

  .proof-band {
    animation-delay: 180ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .brand-text {
    display: none;
  }

  .hero,
  .proof-band,
  .service-grid,
  .process-list,
  .boundary-panel,
  .contact-card,
  .filing-card,
  .filing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .proof-band div,
  .process-list li,
  .filing-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-band div:last-child,
  .process-list li:last-child,
  .filing-grid div:last-child {
    border-bottom: 0;
  }

  .service-card.large {
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .brand-mark {
    width: 46px;
  }

  .hero,
  .proof-band,
  .section,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 72px;
  }

  .service-card,
  .boundary-panel,
  .contact-card,
  .filing-card {
    padding: 24px;
  }

  .boundary-panel {
    gap: 28px;
  }
}
