:root {
  --bg: #070708;
  --bg-2: #101114;
  --ink: #f6f1e7;
  --muted: #a39b90;
  --line: rgba(246, 241, 231, 0.12);
  --gold: #e4c27a;
  --gold-2: #f3dfb0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --serif: "Xingmu Display", "Songti SC", "Noto Serif SC", Palatino, serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@font-face {
  font-family: "Xingmu Display";
  src: url("../fonts/display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-anchor: none; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(228, 194, 122, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(120, 86, 48, 0.18), transparent 55%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.18;
  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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.nav, main, footer { position: relative; z-index: 1; }
.topband { position: relative; width: 100%; }
.topband .nav, .topband .hero { position: relative; z-index: 1; max-width: 1120px; margin-left: auto; margin-right: auto; }
.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.nav nav {
  display: flex;
  gap: 8px;
  color: #f3efe6;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.42em;
}
.nav nav a:hover { color: var(--ink); }

.hero, .about, .gallery, .download, footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 72px;
  text-align: center;
}
.hero-copy { position: relative; z-index: 1; width: min(720px, 100%); }
.hero-copy h1, .hero-copy .tagline, .hero-copy .eyebrow, .hero-copy .meta {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}
.app-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: 0.08em;
}
.tagline {
  max-width: 520px;
  margin: 22px auto 0;
  font-size: 22px;
  color: var(--gold-2);
}
.hero-actions, .download-card { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-top: 32px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.btn-gold { background: linear-gradient(180deg, #f0d7a2, #c79a4d); color: #23180b; }
.btn-line { border-color: var(--line); background: rgba(255,255,255,0.03); }
.is-disabled { opacity: 0.55; }
.meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 36px 0 0;
}
.meta div { min-width: 72px; }
.meta dt { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.meta dd { margin: 4px 0 0; font-size: 16px; }

.still-field, .wash { pointer-events: none; }
.still-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}
.still {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.9) brightness(0.78) contrast(1.05);
}

.about, .gallery { padding-top: 40px; padding-bottom: 30px; }
.gallery {
  position: relative;
  isolation: isolate;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.wash {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  overflow: hidden;
  opacity: 0.62;
  filter: saturate(0.75) brightness(0.78);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
.wash img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.gallery .section-head,
.gallery .shots {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section-head p, .download .eyebrow { margin-bottom: 8px; }
.section-head h2, .download h2, .lead {
  font-family: var(--serif);
  font-weight: 400;
}
.section-head h2, .download h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.02em;
}
.lead {
  max-width: 760px;
  margin: 22px 0 8px;
  font-size: 22px;
  line-height: 1.7;
  color: #ebe4d8;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  min-height: 210px;
}
.feature span { color: var(--gold); letter-spacing: 0.14em; font-size: 13px; }
.feature h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.shot {
  margin: 0;
  padding: 12px;
  border-radius: 24px;
  background: rgba(16, 17, 20, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.shot-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: #050505;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
}
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.45s ease; }
.shot-open:hover img { transform: scale(1.04); }
.shot figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px 6px; }
.shot strong { font-size: 16px; }
.shot span, .empty-note, .download-card p, footer { color: var(--muted); }
.empty-note { grid-column: 1 / -1; }

.download {
  margin-top: 24px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(228,194,122,0.12), transparent 42%),
    #101114;
}
.download p { color: var(--muted); max-width: 520px; }
.download-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.download-card .btn { width: 100%; }
.download-card p { margin: 4px 0 0; text-align: center; }

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 48px 20px 28px;
  background: rgba(0,0,0,0.86);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: min(78vh, 860px);
  width: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.lightbox p { margin: 14px 0 0; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  body {
    -webkit-text-size-adjust: 100%;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: max(16px, env(safe-area-inset-top)) 16px 0;
  }
  .brand { font-size: 22px; letter-spacing: 0.08em; }
  .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
  .app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .nav nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
    font-size: 16px;
    letter-spacing: 0.16em;
  }
  .nav nav a { padding: 8px 0; }
  .hero {
    min-height: calc(100svh - 132px);
    padding: 36px 20px 56px;
  }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  h1 { font-size: 68px; letter-spacing: 0.12em; }
  .tagline { font-size: 18px; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .meta { gap: 18px; }
  .meta div { min-width: 0; }
  .about, .gallery .section-head, .gallery .shots, footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .lead { font-size: 17px; }
  .features, .download { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 20px; }
  .section-head h2, .download h2 { font-size: 32px; }
  .shots {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78%; scroll-snap-align: center; }
  .wash { grid-template-columns: 1fr 1fr; }
  .wash img { min-height: 0; }
  .gallery { overflow: hidden; }
  .download {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px 18px;
  }
  footer {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .lightbox { padding: 72px 12px 24px; }
  .lightbox img { max-width: 100%; }
}
