@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --ink: #0E0E10;
  --flame: #FF4B1F;
  --bone: #F5F1E8;
  --card: #141417;
  --line: #2a2a2f;
  --mute: #a39e94;
  --head: 'Lexend Mega', 'Public Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --body: 'Public Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -12%;
  z-index: -2;
  background:
    radial-gradient(46% 38% at 80% 8%, rgba(255, 75, 31, 0.30), transparent 72%),
    radial-gradient(58% 46% at 6% 74%, rgba(245, 241, 232, 0.09), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

::selection { background: var(--flame); color: var(--ink); }

a { color: inherit; }

img { max-width: 100%; height: auto; }

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.stripe-brand {
  font-family: var(--head);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--flame);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.burger:hover { border-color: var(--flame); color: var(--flame); }

.burger-mark {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.brandbar {
  padding: 6px 16px 10px;
  max-height: 96px;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mast.thin .brandbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  display: inline-block;
  font-family: var(--head);
  font-size: clamp(1.35rem, 4.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--bone);
}

.logo img { display: block; max-height: 46px; width: auto; }

.rail {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 12px 8px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail p {
  display: flex;
  gap: 6px;
  margin: 0;
  width: max-content;
}

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 16px;
  color: var(--mute);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rail a:hover,
.rail a:focus-visible {
  color: var(--ink);
  background: var(--flame);
  border-color: var(--flame);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--flame);
}

.deck {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  gap: 22px;
  padding: 72px 20px 40px;
  background: var(--ink);
  transform: translateY(-101%);
  transition: transform 0.55s cubic-bezier(0.72, 0, 0.18, 1);
  will-change: transform;
}

.deck.on { transform: translateY(0); }

.deck nav p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.deck a {
  display: block;
  min-height: 44px;
  padding: 10px 6px;
  font-family: var(--head);
  font-size: clamp(1.1rem, 4.2vw, 1.7rem);
  line-height: 1.35;
  text-decoration: none;
  color: var(--bone);
  border-bottom: 1px solid var(--line);
}

.deck a:hover { color: var(--flame); }

.deck-brand {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--flame);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 42px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 60px;
}

.flow { min-width: 0; }

.flow > article {
  margin-bottom: 24px;
  padding: 30px 24px;
  background: var(--card);
  border-radius: 28px;
  border-bottom: 3px solid var(--flame);
  scroll-margin-top: 108px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.flow > article:hover { border-bottom-color: var(--bone); }

.flow > article.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 45vh;
  padding: 76px 0 44px;
  background: transparent;
  border-bottom: 0;
  margin-bottom: 8px;
}

.flow > article.lede {
  padding: 0 0 28px;
  background: transparent;
  border-bottom: 0;
  scroll-margin-top: 108px;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--head);
  font-size: clamp(2.05rem, 8.4vw, 5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  transform: translate3d(0, calc(var(--par, 0px) * 0.55), 0);
  will-change: transform;
}

.hero .desc {
  max-width: 50ch;
  margin: 0;
  color: var(--mute);
  font-size: 17px;
  transform: translate3d(0, calc(var(--par, 0px) * 0.3), 0);
  will-change: transform;
}

.badge {
  position: absolute;
  top: 12px;
  right: 2px;
  margin: 0;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--flame);
  background: rgba(14, 14, 16, 0.66);
  border: 2px solid var(--flame);
  border-radius: 999px;
  transform: rotate(-5deg);
}

.flow h2 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.lede h2 { color: var(--flame); }

.flow h3 {
  margin: 26px 0 10px;
  font-family: var(--head);
  font-size: 1.1rem;
  line-height: 1.4;
}

p.subtitle {
  margin: 0 0 18px;
  color: var(--mute);
  max-width: 52ch;
}

.flow p { margin: 0 0 16px; }

.flow p:last-child { margin-bottom: 0; }

.flow a {
  color: var(--flame);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow img { border-radius: 18px; display: block; }

.flow ul,
.flow ol { padding-left: 1.25em; margin: 0 0 16px; }

.flow li { margin-bottom: 8px; }

.flow blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--flame);
  color: var(--mute);
}

.side {
  position: sticky;
  top: 108px;
  padding: 20px 16px;
  background: rgba(20, 20, 23, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  border-bottom: 3px solid var(--flame);
}

.side h3 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--flame);
}

.side-list { display: grid; }

.side-list a {
  display: block;
  min-height: 44px;
  padding: 11px 8px;
  font-size: 16px;
  text-decoration: none;
  color: var(--bone);
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s, background 0.2s;
}

.side-list a:hover { color: var(--ink); background: var(--bone); }

footer {
  border-top: 1px solid var(--line);
  padding: 0 16px 36px;
}

.fcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1148px;
  margin: 36px auto;
  padding: 28px 24px;
  background: var(--flame);
  color: var(--ink);
  border-radius: 28px;
}

.fcta-b {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.fcta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 16px;
  text-decoration: none;
  color: var(--bone);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.fcta a:hover { transform: translateY(-2px); }

.fgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 26px;
  max-width: 1148px;
  margin: 0 auto;
}

.fmark {
  font-family: var(--head);
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.flinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px;
}

.flinks dl { margin: 0; }

.flinks dt {
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--flame);
}

.flinks dd { margin: 0; }

.flinks dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--bone);
}

.flinks dd a:hover { color: var(--flame); }

.fbar {
  margin: 30px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--mute);
}

.totop {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bone);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.totop.on { opacity: 1; transform: none; pointer-events: auto; }

.js .flow > article:not(.in) { opacity: 0; transform: translateY(32px); }

.js .flow > article {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease;
  will-change: opacity, transform;
}

.js .flow > article > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .flow > article.in { opacity: 1; transform: none; }

.js .flow > article.in > * { opacity: 1; transform: none; }

.js .flow > article.in > *:nth-child(2) { transition-delay: 0.06s; }
.js .flow > article.in > *:nth-child(3) { transition-delay: 0.12s; }
.js .flow > article.in > *:nth-child(4) { transition-delay: 0.18s; }
.js .flow > article.in > *:nth-child(5) { transition-delay: 0.24s; }
.js .flow > article.in > *:nth-child(n + 6) { transition-delay: 0.3s; }

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 12px 14px 48px;
  }

  .side { position: static; order: 2; }

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

@media (max-width: 560px) {
  body { font-size: 17px; }

  .flow > article {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .flow > article.hero { padding: 78px 0 36px; }

  .badge { right: 0; font-size: 14px; padding: 6px 12px; }

  .fcta { padding: 22px 18px; border-radius: 22px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .flow > article,
  .js .flow > article > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero h1,
  .hero .desc { transform: none !important; }

  .deck { transition: none; }
  .brandbar { transition: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
