:root {
  --bg: #070a13;
  --nav: #0b1020;
  --card: #11182a;
  --field: #0d1424;
  --muted: #8f9bb3;
  --cyan: #35e7ff;
  --violet: #8b5cff;
  --green: #49f2a2;
  --orange: #ffb45c;
  --text: #f7fbff;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg);
  padding: 0 18px calc(36px + var(--safe-b));
  line-height: 1.5;
}

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

/* Aurora background — matches app */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(53, 231, 255, 0.22), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(139, 92, 255, 0.24), transparent 30%),
    radial-gradient(circle at 35% 78%, rgba(73, 242, 162, 0.12), transparent 31%),
    linear-gradient(135deg, #070a13, #101327 52%, #070a13);
}

.glass {
  background: rgba(17, 24, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  background: linear-gradient(
    to bottom,
    rgba(7, 10, 19, 0.92) 40%,
    rgba(7, 10, 19, 0.55),
    transparent
  );
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.5px;
  color: #02040a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 10px 28px rgba(53, 231, 255, 0.25);
}

.logo.sm {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  font-size: 11px;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.top-link {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #02040a;
  background: var(--cyan);
  box-shadow: 0 8px 22px rgba(53, 231, 255, 0.22);
}

/* Hero */
.hero {
  margin-top: 8px;
  padding: 22px 18px 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(53, 231, 255, 0.24);
  color: var(--cyan);
  background: rgba(53, 231, 255, 0.12);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(26px, 7.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 900;
}

.lead {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  border: 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  color: #02040a;
  background: var(--cyan);
  box-shadow: 0 14px 32px rgba(53, 231, 255, 0.28);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.full {
  width: 100%;
}

.btn-icon {
  display: grid;
  place-items: center;
}

.fine {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.45;
}

.fine.center {
  text-align: center;
}

/* Preview strip */
.preview-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.preview-card {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 4px;
}

.preview-icon.cyan {
  background: rgba(53, 231, 255, 0.14);
  color: var(--cyan);
}
.preview-icon.violet {
  background: rgba(139, 92, 255, 0.16);
  color: var(--violet);
}
.preview-icon.green {
  background: rgba(73, 242, 162, 0.14);
  color: var(--green);
}

.preview-card strong {
  font-size: 15px;
  font-weight: 800;
}

.preview-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Sections */
.block {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  flex: 1;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.section-tag {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mod {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mod-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--c, var(--cyan));
  background: color-mix(in srgb, var(--c, var(--cyan)) 16%, transparent);
}

.mod h3 {
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.mod p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Trust */
.trust {
  padding: 6px 4px;
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 4px 14px 8px;
}

.trust li {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust li:last-child {
  border-bottom: 0;
}

.trust strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.trust span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Download panel */
.download-panel {
  padding: 18px;
}

.dl-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: #02040a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 12px 28px rgba(53, 231, 255, 0.22);
}

.dl-meta strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.dl-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.steps {
  margin: 0 0 18px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

/* FAQ */
.faq {
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 16px;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer .brand.mini {
  justify-content: center;
  margin-bottom: 10px;
  gap: 10px;
}

.footer p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer .links {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.footer a {
  color: var(--cyan);
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(17, 24, 42, 0.95);
  border: 1px solid rgba(53, 231, 255, 0.28);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.toast[hidden] {
  display: none;
}

/* Wider phones / small tablets */
@media (min-width: 480px) {
  body {
    max-width: 480px;
    margin: 0 auto;
  }

  .preview-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-row {
    flex-direction: row;
  }

  .cta-row .btn {
    flex: 1;
  }
}

@media (min-width: 768px) {
  body {
    max-width: 560px;
    padding-top: 12px;
  }
}
