:root {
  color: #172033;
  background: #f6f7f9;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid #dce3ee;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 22px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 23px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 13px;
}

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

nav a {
  color: #24324a;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: 620px;
  place-items: center;
  padding: 92px 20px 62px;
  text-align: center;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 7px 14px;
  color: #dc2626;
  background: #fff7ed;
  font-size: 14px;
  font-weight: 800;
}

h1 {
  width: min(940px, 100%);
  margin: 22px auto 14px;
  color: #0f172a;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.08;
}

.hero-copy,
.section-heading p,
.card p,
.guide li,
footer span {
  color: #52627a;
  line-height: 1.8;
}

.hero-copy {
  width: min(780px, 100%);
  margin: 0 auto;
  font-size: 18px;
}

.actions,
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 850;
}

.primary {
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.secondary {
  border: 1px solid #d6e0ef;
  color: #24324a;
  background: white;
}

.hero-bullets {
  margin-top: 24px;
}

.hero-bullets span {
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
}

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

.soft {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background: #fff7ed;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 14px 0 0;
  color: #101827;
  font-size: 42px;
}

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

.card,
.guide article {
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  color: #dc2626;
  background: #fee2e2;
  font-size: 22px;
  font-weight: 900;
}

.card h3,
.guide h3 {
  margin: 18px 0 8px;
  color: #101827;
  font-size: 24px;
}

.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

code {
  border-radius: 6px;
  padding: 2px 6px;
  background: #eef2f7;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #dce3ee;
}

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .grid,
  .guide {
    grid-template-columns: 1fr;
  }
}
