:root {
  --bg: #f4f6f2;
  --bg-top: #f9faf7;
  --bg-bottom: #ecefe9;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --sage: #bac2b5;
  --sage-soft: rgba(186, 194, 181, 0.28);
  --sage-tint: rgba(186, 194, 181, 0.16);
  --brand: #7b7a5a;
  --brand-deep: #4e503b;
  --brand-dark: #2c2f24;
  --text: #23261d;
  --muted: #5f6454;
  --muted-strong: #414638;
  --line: rgba(78, 80, 59, 0.14);
  --line-strong: rgba(78, 80, 59, 0.24);
  --shadow: 0 22px 54px rgba(44, 47, 36, 0.08);
  --shadow-card: 0 14px 34px rgba(44, 47, 36, 0.05);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1160px;
  --body-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --heading-font: "Songti SC", "STSong", "Noto Serif SC", "Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(186, 194, 181, 0.36), transparent 34%),
    radial-gradient(circle at top right, rgba(123, 122, 90, 0.11), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 52%, var(--bg-bottom) 100%);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.site-shell::before {
  top: 140px;
  left: -150px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(186, 194, 181, 0.36), transparent 70%);
}

.site-shell::after {
  right: -180px;
  bottom: 200px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(123, 122, 90, 0.1), transparent 70%);
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(249, 250, 247, 0.86);
  border-bottom: 1px solid rgba(78, 80, 59, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

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

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
  padding: 0;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
}

.menu-toggle::before {
  transform: translateY(-5px);
}

.menu-toggle::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(-45deg);
}

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

.site-nav a {
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--brand-deep);
  background: var(--sage-soft);
}

/* Hero */
.hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.panel,
.legal-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  border-radius: 38px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(186, 194, 181, 0.42), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(123, 122, 90, 0.14);
}

.hero-title {
  margin: 22px 0 16px;
  font-family: var(--heading-font);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.hero-title span {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
}

.hero-text,
.section-lead,
.info-note,
.contact-note {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.hero-pillars {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pillars li {
  padding: 9px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  box-shadow: 0 14px 28px rgba(78, 80, 59, 0.22);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-deep);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible {
  transform: translateY(-2px);
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.panel {
  border-radius: 30px;
  padding: 28px;
}

.panel--sage {
  background: linear-gradient(160deg, rgba(186, 194, 181, 0.56), rgba(186, 194, 181, 0.26));
  border-color: rgba(123, 122, 90, 0.16);
}

.brand-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 12px;
}

.brand-showcase img {
  max-height: 64px;
  width: auto;
}

.panel h3,
.section-heading h2,
.legal-panel h1 {
  margin: 0;
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.panel h3 {
  font-size: 1.24rem;
}

.panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.panel-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.panel-list strong {
  display: block;
  font-size: 0.92rem;
  color: var(--brand-dark);
}

.panel-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.main-content {
  padding-bottom: 52px;
}

.section {
  padding: 36px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.2;
}

.section-kicker {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

.card,
.info-card,
.contact-card,
.boundary-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(78, 80, 59, 0.09);
  box-shadow: var(--shadow-card);
}

.card {
  padding: 28px;
}

.card-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.card h3,
.info-card h3,
.contact-card h3 {
  margin: 16px 0 10px;
  font-size: 1.18rem;
  color: var(--brand-dark);
}

.card p,
.info-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.card-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--sage-tint);
  border: 1px solid rgba(123, 122, 90, 0.12);
  padding: 4px 11px;
  border-radius: 999px;
}

/* Compliance boundary banner */
.boundary-card {
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(186, 194, 181, 0.22));
  border: 1px solid rgba(123, 122, 90, 0.2);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.boundary-item {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.boundary-item strong {
  display: block;
  color: var(--brand-dark);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.boundary-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

/* Profile / Company Info */
.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.info-card {
  padding: 30px;
}

.values {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.values li {
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--sage-tint);
  border: 1px solid rgba(123, 122, 90, 0.12);
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.values strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

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

.info-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.info-label {
  color: var(--muted);
  font-size: 0.93rem;
}

.info-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--brand-deep);
  font-weight: 700;
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

.contact-note {
  margin-top: 18px;
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  padding: 20px 0 42px;
}

.footer-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 28px;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.9);
}

.footer-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.footer-panel p {
  margin: 4px 0 0;
  color: rgba(244, 246, 242, 0.74);
  font-size: 0.92rem;
}

.footer-meta {
  text-align: right;
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}

.footer-links a,
.icp-link {
  color: rgba(244, 246, 242, 0.88);
  transition: color 160ms ease;
}

.footer-links a:hover,
.icp-link:hover {
  color: var(--sage);
  text-decoration: underline;
}

.footer-meta span {
  display: block;
  color: rgba(244, 246, 242, 0.68);
}

/* Legal pages */
.legal-main {
  padding: 46px 0 64px;
}

.legal-panel {
  border-radius: 36px;
  padding: 40px 44px;
}

.legal-panel h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.legal-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-meta {
  margin-top: 18px;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.86rem;
}

.legal-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(186, 194, 181, 0.24), rgba(186, 194, 181, 0.1));
  border: 1px solid rgba(123, 122, 90, 0.18);
}

.legal-box-title {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
  font-size: 1rem;
}

.legal-doc {
  margin-top: 24px;
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--muted-strong);
}

.legal-doc h2 {
  margin: 34px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.legal-doc p {
  margin: 0 0 14px;
}

.legal-doc ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc .em {
  font-weight: 700;
  color: var(--brand-dark);
}

.legal-doc .sub-block {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(244, 246, 242, 0.85);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.legal-date-box {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.legal-signoff {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal animation */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .services-grid,
  .boundary-grid,
  .info-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 50px rgba(44, 47, 36, 0.14);
  }

  .site-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
}

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

  .header-inner {
    min-height: 74px;
  }

  .brand-logo {
    height: 32px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-card,
  .panel,
  .legal-panel,
  .card,
  .info-card,
  .contact-card,
  .boundary-card,
  .footer-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-card {
    border-radius: 28px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section {
    padding: 26px 0;
  }

  .legal-main {
    padding: 28px 0 48px;
  }

  .legal-panel {
    border-radius: 26px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
