:root {
  --ink: #15402f;
  --muted: #7c9089;
  --green: #009859;
  --green-dark: #048e44;
  --green-light: #12d16b;
  --paper: #fdfffe;
  --wash: #f2f8f5;
  --line: #e5eeea;
  --line-strong: #dce6e1;
  --white: #ffffff;
  --red: #ff383c;
  --red-wash: #fdf4f2;
  --amber: #ec9418;
  --shadow: 0 28px 70px rgba(12, 49, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 10px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(253, 255, 254, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
}

.brand img {
  width: 132px;
  height: auto;
  object-fit: contain;
}

.header-links,
.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-links > a:not(.app-link) {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-links > a:not(.app-link):hover {
  color: #50a96f;
}

.app-link,
.email-row button,
.primary-button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 20px rgba(8, 121, 70, 0.2);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.app-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
}

.app-link:hover,
.email-row button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 12px 24px rgba(8, 121, 70, 0.25);
}

.primary-button:disabled {
  transform: none;
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
}

.hero {
  overflow: hidden;
  padding: 76px 24px 84px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 209, 107, 0.18), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(18, 209, 107, 0.12), transparent 25%),
    #0c3124;
}

.eyebrow,
.section-label {
  color: #50c67d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero > p {
  margin: 16px auto 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 25px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-meta span {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.gate-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1160px;
  margin: -40px auto 70px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gate-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.gate-card p {
  margin: 0;
  color: var(--muted);
}

#email-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.email-row {
  display: flex;
  gap: 10px;
}

.email-row input {
  min-width: 0;
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #cbd9cd;
  border-radius: 999px;
  outline: none;
  background: #fbfdfb;
  transition:
    border 160ms ease,
    box-shadow 160ms ease;
}

.email-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(8, 121, 70, 0.12);
}

.email-row button {
  padding: 14px 22px;
}

.form-message,
.selection-message {
  min-height: 26px;
  margin-top: 8px !important;
  color: var(--red) !important;
  font-size: 13px;
  font-weight: 650;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 90px;
}

.story-panel,
.quiz-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(26, 71, 44, 0.08);
}

.story-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 132px);
  overflow: hidden;
  overflow-y: auto;
}

.story-intro {
  padding: 28px 30px;
  background: var(--wash);
}

.story-intro h2 {
  max-width: 690px;
  margin: 10px 0 24px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: #465a4d;
  font-size: 16px;
}

.story-panel > section {
  padding: 30px;
  border-top: 1px solid var(--line);
}

.story-panel h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.story-panel h3 span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.story-panel p {
  color: #35463c;
  font-size: 15px;
}

.story-panel strong {
  color: var(--green-dark);
}

blockquote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 4px solid #49bd76;
  border-radius: 0 16px 16px 0;
  color: #235d3c;
  background: var(--wash);
  font-size: 14px;
  font-weight: 700;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.term-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  background: var(--wash);
}

.term-grid b {
  color: var(--green);
}

.term-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quiz-panel {
  position: relative;
}

.quiz-card {
  position: sticky;
  top: 104px;
  padding: clamp(24px, 3vw, 36px);
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.progress-track {
  height: 7px;
  margin: 12px 0 40px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eee8;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #49bd76, var(--green));
  transition: width 300ms ease;
}

.question-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#question-text {
  min-height: 0;
  margin: 0 0 24px;
  padding-left: 15px;
  border-left: 3px solid var(--green);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.option {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  min-height: 0;
  padding: 15px 17px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition:
    transform 150ms ease,
    border 150ms ease,
    background 150ms ease;
}

.option:hover {
  transform: none;
  border-color: var(--line-strong);
  background: var(--wash);
}

.option.is-selected {
  border-color: var(--ink);
  background: var(--wash);
  box-shadow: none;
}

.option-letter {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--wash);
  font-size: 13px;
  font-weight: 800;
}

.option.is-selected .option-letter {
  color: var(--white);
  background: var(--ink);
}

.option-text {
  padding-top: 2px;
  line-height: 1.55;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.text-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.primary-button {
  min-width: 150px;
  padding: 12px 22px;
}

.result-view {
  text-align: left;
}

.experience.showing-result {
  display: block;
  max-width: 820px;
}

.experience.showing-result .story-panel {
  display: none;
}

.experience.showing-result .quiz-card {
  position: static;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.experience.showing-result .quiz-topline,
.experience.showing-result .progress-track {
  display: none;
}

.result-score-card {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 42px);
  align-items: center;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  color: var(--white);
  background: #15402f;
  box-shadow: var(--shadow);
}

.score-total {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  gap: 5px;
}

.score-total strong {
  color: var(--green-light);
  font-size: clamp(68px, 12vw, 100px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.score-total span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 30px;
  font-weight: 700;
}

.result-copy {
  flex: 1 1 220px;
}

.result-copy > span {
  color: var(--green-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-copy h2 {
  margin: 7px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.result-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.review-heading {
  margin: 42px 0 18px;
  font-size: 23px;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
  text-align: left;
}

.review-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.review-item.is-wrong {
  border-color: var(--line);
  background: var(--white);
}

.review-item h3 {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 7px;
  font-size: 15px;
}

.review-status {
  display: inline-flex;
  height: 26px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0;
  line-height: 1;
}

.review-item.is-wrong .review-status {
  background: var(--red);
}

.review-status::before {
  content: "✓";
  font-size: 16px;
  font-weight: 900;
}

.review-item.is-wrong .review-status::before {
  content: "×";
  font-size: 19px;
}

.review-question {
  min-width: 0;
  font-size: 16px;
  line-height: 1.55;
}

.review-options {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px 42px;
}

.review-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fafbfa;
  font-size: 13px;
}

.review-option.is-correct {
  border-color: var(--green);
  background: var(--wash);
}

.review-option.is-yours-wrong {
  border-color: var(--red);
  background: var(--red-wash);
}

.review-option-letter {
  width: 15px;
  color: var(--muted);
  font-weight: 800;
}

.review-option-text {
  flex: 1;
}

.review-option-label {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.review-option.is-yours-wrong .review-option-label {
  color: var(--red);
}

.review-explanation {
  margin: 0 0 0 42px;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--muted);
  background: #fafbfa;
  font-size: 13px;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .experience {
    grid-template-columns: 1fr;
  }

  .quiz-panel {
    grid-row: 1;
  }

  .quiz-card {
    position: static;
  }

  .story-panel {
    position: static;
    max-height: 48vh;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 8px 16px;
  }

  .brand img {
    width: 104px;
  }

  .app-link {
    padding: 9px 14px;
    font-size: 12px;
  }

  .header-links {
    gap: 8px;
  }

  .header-links > a:not(.app-link) {
    display: none;
  }

  .hero {
    padding: 55px 18px 72px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .gate-card {
    grid-template-columns: 1fr;
    margin: -30px 14px 45px;
    padding: 25px;
    border-radius: 22px;
  }

  .email-row {
    flex-direction: column;
  }

  .experience {
    padding: 0 12px 50px;
  }

  .story-panel,
  .quiz-card {
    border-radius: 20px;
  }

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

  .option {
    min-height: 0;
  }

  #question-text {
    min-height: 0;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 6px 18px;
  }
}
