:root {
  --bg: #fffaf2;
  --bg-soft: #fff4df;
  --paper: rgba(255, 255, 255, 0.8);
  --paper-strong: #ffffff;
  --text: #2f2a26;
  --muted: #6e6258;
  --line: rgba(83, 61, 33, 0.12);
  --primary: #f08a24;
  --primary-deep: #d7680b;
  --green: #4d8a5f;
  --shadow: 0 20px 60px rgba(133, 96, 39, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 205, 126, 0.28), transparent 28%),
    radial-gradient(circle at right 20%, rgba(155, 214, 174, 0.22), transparent 22%),
    linear-gradient(180deg, #fffaf4 0%, #fff9f0 42%, #fff6ec 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid rgba(110, 98, 88, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: linear-gradient(145deg, #f7ae52 0%, #ea871e 62%, #d96a12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 28px rgba(222, 111, 19, 0.24);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 248, 234, 0.32), transparent 18%),
    radial-gradient(circle at 26% 88%, rgba(156, 83, 10, 0.16), transparent 28%);
}

.brand-mark-book,
.brand-mark-page,
.brand-mark-spark {
  position: absolute;
  display: block;
}

.brand-mark-book {
  left: 14px;
  top: 16px;
  width: 30px;
  height: 24px;
  border: 2.6px solid rgba(255, 255, 255, 0.96);
  border-radius: 10px 10px 8px 8px;
  border-bottom-width: 3px;
  transform: perspective(40px) rotateX(8deg);
}

.brand-mark-book::before,
.brand-mark-book::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 11px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-mark-book::before {
  left: 3px;
  clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%);
}

.brand-mark-book::after {
  right: 3px;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%);
}

.brand-mark-page {
  left: 27px;
  top: 19px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: rgba(223, 117, 17, 0.92);
  z-index: 1;
}

.brand-mark-spark {
  right: 10px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.95);
  box-shadow:
    0 0 0 3px rgba(255, 248, 234, 0.12),
    -18px 23px 0 -6px rgba(255, 248, 234, 0.7);
}

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

.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(240, 138, 36, 0.12);
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.quote-panel,
.journey-step,
.module-card,
.framework-card,
.stack-item,
.landing-copy,
.scene-card,
.closing,
.gallery figure {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 238, 0.92));
  border-radius: var(--radius-xl);
  padding: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-text,
.section-head p,
.scene-card p,
.journey-step p,
.module-card p,
.stack-item p,
.framework-card span,
.landing-copy li,
.quote-panel strong,
.closing p,
.gallery figcaption {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  margin-top: 18px;
  font-size: 17px;
  max-width: 46em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f7a53d 0%, #da6d12 100%);
  box-shadow: 0 14px 30px rgba(219, 110, 17, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(111, 87, 51, 0.14);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags li,
.closing-points span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(109, 85, 54, 0.12);
  color: var(--text);
}

.hero-photo {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 10;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-card p,
.quote-panel p,
.framework-card p {
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card strong,
.quote-panel strong,
.framework-card h3 {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.35;
}

.hero-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 34px 0 92px;
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  inset: 24px 0;
  background: linear-gradient(180deg, rgba(255, 241, 221, 0.75), rgba(255, 251, 244, 0.6));
  z-index: -1;
}

.section-head {
  max-width: 860px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-head p:last-child {
  margin-top: 14px;
  font-size: 17px;
}

.scene-grid,
.journey-grid,
.module-grid,
.stack-grid,
.landing-grid,
.stat-grid,
.gallery {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

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

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

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

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

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

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

.scene-card,
.journey-step,
.module-card,
.stack-item,
.stat-card,
.landing-copy {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-no,
.journey-step span,
.module-head span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(240, 138, 36, 0.12);
  color: var(--primary-deep);
  font-weight: 800;
}

.scene-card h3,
.journey-step h3,
.module-head h3,
.stack-item h3,
.stat-card strong,
.landing-copy h3 {
  margin-top: 16px;
  font-size: 24px;
}

.scene-card p,
.journey-step p,
.stack-item p {
  margin-top: 12px;
  font-size: 16px;
}

.quote-panel {
  margin-top: 24px;
  padding: 30px 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 244, 224, 0.95), rgba(255, 255, 255, 0.9));
}

.module-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.module-card p {
  margin-top: 18px;
  font-size: 16px;
}

.module-card ul,
.landing-copy ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.module-card li,
.landing-copy li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
}

.module-card li::before,
.landing-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.stat-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 238, 0.9));
}

.stat-card span {
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
}

.stat-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.framework-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 30px;
}

.framework-card {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  padding: 28px 30px;
}

.framework-card-strong {
  background: linear-gradient(135deg, rgba(242, 136, 31, 0.96), rgba(201, 96, 12, 0.96));
  color: #fff;
}

.framework-card-strong p,
.framework-card-strong span {
  color: rgba(255, 255, 255, 0.82);
}

.stack-item span {
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery figure {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 18px 18px 22px;
  font-size: 15px;
}

.closing {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 229, 0.9));
}

.closing h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.22;
}

.closing p {
  margin-top: 16px;
  font-size: 17px;
}

.closing-points {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
}

.site-footer {
  padding: 0 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.footer-inner span {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .framework-grid,
  .closing {
    grid-template-columns: 1fr;
  }

  .scene-grid,
  .journey-grid,
  .module-grid,
  .stack-grid,
  .landing-grid,
  .stat-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100vw - 28px, 100%);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-visual,
  .scene-card,
  .journey-step,
  .module-card,
  .framework-card,
  .stack-item,
  .landing-copy,
  .closing,
  .quote-panel {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .scene-grid,
  .journey-grid,
  .module-grid,
  .stack-grid,
  .landing-grid,
  .stat-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-head h2,
  .closing h2 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
