:root {
  --bg: #000000;
  --bg-elev: #0d0d0d;
  --card: #151515;
  --card-hover: #1c1c1c;
  --border: #262626;
  --border-bright: #3a3a3a;
  --text: #ffffff;
  --text-dim: #9a9a9a;
  --text-mute: #5e5e5e;
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --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: var(--bg);
  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.6);
  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.01em;
  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(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  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: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px #fff;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, #ffffff 0%, #6a6a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  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: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { background: var(--card); border-color: var(--text); 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-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  filter: blur(30px);
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 320px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(255,255,255,0.12));
}
@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.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  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, var(--bg) 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: 12px;
  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.01em;
}
.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.03em;
}
.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: var(--bg);
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.download-card {
  position: relative;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
  text-align: center;
}
.download-card.active {
  border-color: var(--text);
  background: linear-gradient(180deg, #1c1c1c 0%, #0d0d0d 100%);
  box-shadow: 0 20px 60px rgba(255,255,255,0.08);
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}
.download-card .platform-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--text);
  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.01em;
}
.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: 12px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s var(--ease);
  width: 100%;
  justify-content: center;
}
.download-card .dl-btn:hover { transform: translateY(-2px); }
.download-card .dl-btn svg { width: 20px; height: 20px; }
.qr-box {
  margin-top: 24px;
  padding: 16px;
  background: var(--text);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-box canvas { width: 100px; height: 100px; }
.qr-box span { font-size: 11px; color: var(--bg); opacity: 0.7; }
.platform-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  color: var(--bg);
  background: var(--text);
  padding: 3px 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.15em;
  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(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .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) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 80px; }
  .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);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
