:root {
  --ink: #17120f;
  --muted: #6f6259;
  --line: rgba(23, 18, 15, 0.12);
  --paper: #f6f1ea;
  --paper-strong: #fffaf3;
  --cinnabar: #ef4423;
  --cinnabar-dark: #a74032;
  --tea: #356b4c;
  --blue: #386eae;
  --gold: #b48443;
  --shadow: 0 24px 70px rgba(54, 38, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(246, 241, 234, 0.93), rgba(246, 241, 234, 0.93)),
    radial-gradient(circle at 20% 10%, rgba(53, 107, 76, 0.13), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(239, 68, 35, 0.12), transparent 24%);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 250, 243, 0.22);
  background: rgba(12, 10, 8, 0.76);
  color: #fffaf3;
  backdrop-filter: blur(18px);
  animation: headerDrop 720ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 20px;
  font-weight: 900;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(226, 181, 83, 0.46);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(226, 181, 83, 0.18);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  color: rgba(255, 250, 243, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: #fffaf3;
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  isolation: isolate;
  min-height: 94vh;
  padding: 126px 0 70px;
  background:
    linear-gradient(135deg, rgba(20, 17, 14, 0.92), rgba(75, 37, 28, 0.86)),
    url("assets/home.jpg");
  background-position: center;
  background-size: cover;
  color: #fffaf3;
}

.cosmos-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  pointer-events: none;
}

.hero-aura {
  position: absolute;
  z-index: 0;
  inset: auto -12% 6% auto;
  width: min(720px, 60vw);
  aspect-ratio: 1;
  border: 1px solid rgba(226, 181, 83, 0.2);
  border-radius: 50%;
  opacity: 0.54;
  animation: slowSpin 38s linear infinite;
  transform-origin: center;
}

.hero-aura::before,
.hero-aura::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(226, 181, 83, 0.18);
  border-radius: 50%;
}

.hero-aura::after {
  inset: 28%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(226, 181, 83, 0.22) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(226, 181, 83, 0.22) 50%, transparent 50.2%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 17, 14, 0.96) 0%, rgba(20, 17, 14, 0.74) 46%, rgba(20, 17, 14, 0.3) 100%),
    repeating-linear-gradient(90deg, rgba(255, 250, 243, 0.05) 0 1px, transparent 1px 80px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: clamp(42px, 7vw, 94px);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  animation: fadeRise 820ms 120ms ease both;
}

.hero-logo {
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  border: 1px solid rgba(226, 181, 83, 0.5);
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    0 0 38px rgba(226, 181, 83, 0.22);
}

.eyebrow {
  margin: 0 0 16px;
  color: #f5b15f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(78px, 12vw, 148px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.15;
  font-weight: 900;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 250, 243, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--cinnabar);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 250, 243, 0.34);
  background: rgba(255, 250, 243, 0.08);
  color: #fffaf3;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  min-height: 650px;
  perspective: 1100px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  animation: fadeScale 900ms 260ms ease both;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid #1d1713;
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.phone-frame::after {
  position: absolute;
  inset: -24%;
  content: "";
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.38) 48%, transparent 60%);
  opacity: 0;
  transform: translateX(-42%) rotate(8deg);
  transition:
    opacity 260ms ease,
    transform 780ms ease;
  pointer-events: none;
}

.phone-frame:hover::after {
  opacity: 1;
  transform: translateX(42%) rotate(8deg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.hero-phone {
  position: relative;
  flex: 0 0 auto;
  width: min(277px, calc(50% - 11px));
  aspect-ratio: 1280 / 2774;
}

.phone-left {
  animation: floatMain 7s ease-in-out infinite;
}

.phone-right {
  margin-top: 64px;
  animation: floatMain 8s 520ms ease-in-out infinite reverse;
}

.phone-frame:hover {
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.34);
}

.feature-section,
.screens-section {
  padding: 92px 0;
}

.section-title {
  max-width: 820px;
  margin-bottom: 42px;
}

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

.feature-grid article {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border-top: 3px solid var(--cinnabar);
  background: var(--paper-strong);
  box-shadow: 0 18px 42px rgba(54, 38, 24, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-grid article::after,
.download-panel::after,
.screen-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.34) 50%, transparent 82%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 220ms ease,
    transform 720ms ease;
  pointer-events: none;
}

.feature-grid article:hover::after,
.download-panel:hover::after,
.screen-card:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.feature-grid article:hover {
  border-color: var(--gold);
  box-shadow: 0 24px 58px rgba(54, 38, 24, 0.13);
  transform: translateY(-6px);
}

.feature-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--cinnabar);
  font-weight: 900;
}

.feature-grid p,
.screen-card p,
.download-grid p,
.site-footer p {
  color: var(--muted);
}

.screens-section {
  background: #17120f;
  color: #fffaf3;
}

.screens-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 18%, rgba(226, 181, 83, 0.13), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(239, 68, 35, 0.14), transparent 26%);
}

.screens-section > .container {
  position: relative;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.screen-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.14);
  background: rgba(255, 250, 243, 0.06);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.screen-card:hover {
  border-color: rgba(226, 181, 83, 0.36);
  background: rgba(255, 250, 243, 0.09);
  transform: translateY(-8px);
}

.screen-card img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.screen-card div {
  padding: 20px;
}

.screen-card p {
  color: rgba(255, 250, 243, 0.68);
}

.download-section {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.86)),
    repeating-linear-gradient(135deg, rgba(239, 68, 35, 0.12) 0 1px, transparent 1px 18px);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.6fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.download-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  background: #17120f;
  color: #fffaf3;
  box-shadow: var(--shadow);
}

.download-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.store-button {
  display: grid;
  gap: 2px;
  min-height: 72px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fff;
  text-align: center;
}

.store-button span {
  font-size: 13px;
  font-weight: 800;
}

.store-button strong {
  font-size: 22px;
}

.download-panel p {
  margin: 0;
  color: rgba(255, 250, 243, 0.74);
}

.site-footer {
  padding: 34px 0;
  background: #17120f;
  color: #fffaf3;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.feature-grid .reveal:nth-child(2),
.screens-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.feature-grid .reveal:nth-child(3),
.screens-grid .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.feature-grid .reveal:nth-child(4),
.screens-grid .reveal:nth-child(4) {
  transition-delay: 60ms;
}

.feature-grid .reveal:nth-child(5),
.screens-grid .reveal:nth-child(5) {
  transition-delay: 140ms;
}

.feature-grid .reveal:nth-child(6),
.screens-grid .reveal:nth-child(6) {
  transition-delay: 220ms;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatMain {
  0%,
  100% {
    transform: translateY(0) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  }

  50% {
    transform: translateY(-14px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: 24px;
  align-items: start;
}

.site-footer p {
  margin: 10px 0 0;
  color: rgba(255, 250, 243, 0.66);
}

.footer-info,
.footer-links {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  justify-items: end;
}

.legal-page {
  padding: 120px 0 70px;
  min-height: 100vh;
}

.legal-panel {
  max-width: 860px;
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: 0 18px 42px rgba(54, 38, 24, 0.08);
}

.legal-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 62px);
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.legal-panel a {
  color: var(--cinnabar-dark);
  font-weight: 900;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

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

  .hero-visual {
    justify-content: center;
    min-height: 560px;
  }

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

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 50px;
  }

  .hero-actions,
  .feature-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 520px;
    gap: 12px;
  }

  .hero-aura {
    width: 520px;
    right: -240px;
  }

  .hero-phone {
    width: min(212px, calc(50% - 6px));
    border-width: 6px;
    border-radius: 26px;
  }

  .phone-right {
    margin-top: 44px;
  }

  .feature-section,
  .screens-section,
  .download-section {
    padding: 70px 0;
  }

  .feature-grid article {
    min-height: auto;
  }

  .legal-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
