:root {
  --bg: #fff8f0;
  --paper: #fffaf5;
  --surface: #ffffff;
  --ink: #2d201a;
  --muted: #74665f;
  --soft: #fff0e7;
  --line: #f1dfd2;
  --accent: #f04b22;
  --accent-dark: #d63d17;
  --orange: #ff8a1f;
  --blue: #2f74d0;
  --green: #2f9b61;
  --shadow: 0 24px 70px rgba(137, 64, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 116, 45, 0.14), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(255, 174, 79, 0.15), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, #fff 52%, #fff7ed 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 250, 245, 0.86);
  border-bottom: 1px solid rgba(241, 223, 210, 0.75);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: end center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffefe7, #fff);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-mark i {
  position: absolute;
  bottom: 7px;
  width: 12px;
  height: 25px;
  border: 4px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.brand-mark i:nth-child(1) {
  left: 8px;
  transform: rotate(-22deg);
}

.brand-mark i:nth-child(2) {
  height: 31px;
  transform: translateY(1px);
}

.brand-mark i:nth-child(3) {
  right: 8px;
  transform: rotate(22deg);
}

.brand strong {
  display: block;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  flex: 1;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 14px 2px;
  color: #221813;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-cta,
.primary,
.final-cta button {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  box-shadow: 0 12px 28px rgba(240, 75, 34, 0.22);
}

.nav-cta {
  padding: 13px 22px;
  border-radius: 999px;
}

.section-pad {
  padding: 68px clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: 720px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.35)),
    radial-gradient(circle at 7% 48%, rgba(245, 126, 61, 0.16), transparent 22%),
    radial-gradient(circle at 38% 18%, rgba(255, 203, 146, 0.25), transparent 24%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--accent);
}

.lead {
  max-width: 620px;
  margin-bottom: 22px;
  color: #51423b;
  font-size: 22px;
  line-height: 1.65;
  font-weight: 700;
}

.trust-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row span {
  position: relative;
  padding-left: 26px;
  color: #574942;
  font-weight: 700;
}

.trust-row span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin: 34px 0;
}

.hero-stats strong {
  display: grid;
  gap: 8px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.hero-stats small {
  color: #3a2c26;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.primary,
.secondary {
  min-width: 156px;
  padding: 16px 32px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
}

.secondary {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.74);
}

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

.laptop {
  position: absolute;
  right: 60px;
  top: 18px;
  width: min(640px, 82%);
  min-height: 410px;
  padding: 24px 28px 34px;
  border: 14px solid #111;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.laptop::after {
  content: "";
  position: absolute;
  left: -42px;
  right: -42px;
  bottom: -38px;
  height: 32px;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(180deg, #2a2a2a, #101010);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mini-logo {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  font-weight: 900;
  background: var(--accent);
}

.mock-header i {
  margin-left: auto;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: #f4e3d8;
}

.mock-profile {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff4ec;
  font-weight: 800;
}

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

.risk-cards div {
  padding: 18px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.risk-cards b {
  display: block;
  font-size: 34px;
}

.risk-cards span,
.school-list span,
.phone-grid span,
.gauge span {
  color: var(--muted);
  font-size: 13px;
}

.score-line {
  height: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f4e4d9;
}

.score-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--orange));
}

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

.school-list article {
  display: grid;
  grid-template-columns: 38px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.school-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.school-list em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 210px;
  min-height: 380px;
  padding: 38px 16px 18px;
  border: 10px solid #111;
  border-radius: 36px;
  background: #fffaf5;
  box-shadow: 0 22px 60px rgba(29, 20, 16, 0.2);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 76px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111;
}

.phone-title {
  margin: 14px 0 22px;
  font-weight: 900;
}

.gauge {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 52%, transparent 53%),
    conic-gradient(var(--accent) 0 86%, #f4e4d9 86% 100%);
}

.gauge b {
  margin-top: 18px;
  font-size: 28px;
}

.gauge span {
  margin-top: -32px;
}

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

.phone-grid span {
  padding: 12px 6px;
  border-radius: 12px;
  background: #fff0e7;
  text-align: center;
  font-weight: 800;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.split-section h2,
.expert-copy h2,
.final-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-head p,
.split-section p,
.expert-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.feature-grid article,
.chart-card,
.steps article,
.testimonial-grid article,
.expert-cards article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 42px rgba(137, 64, 26, 0.08);
}

.feature-grid article {
  min-height: 188px;
  padding: 24px 20px;
  border-radius: 18px;
  text-align: center;
}

.feature-grid h3 {
  margin: 14px 0 10px;
  font-size: 20px;
}

.feature-grid p,
.testimonial-grid p,
.expert-cards p,
.steps p {
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: radial-gradient(circle at 34% 28%, #fff, transparent 26%), linear-gradient(135deg, #fff2e5, #ffd7ad);
}

.icon::before {
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.icon.target::before { content: "◎"; }
.icon.school::before { content: "▥"; }
.icon.shield::before { content: "✓"; }
.icon.list::before { content: "≡"; }
.icon.robot::before { content: "⌁"; }
.icon.people::before { content: "●●"; font-size: 20px; }

.data-section {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.25), rgba(255, 242, 230, 0.58));
}

.data-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.92fr 1.12fr 1fr;
  gap: 18px;
}

.chart-card {
  min-height: 250px;
  padding: 20px;
  border-radius: 18px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.card-title h3 {
  margin: 0;
}

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

.trend svg {
  width: 100%;
  height: auto;
}

.trend line {
  stroke: #ead6c8;
  stroke-width: 2;
}

.trend polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend .line-green {
  stroke: var(--green);
}

.trend circle {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 4;
}

.trend text {
  fill: var(--muted);
  font-size: 13px;
}

.donut-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
}

.donut-card .card-title {
  grid-column: 1 / -1;
}

.donut {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 54%, transparent 55%),
    conic-gradient(var(--accent) 0 32%, var(--orange) 32% 88%, var(--blue) 88% 100%);
}

.donut b {
  margin-top: 22px;
  font-size: 24px;
}

.donut span {
  margin-top: -30px;
  color: var(--muted);
  font-size: 13px;
}

.legend {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.legend .rush { background: var(--accent); }
.legend .stable { background: var(--orange); }
.legend .safe { background: var(--blue); }

.compare table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  font-size: 13px;
}

.compare th,
.compare td {
  padding: 12px 10px;
  border: 1px solid #f0dfd2;
  text-align: center;
}

.compare th {
  background: #fff0e7;
}

.compare td:first-child {
  color: var(--muted);
  text-align: left;
}

.bars {
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: 170px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8f0, #fff);
}

.bars i {
  width: 38px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--accent), var(--orange));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  max-width: 1120px;
  margin: 0 auto;
}

.steps article {
  position: relative;
  padding: 28px 28px 26px 92px;
  border-radius: 18px;
}

.steps b {
  position: absolute;
  left: 28px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.split-section,
.expert-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.pill-row span,
.chat-tools span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: #fff0e7;
  border: 1px solid rgba(240, 75, 34, 0.16);
  font-weight: 800;
}

.chat-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff6ef);
  box-shadow: var(--shadow);
}

.chat {
  max-width: 88%;
  padding: 18px 20px;
  border-radius: 18px;
  line-height: 1.7;
}

.ai-msg {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  border-top-right-radius: 4px;
}

.bot-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}

.chat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expert-section {
  background: linear-gradient(135deg, #fff7ec, #ffffff);
}

.expert-cards {
  display: grid;
  gap: 16px;
}

.expert-cards article {
  padding: 22px;
  border-radius: 18px;
}

.expert-cards span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: #fff0e7;
  font-weight: 900;
}

.expert-cards b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

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

.testimonial-grid article {
  min-height: 210px;
  padding: 28px;
  border-radius: 18px;
}

.testimonial-grid strong,
.testimonial-grid span {
  display: block;
}

.testimonial-grid strong {
  margin-top: 20px;
}

.testimonial-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 32px clamp(20px, 5vw, 72px) 0;
  padding: 36px clamp(28px, 6vw, 78px);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 120%, rgba(255, 210, 135, 0.42), transparent 28%),
    linear-gradient(135deg, #ef3f1b, #ff8b23);
  box-shadow: 0 24px 70px rgba(240, 75, 34, 0.22);
}

.final-cta h2 {
  margin-bottom: 8px;
}

.final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.final-cta button {
  flex-shrink: 0;
  padding: 17px 44px;
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1.05fr 170px;
  gap: 34px;
  padding: 48px clamp(20px, 5vw, 72px) 28px;
}

.footer-brand p {
  max-width: 300px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.footer-col span {
  color: var(--muted);
  font-size: 14px;
}

.footer-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.footer-qr img {
  width: 146px;
  height: 146px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(137, 64, 26, 0.12);
}

.footer-qr span {
  font-weight: 800;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding-top: 22px;
  color: #96877f;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
}

.qr-modal.show {
  display: grid;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 24, 18, 0.56);
  backdrop-filter: blur(8px);
}

.qr-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.qr-dialog h2 {
  margin-bottom: 8px;
}

.qr-dialog p {
  color: var(--muted);
}

.qr-dialog img {
  width: min(260px, 72vw);
  height: min(260px, 72vw);
  margin-top: 12px;
  border-radius: 20px;
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #fff0e7;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

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

  .laptop {
    left: 0;
    right: auto;
    width: 86%;
  }

  .feature-grid,
  .steps,
  .testimonial-grid,
  .split-section,
  .expert-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .section-pad {
    padding: 48px 18px;
  }

  .site-header {
    padding: 12px 18px;
    gap: 16px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand em {
    font-size: 10px;
  }

  .nav-cta {
    margin-left: auto;
    padding: 11px 16px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats strong {
    font-size: 26px;
  }

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

  .laptop {
    width: 100%;
    right: auto;
    padding: 18px 16px 28px;
    border-width: 9px;
  }

  .laptop::after {
    left: -18px;
    right: -18px;
  }

  .risk-cards {
    gap: 8px;
  }

  .risk-cards b {
    font-size: 25px;
  }

  .school-list article {
    grid-template-columns: 34px 1fr;
  }

  .school-list span,
  .school-list em {
    display: none;
  }

  .phone {
    width: 168px;
    min-height: 315px;
    right: 2px;
    bottom: 0;
    border-width: 8px;
  }

  .gauge {
    width: 118px;
    height: 118px;
  }

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

  .donut-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .steps article {
    padding-left: 28px;
    padding-top: 86px;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 18px 0;
  }

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