:root {
  --bg: #eaf2ff;
  --paper: #f5f9ff;
  --ink: #122341;
  --muted: #4f627f;
  --line: #c7d8f2;
  --brand: #0d2f68;
  --brand-2: #6da7ff;
  --accent: #2b5bb1;
  --shadow: 0 20px 50px rgba(13, 47, 104, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(109, 167, 255, 0.22), transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(43, 91, 177, 0.16), transparent 35%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Noto Serif SC', serif;
  line-height: 1.25;
  margin: 0;
}

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

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(240, 247, 255, 0.88);
  border-bottom: 1px solid rgba(182, 204, 236, 0.72);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #234d70);
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand);
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 58, 91, 0.22);
  color: var(--brand) !important;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px 12px;
  border: 1px solid #bfd4f3;
  border-radius: 999px;
  color: var(--brand) !important;
  background: #edf4ff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-link-quick {
  line-height: 1;
}

.nav-toggle {
  display: none;
}

.hero {
  padding: 88px 0 70px;
  position: relative;
}

.hero-aurora {
  position: absolute;
  inset: 10% 0 auto;
  margin: auto;
  width: min(1120px, 92vw);
  height: 320px;
  background: linear-gradient(105deg, rgba(18, 58, 91, 0.1), rgba(109, 167, 255, 0.25));
  border-radius: 30px;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 16px;
}

.hero-title-legal {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem) !important;
  max-width: 18ch;
}

.hero-title-cn {
  white-space: nowrap;
  max-width: none;
}

.mobile-break {
  display: none;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #234f74);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost {
  border: 1px solid rgba(18, 58, 91, 0.24);
  color: var(--brand);
  background: rgba(255, 255, 255, 0.7);
}

.block {
  width: 100%;
}

.stat-row {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-row li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.stat-row strong {
  display: block;
  font-size: 1.1rem;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.quick-list {
  margin: 18px 0 20px;
  display: grid;
  gap: 10px;
}

.quick-list span {
  display: block;
  background: #edf4ff;
  border: 1px solid #cddcf2;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  color: #3d5580;
}

.section {
  padding: 78px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.section-cta {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services {
  background: rgba(255, 255, 255, 0.65);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

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

.timeline li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.timeline span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #295172);
  color: #fff;
  font-weight: 800;
}

.timeline h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.quote {
  background: linear-gradient(145deg, #0d2f68, #1f4f9d);
  border-radius: 20px;
  padding: 30px;
  color: #e9f8f7;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  overflow: hidden;
}

.quote p {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  font-family: 'Noto Serif SC', serif;
}

.attorney-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: initial;
  justify-self: start;
  align-self: start;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 4px;
  color: var(--muted);
}

.contact {
  padding-top: 50px;
}

.contact-grid {
  background: #edf4ff;
  border: 1px solid #c5d8f5;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card {
  background: #fff;
  border: 1px solid #cfdff5;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.contact-card a {
  color: var(--brand);
  font-weight: 800;
}

.note {
  font-size: 0.84rem;
  color: #51617b;
}

.site-footer {
  padding: 28px 0 36px;
  color: #4e5f7d;
  font-size: 0.9rem;
}

.subhero {
  padding-bottom: 24px;
}

.subhero h1 {
  font-size: clamp(2rem, 4.7vw, 3.1rem);
  max-width: 16ch;
  margin-bottom: 14px;
}

.subhero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

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

.path-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.path-card h2 {
  font-size: 1.24rem;
  margin-bottom: 8px;
}

.path-card p {
  margin: 0;
  color: var(--muted);
}

.muted-list {
  margin: 12px 0;
  padding-left: 18px;
  color: #3d5477;
}

.muted-list li {
  margin-bottom: 6px;
}

.path-note {
  margin-top: 10px !important;
  background: #e9f2ff;
  border: 1px solid #c6d8f5;
  border-radius: 10px;
  padding: 9px 10px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  border: 1px solid #c8d9f3;
  background: #f1f7ff;
  border-radius: 999px;
  padding: 7px 12px;
  color: #35507b;
  font-weight: 700;
  font-size: 0.9rem;
}

.long-content {
  padding-top: 20px;
}

.visa-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
  scroll-margin-top: 90px;
}

.visa-block h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 8px;
}

.visa-block h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.visa-block p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 940px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .toc {
    gap: 6px;
  }

  .toc a {
    font-size: 0.84rem;
    padding: 6px 10px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    width: min(340px, 92vw);
    background: #f2f7ff;
    border: 1px solid #c9dbf4;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    display: none;
  }

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

  .site-nav a {
    background: #fff;
    border: 1px solid #d2e0f5;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #b6cdef;
    background: #fff;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    place-content: center;
    cursor: pointer;
    padding: 0;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #173f62;
  }

  .lang-link-quick {
    min-width: 44px;
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 62px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .contact-grid {
    padding: 20px;
  }

  .hero-title-cn {
    white-space: normal;
  }

  .mobile-break {
    display: block;
  }
}
