:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --ink: #20242a;
  --muted: #65707c;
  --line: #ddd7cc;
  --paper: #fffdfa;
  --sage: #6b8f84;
  --teal: #176b77;
  --coral: #d86f58;
  --gold: #c5a45b;
  --shadow: 0 24px 60px rgba(32, 36, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 111, 88, 0.16), transparent 30%),
    linear-gradient(145deg, #f7f5ef 0%, #edf4f1 52%, #fff8ef 100%);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid rgba(221, 215, 204, 0.72);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 7px solid var(--teal);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.top-nav,
.site-footer nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.hero-section,
.test-section,
.report-section,
.doc-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 58px 0 68px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead,
.report-copy p,
.doc-content p {
  color: var(--muted);
  font-size: 17px;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
}

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

.primary-action,
.secondary-action,
.answer-button {
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}

.primary-action {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 107, 119, 0.22);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.76);
  color: var(--ink);
}

.hero-panel,
.test-shell,
.feature-grid article,
.doc-content {
  border: 1px solid rgba(221, 215, 204, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.orbital-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 107, 119, 0.88), rgba(107, 143, 132, 0.88)),
    linear-gradient(135deg, #176b77, #6b8f84);
  color: #fff;
}

.orbital-card p {
  margin-bottom: 6px;
  opacity: 0.78;
}

.orbital-card strong {
  font-size: 25px;
  line-height: 1.25;
}

.status-dot {
  width: 13px;
  height: 13px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(197, 164, 91, 0.22);
}

.mood-meter,
.mini-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 245, 239, 0.64);
}

.mood-meter span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e1d8;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.test-section,
.report-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.test-shell {
  padding: clamp(20px, 4vw, 34px);
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #e6e1d8;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--coral));
  transition: width 260ms ease;
}

.step-label,
.result-kicker,
.muted {
  color: var(--muted);
}

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

.answer-button {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.answer-button:hover {
  border-color: rgba(23, 107, 119, 0.5);
  box-shadow: 0 12px 24px rgba(32, 36, 42, 0.08);
  transform: translateY(-1px);
}

.loading-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--muted);
}

.loader {
  width: 44px;
  height: 44px;
  border: 4px solid #e5e1d8;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-state {
  max-width: 760px;
}

.result-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.result-grid div {
  padding: 18px;
  border-radius: 8px;
  background: #f2f6f3;
}

.result-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.button-reset {
  font: inherit;
}

.report-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 176px;
  padding: 22px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.doc-page {
  min-height: calc(100vh - 174px);
  padding: 58px 0 76px;
}

.doc-content {
  max-width: 840px;
  padding: clamp(24px, 5vw, 52px);
}

.doc-content h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.doc-content h2 {
  margin-top: 32px;
  font-size: 22px;
}

.contact-card {
  max-width: 680px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f6f3;
}

.contact-row span {
  color: var(--muted);
}

.contact-row a {
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(221, 215, 204, 0.86);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

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

  .top-nav,
  .site-footer nav {
    flex-wrap: wrap;
  }

  .hero-section,
  .report-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 42px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .test-section,
  .report-section,
  .doc-page {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
