:root {
  color-scheme: light;
  --bg: #fff7f4;
  --bg-soft: #fff0eb;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --surface-tint: #ffe6e2;
  --ink: #2e2523;
  --ink-soft: #6f5e5b;
  --muted: #8a7671;
  --line: #f0d8d2;
  --accent: #e96f76;
  --accent-strong: #ba424d;
  --accent-soft: #fff0ef;
  --shadow: 0 24px 70px rgb(145 73 62 / 0.16);
  --shadow-soft: 0 14px 34px rgb(145 73 62 / 0.11);
  --radius-card: 24px;
  --radius-panel: 32px;
  --radius-pill: 999px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #251b1c;
    --bg-soft: #302121;
    --surface: #302523;
    --surface-strong: #3b2c29;
    --surface-tint: #513032;
    --ink: #fff5ef;
    --ink-soft: #dcc4bd;
    --muted: #b79e97;
    --line: #61443f;
    --accent: #ff9a9d;
    --accent-strong: #ffd0cf;
    --accent-soft: #44282a;
    --shadow: 0 24px 70px rgb(18 10 10 / 0.36);
    --shadow-soft: 0 14px 34px rgb(18 10 10 / 0.28);
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fff7f4;
  --bg-soft: #fff0eb;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --surface-tint: #ffe6e2;
  --ink: #2e2523;
  --ink-soft: #6f5e5b;
  --muted: #8a7671;
  --line: #f0d8d2;
  --accent: #e96f76;
  --accent-strong: #ba424d;
  --accent-soft: #fff0ef;
  --shadow: 0 24px 70px rgb(145 73 62 / 0.16);
  --shadow-soft: 0 14px 34px rgb(145 73 62 / 0.11);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #251b1c;
  --bg-soft: #302121;
  --surface: #302523;
  --surface-strong: #3b2c29;
  --surface-tint: #513032;
  --ink: #fff5ef;
  --ink-soft: #dcc4bd;
  --muted: #b79e97;
  --line: #61443f;
  --accent: #ff9a9d;
  --accent-strong: #ffd0cf;
  --accent-soft: #44282a;
  --shadow: 0 24px 70px rgb(18 10 10 / 0.36);
  --shadow-soft: 0 14px 34px rgb(18 10 10 / 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgb(255 205 198 / 0.36), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(var(--line) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface), transparent 10%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 14px;
  box-shadow: 0 8px 18px rgb(180 86 76 / 0.18);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.theme-toggle,
.button {
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-toggle {
  min-width: 60px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  white-space: nowrap;
}

.button.primary {
  color: #fffaf7;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgb(196 74 82 / 0.24);
}

[data-theme="dark"] .button.primary {
  color: #302523;
  background: linear-gradient(135deg, #ffaaa9, #fff0eb);
}

.button.secondary {
  color: var(--accent-strong);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

[data-theme="dark"] .button.secondary {
  color: #302523;
  background: #fff5ef;
  border-color: #fff5ef;
}

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

.button:active,
.theme-toggle:active {
  transform: translateY(1px) scale(0.99);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  min-height: calc(100dvh - 190px);
  padding: clamp(48px, 7vw, 86px) 0 clamp(36px, 6vw, 72px);
  gap: clamp(28px, 5vw, 70px);
}

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

.kicker {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 10em;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 24em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
}

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

.hero-visual {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
}

.phone-frame {
  overflow: hidden;
  margin: 0;
  border: 10px solid color-mix(in srgb, var(--ink), transparent 84%);
  border-radius: 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  object-fit: cover;
}

.main-phone {
  width: min(330px, 72vw);
  transform: rotate(-4deg);
}

.side-phone {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 210px;
  transform: rotate(7deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-strip div {
  padding: 24px;
  background: color-mix(in srgb, var(--surface), transparent 4%);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 20px;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.showcase,
.intro-band,
.feature-section,
.service-section,
.policy-panel,
.contact-section {
  padding: clamp(72px, 10vw, 118px) 0 0;
}

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

.section-heading.compact {
  max-width: 560px;
}

.section-heading h2,
.intro-copy h2,
.policy-panel h2,
.contact-card h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.intro-copy p,
.policy-panel p,
.contact-card p {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.showcase-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface), transparent 2%);
  box-shadow: var(--shadow-soft);
}

.showcase-card.large {
  grid-row: span 2;
}

.showcase-card img {
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 16px 32px rgb(104 55 50 / 0.16);
}

.showcase-card.large img {
  width: min(100%, 360px);
}

.showcase-card h3,
.feature-card h3,
.info-grid strong {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.showcase-card p,
.feature-card p,
.info-grid p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 28px;
}

.intro-copy {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface), transparent 2%);
  box-shadow: var(--shadow-soft);
}

.intro-logo-card {
  display: grid;
  justify-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, var(--surface), var(--surface-tint));
  box-shadow: var(--shadow-soft);
}

.intro-logo-card img {
  width: min(240px, 70vw);
  border-radius: 44px;
}

.intro-logo-card p {
  margin: 18px 0 0;
  color: var(--accent-strong);
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 18px;
}

.feature-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-strong {
  color: #fffaf7;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.feature-strong h3,
.feature-strong p {
  color: #fffaf7;
}

.feature-texture {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft), transparent 15%), var(--surface)),
    radial-gradient(var(--line) 0.8px, transparent 0.8px);
  background-size: auto, 14px 14px;
}

.feature-wide {
  grid-column: span 2;
  background: color-mix(in srgb, var(--surface-tint), var(--surface) 42%);
}

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

.info-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface), transparent 3%);
}

.info-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.info-grid a,
.legal-content a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.policy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 48px);
  margin-top: clamp(72px, 10vw, 118px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface), transparent 2%);
  box-shadow: var(--shadow-soft);
}

.policy-panel div {
  max-width: 760px;
}

.contact-card {
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-soft), transparent 10%));
  box-shadow: var(--shadow-soft);
}

.contact-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent-strong);
  font-size: clamp(24px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  width: min(calc(100% - 32px), var(--max));
  margin: clamp(72px, 10vw, 118px) auto 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--surface), transparent 4%);
}

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

.site-footer p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-weight: 700;
}

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

.footer-links a {
  color: var(--ink-soft);
  font-weight: 900;
  text-decoration: none;
}

.legal-hero {
  padding: clamp(64px, 10vw, 120px) 0 28px;
}

.legal-hero p:last-child {
  color: var(--ink-soft);
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.legal-content section {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface), transparent 3%);
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.18;
}

.legal-content p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 700;
}

.legal-content p + p {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 28px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    padding: 2px 2px 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  h1 {
    max-width: 11em;
  }

  .hero-visual {
    min-height: 540px;
  }

  .side-phone {
    right: 8%;
  }

  .showcase-grid,
  .info-grid,
  .feature-grid,
  .intro-band {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-card.large,
  .feature-wide {
    grid-column: span 2;
  }

  .intro-copy {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-shell,
  .trust-strip,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    gap: 20px;
    padding: 26px 0 18px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

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

  .button,
  .theme-toggle {
    width: 100%;
  }

  .hero-visual {
    height: 160px;
    min-height: 0;
    overflow: hidden;
    border-radius: 32px;
  }

  .phone-frame {
    border-width: 6px;
    border-radius: 30px;
  }

  .main-phone {
    width: min(178px, 58vw);
  }

  .side-phone {
    width: 94px;
    right: 70px;
    bottom: -4px;
  }

  .trust-strip,
  .showcase-grid,
  .info-grid,
  .feature-grid,
  .intro-band {
    grid-template-columns: 1fr;
  }

  .showcase-card.large,
  .feature-wide,
  .intro-copy {
    grid-column: auto;
  }

  .policy-panel {
    display: grid;
    margin-top: 72px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 430px) {
  .brand span {
    max-width: 6em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header {
    padding: 10px;
  }

  .section-heading h2,
  .intro-copy h2,
  .policy-panel h2,
  .contact-card h2,
  .legal-hero h1 {
    font-size: 34px;
  }

  .contact-link {
    font-size: 24px;
  }
}

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

@supports not (backdrop-filter: blur(18px)) {
  .site-header {
    background: var(--surface);
  }
}
