:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: rgba(20, 26, 43, 0.78);
  --panel-strong: #151b2c;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fc;
  --muted: #a6aec3;
  --accent: #ff5667;
  --accent-strong: #ff4055;
  --blue: #6c8cff;
  --green: #4ed3a2;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(108, 140, 255, 0.14), transparent 38rem),
    linear-gradient(180deg, #0b0f1b 0%, var(--bg) 56%, #0a0d16 100%);
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { top: 20rem; left: -12rem; background: var(--accent); }
.ambient-two { top: 44rem; right: -14rem; background: var(--blue); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 32px rgba(0,0,0,.24);
  overflow: hidden;
}
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 13px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(78, 211, 162, .1);
}

.hero {
  max-width: 880px;
  margin: 104px auto 128px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 13px;
}
.eyebrow span { padding: 5px 11px; }
.eyebrow span:first-child {
  border-radius: 999px;
  color: #ffd7dc;
  background: rgba(255, 86, 103, .14);
}
.hero h1 {
  margin: 28px 0 24px;
  font-size: clamp(46px, 7.3vw, 88px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 800;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #ff7b87 10%, #ff4f63 42%, #8ca4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover,
.download-button:hover { transform: translateY(-2px); }
.button svg,
.download-button svg { width: 19px; height: 19px; }
.button-primary,
.download-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 38px rgba(255, 64, 85, .22);
}
.button-primary:hover,
.download-button:hover { box-shadow: 0 18px 45px rgba(255, 64, 85, .31); }
.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.045);
}
.button-ghost:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.075); }

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 32px;
  color: #8992a8;
  font-size: 13px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: #bcc5da; }

.downloads { scroll-margin-top: 30px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 26px;
}
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.section-heading h2,
.verify h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.section-heading > p {
  max-width: 370px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.5;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 490px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(26, 33, 53, .88), rgba(14, 19, 32, .88));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 5%, rgba(108,140,255,.13), transparent 34%);
  pointer-events: none;
}
.download-card.featured { border-color: rgba(255, 86, 103, .42); }
.download-card.featured::before { background: radial-gradient(circle at 80% 5%, rgba(255,86,103,.16), transparent 34%); }
.download-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }
.card-topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  padding: 6px 9px;
  border-radius: 8px;
  color: #ffd8dc;
  background: rgba(255,86,103,.14);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-muted { color: #cbd2e5; background: rgba(255,255,255,.07); }
.badge-android { color: #a9f6d7; background: rgba(78,211,162,.12); }
.version { color: #7e879e; font-size: 13px; }
.platform-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 30px 0 22px;
  border-radius: 18px;
  background: rgba(108,140,255,.12);
  color: #9bb0ff;
}
.platform-icon.android { color: #70e9ba; background: rgba(78,211,162,.1); }
.platform-icon svg { width: 31px; height: 31px; }
.download-card h3 {
  position: relative;
  margin: 0;
  font-size: 25px;
  letter-spacing: -.03em;
}
.download-card > p {
  position: relative;
  min-height: 50px;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.download-card ul {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: #cbd2e2;
  font-size: 14px;
}
.download-card li::before { content: "✓"; margin-right: 9px; color: var(--green); font-weight: 800; }
.download-button {
  position: relative;
  width: 100%;
  margin-top: auto;
  border: 0;
}
.download-button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  box-shadow: none;
}
.download-button.secondary:hover { background: rgba(255,255,255,.11); }
.hash-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 13px;
  padding: 2px;
  border: 0;
  color: #777f94;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.hash-button code { color: #929bb0; font-family: "Cascadia Mono", Consolas, monospace; }
.hash-button span { margin-left: auto; color: #abb4c9; }
.hash-button:hover span { color: white; }

.verify {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 25px;
  margin-top: 82px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 24, 40, .62);
}
.verify-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--green);
  background: rgba(78,211,162,.1);
}
.verify-icon svg { width: 29px; height: 29px; }
.verify h2 { font-size: 29px; }
.verify p:not(.section-kicker) { margin: 12px 0 19px; color: var(--muted); line-height: 1.55; }
.command-row {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0a0e18;
  overflow: hidden;
}
.command-row code {
  flex: 1;
  min-width: 0;
  padding: 14px 15px;
  overflow-x: auto;
  color: #d2d9ea;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}
.copy-command {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.copy-command:hover { color: white; background: rgba(255,255,255,.08); }
.copy-command svg { width: 18px; height: 18px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0 100px;
  padding: 19px 22px;
  border: 1px solid rgba(255, 187, 92, .18);
  border-radius: 17px;
  color: #b9b0a4;
  background: rgba(255, 187, 92, .055);
  font-size: 14px;
  line-height: 1.55;
}
.notice svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; color: #f4b85e; }
.notice p { margin: 0; }
.notice strong { color: #e4d8c7; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0 35px;
  border-top: 1px solid var(--line);
  color: #747d92;
  font-size: 13px;
}
.footer-brand { font-size: 15px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-brand .brand-mark img { width: 27px; height: 27px; }
footer p { margin: 0; }
footer > a { justify-self: end; color: #9aa3b7; text-decoration: none; }
footer > a:hover { color: white; }

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: #20273a;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { margin-top: 75px; margin-bottom: 95px; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .download-card:last-child { grid-column: 1 / -1; min-height: 420px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 650px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 70px; }
  .header-status { padding: 8px; font-size: 0; }
  .hero { margin-top: 60px; margin-bottom: 82px; }
  .hero h1 { font-size: clamp(43px, 14.5vw, 64px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .trust-row { gap: 13px 18px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card, .download-card:last-child { grid-column: auto; min-height: 465px; border-radius: 22px; }
  .verify { grid-template-columns: 1fr; padding: 24px; }
  .notice { margin-bottom: 72px; }
  footer { grid-template-columns: 1fr; }
  footer p { grid-column: auto; grid-row: auto; line-height: 1.5; }
  footer > a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
