:root {
  --red: #ff2442;
  --red-strong: #c90824;
  --red-soft: #fff0f2;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #ececec;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(31, 31, 31, 0.28);
  --header-h: 72px;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -22px rgba(31, 31, 31, 0.45);
  backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 68px;
  height: 32px;
  object-fit: contain;
  transition: filter 0.25s ease;
}

.brand-text {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.site-header.is-stuck .brand-logo { filter: brightness(0) saturate(100%); }
.site-header.is-stuck .brand-text { color: var(--ink); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-header.is-stuck .primary-nav a { color: rgba(31, 31, 31, 0.7); }
.site-header.is-stuck .primary-nav a:hover,
.site-header.is-stuck .primary-nav a:focus-visible { color: var(--red-strong); background: var(--red-soft); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-stuck .nav-toggle { background: var(--soft); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background-image: url("assets/bg-poster.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1a1012;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video { object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.hero-video.is-playing { opacity: 1; }

.hero-shade {
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62) 70%),
    linear-gradient(90deg, rgba(24, 8, 12, 0.82) 0%, rgba(24, 8, 12, 0.5) 48%, rgba(24, 8, 12, 0.24) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy { max-width: 560px; }

.hero-logo {
  width: 128px;
  height: auto;
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 40px;
  border-radius: 100px;
  background: linear-gradient(135deg, #e60f30, #c90824);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 18px 44px -14px rgba(255, 36, 66, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: download-glow 3s ease-in-out infinite;
}

.download-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 24px 58px -14px rgba(255, 36, 66, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.download-primary:active { transform: translateY(0) scale(0.99); }

.download-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.download-icon { flex: 0 0 auto; }

@keyframes download-glow {
  0%, 100% { box-shadow: 0 18px 44px -14px rgba(255, 36, 66, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12); }
  50% { box-shadow: 0 22px 58px -10px rgba(255, 36, 66, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.16); }
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  color: #fff;
  border-color: #fff;
  outline: none;
}

.hero-platforms {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  position: relative;
  background-image: url("assets/phone-poster.jpg");
  background-size: cover;
  background-position: center;
  width: clamp(220px, 20vw, 268px);
  aspect-ratio: 1 / 2;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  transform: rotate(-3deg);
  animation: phone-float 7s ease-in-out infinite;
}

.phone-video {
  width: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

.phone-case {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

@keyframes phone-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* Sections */
.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 17px;
}

.section-head { max-width: 760px; margin-bottom: 52px; }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.interest-card {
  position: relative;
  padding: 28px 26px 32px;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.interest-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.interest-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--red-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.interest-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.features-copy { position: sticky; top: 110px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--red-strong);
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 8, 36, 0.32);
  padding-bottom: 2px;
}

.text-link span { transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(4px); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 22px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--soft);
  transition: background 0.25s ease, transform 0.25s ease;
}

.feature-item:hover { background: var(--red-soft); transform: translateX(4px); }

.feature-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--red-strong);
  box-shadow: 0 10px 24px -16px rgba(31, 31, 31, 0.4);
}

.feature-item h3 {
  margin: 2px 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.feature-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Community */
.community {
  width: 100%;
  max-width: none;
  padding: 0;
  background: linear-gradient(135deg, #1c1013 0%, #3a111a 55%, #6e1224 100%);
  color: #fff;
}

.community-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

.community .eyebrow { color: #ff8a9b; }

.community h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.16;
  max-width: 13em;
}

.community-lead {
  max-width: 44em;
  margin: 0 0 56px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 34px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
}

.stat span { color: rgba(255, 255, 255, 0.62); font-size: 14px; }

/* FAQ */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
}

.faq-head { position: sticky; top: 110px; }

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  position: relative;
  padding: 26px 46px 26px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  inset: 7px 0 auto 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.2s ease;
}

.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }

.faq-body { padding: 0 48px 26px 0; }
.faq-body p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Footer */
.site-footer {
  background: var(--soft);
  padding: 72px 0 30px;
}

.footer-top,
.footer-bottom {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 54px;
}

.footer-logo { width: 118px; height: auto; filter: brightness(0) saturate(100%); opacity: 0.86; }
.footer-tagline { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: 56px;
}

.footer-column { display: flex; flex-direction: column; gap: 8px; }

.footer-column h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.footer-column a { color: var(--muted); font-size: 14px; }
.footer-column a:hover { color: var(--red-strong); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #6b6b6b;
  font-size: 13px;
}

.footer-bottom p { margin: 0; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { max-width: 620px; }
  .hero-device { display: none; }
  .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features,
  .faq-section { grid-template-columns: 1fr; gap: 36px; }
  .features-copy,
  .faq-head { position: static; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header-inner,
  .hero-inner,
  .section,
  .community-inner,
  .footer-top,
  .footer-bottom { width: calc(100% - 40px); }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav a { color: var(--ink); height: 48px; justify-content: flex-start; }
  .primary-nav a:hover { background: var(--red-soft); color: var(--red-strong); }
  .nav-toggle { display: flex; }

  .hero { min-height: 100svh; }
  .hero-inner { padding-top: calc(var(--header-h) + 44px); padding-bottom: 84px; }
  .hero-logo { width: 108px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(38px, 11vw, 50px); }
  .hero-lead { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { gap: 14px; }

  .download-primary {
    min-height: 56px;
    width: 100%;
    padding: 0 24px;
    font-size: 18px;
  }

  .hero-secondary { min-height: 44px; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 32px; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 0; padding: 24px; }
  .interest-index { margin-bottom: 22px; }
  .feature-item { padding: 24px; gap: 16px; }
  .community-inner { padding: 76px 0; }
  .community-lead { margin-bottom: 36px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 22px; }
  .faq-item summary { font-size: 16.5px; padding-right: 38px; }
  .faq-body { padding-right: 24px; }
  .footer-top { flex-direction: column; gap: 36px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone,
  .scroll-hint span,
  .download-primary { animation: none; }
  .download-primary { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
