:root {
  color-scheme: light;
  --bg: #f6fcfb;
  --paper: #ffffff;
  --paper-soft: #f4fbfa;
  --ink: #102433;
  --muted: #58717d;
  --line: rgba(19, 116, 112, 0.18);
  --teal: #0fb7a6;
  --teal-dark: #087e78;
  --teal-soft: rgba(15, 183, 166, 0.13);
  --cyan: #4db8ff;
  --blue: #3588e8;
  --yellow: #ffd33d;
  --orange: #ff8a2f;
  --red: #f05f57;
  --green: #62b96f;
  --shadow: 0 20px 46px rgba(16, 36, 51, 0.1);
  --shadow-soft: 0 10px 24px rgba(16, 36, 51, 0.07);
  --radius: 8px;
  --max: 1220px;
  --font: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 78% 7%, rgba(77, 184, 255, 0.18), transparent 28%),
    radial-gradient(circle at 18% 24%, rgba(15, 183, 166, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 50%, #eefaf8 100%);
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a,
button {
  font: inherit;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

button {
  border: 0;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar[data-elevated="true"] {
  box-shadow: 0 12px 30px rgba(16, 36, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), #45d9c7);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 183, 166, 0.25);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  position: relative;
  padding: 10px 2px;
  color: #263f4c;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal-soft);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--teal-dark);
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 78px 28px;
  scroll-margin-top: 88px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding-top: 58px;
  padding-bottom: 54px;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.04;
  font-weight: 900;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
}

.overview-panel {
  max-width: 690px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.overview-label {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.overview-meta div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.overview-meta dt,
.overview-meta dd {
  margin: 0;
  font-weight: 900;
}

.overview-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.overview-meta dd {
  color: var(--teal-dark);
  font-size: 18px;
}

.play-intro {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.play-intro h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
  text-align: left;
}

.play-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.finish-badge {
  position: absolute;
  right: 22px;
  top: 22px;
  min-width: 142px;
  padding: 13px 16px;
  border: 1px solid rgba(16, 36, 51, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.finish-badge span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.finish-badge strong {
  display: block;
  color: #1d2e34;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 0;
}

.section-title {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.obstacle-card,
.state-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.step-card {
  position: relative;
  min-height: 324px;
  padding: 24px;
  overflow: hidden;
}

.step-no {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.step-visual {
  display: grid;
  height: 128px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 183, 166, 0.12), rgba(77, 184, 255, 0.1)),
    var(--paper-soft);
}

.step-visual svg {
  width: 122px;
  height: 92px;
  color: var(--teal-dark);
  fill: rgba(15, 183, 166, 0.24);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.step-visual.finish svg {
  color: #e0a000;
  fill: rgba(255, 211, 61, 0.22);
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

.motion-goal {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.obstacle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.obstacle-card {
  min-height: 260px;
  padding: 22px 18px;
}

.obstacle-card svg {
  width: 86px;
  height: 86px;
  margin-bottom: 20px;
  fill: rgba(15, 183, 166, 0.13);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.obstacle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.obstacle-card.blue {
  color: var(--blue);
}

.obstacle-card.orange {
  color: var(--orange);
}

.obstacle-card.red {
  color: var(--red);
}

.obstacle-card.green {
  color: var(--green);
}

.obstacle-card.cyan {
  color: var(--cyan);
}

.obstacle-card h3 {
  color: var(--ink);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.state-card {
  min-height: 158px;
  padding: 20px 16px;
}

.state-card h3 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 18px;
}

.state-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.asset-card {
  min-height: 236px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.asset-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.asset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.production {
  padding-top: 36px;
}

.production-panel {
  display: grid;
  min-height: 260px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 211, 61, 0.16), rgba(255,255,255,0.94) 46%),
    var(--paper);
  box-shadow: var(--shadow-soft);
}

.production-panel h2 {
  text-align: left;
}

.production-panel p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.production-list {
  display: grid;
  gap: 10px;
  max-width: 740px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.production-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.production-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

  .hero-art img {
    min-height: 430px;
  }

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

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

}

@media (max-width: 820px) {
  .topbar {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }

  .nav-links a::after {
    display: none;
  }

  .section {
    padding: 58px 16px;
    scroll-margin-top: 78px;
  }

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

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .play-intro p,
  .section-title p {
    font-size: 16px;
  }

  .overview-panel {
    padding: 22px;
  }

  .hero-art img {
    min-height: 350px;
  }

  .finish-badge {
    position: static;
    margin-top: 10px;
  }

  .motion-grid,
  .obstacle-grid,
  .state-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .production-panel {
    padding: 24px;
  }

  .production-panel p {
    font-size: 17px;
  }

  .production-list li {
    font-size: 16px;
  }

}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
