/* ===== Design tokens ===== */
:root {
  --brand: #2f6bff;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --line: #e6ebf4;
  --grad: linear-gradient(135deg, #2f6bff 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, #2f6bff22, #7c3aed22);
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(15, 23, 42, .25);
  --shadow-lg: 0 40px 90px -30px rgba(47, 107, 255, .45);
  --font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
sup { font-size: .6em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  font-family: var(--font);
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(47,107,255,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(47,107,255,.7); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(255,255,255,.9); }
.nav__inner {
  max-width: 1180px; margin: 0 auto; padding: .85rem 1.4rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand__logo { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: .5px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .55rem 1.1rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .85rem;
  color: var(--muted); border: 1px solid var(--line); background: #fff;
  transition: color .2s, border-color .2s, transform .2s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #1b2a6b 0%, #0b1228 55%, #070b1c 100%);
  color: #fff; padding: 5.5rem 1.4rem 7rem;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__glow--1 { width: 420px; height: 420px; background: #2f6bff; top: -120px; right: 8%; }
.hero__glow--2 { width: 360px; height: 360px; background: #7c3aed; bottom: -140px; left: 4%; }
.hero__inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.pill {
  display: inline-block; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: .82rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 1.4rem;
}
.hero__title { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: #c7d2fe; font-size: 1.08rem; margin: 1.3rem 0 2rem; max-width: 30rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.9rem; }
.hero__stats span { color: #a5b4fc; font-size: .85rem; }

.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: var(--bg);
  clip-path: polygon(0 60%, 12% 48%, 25% 60%, 40% 42%, 55% 58%, 70% 40%, 85% 56%, 100% 44%, 100% 100%, 0 100%);
}

/* Hero device */
.hero__device { position: relative; display: flex; justify-content: center; }
.hero__device-frame {
  position: relative; width: 280px; height: 580px;
  background: #0b1020; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b;
  border: 2px solid #243049; transform: rotate(-3deg) scale(1.05);
  overflow: hidden;
}
.hero__device-frame::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0b1020; border-radius: 0 0 14px 14px; z-index: 5;
}
.hero__device-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 32px;
  display: block;
}
.float-card {
  position: absolute; background: #fff; color: var(--ink);
  padding: .6rem .9rem; border-radius: 12px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem;
}
.float-card--call { top: 8%; left: -6%; animation: floaty 5s ease-in-out infinite; }
.float-card--room { bottom: 12%; right: -4%; animation: floaty 6s ease-in-out infinite reverse; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--live { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Phone mockup ===== */
.phone {
  position: relative; width: 280px; height: 580px;
  background: #0b1020; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1e293b;
  border: 2px solid #243049;
}
.phone--hero { transform: rotate(-3deg) scale(1.05); }
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0b1020; border-radius: 0 0 14px 14px; z-index: 5;
}
.screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.appbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 16px 12px; background: #fff; font-weight: 700; border-bottom: 1px solid #f0f2f8;
}
.appbar__back, .appbar__more { color: var(--brand); font-size: 1.2rem; }
.appbar__title { font-size: 1rem; }
.appbar--room { background: var(--grad); color: #fff; border: 0; }
.appbar--room .appbar__back, .appbar--room .appbar__more { color: #fff; }

/* chat screen */
.screen--chat { background: #f7f9fd; }
.chat { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: .86rem; line-height: 1.4;
  background: #fff; box-shadow: 0 4px 12px -6px rgba(15,23,42,.15); align-self: flex-start;
}
.bubble--out { align-self: flex-end; background: var(--brand); color: #fff; }
.bubble--voice { display: flex; align-items: center; gap: 6px; letter-spacing: -3px; }
.chatbar {
  display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border-top: 1px solid #eee;
}
.chatbar__mic { font-size: 1.1rem; }
.chatbar__input { flex: 1; height: 30px; background: #eef1f7; border-radius: 999px; }
.chatbar__send { color: var(--brand); font-weight: 700; }
.chatbar--room { background: #1a1030; }

/* conv list */
.conv { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #f2f4fa; }
.conv__body { flex: 1; min-width: 0; }
.conv__body b { font-size: .9rem; }
.conv__body small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv__t { color: #b6c0d4; font-size: .7rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--a, #2f6bff); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.avatar--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.4rem; }

/* call screen */
.screen--call { background: radial-gradient(700px 400px at 50% 0%, #2f6bff 0%, #0b1020 70%); color: #fff; align-items: center; justify-content: center; gap: 14px; }
.call__avatar { width: 96px; height: 96px; border-radius: 28px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; }
.call__name { font-size: 1.2rem; font-weight: 700; }
.call__status { color: #c7d2fe; font-size: .85rem; }
.call__wave { display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.call__wave span { width: 5px; background: #fff; border-radius: 3px; animation: eq 1s ease-in-out infinite; }
.call__wave span:nth-child(1){height:14px;animation-delay:0s}
.call__wave span:nth-child(2){height:28px;animation-delay:.15s}
.call__wave span:nth-child(3){height:18px;animation-delay:.3s}
.call__wave span:nth-child(4){height:30px;animation-delay:.45s}
.call__wave span:nth-child(5){height:12px;animation-delay:.6s}
@keyframes eq { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1)} }
.call__actions { display: flex; gap: 26px; margin-top: 20px; }
.call__btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.3rem; }
.call__btn--end { background: #f43f5e; transform: rotate(135deg); }

/* voice room */
.screen--room { background: linear-gradient(180deg,#2a1150,#120a26); color: #fff; }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px; }
.seat { aspect-ratio: 1; border-radius: 16px; background: #ffffff1a; display: grid; place-items: center; font-weight: 700; border: 1.5px solid #ffffff22; }
.seat--host { background: var(--a); border-color: #fff5; box-shadow: 0 0 0 3px #f59e0555; }
.seat--empty { color: #ffffff66; font-size: 1.4rem; }
.room__msg { margin: 4px 14px; padding: 7px 11px; background: #ffffff14; border-radius: 10px; font-size: .78rem; color: #e9d5ff; }

/* feed */
.screen--feed { background: #f7f9fd; }
.post { background: #fff; margin: 12px; border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px -12px rgba(15,23,42,.2); }
.post__head { display: flex; align-items: center; gap: 8px; }
.post__head small { color: var(--muted); margin-left: auto; font-weight: 400; }
.post p { margin: 8px 0; font-size: .86rem; }
.post__acts { display: flex; gap: 16px; color: var(--muted); font-size: .78rem; }

/* lottery */
.screen--lottery { background: linear-gradient(180deg,#1a0b35,#0b1020); color: #fff; align-items: center; justify-content: center; }
.gacha { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.gacha__machine { font-size: 4.5rem; filter: drop-shadow(0 10px 20px rgba(124,58,237,.6)); animation: spin 6s linear infinite; }
@keyframes spin { 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }
.gacha__tip { color: #c4b5fd; font-size: .85rem; }
.gacha__btn { background: var(--grad); color: #fff; border: 0; padding: .8rem 2rem; border-radius: 999px; font-weight: 700; font-size: 1rem; box-shadow: 0 12px 30px -10px rgba(124,58,237,.7); }
.gacha__prize { background: #ffffff14; padding: .6rem 1rem; border-radius: 12px; font-size: .82rem; }

/* mine */
.screen--mine { background: #f7f9fd; }
.me { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0 18px; background: var(--grad); color: #fff; }
.me small { opacity: .85; }
.vipcard { margin: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg,#ffe9b0,#ffd166); color: #5b3b00; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.menulist { margin: 0 14px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px -12px rgba(15,23,42,.2); }
.menuitem { padding: 13px 16px; border-bottom: 1px solid #f0f2f8; font-size: .9rem; }
.menuitem:last-child { border: 0; }

/* ===== Sections ===== */
.section { max-width: 1180px; margin: 0 auto; padding: 5.5rem 1.4rem; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: .8rem; text-transform: uppercase; margin-bottom: .7rem; }
.eyebrow--light { color: #93c5fd; }
.section h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.section__head p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* Features grid */
.grid--features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem; color: #fff;
  background: var(--c, var(--brand)); box-shadow: 0 10px 24px -10px var(--c, #2f6bff);
}
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.6rem; justify-items: center; }
.shot {
  margin: 0; width: 100%; max-width: 320px;
  border-radius: 28px; overflow: hidden;
  background: #0b1020; border: 2px solid #1e293b;
  box-shadow: var(--shadow-lg);
  transition: transform .25s, box-shadow .25s;
}
.shot:hover { transform: translateY(-6px); box-shadow: 0 34px 80px -30px rgba(47,107,255,.5); }
.shot img { width: 100%; aspect-ratio: 9 / 19.5; height: auto; object-fit: contain; display: block; }
.shot figcaption { text-align: center; padding: .75rem .5rem; font-size: .85rem; color: var(--muted); background: #fff; }

/* Feedback */
.feedback { background: var(--bg-soft); }
.fb__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.fb-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .9rem; transition: transform .25s, box-shadow .25s;
}
.fb-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fb-card__head { display: flex; align-items: center; gap: .8rem; }
.fb-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: var(--grad); font-size: 1.05rem;
}
.fb-card__name { font-weight: 700; color: var(--ink); }
.fb-card__role { font-size: .78rem; color: var(--muted); }
.fb-card__badge {
  align-self: flex-start; font-size: .74rem; font-weight: 600;
  padding: .22rem .7rem; border-radius: 999px;
}
.fb-card__badge--highlight { color: #15803d; background: #dcfce7; }
.fb-card__badge--suggest { color: #b45309; background: #fef3c7; }
.fb-card__badge--real { color: #1d4ed8; background: #dbeafe; }
.fb-card__text { color: #334155; font-size: .95rem; line-height: 1.6; }
.fb-card__stars { color: #f59e0b; font-size: .9rem; letter-spacing: 2px; }

/* CTA */
.cta { max-width: none; background: var(--bg-soft); }
.cta__card {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--grad); color: #fff; border-radius: 28px; padding: 3.5rem 2rem;
  box-shadow: var(--shadow-lg);
}
.cta__card h2 { color: #fff; }
.cta__card p { color: #e6ebff; margin: 1rem auto 2rem; max-width: 30rem; }
.download-hint {
  display: inline-block; margin-top: 1.4rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.45);
  color: #fff; font-size: 1.05rem; font-weight: 600;
}

/* Mall banner */
.mall-banner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2.4rem; padding: 1.4rem 1.6rem;
  background: var(--grad-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mall-banner__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.mall-banner__item strong { font-size: 1.02rem; color: var(--ink); }
.mall-banner__item span { font-size: .82rem; color: var(--muted); }

/* Footer */
.footer { background: #0a0f24; color: #cbd5e1; }
.footer__inner { max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.4rem 2rem; display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; }
.footer__brand .brand__name { color: #fff; font-size: 1.2rem; }
.footer__brand p { margin-top: .8rem; color: #94a3b8; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.footer__cols h4 { color: #fff; margin-bottom: .9rem; font-size: .95rem; }
.footer__cols a { display: block; color: #94a3b8; padding: .25rem 0; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bar { border-top: 1px solid #ffffff14; max-width: 1180px; margin: 0 auto; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #64748b; font-size: .82rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__device { order: 1; margin-bottom: 1rem; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .grid--features, .screens { grid-template-columns: repeat(2, 1fr); }
  .fb__grid { grid-template-columns: repeat(2, 1fr); }
  .mall-banner { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .grid--features, .screens { grid-template-columns: 1fr; }
  .fb__grid { grid-template-columns: 1fr; }
  .mall-banner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.1rem 5rem; }
  .section { padding: 3.5rem 1.1rem; }
  .hero__stats { gap: 1.4rem; }
  .phone { width: 250px; height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
