:root {
  color-scheme: light;
  --bg: #fff9f1;
  --surface: #ffffff;
  --ink: #211714;
  --muted: #725f58;
  --line: #eaded2;
  --accent: #ff5a6d;
  --accent-dark: #d93f51;
  --mint: #0f766e;
  --blue: #3469d4;
  --shadow: 0 22px 70px rgba(85, 45, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 191, 146, 0.34), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(255, 90, 109, 0.13), transparent 24rem),
    linear-gradient(180deg, #fff8ef 0%, #ffffff 52%, #fff6ed 100%);
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 72px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(234, 222, 210, 0.78);
  background: rgba(255, 249, 241, 0.9);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 154px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #3d2d28;
  font-size: 15px;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--accent-dark);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.header-cta,
.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 90, 109, 0.24);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: #372723;
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.72fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 76px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  letter-spacing: 0;
}

.hero-lede,
.split-section p,
.download-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 38px 0 0;
}

.hero-metrics div {
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(234, 222, 210, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics dt {
  font-size: 13px;
  color: var(--muted);
}

.hero-metrics dd {
  margin: 9px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-panel {
  width: min(390px, 100%);
  min-height: 610px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(255, 232, 211, 0.76)),
    url("https://macaron.im/assets/image/social-sharing.png") center 86% / 112% auto no-repeat;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  gap: 7px;
  margin-bottom: 120px;
}

.phone-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 90, 109, 0.32);
}

.chat-card {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 12px 30px rgba(69, 44, 35, 0.1);
}

.user-card {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}

.agent-card {
  background: #fff;
  color: #3f2d27;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.mini-grid span {
  min-height: 62px;
  padding: 14px;
  border: 1px solid rgba(234, 222, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #4a3933;
  font-weight: 700;
}

.product-section {
  padding: 92px 0;
}

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

.section-heading.compact {
  color: #fff;
}

.section-heading.compact .eyebrow {
  color: #ffd4d9;
}

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

.feature-card {
  min-height: 252px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(85, 45, 24, 0.06);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  border-radius: 8px;
  background: #fff0ef;
  color: var(--accent-dark);
  font-weight: 900;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.scenario-band {
  padding: 90px 0;
  background: linear-gradient(135deg, #22202a 0%, #49352d 58%, #853f48 100%);
}

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

.showcase-grid a {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.showcase-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff5ee;
}

.showcase-grid span {
  display: block;
  padding: 16px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 60px;
  align-items: start;
  padding: 96px 0;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-list a {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(85, 45, 24, 0.06);
}

.resource-list strong {
  font-size: 18px;
}

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

.download-section {
  padding: 20px 0 86px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 218, 0.8)),
    url("https://macaron.im/assets/image/footer.webp") right bottom / auto 90% no-repeat;
  box-shadow: var(--shadow);
}

.download-card p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 36px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #594942;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

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

  .nav-links {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

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

  .download-card,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 64px;
  }

  .brand img {
    width: 128px;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .section-shell {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede,
  .split-section p,
  .download-card p {
    font-size: 16px;
  }

  .hero-metrics,
  .feature-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .phone-panel {
    min-height: 540px;
    border-radius: 20px;
  }

  .phone-top {
    margin-bottom: 86px;
  }

  .product-section,
  .scenario-band,
  .split-section {
    padding: 64px 0;
  }

  .download-card {
    padding: 26px;
    background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 218, 0.8));
  }
}
