:root {
  --paper: #fffaf0;
  --paper-deep: #f5ecda;
  --ink: #28231d;
  --muted: #6f675c;
  --line: rgba(40, 35, 29, 0.12);
  --red: #ed5b50;
  --orange: #e99b35;
  --white: #fffefb;
  --shadow: 0 24px 70px rgba(75, 53, 25, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 3%, rgba(237, 91, 80, 0.12), transparent 25rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
.site-footer,
.hero,
.feature-section,
.series-section,
.document-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.compact { min-height: 78px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 600;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--red);
  font-weight: 850;
}

nav { display: flex; gap: 24px; }

nav a,
.footer-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

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

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  padding: 54px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.075em;
  font-weight: 850;
}

.lead {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.store-badge {
  min-width: 166px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  color: white;
  background: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
}

.store-badge small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 600;
}

.apple { font-size: 19px; color: var(--paper); }

.app-portrait {
  position: relative;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 42px;
  background: rgba(255, 254, 251, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.app-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25%;
}

.app-portrait p {
  position: relative;
  z-index: 1;
  margin: 22px 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.app-portrait strong { font-size: 19px; }
.app-portrait span { color: var(--muted); font-size: 13px; }

.sun-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  opacity: .24;
}
.sun-one { width: 86px; height: 86px; top: -24px; right: -22px; }
.sun-two { width: 28px; height: 28px; top: 64px; right: -42px; background: var(--red); }

.feature-section { padding: 98px 0; border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  align-items: start;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2,
.series-section h2,
.document-header h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.17;
  letter-spacing: -0.055em;
}

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

.feature-card,
.support-item,
.contact-card,
.document-card {
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, .73);
}

.feature-card {
  min-height: 270px;
  padding: 30px;
  border-radius: 24px;
}

.feature-number { color: var(--red); font-size: 12px; font-weight: 800; }
.feature-card h3 { margin: 70px 0 8px; font-size: 25px; }
.feature-card p { margin: 0; color: var(--muted); }

.series-section {
  margin-block: 42px 110px;
  padding: clamp(34px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 56px;
  border-radius: 34px;
  color: white;
  background: var(--red);
}

.series-section .eyebrow { color: #ffe0ab; }
.series-section p:last-child { margin: 0; color: rgba(255,255,255,.82); font-size: 18px; }

.site-footer {
  min-height: 126px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }

.document-shell { padding: 58px 0 100px; }
.document-header { max-width: 780px; margin-bottom: 38px; }
.document-header p:last-child { margin-top: 18px; color: var(--muted); }

.document-card {
  max-width: 880px;
  padding: clamp(28px, 6vw, 66px);
  border-radius: 28px;
}

.document-card > p:first-child { font-size: 18px; color: var(--muted); }
.document-card h2 { margin: 44px 0 12px; font-size: 25px; letter-spacing: -0.025em; }
.document-card h3 { margin: 25px 0 7px; font-size: 18px; }
.document-card p, .document-card li { color: #514b43; }
.document-card a { color: var(--red); text-underline-offset: 3px; }
.document-card li + li { margin-top: 8px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.support-item { padding: 28px; border-radius: 22px; }
.support-item h2 { margin: 0 0 9px; font-size: 20px; }
.support-item p { margin: 0; color: var(--muted); }

.contact-card {
  margin-top: 18px;
  padding: 34px;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 34px;
  border-radius: 24px;
}
.contact-card h2 { margin: 0; font-size: 28px; }
.contact-card > p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .site-header, .site-footer, .hero, .feature-section, .series-section, .document-shell {
    width: min(100% - 28px, 620px);
  }
  .site-header { min-height: 74px; }
  nav { gap: 15px; }
  nav a { font-size: 13px; }
  .brand small { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 76px; }
  .hero-copy { order: 1; }
  .app-portrait { order: 0; max-width: 390px; margin-inline: auto; }
  .sun-one { right: -8px; }
  .sun-two { right: -12px; }
  .section-heading, .feature-grid, .series-section, .support-grid, .contact-card { grid-template-columns: 1fr; }
  .section-heading, .series-section, .contact-card { gap: 22px; }
  .feature-section { padding: 70px 0; }
  .feature-card { min-height: 215px; }
  .feature-card h3 { margin-top: 40px; }
  .series-section { margin-bottom: 70px; }
  .site-footer { padding: 30px 0; align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .document-shell { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
