:root {
  --ink: #111915;
  --ink-soft: #1b2821;
  --paper: #f4f0e7;
  --paper-muted: #bfc5b9;
  --orange: #ff6f3d;
  --orange-light: #ff9b69;
  --mint: #b9dfb1;
  --line: rgba(244, 240, 231, 0.17);
  --line-dark: rgba(17, 25, 21, 0.16);
  --shadow: 0 28px 80px rgba(3, 7, 5, 0.34);
  --radius-xl: 30px;
  --radius-md: 18px;
  --serif: Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.23;
  background-image: linear-gradient(rgba(244, 240, 231, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 240, 231, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }

.page-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 32px 0; color: var(--paper-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.wordmark-mark { display: grid; width: 22px; height: 22px; place-items: center; color: var(--ink); background: var(--orange); border-radius: 50%; font-size: 14px; letter-spacing: 0; }
.topbar-status { display: inline-flex; align-items: center; gap: 8px; }
.topbar-status i, .build-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px rgba(185, 223, 177, 0.75); }

.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr); gap: clamp(64px, 10vw, 150px); align-items: center; min-height: 650px; padding: 74px 0 120px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 27px; color: var(--orange-light); font-size: 10px; font-weight: 800; letter-spacing: 0.19em; }
.eyebrow-line { width: 42px; height: 1px; background: var(--orange); opacity: 0.8; }
.app-avatar { position: relative; display: grid; width: 92px; height: 92px; margin-bottom: 32px; place-items: center; border: 1px solid rgba(255, 111, 61, 0.55); border-radius: 27px 27px 27px 7px; background: linear-gradient(145deg, rgba(255, 111, 61, 0.28), rgba(255, 111, 61, 0.02)); box-shadow: inset 0 0 30px rgba(255, 111, 61, 0.12), 0 14px 35px rgba(255, 111, 61, 0.08); overflow: hidden; }
.avatar-core { position: relative; z-index: 1; color: var(--paper); font: 400 46px/1 var(--serif); transform: translateY(-2px); }
.avatar-orbit { position: absolute; border: 1px solid rgba(255, 155, 105, 0.7); border-radius: 50%; transform: rotate(-30deg); }
.avatar-orbit-one { width: 122px; height: 48px; }
.avatar-orbit-two { width: 48px; height: 122px; opacity: 0.38; }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 28px; color: var(--paper); font-size: clamp(60px, 7.1vw, 106px); font-weight: 500; letter-spacing: -0.085em; line-height: 0.93; }
h1 em { color: var(--orange); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.08em; }
.hero-description { max-width: 380px; margin-bottom: 38px; color: var(--paper-muted); font-size: 15px; line-height: 1.9; }
.hero-note { display: flex; align-items: center; gap: 13px; color: var(--paper-muted); font-size: 11px; letter-spacing: 0.08em; }
.note-index { color: var(--orange); font-weight: 800; }

.download-column { position: relative; }
.download-card { position: relative; z-index: 1; padding: 32px; color: var(--ink); background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.download-card::before { position: absolute; top: 20px; right: 20px; width: 54px; height: 54px; border-top: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); content: ""; opacity: 0.75; }
.card-topline, .download-card-heading, .file-meta div { display: flex; align-items: center; justify-content: space-between; }
.card-topline { margin-bottom: 47px; color: #6b7468; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }
.download-card-heading { align-items: flex-start; margin-bottom: 30px; }
.download-card-heading h2 { margin-bottom: 7px; font-size: 31px; font-weight: 700; letter-spacing: -0.06em; }
.download-card-heading p { margin-bottom: 0; color: #6b7468; font-size: 13px; }
.file-type { padding: 8px 10px; color: var(--paper); background: var(--ink); border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.file-meta { margin: 0 0 29px; border-top: 1px solid var(--line-dark); }
.file-meta div { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.file-meta dt { color: #7c8679; font-size: 11px; }
.file-meta dd { margin: 0; font-size: 12px; font-weight: 800; }
.download-button { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 19px 0 23px; color: var(--paper); background: var(--orange); border-radius: 13px; box-shadow: 0 12px 28px rgba(255, 111, 61, 0.27); font-size: 15px; font-weight: 800; text-decoration: none; transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.download-button:hover { background: #ff8356; box-shadow: 0 16px 34px rgba(255, 111, 61, 0.36); transform: translateY(-2px); }
.download-button:active { transform: translateY(1px); }
.button-arrow { font-size: 25px; font-weight: 400; }
.copy-link-button { display: block; width: 100%; margin-top: 16px; padding: 0; color: #6b7468; background: none; border: 0; cursor: pointer; font: 700 11px var(--sans); letter-spacing: 0.08em; text-align: center; transition: color 180ms ease; }
.copy-link-button:hover { color: var(--ink); }

.qr-panel { display: flex; align-items: center; gap: 19px; max-width: 295px; margin: -7px 0 0 auto; padding: 19px 20px 19px 18px; color: var(--paper); background: var(--ink-soft); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); transform: rotate(-2deg); }
.qr-frame { display: grid; flex: 0 0 101px; width: 101px; height: 101px; padding: 9px; place-items: center; background: var(--paper); border-radius: 10px; }
.qr-frame img { display: block; width: 83px; height: 83px; }
.qr-copy { min-width: 0; }
.qr-label { display: block; margin-bottom: 10px; color: var(--mint); font-size: 8px; font-weight: 800; letter-spacing: 0.14em; }
.qr-copy p { margin-bottom: 0; color: var(--paper-muted); font-size: 12px; line-height: 1.7; }

.steps-section { padding: 12px 0 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 0; }
.section-heading h2 { margin: 0; color: var(--paper); font: 400 clamp(30px, 4vw, 48px)/1.05 var(--serif); letter-spacing: -0.06em; }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step-card { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, rgba(244, 240, 231, 0.06), rgba(244, 240, 231, 0.02)); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.step-card:hover { border-color: rgba(255, 111, 61, 0.54); background: rgba(255, 111, 61, 0.08); transform: translateY(-3px); }
.step-number { color: var(--orange-light); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.step-icon { display: block; margin: 25px 0 18px; color: var(--orange); font-size: 25px; }
.step-card h3 { margin-bottom: 8px; font-size: 16px; letter-spacing: -0.03em; }
.step-card p { margin-bottom: 0; color: var(--paper-muted); font-size: 12px; line-height: 1.7; }

.footer { display: flex; justify-content: space-between; padding: 27px 0 36px; color: rgba(191, 197, 185, 0.6); border-top: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: 0.16em; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 20; padding: 12px 16px; color: var(--paper); background: var(--ink-soft); border: 1px solid rgba(185, 223, 177, 0.35); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { animation: rise-in 700ms cubic-bezier(.2,.75,.25,1) both; }
.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 180ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 36px, 560px); }
  .topbar { padding: 22px 0; }
  .topbar-status { font-size: 0; }
  .topbar-status i { width: 8px; height: 8px; }
  .hero { display: block; min-height: 0; padding: 54px 0 78px; }
  .hero-copy { margin-bottom: 62px; }
  .app-avatar { width: 76px; height: 76px; margin-bottom: 25px; border-radius: 23px 23px 23px 6px; }
  .avatar-core { font-size: 37px; }
  h1 { margin-bottom: 23px; font-size: clamp(56px, 17vw, 88px); }
  .hero-description { max-width: 330px; margin-bottom: 27px; font-size: 14px; }
  .download-card { padding: 25px 21px; transform: none; }
  .card-topline { margin-bottom: 37px; }
  .download-card-heading h2 { font-size: 27px; }
  .download-button { min-height: 60px; }
  .qr-panel { max-width: none; margin: -3px 12px 0; transform: none; }
  .steps-section { padding-bottom: 55px; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .steps-list { grid-template-columns: 1fr; gap: 10px; }
  .step-card { min-height: 0; padding: 20px; }
  .step-icon { display: inline-block; margin: 18px 15px 0 0; vertical-align: middle; }
  .step-card h3 { display: inline-block; margin: 0; vertical-align: middle; }
  .step-card p { margin: 12px 0 0; }
  .footer { font-size: 8px; }
}

@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; }
}
