:root {
  --ink: #17201f;
  --muted: #64706d;
  --line: #dbe3df;
  --paper: #ffffff;
  --soft: #f4f7f4;
  --teal: #128477;
  --teal-dark: #0b5f56;
  --amber: #e99a2c;
  --coral: #e66b55;
  --charcoal: #1f2a2d;
  --shadow: 0 20px 60px rgba(21, 39, 37, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

a:hover {
  color: var(--teal-dark);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.site-header.solid {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 7px solid var(--teal);
  border-right-color: var(--amber);
  border-bottom-color: var(--coral);
  border-radius: 8px;
  background: #ffffff;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  color: #465351;
  font-size: 14px;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 99px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  margin-top: -72px;
  padding: clamp(128px, 18vh, 180px) 0 clamp(58px, 10vh, 96px);
  background: #15201f;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 21, 20, 0.94) 0%, rgba(13, 21, 20, 0.76) 42%, rgba(13, 21, 20, 0.25) 100%),
    linear-gradient(0deg, rgba(13, 21, 20, 0.3), rgba(13, 21, 20, 0.04));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button-dark {
  background: var(--charcoal);
  color: #ffffff;
}

.button-dark:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  margin: clamp(42px, 7vh, 76px) 0 0;
}

.hero-facts div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-facts dt {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.hero-facts dd {
  margin: 0;
  color: #ffffff;
  font-weight: 750;
}

.section {
  padding: clamp(66px, 9vw, 108px) 0;
}

.intro-band {
  background: #f8fbf8;
}

.muted-section {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

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

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.lead-block {
  padding-top: 8px;
}

.lead-block p,
.cta-inner p,
.contact-hero p {
  font-size: 18px;
}

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

.feature-card,
.scene-list article,
.contact-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(26, 47, 44, 0.06);
}

.feature-card {
  min-height: 278px;
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #e7f4f1;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
}

.feature-card:nth-child(2) .feature-icon {
  background: #fff2df;
  color: #9a5a08;
}

.feature-card:nth-child(3) .feature-icon {
  background: #ffece8;
  color: #a83d2b;
}

.feature-card:nth-child(4) .feature-icon {
  background: #eef0ea;
  color: #56604d;
}

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

.scene-list article,
.contact-grid article {
  padding: 26px;
}

.workflow {
  position: relative;
}

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

.steps li {
  min-height: 260px;
  padding: 28px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

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

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #ffffff;
  font-weight: 850;
}

.compliance-section {
  background: #fbfaf6;
}

.compliance-panel {
  padding: 28px;
  border: 1px solid #eadfc9;
  border-radius: 8px;
  background: #ffffff;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #495552;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.cta-section {
  background: var(--teal);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
}

.cta-inner h2,
.cta-inner p,
.cta-inner .section-kicker {
  color: #ffffff;
}

.cta-inner p {
  max-width: 720px;
  margin-top: 16px;
  opacity: 0.9;
}

.site-footer {
  padding: 46px 0 24px;
  background: #111817;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 15px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

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

.legal-hero,
.contact-hero {
  padding: clamp(70px, 10vw, 120px) 0 clamp(46px, 7vw, 76px);
  background: #f7faf7;
}

.legal-hero h1,
.contact-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-hero p:last-child,
.contact-hero p {
  margin-top: 16px;
}

.legal-content {
  max-width: 880px;
  padding: 46px 40px 72px;
  margin-bottom: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 25px;
}

.legal-content ul {
  padding-left: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 700;
}

.contact-hero {
  background: #fbfaf6;
}

.contact-card {
  padding: 28px;
}

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

.contact-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-card dt {
  color: var(--muted);
  font-size: 13px;
}

.contact-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 750;
}

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

@media (max-width: 940px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav {
    position: sticky;
    top: 72px;
    z-index: 19;
    display: none;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

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

  .mobile-nav a {
    min-height: 42px;
    padding: 8px 4px;
    color: #465351;
    font-weight: 700;
  }

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

  .steps li:nth-child(2) {
    border-right: 0;
  }

  .steps li:nth-child(1),
  .steps li:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .scene-list,
  .contact-grid,
  .footer-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-inner,
  .footer-bottom {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .mobile-nav {
    top: 66px;
  }

  .hero {
    min-height: 76svh;
    margin-top: -66px;
    padding-top: 96px;
    padding-bottom: 46px;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(13, 21, 20, 0.96) 0%, rgba(13, 21, 20, 0.76) 100%),
      linear-gradient(0deg, rgba(13, 21, 20, 0.28), rgba(13, 21, 20, 0.08));
  }

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

  .hero-facts,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    display: none;
  }

  .hero-facts div {
    min-height: auto;
  }

  .feature-card,
  .steps li {
    min-height: auto;
  }

  .steps li,
  .steps li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .legal-content {
    width: calc(100% - 28px);
    padding: 30px 20px 46px;
  }
}
