:root {
  --ink: #0a2925;
  --muted: #60736e;
  --line: #dce6e2;
  --paper: #f7faf7;
  --card: #ffffff;
  --brand: #06b889;
  --brand-deep: #08725c;
  --brand-soft: #dff8ef;
  --signal: #ff6b35;
  --lime: #d6ff72;
  --shadow: 0 22px 70px rgba(7, 54, 45, 0.12);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(6, 184, 137, 0.13), transparent 33rem),
    radial-gradient(circle at 90% 10%, rgba(214, 255, 114, 0.16), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.accent { color: var(--brand-deep); }
.signal { color: var(--signal); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(247, 250, 247, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 230, 226, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -0.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: white;
  background: var(--ink);
  box-shadow: inset 0 -8px 20px rgba(6, 184, 137, 0.22);
}
.nav-links { display: flex; align-items: center; gap: 28px; color: #536963; font-weight: 650; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(7, 54, 45, 0.14); }
.button.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.brand-button { color: #062f26; background: var(--lime); border-color: var(--lime); }
.button.small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 13px; }
.button.block { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: none; }

.page, .section, .hero { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section.compact { padding: 58px 0; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--brand); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; }
h1 { font-size: clamp(48px, 7vw, 88px); line-height: 0.98; margin-bottom: 28px; }
h2 { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.06; margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
p { line-height: 1.78; }
.lead { color: #425b55; font-size: clamp(17px, 2vw, 21px); max-width: 710px; }

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 58px;
  align-items: center;
  min-height: 760px;
  padding: 78px 0 90px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.proof-line span::before { content: "✓"; margin-right: 6px; color: var(--brand-deep); font-weight: 900; }
.hero-panel {
  position: relative;
  min-height: 570px;
  padding: 22px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 184, 137, 0.58), transparent 67%);
}
.panel-top { position: relative; display: flex; align-items: center; justify-content: space-between; color: #fff; padding: 8px 4px 22px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(6, 184, 137, 0.16); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(6, 184, 137, 0); } }
.diagnosis-preview { position: relative; display: grid; gap: 12px; }
.preview-card { padding: 20px; border-radius: 20px; background: rgba(255,255,255,0.96); }
.preview-card.dark { color: #fff; background: rgba(4, 36, 31, 0.86); border: 1px solid rgba(255,255,255,0.1); }
.preview-label { color: var(--muted); font-size: 12px; font-weight: 750; }
.preview-card.dark .preview-label { color: #a9c2bb; }
.preview-title { font-size: 22px; line-height: 1.18; font-weight: 880; margin: 8px 0 12px; }
.score-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.score-chip { padding: 13px; border-radius: 14px; background: var(--brand-soft); }
.score-chip strong { display: block; font-size: 24px; }
.flow-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 15px; }
.flow-mini span { padding: 10px 5px; text-align: center; border-radius: 10px; background: rgba(255,255,255,0.09); font-size: 11px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 12px 40px rgba(7, 54, 45, 0.05);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--ink); margin-bottom: 42px; font-weight: 850; }
.tint { background: var(--brand-soft); border-color: transparent; }
.ink-card { color: #fff; background: var(--ink); border-color: var(--ink); }
.ink-card p, .ink-card .muted { color: #b9cbc6; }

.demo-shell { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 38px; align-items: center; padding: 34px; border-radius: 36px; background: #e7f6f0; }
.phone { width: min(100%, 390px); margin: 0 auto; padding: 10px; border-radius: 38px; background: #062f2a; box-shadow: var(--shadow); }
.phone-screen { position: relative; aspect-ratio: 390 / 720; overflow: hidden; border-radius: 30px; background: white; }
.phone-screen iframe { width: 100%; height: 100%; border: 0; }
.phone-launch { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 36px 26px; text-align: center; color: white; background: radial-gradient(circle at 50% 16%, rgba(122,255,179,.2), transparent 34%), linear-gradient(155deg, #0a4338, #062c26 74%); }
.phone-launch strong { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.phone-launch small { color: rgba(255,255,255,.72); }
.phone-launch-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: var(--ink); background: var(--lime); font-size: 32px; font-weight: 900; box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.phone-launch-question { padding: 13px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.08); font-size: 14px; }
.industry-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.industry-pills span { padding: 9px 12px; border: 1px solid #b8d9ce; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 750; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.price-card.featured { color: #fff; background: var(--ink); border-color: var(--ink); transform: translateY(-10px); box-shadow: var(--shadow); }
.price-card.featured .muted, .price-card.featured .ideal { color: #bad0ca; }
.price-badge { align-self: flex-start; padding: 7px 10px; border-radius: 999px; color: var(--brand-deep); background: var(--brand-soft); font-size: 11px; font-weight: 850; }
.price-card.featured .price-badge { color: #062f26; background: var(--lime); }
.price { margin: 18px 0; font-size: 38px; font-weight: 900; letter-spacing: -0.05em; }
.price small { font-size: 12px; font-weight: 650; letter-spacing: 0; }
.ideal { color: var(--muted); font-size: 13px; min-height: 70px; }
.clean-list { list-style: none; padding: 0; margin: 18px 0; }
.clean-list li { position: relative; padding: 8px 0 8px 22px; line-height: 1.5; font-size: 13px; }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.boundary { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(150,170,164,0.25); font-size: 11px; line-height: 1.55; color: var(--muted); }
.price-card.featured .boundary { color: #a9c2bb; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 48px; border-radius: 34px; color: #fff; background: var(--ink); overflow: hidden; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #b9cbc6; margin-bottom: 0; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px 24px 110px; max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Diagnosis */
.app-page { min-height: 100vh; padding-bottom: 70px; }
.app-shell { width: min(1060px, calc(100% - 40px)); margin: 50px auto 0; }
.progress-wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin: 24px 0 32px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #dfe9e5; }
.progress-bar { height: 100%; width: 12.5%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--lime)); transition: width 0.35s ease; }
.progress-text { color: var(--muted); font-size: 13px; font-weight: 750; }
.diagnosis-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.conversation { min-height: 610px; padding: 30px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,0.9); box-shadow: var(--shadow); }
.assistant-head { display: flex; gap: 13px; align-items: center; margin-bottom: 28px; }
.assistant-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 16px; color: #fff; background: var(--ink); font-weight: 900; }
.assistant-name { font-weight: 850; }
.assistant-status { color: var(--muted); font-size: 12px; margin-top: 3px; }
.question-bubble { max-width: 620px; padding: 20px 22px; border-radius: 5px 22px 22px; background: var(--brand-soft); font-size: 18px; line-height: 1.55; font-weight: 730; }
.answer-area { margin-top: 28px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select, .login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbdad5;
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus, .login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(6,184,137,0.1); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { padding: 11px 14px; border: 1px solid #cbdad5; border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.choice.selected { color: #052d25; border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.insight-panel { position: sticky; top: 96px; display: grid; gap: 12px; }
.insight-card { padding: 19px; border-radius: 20px; color: #fff; background: var(--ink); }
.insight-card.light { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.insight-card strong { display: block; font-size: 18px; margin-bottom: 7px; }
.insight-list { display: grid; gap: 9px; margin-top: 12px; }
.insight-item { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #b8cbc5; }
.insight-card.light .insight-item { color: var(--muted); }

/* Report and project */
.report-hero { padding: 64px 0 34px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.meta-pill { padding: 8px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; font-weight: 780; }
.report-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.report-stack { display: grid; gap: 18px; }
.score-list { display: grid; gap: 14px; }
.score-line { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.score-line .bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e3ece9; }
.score-line .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-deep), var(--brand)); }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.profile-item { padding: 14px; border-radius: 14px; background: #f3f7f5; }
.profile-item small { display: block; color: var(--muted); margin-bottom: 6px; }
.profile-item strong { line-height: 1.45; }
.path { display: grid; gap: 12px; }
.path-step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.path-step span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: var(--ink); font-weight: 850; }
.path-step p { margin: 6px 0 0; }
.recommend-card { position: relative; }
.qr { width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.contact-box { display: grid; gap: 12px; margin-top: 18px; }
.contact-row { display: flex; gap: 8px; }
.contact-row input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid #cbdad5; border-radius: 12px; }
.notice { padding: 14px 16px; border-radius: 14px; color: #76510b; background: #fff4d8; font-size: 12px; line-height: 1.6; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 24px 0; }
.timeline::before { content: ""; position: absolute; top: 19px; left: 7%; right: 7%; height: 3px; background: #dfe8e5; }
.timeline-stage { position: relative; z-index: 1; text-align: center; font-size: 12px; color: var(--muted); }
.timeline-dot { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 9px; border-radius: 50%; color: #82958f; background: #e5eeeb; font-weight: 900; }
.timeline-stage.done .timeline-dot, .timeline-stage.current .timeline-dot { color: #fff; background: var(--brand-deep); }
.timeline-stage.current .timeline-dot { box-shadow: 0 0 0 7px rgba(6,184,137,0.14); }

/* Internal */
.login-card { width: min(460px, calc(100% - 40px)); margin: 100px auto; padding: 34px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.dashboard-top { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 48px 0 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.share-builder { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(340px, 1fr); gap: 18px 28px; align-items: end; margin: 24px 0 14px; }
.share-builder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.share-builder .field { margin: 0; }
.share-builder select, .share-builder-link input { width: 100%; padding: 13px 14px; border: 1px solid #c9dbd5; border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.share-builder-link { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric strong { display: block; font-size: 28px; }
.lead-list { display: grid; gap: 12px; margin-top: 22px; }
.lead-card { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr auto; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.lead-card select, .lead-card input { width: 100%; padding: 10px; border: 1px solid #d4e0dc; border-radius: 10px; }
.iteration-editor { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 6px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; }
.iteration-editor input { min-width: 0; padding: 8px; }
.iteration-editor .button { padding: 8px 10px; white-space: nowrap; }
.lead-title { font-weight: 850; margin-bottom: 5px; }
.lead-sub { color: var(--muted); font-size: 12px; line-height: 1.5; }

.mobile-cta { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; color: #fff; background: rgba(5,37,31,0.94); opacity: 0; pointer-events: none; transition: 0.2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { min-height: 520px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .demo-shell, .report-grid { grid-template-columns: 1fr; }
  .diagnosis-layout { grid-template-columns: 1fr; }
  .insight-panel, .recommend-card { position: static; }
  .insight-panel { grid-template-columns: repeat(2, 1fr); }
  .lead-card { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav { padding: 14px 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 0; }
  .nav .button { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .page, .section, .hero { width: min(100% - 32px, var(--max)); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; gap: 38px; }
  h1 { font-size: clamp(43px, 14vw, 62px); }
  h2 { font-size: 36px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-panel { min-height: 470px; border-radius: 28px; padding: 16px; }
  .score-row, .flow-mini { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr; }
  .demo-shell { padding: 20px; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .site-footer { flex-direction: column; }
  .app-shell { width: calc(100% - 24px); margin-top: 24px; }
  .conversation { min-height: 0; padding: 20px; border-radius: 22px; }
  .question-bubble { font-size: 16px; }
  .insight-panel { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .report-hero { padding-top: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 12px; }
  .timeline::before { top: 18px; bottom: 18px; left: 19px; width: 3px; height: auto; right: auto; }
  .timeline-stage { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; }
  .timeline-dot { margin: 0; }
  .dashboard-top { display: grid; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .share-builder, .share-builder-fields { grid-template-columns: 1fr; }
  .share-builder-link { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
  .iteration-editor { grid-template-columns: auto 1fr auto 1fr; }
  .iteration-editor .button { grid-column: 1 / -1; }
  .contact-row { flex-direction: column; }
  .mobile-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 60px rgba(7,54,45,0.18);
  }
  .mobile-cta .button { min-height: 46px; padding: 0 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
