/* 宏邦工程 AI — B2B landing (dark / light) */

:root,
html[data-theme="dark"] {
  --bg: #0d0d0e;
  --surface: #161618;
  --card: #1e1e22;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --border: #27272a;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --wa: #075e54;
  --bubble-in: rgba(7, 94, 84, 0.85);
  --bubble-out: #27272a;
  --header-bg: rgba(13, 13, 14, 0.92);
  --pending: #fbbf24;
  --pending-soft: rgba(251, 191, 36, 0.12);
  --pending-border: rgba(251, 191, 36, 0.35);
  --shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  --nav-active: #fafafa;
  --btn-fg: #0d0d0e;
  --font: "Plus Jakarta Sans", "Noto Sans TC", "PingFang HK", "PingFang TC",
    "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 16px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f4f6fa;
  --card: #ffffff;
  --text: #0b1b33;
  --muted: #5a6a82;
  --faint: #8a97ab;
  --border: #e3e8f0;
  --accent: #15803d;
  --accent-strong: #166534;
  --accent-soft: rgba(22, 163, 74, 0.12);
  --wa: #128c7e;
  --bubble-in: #dcf8c6;
  --bubble-out: #f0f2f5;
  --header-bg: rgba(255, 255, 255, 0.92);
  --pending: #b45309;
  --pending-soft: rgba(180, 83, 9, 0.1);
  --pending-border: rgba(180, 83, 9, 0.28);
  --shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.35);
  --nav-active: #0b1b33;
  --btn-fg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mono {
  font-family: var(--mono);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0d0d0e;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--border) 70%, var(--muted));
}

html[data-theme="dark"] .theme-toggle .icon-moon,
html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

@media (min-width: 781px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .header-actions {
    order: 3;
  }

  .site-nav {
    order: 2;
    justify-self: end;
    margin-right: 8px;
  }
}


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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  animation: soft-pulse 2s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #e4e4e7;
  border-radius: 2px;
}

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

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-current {
  color: var(--nav-active);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
  text-align: center;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--btn-fg);
  filter: brightness(1.05);
}

.site-nav .btn-primary {
  color: var(--btn-fg);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.hero {
  position: relative;
  border-bottom: 1px solid rgba(39, 39, 42, 0.7);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 56px 0 72px;
  align-items: start;
}

.hero-visual {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 16ch;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.badge-emerald {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

html[data-theme="dark"] .badge-emerald {
  color: #4ade80;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.demo-title {
  font-size: 14px;
  font-weight: 600;
}

.demo-sub {
  font-size: 12px;
  color: var(--faint);
}

.pill-online,
.pill-muted {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 8px;
}

.pill-online {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

html[data-theme="dark"] .pill-online {
  color: #4ade80;
}

.pill-muted {
  color: var(--faint);
}

.chat {
  display: grid;
  gap: 10px;
}

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

.bubble-in {
  margin-left: auto;
  background: var(--bubble-in);
  border-top-right-radius: 4px;
  color: var(--text);
}

html[data-theme="dark"] .bubble-in {
  color: #f4f4f5;
}

.bubble-out {
  margin-right: auto;
  background: var(--bubble-out);
  border-top-left-radius: 4px;
}

.bubble-out strong {
  color: var(--accent-strong);
}

html[data-theme="dark"] .bubble-out strong {
  color: #4ade80;
}

.meta {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.cal-list {
  display: grid;
  gap: 8px;
}

.cal-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  font-size: 13px;
}

.cal-item.dim {
  color: var(--faint);
  opacity: 0.7;
}

.cal-item.booked {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  display: grid;
  gap: 4px;
}

.cal-item.booked .mono {
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
}

.cal-note {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid rgba(39, 39, 42, 0.7);
}

.section-surface {
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

html[data-theme="dark"] .eyebrow {
  color: #4ade80;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.section-sub {
  margin-top: 12px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.scope-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.secondary-cta {
  margin-top: 14px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}

.secondary-cta a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="dark"] .secondary-cta a {
  color: #4ade80;
}

.pill-pending {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--pending);
  background: var(--pending-soft);
}

.cal-item.pending {
  border-color: var(--pending-border);
  background: var(--pending-soft);
  display: grid;
  gap: 4px;
}

.cal-item.pending .mono {
  color: var(--pending);
  font-size: 12px;
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s var(--ease);
}

.card:hover {
  border-color: #3f3f46;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 16px;
  color: var(--accent-strong);
}

html[data-theme="dark"] .card-icon {
  color: #4ade80;
}

.card-icon .icon {
  width: 18px;
  height: 18px;
}

.card h3 {
  font-size: 1.1rem;
}

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

.steps {
  display: grid;
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-top {
  margin-bottom: 16px;
}

.step-top .mono {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
}

html[data-theme="dark"] .step-top .mono {
  color: #4ade80;
}

.step h3 {
  font-size: 1.05rem;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pricing-card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.pricing-row {
  display: grid;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.price {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.checklist {
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.checklist li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2316a34a' stroke-width='2' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--faint);
  font-weight: 400;
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  padding: 48px 0 56px;
}

.footer-name {
  font-weight: 700;
}

.footer-copy,
.footer-note {
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
  max-width: 36rem;
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (min-width: 640px) {
  .hero-visual {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-row {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 80px 0 96px;
  }

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

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

@media (max-width: 780px) {
  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 8px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}


/* === Contrast overrides (do not rely on cache of older tokens) === */
html[data-theme="light"] .site-nav a {
  color: #5a6a82;
}
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a.is-current {
  color: #0b1b33 !important;
}
html[data-theme="light"] .btn-primary,
html[data-theme="light"] a.btn-primary,
html[data-theme="light"] .site-nav .btn-primary {
  background: #15803d !important;
  color: #ffffff !important;
}
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] a.btn-primary:hover {
  background: #166534 !important;
  color: #ffffff !important;
  filter: none;
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.is-current {
  color: #fafafa !important;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] a.btn-primary,
html[data-theme="dark"] .site-nav .btn-primary {
  background: #22c55e !important;
  color: #0d0d0e !important;
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] a.btn-primary:hover {
  background: #16a34a !important;
  color: #0d0d0e !important;
}
