:root {
  --cream: #f6edda;
  --cream-soft: #fff8e9;
  --paper: #fffbf2;
  --orange: #c55221;
  --orange-dark: #9f3817;
  --amber: #cc8800;
  --ink: #2a1b14;
  --ink-muted: #6a5044;
  --line: rgba(42, 27, 20, 0.28);
  --white: #fffdf7;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.wrap {
  width: min(100%, calc(var(--max) + var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 237, 218, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--amber);
}

.brand-mark::before {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.brand-mark i {
  position: absolute;
  width: 4px;
  height: 26px;
  background: var(--orange);
  transform: rotate(-32deg);
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.features-section {
  position: relative;
  background:
    linear-gradient(rgba(42, 27, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 27, 20, 0.045) 1px, transparent 1px),
    var(--cream);
  background-size: 44px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: clamp(72px, 10vw, 140px);
}

.eyebrow,
.platform-kicker {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-right: 12px;
  background: var(--orange);
  vertical-align: middle;
  content: "";
}

.hero-copy h1,
.section-heading h2,
.contact-layout h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(48px, 7.3vw, 104px);
}

.hero-copy h1 em,
.contact-layout h2 em {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 32px 0 36px;
  color: var(--ink-muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.primary-action,
.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 54px;
  padding: 14px 18px 14px 22px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--amber);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover,
.download-action:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(4px, 4px);
}

.hero-poster {
  position: relative;
  display: flex;
  min-height: 480px;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  background: var(--orange);
  box-shadow: 14px 14px 0 var(--amber);
  overflow: hidden;
}

.poster-index {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}

.poster-orbit {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(72%, 300px);
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.poster-orbit::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
  content: "";
  transform: translate(-50%, -50%);
}

.poster-orbit i {
  position: absolute;
  top: -13%;
  left: 48%;
  width: 10px;
  height: 126%;
  background: var(--cream-soft);
  transform: rotate(-32deg);
}

.hero-poster p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(80px, 10vw, 140px);
}

.feature-card {
  min-height: 290px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--ink);
  background: var(--cream-soft);
}

.feature-card + .feature-card {
  border-left: 0;
}

.feature-card--orange {
  background: var(--orange);
}

.card-number {
  display: block;
  margin-bottom: 52px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.feature-card h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.2;
}

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

.feature-card--orange p {
  color: var(--ink);
}

.download-section {
  padding-block: clamp(84px, 11vw, 144px);
  color: var(--cream-soft);
  background: var(--orange);
}

.eyebrow--light::before {
  background: var(--cream-soft);
}

.section-heading h2,
.contact-layout h2 {
  font-size: clamp(46px, 7vw, 92px);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(52px, 7vw, 88px);
}

.download-card {
  display: flex;
  min-height: 390px;
  padding: clamp(28px, 4vw, 48px);
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--cream-soft);
  box-shadow: 9px 9px 0 var(--ink);
}

.download-card--dark {
  color: var(--cream-soft);
  background: var(--ink);
  box-shadow: 9px 9px 0 var(--amber);
}

.download-card h3 {
  margin: 8px 0;
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
}

.download-card p {
  margin: 18px 0 0;
  color: var(--ink-muted);
}

.download-card--dark p {
  color: rgba(255, 248, 233, 0.7);
}

.download-action {
  width: 100%;
}

.download-action--light {
  border-color: var(--cream-soft);
  color: var(--ink);
  background: var(--cream-soft);
  box-shadow: 6px 6px 0 var(--amber);
}

.contact-section {
  padding-block: clamp(90px, 12vw, 160px);
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(390px, 1.15fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: end;
}

.contact-list {
  border-top: 2px solid var(--ink);
  font-style: normal;
}

.contact-list a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 24px 4px;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  transition: padding-inline 180ms ease, background 180ms ease;
}

.contact-list a:hover {
  padding-inline: 16px;
  background: rgba(204, 136, 0, 0.18);
}

.contact-list span {
  font-size: 13px;
  font-weight: 800;
}

.contact-list strong {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 30px);
  overflow-wrap: anywhere;
}

.contact-list i {
  font-size: 26px;
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--pad);
  border-top: 1px solid rgba(255, 248, 233, 0.3);
  color: var(--cream-soft);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.reveal {
  animation: reveal-up 640ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-poster.reveal {
  animation-delay: 100ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-poster {
    min-height: 380px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card + .feature-card {
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

  .card-number {
    margin-bottom: 28px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 120px;
  }

  .site-header {
    align-items: flex-start;
    min-height: 104px;
    flex-direction: column;
    gap: 4px;
    padding-block: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    min-width: 64px;
    text-align: center;
  }

  .hero-grid {
    gap: 54px;
    padding-block: 64px 76px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 13vw, 64px);
    letter-spacing: -0.045em;
  }

  .hero-lead {
    margin-top: 24px;
  }

  .hero-poster {
    min-height: 320px;
    box-shadow: 8px 8px 0 var(--amber);
  }

  .feature-grid {
    padding-bottom: 84px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 330px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .download-card--dark {
    box-shadow: 6px 6px 0 var(--amber);
  }

  .contact-list a {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
  }

  .contact-list span {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
