:root {
  --ink: #080909;
  --paper: #fff8ed;
  --corn: #ffd23f;
  --leaf: #29d17f;
  --berry: #ff4f8b;
  --sky: #4ecbff;
  --violet: #a86cff;
  --line: rgba(255, 255, 255, .16);
  --muted: rgba(255, 255, 255, .68);
  --panel: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Noto Sans TC", system-ui, sans-serif;
  color: #fff;
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, select { font: inherit; }
#constellation { position: fixed; inset: 0; z-index: -3; background: #080909; }
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 210, 63, .22), transparent 25%),
    radial-gradient(circle at 88% 10%, rgba(78, 203, 255, .18), transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(255, 79, 139, .18), transparent 32%),
    linear-gradient(145deg, #090b0b 0%, #0c1013 45%, #09090c 100%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 9, 9, .72);
  backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1180px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(255, 210, 63, .4);
}
.brand span { font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 8px;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-switch {
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.lang-switch option { background: #111; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.btn.primary {
  color: #111;
  border: 0;
  background: linear-gradient(135deg, var(--corn), #fff07b 42%, var(--leaf));
  box-shadow: 0 18px 50px rgba(255,210,63,.22);
}
.btn.ios { color: rgba(255,255,255,.72); }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 62px 22px 34px;
}
.hero-grid {
  max-width: 1180px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #191407;
  background: var(--corn);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 900;
}
h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
}
.hero h1 span {
  display: block;
  background: linear-gradient(105deg, #fff, var(--corn) 42%, var(--leaf) 70%, var(--sky));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
}
.proof {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
}
.proof strong { display: block; color: var(--corn); font-size: 1.25rem; }
.proof span { color: rgba(255,255,255,.68); font-size: .92rem; }

.screen-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.orbit {
  position: absolute;
  inset: 46px 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: spin 18s linear infinite;
}
.orbit:before, .orbit:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--corn);
  box-shadow: 0 0 22px var(--corn);
}
.orbit:before { left: 18%; top: 8%; }
.orbit:after { right: 10%; bottom: 16%; background: var(--sky); box-shadow: 0 0 22px var(--sky); }
.screen-shot {
  position: absolute;
  width: min(44vw, 520px);
  aspect-ratio: 1052 / 592;
  object-fit: cover;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
  box-shadow: 0 36px 90px rgba(0,0,0,.46);
  border: 1px solid rgba(255,255,255,.18);
}
.shot-main { transform: translate(0, -8px) rotate(-2deg); z-index: 3; animation: floatA 5.8s ease-in-out infinite; }
.shot-left { transform: translate(-112px, 110px) rotate(7deg) scale(.78); z-index: 2; animation: floatB 6.6s ease-in-out infinite; }
.shot-right { transform: translate(124px, -118px) rotate(-8deg) scale(.72); z-index: 1; animation: floatC 7s ease-in-out infinite; }
.phone {
  position: absolute;
  width: min(58vw, 250px);
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
  box-shadow: 0 36px 90px rgba(0,0,0,.46);
  border: 1px solid rgba(255,255,255,.18);
}
.phone img { border-radius: 24px; width: 100%; }
.phone.one { transform: translate(-82px, 0) rotate(-9deg); z-index: 3; animation: phoneFloatA 5.8s ease-in-out infinite; }
.phone.two { transform: translate(92px, 18px) rotate(10deg) scale(.94); z-index: 2; animation: phoneFloatB 6.6s ease-in-out infinite; }
.phone.three { transform: translate(0, -66px) rotate(4deg) scale(.82); z-index: 1; opacity: .9; animation: phoneFloatC 7s ease-in-out infinite; }
.bubble {
  position: absolute;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(8,9,9,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  font-weight: 900;
}
.bubble.translate { left: 0; top: 22%; }
.bubble.safe { right: 2%; bottom: 18%; }
.bubble.party { left: 14%; bottom: 8%; color: #111; background: var(--corn); }

.section { padding: 86px 22px; }
.wrap { max-width: 1180px; margin: auto; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}
.section-head p { max-width: 420px; color: var(--muted); margin: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card, .review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  min-height: 230px;
  position: relative;
  overflow: hidden;
}
.feature-card:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -44px;
  top: -44px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(4px);
  opacity: .3;
}
.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #111;
  background: var(--accent);
  border-radius: 8px;
  font-size: 1.25rem;
  margin-bottom: 28px;
}
.feature-card h3, .review-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.feature-card p, .review-card p { color: var(--muted); margin: 0; }

.ribbon {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  border-block: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255,210,63,.08), rgba(41,209,127,.06), rgba(78,203,255,.06));
}
.ribbon-copy { padding: 0 22px 0 max(22px, calc((100vw - 1180px) / 2)); }
.ribbon-copy h2 { margin-bottom: 16px; }
.ribbon-copy p { color: var(--muted); max-width: 620px; }
.gallery {
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  overflow: hidden;
  padding: 46px max(22px, calc((100vw - 1180px) / 2)) 46px 0;
}
.gallery img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.gallery img:nth-child(2), .gallery img:nth-child(4) { transform: translateY(28px); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stars { color: var(--corn); margin-bottom: 18px; letter-spacing: 3px; }
.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(135deg, rgba(255,210,63,.16), rgba(255,255,255,.07) 45%, rgba(78,203,255,.1));
}
.download-panel h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.download-panel p { color: var(--muted); max-width: 680px; }
.qr {
  width: 138px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.legal-page .hero { min-height: auto; padding: 74px 22px 30px; text-align: center; }
.legal-page h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.legal-card {
  max-width: 980px;
  margin: 0 auto 90px;
  padding: clamp(22px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.075);
}
.legal-card p { color: rgba(255,255,255,.78); margin: 0 0 18px; }

footer {
  border-top: 1px solid var(--line);
  background: rgba(3,4,4,.82);
  padding: 42px 22px;
}
.footer-inner {
  max-width: 1180px;
  margin: auto;
  display: grid;
  gap: 24px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links, .social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a, .legal-line a { color: rgba(255,255,255,.78); text-decoration: underline; }
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.legal-line { color: rgba(255,255,255,.6); font-size: .94rem; }

@keyframes spin { to { transform: rotate(342deg); } }
@keyframes floatA { 50% { transform: translate(0, -24px) rotate(1deg); } }
@keyframes floatB { 50% { transform: translate(-112px, 92px) rotate(4deg) scale(.78); } }
@keyframes floatC { 50% { transform: translate(124px, -140px) rotate(-5deg) scale(.72); } }
@keyframes phoneFloatA { 50% { transform: translate(-82px, -18px) rotate(-6deg); } }
@keyframes phoneFloatB { 50% { transform: translate(92px, 0) rotate(7deg) scale(.94); } }
@keyframes phoneFloatC { 50% { transform: translate(0, -86px) rotate(7deg) scale(.82); } }

@media (max-width: 920px) {
  .hero-grid, .ribbon, .download-panel { grid-template-columns: 1fr; }
  .screen-stage { min-height: 500px; }
  .feature-grid, .reviews { grid-template-columns: 1fr; }
  .gallery { padding: 20px 22px 54px; min-height: 440px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
}
@media (max-width: 640px) {
  .nav-inner { padding-inline: 14px; }
  .brand span, .nav-download { display: none; }
  .nav-links a { padding: 8px; font-size: .92rem; }
  .lang-switch { max-width: 112px; }
  .proof-strip { grid-template-columns: 1fr; }
  .screen-stage { min-height: 390px; }
  .screen-shot { width: min(84vw, 360px); }
  .shot-main { transform: translate(0, 0) rotate(-2deg); }
  .shot-left { transform: translate(-42px, 92px) rotate(6deg) scale(.72); }
  .shot-right { transform: translate(46px, -92px) rotate(-7deg) scale(.68); }
  .phone { width: 196px; }
  .phone.one { transform: translate(-48px, 0) rotate(-8deg); }
  .phone.two { transform: translate(58px, 20px) rotate(9deg) scale(.92); }
  .phone.three { transform: translate(0, -52px) rotate(4deg) scale(.78); }
  .bubble { font-size: .82rem; }
  .bubble.translate { left: 0; top: 16%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { max-height: 520px; object-fit: contain; background: rgba(255,255,255,.05); }
  .gallery img:nth-child(2), .gallery img:nth-child(4) { transform: none; }
}
