:root {
  --ink: #102033;
  --muted: #5c6b7c;
  --line: #d9e2ea;
  --soft: #f4f8fb;
  --paper: #ffffff;
  --blue: #1769e0;
  --blue-dark: #0b4eb2;
  --teal: #15a4a0;
  --amber: #d8871f;
  --green: #18895a;
  --shadow: 0 20px 50px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(217, 226, 234, 0.76);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.site-header.scrolled {
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #34465a;
  font-size: 15px;
}

.nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-link {
  color: #34465a;
  font-size: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(21, 164, 160, 0.32);
  outline-offset: 2px;
}

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.24);
}

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

.button-primary:disabled {
  cursor: default;
  background: #7f95ad;
  box-shadow: none;
  transform: none;
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: #b8c7d8;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(520px, 1.14fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 6vw 46px;
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 58%),
    radial-gradient(circle at 15% 20%, rgba(21, 164, 160, 0.12), transparent 28%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 28px;
  color: #42546a;
  font-size: 19px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  margin: 40px 0 0;
}

.hero-stats div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-product {
  overflow: hidden;
  border: 1px solid #d1dce8;
  border-radius: 8px;
  background: #f8fbfd;
  box-shadow: var(--shadow);
}

.product-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.product-topbar strong {
  color: var(--green);
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 190px minmax(260px, 1fr) 210px;
  min-height: 430px;
}

.inbox-panel,
.insight-panel {
  padding: 18px;
  background: #f2f6fa;
}

.chat-panel {
  padding: 22px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: white;
}

.panel-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inbox-item {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.inbox-item.active {
  border-color: #c9d8e8;
  background: white;
}

.inbox-item strong,
.inbox-item small {
  display: block;
}

.inbox-item small,
.buyer-row small,
.score-block small {
  color: var(--muted);
  font-size: 12px;
}

.market,
.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.amazon {
  background: #243043;
}

.shopify {
  background: var(--green);
}

.tiktok {
  background: #111827;
}

.buyer-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.avatar {
  background: var(--teal);
}

.message {
  max-width: 82%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.message.buyer {
  border: 1px solid var(--line);
  background: #f8fafc;
}

.message.ai {
  margin-left: auto;
  color: #15345f;
  background: #eaf3ff;
}

.reply-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 42px;
  padding: 14px;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  background: #f7fbff;
}

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

.reply-box button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--blue);
}

.insight-panel ul,
.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.insight-panel li {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  color: #405268;
  font-size: 13px;
}

.insight-panel li span,
.check-list li::before {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
  flex: 0 0 auto;
}

.score-block {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.score-block strong,
.score-block small {
  display: block;
}

.score-block strong {
  font-size: 30px;
}

.platform-strip,
.features,
.workflow,
.demo {
  padding: 86px 6vw;
}

.platform-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.ops-copy h2,
.demo h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.ops-copy p,
.demo p {
  color: var(--muted);
  font-size: 17px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #34465a;
  background: white;
  cursor: pointer;
}

.tab.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.logo-grid span {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #2d3f53;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.plan {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.feature-card {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: #b8c8d8;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.08);
}

.feature-index {
  color: var(--amber);
  font-weight: 800;
}

.feature-card h3,
.step h3,
.plan h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.feature-card p,
.step p,
.plan p {
  margin: 0;
  color: var(--muted);
}

.workflow {
  background: #fbfcfe;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.step {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.operations {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(320px, 0.95fr);
  gap: 46px;
  align-items: center;
  padding: 86px 6vw;
  color: white;
  background: #122238;
}

.operations .eyebrow {
  color: #8edfdc;
}

.operations .section-heading p,
.operations .ops-copy p,
.operations .check-list {
  color: #c8d4df;
}

.ops-board {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.row.head {
  color: #9eb0c2;
  background: rgba(255, 255, 255, 0.06);
}

.row em {
  color: #8edfdc;
  font-style: normal;
}

.check-list li {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
}

.plan.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.plan strong {
  margin-top: auto;
  font-size: 30px;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 9px;
  border-radius: 6px;
  color: white;
  background: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.demo {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
  background: var(--soft);
}

.demo-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.demo-form label,
.demo-form span {
  display: grid;
  gap: 7px;
}

.demo-form span {
  color: #3f5268;
  font-size: 14px;
  font-weight: 700;
}

.demo-form input,
.demo-form select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #cdd9e5;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

.footer a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 24px;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.menu-open {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header.menu-open .nav,
  .site-header.menu-open .header-actions {
    display: flex;
    width: 100%;
  }

  .site-header.menu-open .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 20px;
  }

  .site-header.menu-open .header-actions {
    justify-content: flex-start;
    padding-top: 14px;
  }

  .hero,
  .operations,
  .demo {
    grid-template-columns: 1fr;
  }

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

  .chat-panel {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .logo-grid,
  .feature-grid,
  .plans,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .hero,
  .platform-strip,
  .features,
  .workflow,
    .demo,
  .operations {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions,
  .hero-stats,
  .logo-grid,
  .feature-grid,
  .plans,
  .timeline,
  .row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .message {
    max-width: 100%;
  }
}

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

.scenarios,
.trust,
.faq {
  padding: 86px 6vw;
}

.scenarios {
  background: #ffffff;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.scenario-card span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
}

.trust {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: center;
  background: #eef5fb;
}

.trust-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.trust-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.guardrails {
  display: grid;
  gap: 14px;
}

.guardrails div {
  display: grid;
  gap: 5px;
  padding: 20px 22px;
  border: 1px solid #cad9e8;
  border-radius: 8px;
  background: white;
}

.guardrails strong {
  font-size: 18px;
}

.guardrails span {
  color: var(--muted);
}

.faq {
  background: white;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .scenarios,
  .trust,
  .faq {
    padding: 56px 20px;
  }

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


/* Homepage cover polish - 2026-08-06 */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 64%),
    linear-gradient(90deg, rgba(23, 105, 224, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(21, 164, 160, 0.08) 0 1px, transparent 1px 100%);
  background-size: auto, 56px 56px, 56px 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 72px 4vw auto auto;
  width: min(520px, 44vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 105, 224, .42), transparent);
  animation: scanLine 4.8s ease-in-out infinite;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 720ms ease forwards;
}

.reveal-item:nth-child(2) { animation-delay: 90ms; }
.reveal-item:nth-child(3) { animation-delay: 180ms; }
.reveal-item:nth-child(4) { animation-delay: 270ms; }
.reveal-item:nth-child(5) { animation-delay: 360ms; }
.reveal-item:nth-child(6) { animation-delay: 450ms; }

.hero-pricing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 620px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #cdddea;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(16, 32, 51, .08);
}

.hero-pricing span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-pricing strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.hero-pricing p {
  margin: 0;
  color: #42546a;
  font-size: 15px;
  line-height: 1.55;
}

.hero-stats {
  max-width: 680px;
}

.hero-stats dt {
  font-size: 22px;
}

.tech-console {
  position: relative;
  isolation: isolate;
}

.tech-console::after {
  content: "";
  position: absolute;
  inset: 54px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(21, 164, 160, .8), transparent);
  animation: consolePulse 3.8s ease-in-out infinite;
  z-index: 2;
}

.signal-grid {
  position: absolute;
  inset: 54px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  opacity: .36;
  z-index: -1;
}

.signal-grid span {
  border-right: 1px solid rgba(23, 105, 224, .12);
}

.market.email {
  background: #1769e0;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanLine {
  0%, 100% {
    transform: translateX(-18px);
    opacity: .25;
  }
  50% {
    transform: translateX(18px);
    opacity: .9;
  }
}

@keyframes consolePulse {
  0%, 100% {
    opacity: .18;
    transform: scaleX(.72);
  }
  50% {
    opacity: .86;
    transform: scaleX(1);
  }
}

@media (max-width: 680px) {
  .hero-pricing {
    grid-template-columns: 1fr;
  }

  .hero::before {
    width: 72vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero::before,
  .tech-console::after {
    animation: none !important;
  }
}


.hero {
  grid-template-columns: minmax(520px, 2fr) minmax(340px, 1fr);
  gap: 38px;
  align-items: start;
}

.hero-copy {
  max-width: 900px;
}

.hero h1 {
  max-width: 840px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.hero-product {
  align-self: start;
  margin-top: 118px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-product {
    width: min(760px, 100%);
    margin-top: 18px;
  }
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 36px;
  }
}


/* Homepage hero layout correction - 2026-08-06 */
.hero {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: clamp(28px, 3vw, 42px);
  align-items: start;
  padding-top: 66px;
}

.hero-copy {
  max-width: 920px;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
}

.hero-lead {
  max-width: 760px;
}

.hero-product {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  align-self: start;
  margin-top: clamp(168px, 17vw, 238px);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr);
  }

  .hero-product {
    margin-top: 150px;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-product {
    width: min(760px, 100%);
    max-width: none;
    justify-self: start;
    margin-top: 18px;
  }
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 34px;
  }
}
