:root {
  color-scheme: light;
  --ink: #10202f;
  --muted: #5d6a76;
  --line: #d9e1e8;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --teal: #0c766f;
  --teal-dark: #0a4c49;
  --amber: #c6811a;
  --blue: #1f4e79;
  --green: #2d6f52;
  --shadow: 0 18px 50px rgba(16, 32, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.lang-en [data-lang="zh"],
body.lang-zh [data-lang="en"] {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 232, 0.85);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.9rem;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--soft);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.lang-button {
  min-width: 42px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
}

.lang-button.is-active {
  color: white;
  background: var(--teal);
}

.hero {
  position: relative;
  min-height: min(620px, calc(100vh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.46fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 72px);
  color: white;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 20, 32, 0.88), rgba(7, 31, 45, 0.7), rgba(7, 31, 45, 0.22)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20%;
  background: linear-gradient(0deg, rgba(7, 20, 32, 0.45), transparent);
  pointer-events: none;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee3d8;
}

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

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4.25vw, 3.85rem);
}

h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.03rem, 1.8vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--teal);
}

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

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.button.full {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 18, 28, 0.62);
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel strong {
  color: #99efe3;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-band {
  background: #ecf5f4;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.lead,
.section-note {
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  margin: 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.section-note {
  max-width: 780px;
  margin: 0;
}

.service-grid,
.pricing-grid,
.process-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

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

.service-card,
.case-card,
.price-card,
.process-item,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

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

.service-link {
  width: fit-content;
  margin-top: 2px;
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e1f3f0;
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-section {
  background: #10202f;
  color: white;
}

.feature-section .lead,
.feature-section .check-list,
.feature-section small {
  color: rgba(255, 255, 255, 0.76);
}

.feature-section .eyebrow {
  color: #93e2d8;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
}

.workflow-panel {
  display: grid;
  gap: 14px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.workflow-step > span:first-child {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #11222d;
  background: #9de7dd;
  font-weight: 900;
}

.case-callout {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(157, 231, 221, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.case-callout h3 a,
.case-card h3 a {
  color: inherit;
  text-decoration: none;
}

.case-callout h3 a:hover,
.case-card h3 a:hover {
  text-decoration: underline;
}

.case-callout p {
  margin: 0;
}

.case-callout p:not(.case-label) {
  color: rgba(255, 255, 255, 0.76);
}

.selected-work {
  background: #f7fbfb;
}

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

.case-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.case-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.price-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(12, 118, 111, 0.45);
  box-shadow: var(--shadow);
}

.price-card.limited {
  border-color: rgba(198, 129, 26, 0.45);
  box-shadow: 0 18px 50px rgba(198, 129, 26, 0.13);
}

.price-card.traffic {
  border-color: rgba(31, 78, 121, 0.34);
}

.plan-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.price-sub {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

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

.process-item {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.process-item > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.contact-section {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
  color: white;
  background: linear-gradient(135deg, #0b2d2a, #16334d);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.45fr);
  gap: clamp(24px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.contact-section .eyebrow {
  color: #a4eadf;
}

.contact-section p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  color: var(--ink);
}

.contact-card a:not(.button) {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-card > span {
  color: var(--muted);
}

.contact-card .button span {
  color: inherit;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #d8e3ea;
  background: #0a1620;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .feature-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand strong {
    max-width: 190px;
    white-space: normal;
  }

  .language-switch {
    justify-self: end;
  }

  .hero {
    padding: 66px 18px 46px;
    background-position: 58% center;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.9rem;
  }

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

  .service-grid,
  .pricing-grid,
  .process-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .case-card,
  .price-card,
  .process-item {
    padding: 20px;
  }
}
