:root {
  --bg: #0b0d12;
  --bg-2: #0e1118;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0f4;
  --muted: #99a0ad;
  --accent: #6b9bff;
  --accent-2: #8b5cf6;
  --up: #ff6369;
  --down: #3dd68c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', system-ui, sans-serif;
}

[data-theme='light'] {
  --bg: #f6f7f9;
  --bg-2: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #e6e8ec;
  --text: #15181d;
  --muted: #5c6573;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --up: #e5484d;
  --down: #1a9d5f;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 22px 50px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}

/* ---- ambient glow ---- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% -5%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__brand img {
  border-radius: 7px;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--primary:hover {
  filter: brightness(1.07);
}
.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px 64px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
}
.lede {
  margin: 22px 0 30px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 30em;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}
.hero__meta li {
  position: relative;
  padding-left: 18px;
}
.hero__meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--down);
  transform: translateY(-50%);
}

/* ---- hero mockup ---- */
.hero__art {
  position: relative;
  justify-self: center;
}
.mock {
  width: 360px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.mock__bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mock__title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
}
.mock__body {
  padding: 14px;
}
.mock__updated {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.mock__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;
  background: var(--surface-2);
}
.mc__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.mc__code {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.mc__name {
  font-size: 12px;
  color: var(--muted);
}
.mc__spark {
  margin-left: auto;
}
.mc__delta {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mc__delta.up {
  color: var(--up);
}
.mc__delta.down {
  color: var(--down);
}
.mc__rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mc__cell {
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.mc__cell span {
  display: block;
  font-size: 8.5px;
  color: var(--muted);
}
.mc__cell b {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.mc__cell.accent {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.hero__badge {
  position: absolute;
  top: -18px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.hero__badge img {
  border-radius: 6px;
}

/* ---- trust strip ---- */
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 28px;
  color: var(--muted);
  font-size: 13px;
}
.strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ---- sections ---- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}
.section__head {
  max-width: 36em;
  margin-bottom: 40px;
}
.section__head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

/* ---- features grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: var(--surface-2);
}
.card__icon {
  font-size: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---- platforms ---- */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.platform {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.platform__icon {
  font-size: 34px;
  margin-bottom: 12px;
}
.platform h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.platform p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}
.platform .btn {
  margin: 0 auto;
}
.platform__btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.platform__btns .btn {
  margin: 0;
}
.platform__dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
}
.platform__dl:hover {
  text-decoration: underline;
}
.platform__note {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ---- privacy ---- */
.section--privacy {
  display: flex;
  justify-content: center;
}
.privacy {
  max-width: 40em;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.privacy h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}
.privacy p {
  margin: 0;
  color: var(--muted);
}

/* ---- final CTA ---- */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px 96px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 26px;
}
.cta .hero__cta {
  justify-content: center;
}

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 60px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer__brand img {
  border-radius: 6px;
}
.footer__note {
  max-width: 50em;
  margin: 0 auto 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__copy {
  font-size: 12.5px;
  color: var(--muted);
}
.footer__copy a {
  color: var(--accent);
}

/* ---- reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- responsive ---- */
@media (max-width: 880px) {
  .nav__links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 48px;
  }
  .hero__art {
    order: -1;
  }
  .grid,
  .platforms {
    grid-template-columns: 1fr;
  }
}
