:root {
  --ink: #17212b;
  --muted: #65717e;
  --paper: #fffdfa;
  --red: #e83a31;
  --red-dark: #b92720;
  --blue: #36a8d8;
  --green: #36a86f;
  --yellow: #f5bc35;
  --line: rgba(23, 33, 43, 0.12);
  --shadow: 0 26px 60px rgba(23, 33, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(54, 168, 216, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 22%, rgba(232, 58, 49, 0.1), transparent 24rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 253, 250, 0.82);
  box-shadow: 0 12px 34px rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(20px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px rgba(23, 33, 43, 0.16); }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 650; }
nav a:hover { color: var(--red); }
.nav-contact { padding: 8px 14px; border-radius: 12px; color: white; background: var(--ink); }
.nav-contact:hover { color: white; background: var(--red); }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  min-height: 740px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px 28px 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}
.eyebrow::before { width: 22px; height: 3px; border-radius: 3px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 650px;
  margin: 22px 0 20px;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.075em;
}
h1 em { color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 520px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 34px 0 42px; }
.primary-button, .contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 14px;
  color: white;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(232, 58, 49, 0.24);
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-button:hover, .contact-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(232, 58, 49, 0.32); }
.text-button { color: var(--muted); font-weight: 750; }
.text-button span { color: var(--red); }
.hero-stats { display: flex; gap: 36px; }
.hero-stats div { display: grid; }
.hero-stats strong { font-size: 22px; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; min-height: 570px; }
.phone {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 50%;
  width: 292px;
  height: 570px;
  padding: 12px;
  transform: translateX(-42%) rotate(3deg);
  border: 2px solid #2a3035;
  border-radius: 48px;
  background: #1e2429;
  box-shadow: 0 40px 70px rgba(23, 33, 43, 0.24);
}
.phone-top { position: absolute; z-index: 2; top: 20px; left: 50%; width: 94px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #1e2429; }
.phone-screen { height: 100%; padding: 70px 18px 20px; border-radius: 36px; background: linear-gradient(160deg, #fff 36%, #f0f7fa); }
.phone-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.memory-card {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-top: 22px;
  border: 1px solid rgba(54, 168, 216, 0.22);
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 30px rgba(54, 168, 216, 0.14);
}
.memory-card span { color: var(--muted); font-size: 13px; align-self: end; }
.memory-card strong { margin: -12px 0; color: var(--red); font-family: "Songti SC", serif; font-size: 112px; line-height: 1; }
.memory-card small { align-self: start; color: var(--blue); font-size: 16px; }
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.answer-row button { padding: 11px 6px; border: 0; border-radius: 12px; color: var(--muted); background: #e8eef1; font-size: 12px; font-weight: 750; }
.answer-row button:last-child { color: white; background: var(--red); }

.heatmap-card, .score-card {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.heatmap-card { top: 70px; left: 0; width: 250px; padding: 18px; transform: rotate(-6deg); border-radius: 22px; }
.mini-title { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 11px; }
.mini-title span { font-weight: 800; }
.mini-title b { color: var(--green); }
.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heatmap i, .tiny-heatmap i { aspect-ratio: 1; border-radius: 3px; background: #e8f2f5; }
.heatmap .l1 { background: #bde7f6; } .heatmap .l2 { background: #66c4e8; } .heatmap .l3 { background: #26a3d5; } .heatmap .l4 { background: var(--red); }
.score-card { right: -10px; bottom: 70px; display: grid; width: 180px; padding: 16px; transform: rotate(5deg); border-radius: 20px; }
.score-card span { color: var(--muted); font-size: 11px; }
.score-card strong { font-size: 36px; letter-spacing: -0.06em; }
.score-card i { width: 100%; height: 8px; border-radius: 10px; background: linear-gradient(90deg, var(--green) 86%, #e8eef1 86%); }

.section { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-heading { max-width: 660px; margin-bottom: 48px; }
.section-heading h2, .contact-section h2 { margin: 15px 0 12px; font-size: clamp(36px, 5vw, 58px); line-height: 1.12; letter-spacing: -0.06em; }
.section-heading p, .contact-section p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
}
.feature-card h3 { margin: 22px 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.feature-card p { max-width: 340px; color: var(--muted); font-size: 14px; }
.feature-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: white; background: var(--ink); font-weight: 850; }
.feature-red { background: #fff1ef; } .feature-red .feature-icon { background: var(--red); }
.feature-blue { background: #eff9fd; } .feature-blue .feature-icon { background: var(--blue); }
.feature-green { background: #eef9f3; } .feature-green .feature-icon { background: var(--green); }
.feature-yellow { background: #fff8e9; } .feature-yellow .feature-icon { color: var(--ink); background: var(--yellow); }
.card-stack { position: absolute; right: 22px; bottom: 25px; display: flex; }
.card-stack i { display: grid; width: 62px; height: 78px; margin-left: -18px; place-items: center; transform: rotate(6deg); border: 2px solid white; border-radius: 14px; color: white; background: var(--red); box-shadow: 0 8px 18px rgba(23, 33, 43, 0.12); font-family: serif; font-size: 32px; font-style: normal; }
.card-stack i:nth-child(2) { transform: translateY(-8px) rotate(-4deg); background: var(--blue); }
.card-stack i:nth-child(3) { transform: rotate(8deg); background: var(--green); }
.wave { position: absolute; right: 24px; bottom: 34px; display: flex; align-items: center; gap: 5px; height: 50px; }
.wave i { width: 5px; height: 20px; border-radius: 8px; background: var(--blue); }
.wave i:nth-child(2), .wave i:nth-child(6) { height: 36px; } .wave i:nth-child(3), .wave i:nth-child(5) { height: 50px; }
.progress-visual { position: absolute; right: 28px; bottom: 22px; display: grid; width: 94px; height: 94px; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 80%, #dceee4 0); }
.progress-visual::after { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #eef9f3; content: ""; }
.progress-visual b { z-index: 2; font-size: 24px; }
.tiny-heatmap { position: absolute; right: 24px; bottom: 32px; display: grid; grid-template-columns: repeat(4, 18px); gap: 4px; }
.tiny-heatmap i:nth-child(3n) { background: var(--yellow); } .tiny-heatmap i:nth-child(5n) { background: var(--red); }

.guide-section { max-width: none; color: white; background: var(--ink); }
.guide-section > * { max-width: 1184px; margin-right: auto; margin-left: auto; }
.guide-section .eyebrow { color: #76c9ea; }
.steps { display: grid; max-width: 1184px; margin: 0 auto; padding: 0; list-style: none; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { min-height: 290px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 24px; background: rgba(255, 255, 255, 0.05); }
.steps li > span { color: #76c9ea; font-size: 13px; font-weight: 850; letter-spacing: 0.12em; }
.steps h3 { margin: 72px 0 10px; font-size: 21px; }
.steps p { color: #aeb8c1; font-size: 14px; }

.faq-section { max-width: 920px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 24px 44px 24px 4px; cursor: pointer; font-size: 17px; font-weight: 760; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { float: right; margin-right: -38px; color: var(--red); content: "+"; font-size: 25px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { max-width: 740px; padding: 0 4px 22px; color: var(--muted); font-size: 14px; }

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1184px;
  margin: 20px auto 110px;
  padding: 54px;
  border-radius: 32px;
  background: #fff0ed;
}
.contact-section > div { max-width: 700px; }
.contact-section h2 { font-size: clamp(34px, 4vw, 48px); }
.contact-button { flex: 0 0 auto; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 34px max(28px, calc((100vw - 1184px) / 2));
  color: #b8c0c7;
  background: #10171d;
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; }
.footer-brand img { width: 42px; height: 42px; border-radius: 12px; }
.footer-brand div { display: grid; }
.footer-brand span { color: #82909c; font-size: 11px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: white; }
footer p { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #667580; }

@media (max-width: 980px) {
  .site-header { margin: 10px 12px 0; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { position: relative; z-index: 8; }
  .hero-visual { margin-top: 55px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-section { margin-right: 20px; margin-left: 20px; }
}

@media (max-width: 680px) {
  nav a:not(.nav-contact) { display: none; }
  .site-header { border-radius: 18px; }
  .hero { min-height: auto; padding: 64px 20px 70px; }
  h1 { font-size: 52px; }
  .hero-copy > p { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-visual { min-height: 520px; transform: scale(0.88); transform-origin: top center; }
  .phone { left: 46%; }
  .heatmap-card { left: -34px; }
  .score-card { right: -40px; }
  .section { padding: 80px 20px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .steps li { min-height: 230px; }
  .steps h3 { margin-top: 46px; }
  .contact-section { display: block; margin-bottom: 70px; padding: 34px 26px; }
  .contact-button { margin-top: 16px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 8px; }
}
