:root {
  --bg: #000000;
  --bg-elev: #070913;
  --card: #10121d;
  --card-hover: #151827;
  --border: #26293a;
  --border-bright: #474c68;
  --text: #ffffff;
  --text-dim: #b9bdd2;
  --text-mute: #747991;
  --accent: #9d76ff;
  --accent-blue: #55c7ff;
  --glow: rgba(157, 118, 255, 0.28);
  --radius: 8px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang SC", "Helvetica Neue", system-ui, sans-serif;
  background:
    linear-gradient(180deg, #000000 0%, #050713 46%, #000000 100%);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 17px;
}
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }
.nav-toggle { display: none; width: 32px; height: 32px; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--text);
  margin: 5px auto; transition: transform 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(92vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0 92px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(85,199,255,0.12) 0%, transparent 34%),
    linear-gradient(245deg, rgba(157,118,255,0.18) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 58%);
  pointer-events: none;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-text {
  max-width: 620px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 14px 48px rgba(85,199,255,0.16);
}
.hero h1 .accent {
  background: linear-gradient(180deg, #ffffff 0%, #b6a4ff 54%, #60caff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 18px;
  color: #c7cadb;
  max-width: 520px;
  margin-bottom: 30px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--glow); }
.btn-ghost {
  background: rgba(11,13,24,0.72);
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { background: var(--card-hover); border-color: var(--accent-blue); transform: translateY(-2px); }
.btn-sub { font-size: 11px; opacity: 0.7; line-height: 1; display: block; }
.btn-main { font-size: 15px; line-height: 1.2; display: block; }
.btn-label { text-align: left; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-points span {
  border: 1px solid rgba(157,118,255,0.34);
  border-radius: 999px;
  color: #d8dbf1;
  background: rgba(8,10,20,0.58);
  font-size: 12px;
  padding: 6px 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 9% 11%;
  background:
    radial-gradient(circle at 50% 35%, rgba(85,199,255,0.26), transparent 55%),
    radial-gradient(circle at 50% 68%, rgba(157,118,255,0.24), transparent 58%);
  filter: blur(34px);
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(272px, 82vw);
  aspect-ratio: 1170 / 2532;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(13,17,32,0.82), rgba(3,5,12,0.96));
  box-shadow:
    0 32px 90px rgba(93,86,255,0.28),
    0 14px 36px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: float 6s ease-in-out infinite;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 74px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone-frame picture,
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.phone-frame img {
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== Section shared ===== */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}
.section-head p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 16px;
}

/* ===== Features ===== */
.features {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #000000 0%, var(--bg-elev) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--text);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Map ===== */
.map-section {
  text-align: center;
}
.map-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.map-inner {
  position: relative;
  width: 100%;
  line-height: 0;
}
.map-inner {
  color: #ffffff;
}
.map-inner img {
  width: 100%;
  opacity: 0.55;
  filter: none;
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.stat .num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
}
.stat .label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}
.pulse-dot {
  position: absolute;
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ===== Download ===== */
.download {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #000000 0%, #070913 100%);
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.download-card {
  position: relative;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(21,24,39,0.94) 0%, rgba(8,10,20,0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  text-align: center;
}
.download-card.active {
  border-color: rgba(157,118,255,0.82);
  background: linear-gradient(180deg, rgba(30,26,55,0.96) 0%, rgba(10,12,24,0.98) 100%);
  box-shadow: 0 20px 60px rgba(93,86,255,0.18);
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85,199,255,0.56);
}
.download-card .platform-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #dbe8ff 100%);
  color: var(--bg);
}
.download-card .platform-icon svg { width: 32px; height: 32px; }
.download-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.download-card .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 24px;
}
.download-card .dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
  justify-content: center;
}
.download-card .dl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--glow); }
.download-card .dl-btn svg { width: 20px; height: 20px; }
.platform-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.platform-note span {
  color: var(--text-dim);
  font-size: 12px;
}
.platform-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.download-card.active .platform-badge { opacity: 1; }

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--border-bright); }
.faq summary {
  list-style: none;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer .brand { margin-bottom: 12px; }
.footer .tagline { color: var(--text-mute); font-size: 13px; max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links > div > h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 10px;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.hero .reveal {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-visual { min-height: 360px; margin: 0 auto; }
  .phone-frame { width: min(220px, 68vw); }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-points { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .map-stats { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 68px 0; }
  .hero {
    min-height: auto;
    padding: 38px 0 34px;
  }
  .hero-grid {
    gap: 18px;
  }
  .hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }
  .hero p.sub {
    font-size: 16px;
    margin-bottom: 26px;
  }
  .btn {
    flex: 1 1 150px;
    justify-content: center;
    padding: 13px 16px;
  }
  .btn svg { width: 18px; height: 18px; }
  .hero-points {
    gap: 8px;
    margin-top: 18px;
  }
  .hero-points span {
    font-size: 11px;
    padding: 5px 10px;
  }
  .hero-visual {
    min-height: 255px;
  }
  .phone-frame {
    width: min(155px, 50vw);
    padding: 7px;
    border-radius: 24px;
  }
  .phone-frame::before {
    top: 10px;
    width: 46px;
    height: 11px;
  }
  .phone-frame img {
    border-radius: 18px;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .section-head { margin-bottom: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-card { padding: 28px 22px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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