/* Agent Pulse — landing page styles */

:root {
  --accent: #2aabee;
  --accent-dark: #1c92d2;
  --ink: #0f2233;
  --ink-soft: #51646f;
  --bg: #ffffff;
  --bg-soft: #f0f6fb;
  --line: #dde8f0;
  --frame: #101418;
  --chat-bg: #dfe6ee;
  --bubble-out: #efffde;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  vertical-align: middle;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Language visibility — JS flips data-lang on <html> */
html[data-lang="en"] [data-lang="zh"] {
  display: none !important;
}
html[data-lang="zh"] [data-lang="en"] {
  display: none !important;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 14px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 5px 12px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--ink);
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(42, 171, 238, 0.7);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.small {
  padding: 8px 18px;
  font-size: 14px;
}

.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(42, 171, 238, 0.08);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(42, 171, 238, 0.16), transparent 60%),
    radial-gradient(700px 380px at 5% 0%, rgba(42, 171, 238, 0.1), transparent 55%),
    var(--bg);
  padding: 84px 0 72px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(42, 171, 238, 0.12);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 17em;
  margin: 0 auto 18px;
}

.hero .sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 44em;
  margin: 0 auto 32px;
}

.hero .cta-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 40em;
  margin: 0 auto;
}

.alt-bg {
  background: var(--bg-soft);
}

/* ---------- Phone mockups ---------- */

.phones {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.phone-item {
  width: 292px;
  text-align: center;
}

.phone {
  width: 292px;
  background: var(--chat-bg);
  border: 9px solid var(--frame);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 26px 50px -24px rgba(15, 34, 51, 0.5);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.phone-status {
  background: var(--frame);
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 3px 0 5px;
  letter-spacing: 0.04em;
}

.chat-header {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.chat-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.chat-sub {
  font-size: 10.5px;
  color: #8a99a8;
  line-height: 1.25;
}

.chat-body {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  min-height: 330px;
}

.msg {
  max-width: 92%;
  align-self: flex-start;
  background: #fff;
  border-radius: 13px 13px 13px 5px;
  padding: 7px 9px 5px;
  margin: 4px 2px;
  font-size: 11.8px;
  line-height: 1.5;
  color: #18242e;
  box-shadow: 0 1px 1.5px rgba(15, 34, 51, 0.14);
  overflow-wrap: break-word;
}

.msg.out {
  align-self: flex-end;
  background: var(--bubble-out);
  border-radius: 13px 13px 5px 13px;
}

.msg b {
  font-weight: 700;
}

.msg .grp {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
}

.msg-time {
  float: right;
  font-size: 9.5px;
  color: #9aa8b5;
  margin: 6px 0 0 10px;
}

.chat-input {
  background: #fff;
  color: #9aa8b5;
  font-size: 11.5px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
}

.phone-caption {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
}

.phone-caption span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.sample-note {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- How it works ---------- */

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

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

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Features ---------- */

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

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--bg);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  box-shadow: 0 14px 30px -18px rgba(15, 34, 51, 0.35);
  transform: translateY(-2px);
}

.feature .icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 26px;
  justify-content: center;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 30px;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan.highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 24px 44px -26px rgba(42, 171, 238, 0.65);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.plan-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 2px;
}

.plan-price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.plan-tagline {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  margin-bottom: 26px;
}

.plan li {
  font-size: 14.5px;
  padding: 5px 0 5px 26px;
  position: relative;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.plan .btn {
  margin-top: auto;
  text-align: center;
}

.pricing-note {
  text-align: center;
  margin-top: 34px;
  font-size: 15px;
  color: var(--ink-soft);
}

.pricing-note b {
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  padding-right: 44px;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-dark);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list .answer {
  padding: 0 20px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 24px;
  color: #fff;
  text-align: center;
  padding: 56px 32px;
  margin-bottom: 72px;
}

.final-cta h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.final-cta p {
  max-width: 36em;
  margin: 0 auto 28px;
  font-size: 16px;
  opacity: 0.94;
}

.final-cta .btn {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

.final-cta .btn:hover {
  background: #f0f7fc;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Privacy page ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.legal h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal .updated {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 4px;
}

/* ---------- Responsive ---------- */

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

  .steps,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: minmax(0, 380px);
  }
}

@media (max-width: 480px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 60px 0 52px;
  }

  .header-cta {
    display: none;
  }
}
