:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-300: #6ee7b7;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --ink: #0b1f17;
  --text: #14302a;
  --muted: #5b7268;
  --soft: #6b7c75;
  --line: #e5efe9;
  --line-2: #d6e7df;
  --bg: #ffffff;
  --bg-soft: #f6fbf8;
  --shadow-sm: 0 4px 14px rgba(6, 95, 70, 0.06);
  --shadow-md: 0 18px 40px rgba(6, 95, 70, 0.10);
  --shadow-lg: 0 30px 60px rgba(6, 95, 70, 0.12);
}

* {
  box-sizing: border-box;
}

/* Bilingual visibility — default Chinese */
body.lang-zh .en {
  display: none;
}

body.lang-en .zh {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--green-50);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  margin-right: 12px;
  font-size: 12px;
}

.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: background .15s, color .15s;
}

.lang-switch button.active {
  background: var(--green-600);
  color: #fff;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Noto Sans HK", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.brand-mark span {
  font-weight: 800;
  color: #fff;
}

.brand-name {
  font-size: 18px;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  color: var(--green-700);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
}

.nav-cta {
  background: var(--green-600);
  color: #fff !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .15s, background .15s, box-shadow .15s;
}

.nav-cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 80% -10%, var(--green-50), transparent 70%),
    radial-gradient(700px 350px at -5% 30%, #f0faf4, transparent 70%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 700;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
  font-weight: 800;
  color: var(--ink);
}

h1 .grad {
  background: linear-gradient(120deg, var(--green-600) 0%, var(--green-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s, border-color .2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: #fff;
  color: var(--green-800);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--green-500);
  color: var(--green-700);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  max-width: 540px;
}

.stat {
  border-left: 3px solid var(--green-500);
  padding-left: 16px;
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Hero visual: chat mock */
.hero-visual {
  position: relative;
  min-height: 480px;
}

.glow {
  position: absolute;
  inset: -30px;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.18), transparent 65%);
  filter: blur(40px);
}

.chat-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}

.chat-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.chat-status {
  font-size: 11px;
  color: var(--green-600);
  font-weight: 600;
}

.chat-status::before {
  content: "●";
  margin-right: 4px;
}

.chat-body {
  padding: 14px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 14px;
  line-height: 1.45;
}

.bubble.in {
  background: var(--green-50);
  color: var(--ink);
  border-top-left-radius: 4px;
}

.bubble.out {
  background: var(--green-600);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.bubble.out small {
  color: rgba(255, 255, 255, 0.75);
}

.bubble small {
  display: block;
  font-size: 10px;
  color: var(--soft);
  margin-top: 4px;
}

.float-badge {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.float-badge .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 800;
}

.fb-1 {
  top: 24px;
  left: -22px;
}

.fb-2 {
  bottom: 24px;
  right: -12px;
}

/* ---------- Logo strip ---------- */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg-soft);
}

.logos-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logos small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.logo-item {
  font-weight: 700;
  color: var(--green-800);
  font-size: 16px;
  letter-spacing: 0.3px;
  opacity: 0.7;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 14px 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.card ul li {
  margin-bottom: 6px;
}

/* OpenCLAW spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 700;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 5px 12px;
  border-radius: 999px;
}

.spotlight h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 14px 0 14px;
  line-height: 1.18;
  color: var(--ink);
}

.spotlight p {
  color: var(--muted);
  font-size: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  color: var(--text);
}

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

.feature-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

/* Process */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.step:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  right: 22px;
  font-weight: 800;
  font-size: 28px;
  color: var(--green-100);
}

.step h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.step p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.price:hover {
  transform: translateY(-2px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}

.price.featured {
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--green-50) 100%);
  position: relative;
}

.price.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price h3 {
  margin: 0;
  font-size: 16px;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price .amount {
  font-size: 38px;
  font-weight: 800;
  margin: 14px 0 0;
  color: var(--ink);
}

.price .amount small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.price .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 18px;
}

.price ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}

.price ul li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 10px;
}

.price ul li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 800;
}

/* Testimonials */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tcard {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
}

.tcard p {
  color: var(--text);
  font-size: 15px;
}

.tcard .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.tcard .who .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.tcard small {
  color: var(--muted);
  font-size: 12px;
}

.tcard .name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  background: #fff;
  transition: border-color .2s;
}

.faq details[open] {
  border-color: var(--green-300);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green-600);
  font-size: 24px;
  transition: transform .2s;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* CTA banner */
.cta-banner {
  margin: 40px auto;
  border-radius: 24px;
  padding: 50px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.cta-banner h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #fff;
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--green-700);
}

.cta-banner .btn-primary:hover {
  background: var(--green-50);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  background: var(--bg-soft);
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot h5 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 14px;
  font-weight: 700;
}

.foot a,
.foot p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.foot a:hover {
  color: var(--green-700);
}

.copy {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--soft);
}

/* Inner page banner */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 0%, var(--green-50), transparent 70%),
    #fff;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  margin: 18px 0 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
}

/* Form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form .full {
  grid-column: 1/-1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.info-box h3 {
  color: var(--ink);
}

.info-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row .ico {
  color: var(--green-700);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-50);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-row strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.info-row span {
  color: var(--muted);
  font-size: 13px;
}

.info-row a {
  color: var(--green-700);
}

.success-msg {
  display: none;
  background: var(--green-50);
  border: 1px solid var(--green-300);
  color: var(--green-800);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.success-msg.show {
  display: block;
}

/* Responsive */
@media (max-width: 980px) {

  .hero-grid,
  .spotlight,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .pricing,
  .tcards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    align-items: stretch;
    box-shadow: var(--shadow-sm);
  }

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

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

  .menu-toggle {
    display: block;
  }

  .form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 600px) {

  .grid-3,
  .grid-4,
  .pricing,
  .tcards,
  .steps,
  .foot {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 30px;
  }
}