:root {
  --ink: #0b1f1a;
  --deep: #123c3a;
  --teal: #1f6f78;
  --gold: #d8a84e;
  --paper: #f7f8f5;
  --quiet: #edf3ef;
  --graphite: #1e2422;
  --muted: #51615b;
  --border: #d9e2dc;
  --border-strong: #a8bab2;
  --white: #ffffff;
  --anchor-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family:
    Arial,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

html.qr-dialog-open {
  overflow: hidden;
}

body.qr-dialog-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 245, 0.93);
  backdrop-filter: blur(16px);
}

.header-inner,
.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  color: var(--deep);
  font-size: 14px;
}

.nav a {
  flex: 0 0 auto;
}

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

.button,
.button-secondary,
.language-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button-secondary,
.language-link {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.64);
  color: var(--deep);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 78svh;
  background: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("../images/cedarspark-hero.png") center / cover no-repeat;
}

.company-hero::before {
  background-image: url("../images/company-hero.png");
  background-position: center;
}

.geo-hero::before {
  background-image: url("../images/cedarspark-hero.png");
  background-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(247, 248, 245, 0.96) 0%,
    rgba(247, 248, 245, 0.9) 38%,
    rgba(247, 248, 245, 0.45) 68%,
    rgba(247, 248, 245, 0.12) 100%
  );
}

.hero-inner {
  display: flex;
  min-height: 78svh;
  align-items: center;
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  border: 1px solid #ead7a5;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  padding: 9px 12px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.06;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.fit-note {
  max-width: 690px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
}

.proof-card,
.card,
.check-card,
.step-card,
.faq-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.proof-card {
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.proof-value {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.proof-label,
.card p,
.check-card li,
.step-card p,
.faq-answer,
.legal-list li,
.section-body,
.about-body,
.contact-body,
.contact-note,
.footer {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.band {
  padding: 76px 0;
}

.anchor-section {
  scroll-margin-top: var(--anchor-offset);
}

.band-white {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.band-quiet {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--quiet);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.14;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

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

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

.card-grid-single {
  display: grid;
  gap: 14px;
}

.card,
.check-card,
.step-card {
  padding: 22px;
}

.capability-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.status-pill {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid #ead7a5;
  border-radius: 999px;
  background: #fff8e7;
  padding: 6px 10px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.service-feature .split {
  align-items: end;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.service-feature .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.service-feature .button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--white);
}

.principles-grid .card {
  background: var(--paper);
}

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

.check-card ul,
.deliverable-list,
.boundary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-card li {
  position: relative;
  padding-left: 20px;
}

.check-card li + li {
  margin-top: 12px;
}

.check-card li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.check-card-caution li::before {
  background: var(--gold);
}

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

.step-number {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.dark-band {
  background: var(--ink);
  color: var(--white);
}

.dark-band h2,
.dark-band h3 {
  color: var(--white);
}

.dark-band .section-kicker {
  color: var(--gold);
}

.dark-band .section-body {
  color: rgba(255, 255, 255, 0.78);
}

.deliverable-list,
.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deliverable-list li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.boundary-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-wrap {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
}

.faq-list {
  overflow: hidden;
}

.faq-item {
  padding: 22px;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-question {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
}

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

.floating-customer-service-entry {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(237, 243, 239, 0.72);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(11, 31, 26, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.floating-customer-service-entry img {
  display: block;
  width: 64px;
  height: 64px;
}

.floating-customer-service-entry span {
  position: absolute;
  right: 78px;
  max-width: min(220px, calc(100vw - 118px));
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--ink);
  padding: 8px 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.floating-customer-service-entry:hover,
.floating-customer-service-entry:focus-visible {
  box-shadow: 0 20px 52px rgba(11, 31, 26, 0.28);
  transform: translateY(-2px);
}

.floating-customer-service-entry:hover span,
.floating-customer-service-entry:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

.floating-customer-service-entry:focus-visible {
  outline: 3px solid rgba(216, 168, 78, 0.55);
  outline-offset: 4px;
}

.customer-service-hero {
  background: var(--quiet);
}

.customer-service-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 68px);
}

.customer-service-split {
  align-items: start;
}

.customer-service-notice {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.customer-service-notice h2 {
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.22;
}

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

.notice-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.notice-list li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.chat-module-band {
  padding-top: 58px;
}

.chat-module-heading {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 22px;
}

.chat-module-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.chat-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.chat-frame {
  display: block;
  width: 100%;
  height: min(780px, calc(100svh - 130px));
  min-height: 620px;
  border: 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 44px;
}

.contact-band {
  background: var(--teal);
  color: var(--white);
}

.contact-band h2 {
  color: var(--white);
}

.contact-band .section-kicker {
  color: var(--gold);
}

.contact-body,
.contact-note {
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 40px;
  align-items: center;
}

.contact-copy {
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  gap: 12px;
  justify-content: flex-start;
}

.contact-band .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.contact-band .button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--white);
}

.contact-qr-card {
  width: 112px;
  margin: 0;
  justify-self: end;
  align-self: center;
}

.contact-qr-trigger {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--white);
  padding: 3px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.contact-qr-trigger:hover,
.contact-qr-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(11, 31, 26, 0.22);
  transform: translateY(-1px);
}

.contact-qr-trigger:focus-visible {
  outline: 3px solid rgba(216, 168, 78, 0.64);
  outline-offset: 4px;
}

.contact-qr-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-qr-card figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.contact-qr-dialog {
  position: relative;
  width: min(92vw, 400px);
  max-height: min(86vh, 620px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(11, 31, 26, 0.36);
}

.contact-qr-dialog[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.contact-qr-dialog::backdrop {
  background: rgba(11, 31, 26, 0.58);
}

.contact-qr-dialog-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-height: min(86vh, 620px);
  overflow-y: auto;
  padding: 28px;
  text-align: center;
}

.contact-qr-dialog h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.contact-qr-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-qr-dialog-image {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.contact-qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.contact-qr-close:hover,
.contact-qr-close:focus-visible {
  border-color: var(--border-strong);
  outline: 3px solid rgba(216, 168, 78, 0.34);
  outline-offset: 2px;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

.footer .filing-link {
  color: inherit;
  text-decoration: none;
}

.footer .filing-link:hover,
.footer .filing-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  :root {
    --anchor-offset: 142px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .nav {
    order: 3;
    width: 100%;
    padding-bottom: 2px;
  }

  .header-actions .button {
    display: none;
  }

  .hero::after {
    background: rgba(247, 248, 245, 0.9);
  }

  .hero::before {
    background-position: 62% center;
  }

  .proof-grid,
  .card-grid,
  .check-grid,
  .steps,
  .deliverable-list,
  .boundary-list,
  .split,
  .chat-module-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .chat-frame {
    height: calc(100svh - 96px);
    min-height: 560px;
  }

  .floating-customer-service-entry {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 64px;
    height: 64px;
  }

  .floating-customer-service-entry img {
    width: 56px;
    height: 56px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .contact-qr-card {
    width: 112px;
    justify-self: start;
  }

  .feature-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  :root {
    --anchor-offset: 152px;
  }

  .header-inner,
  .container,
  .faq-wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand span:last-child {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .band {
    padding: 58px 0;
  }

  .floating-customer-service-entry span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-customer-service-entry,
  .floating-customer-service-entry span {
    transition: none;
  }
}
