:root {
  color-scheme: dark;
  --bg: #171a18;
  --panel: #202421;
  --line: #373d38;
  --text: #f2f4f3;
  --muted: #b5bdb6;
  --brand: #ff8a24;
  --ink: #1a0e00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 5px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px; background: var(--panel); }
.shell { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 3; background: #171a18f5; border-bottom: 1px solid var(--line); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 800; letter-spacing: -.055em; }
.brand img { border-radius: 8px; }
.nav-links, .footer > div { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .footer a:hover, .text-link:hover { color: var(--brand); }
.nav-action { border: 1px solid #535b53; border-radius: 999px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.nav-action span { margin-left: 5px; color: var(--brand); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(570px, 50vw, 900px);
  padding-block: 72px 116px;
  background: #171a18;
}
.hero-content { position: relative; z-index: 1; pointer-events: none; }
.hero-copy { max-width: 660px; pointer-events: auto; }
.hero .lead { color: #f1ede7; text-shadow: 0 1px 8px #171a18a0; }
.hero .secondary { border-color: #ffffff80; background: #171a184d; }
.kicker { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .06em; }
.kicker > span { width: 8px; height: 8px; background: currentColor; border-radius: 50%; flex: none; }
h1 { margin-block: 20px; font-size: clamp(36px, 4.1vw, 64px); line-height: 1.2; letter-spacing: -.055em; }
h1 em { color: var(--brand); font-style: normal; }
.lead { color: var(--muted); max-width: 32em; font-size: 16px; }
.actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-download { margin-top: 24px; }
.app-store-badge { display: inline-flex; border-radius: 9px; }
.app-store-badge img { width: 144px; height: auto; }
.hero-download .app-store-badge img { width: 132px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; gap: 12px; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; }
.primary { color: var(--ink); background: var(--brand); }
.primary:hover { background: #ffa04d; }
.secondary { border: 1px solid #535b53; }
.secondary:hover, .nav-action:hover { border-color: var(--brand); }
.demo { position: absolute; inset: 0; }
.motion-stage { position: absolute; inset: 0; overflow: hidden; }
.motion-stage img {
  position: absolute;
  inset: 0 0 auto auto;
  width: auto;
  height: 100%;
  max-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.motion-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #151815f7 0%, #171a18dc 26%, #171a1899 44%, #171a180d 69%),
    linear-gradient(0deg, #171a18b3 0%, transparent 28%);
}
.demo figcaption {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.demo figcaption strong { display: block; color: var(--text); font-size: 15px; }
.demo-caption { display: grid; gap: 1px; text-shadow: 0 1px 5px #171a18; }
.motion-controls { display: flex; pointer-events: auto; }
.motion-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.motion-controls button::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #171a1866;
}
.motion-controls button:hover::before { border-color: var(--brand); }
.motion-controls button[aria-pressed="true"]::before { border-color: var(--brand); background: var(--brand); }
.section { padding-block: 62px; }
#plans { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 26px; }
h2 { font-size: clamp(31px, 3.45vw, 49px); line-height: 1.2; letter-spacing: -.045em; margin-top: 10px; }
.section-head > p, .plan-card > p, .steps p, .awards p:not(.kicker), .gentle details p, .questions p { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { border: 1px solid var(--line); background: var(--panel); border-radius: 19px; padding: 21px; }
.plan-main { background: #2d241b; border-color: #87552d; }
.plan-card .plan-label, .steps li > span { color: var(--brand); font-size: 12px; font-weight: 700; }
.plan-card h3 { font-size: clamp(18px, 2vw, 25px); line-height: 1.3; margin: 10px 0; }
.plan-card > p:not(.plan-label), .plan-card details, .steps p { font-size: 14px; }
.plan-card details { margin-top: 16px; border-top: 1px solid #ffffff21; padding-top: 12px; }
summary { cursor: pointer; }
details p, details ol, details ul { margin: 9px 0 0; }
details ol, details ul { padding-left: 22px; }
.catalog { background: #1d211e; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { color: var(--text); background: transparent; border: 1px solid #535b53; border-radius: 999px; padding: 7px 13px; min-height: 40px; font-size: 13px; }
.filters button:hover { border-color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--ink); border-color: var(--brand); font-weight: 700; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.course { border: 1px solid var(--line); background: var(--bg); border-radius: 16px; overflow: hidden; }
.course img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #2c332d; }
.course > div { padding: 12px 14px 15px; }
.course p { color: var(--muted); font-size: 12px; }
.course h3 { font-size: 16px; line-height: 1.45; margin-top: 3px; }
.text-link { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 14px 0; border-top: 1px solid var(--line); }
.steps h3 { margin: 5px 0 4px; }
.awards { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 18px; margin-top: 29px; border-radius: 22px; padding: 26px; background: radial-gradient(ellipse at 83% 50%, #463526, #232522 66%); border: 1px solid #504438; }
.awards h3 { font-size: clamp(21px, 2.6vw, 34px); letter-spacing: -.03em; margin: 8px 0; }
.medals { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 7px; }
.medals img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gentle { padding-block: 28px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; border-block: 1px solid var(--line); }
.gentle h2 { font-size: clamp(24px, 2.6vw, 36px); }
.gentle details { padding-top: 8px; }
.faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 25px; }
.faq .text-link { display: inline-block; }
.questions details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-block: 22px 30px; }
.footer > div { flex-wrap: wrap; gap: 10px 20px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 52px); }
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  html { scroll-padding-top: 70px; }
  .shell { width: calc(100% - 36px); }
  .nav { min-height: 58px; }
  .nav-links { display: none; }
  .hero { min-height: clamp(640px, 125vw, 740px); align-items: end; padding-block: 40px 94px; }
  .motion-stage img {
    width: 100%;
    height: min(76%, 112vw);
    object-fit: cover;
    object-position: 78% center;
    mask-image: linear-gradient(0deg, transparent, #000 32%);
  }
  .motion-stage img[src$="hero-warrior.jpg"] { height: min(76%, 100vw); object-position: right center; }
  .motion-stage::after { background: linear-gradient(0deg, #171a18 12%, #171a18bc 35%, transparent 65%); }
  .demo figcaption { justify-content: space-between; bottom: 21px; gap: 9px; }
  h1 { font-size: clamp(33px, 8.3vw, 52px); margin-block: 12px; }
  .lead { font-size: 15px; }
  .actions { margin-top: 17px; }
  .hero-download { margin-top: 20px; }
  .section { padding-block: 40px; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 18px; }
  .plan-grid, .steps, .awards, .gentle, .faq { grid-template-columns: 1fr; }
  .plan-card { padding: 16px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .course > div { padding: 9px 10px 12px; }
  .course h3 { font-size: 14px; }
  .steps { gap: 1px; }
  .awards { padding: 18px; }
  .medals { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
