:root {
  --bg: #fbf8fa;
  --surface: #ffffff;
  --ink: #1e1326;
  --muted: #6e5d78;
  --line: #ecdfe8;
  --plum: #4a1d5e;
  --violet: #8a3fa0;
  --rose: #d9467a;
  --coral: #f2605a;
  --blush: #d7a3c4;
  --grad: linear-gradient(120deg, #6a2a8a 0%, #b73a78 55%, #f2605a 100%);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(74, 29, 94, .06), 0 12px 32px -12px rgba(74, 29, 94, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
button, [role="button"] { cursor: pointer; font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 248, 250, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--serif); font-size: 20px; letter-spacing: .32em; color: #b07aa0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(183, 58, 120, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(183, 58, 120, .8); }
.btn--ghost { background: var(--surface); color: var(--plum); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blush); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--wide { width: 100%; margin-top: 18px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn:focus-visible, a:focus-visible, .icon-btn:focus-visible { outline: 3px solid rgba(217, 70, 122, .45); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 8vw, 96px) 20px clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 35% 35%, rgba(138, 63, 160, .14), transparent 70%),
    radial-gradient(35% 35% at 65% 45%, rgba(242, 96, 90, .12), transparent 70%);
}
.hero__logo { width: min(520px, 86vw); margin-bottom: 28px; animation: rise .9s ease both; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 16ch; animation: rise .9s .1s ease both; }
.hero h1 em {
  font-style: italic;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 56ch; margin: 20px auto 0; font-size: 18px; color: var(--muted); animation: rise .9s .2s ease both; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; animation: rise .9s .3s ease both; }
/* Movement only: the hero is never invisible, even where animations don't run. */
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Sections */
.features, .download, .account { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.features h2, .account h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 22ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(138, 63, 160, .12), rgba(242, 96, 90, .14));
}
.card__icon svg { width: 22px; height: 22px; fill: var(--rose); }

.download__card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(138, 63, 160, .10), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(242, 96, 90, .10), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.download h2 { font-size: clamp(30px, 4vw, 44px); }
.download #apk-meta { margin: 10px 0 0; font-size: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px; color: #fff; background: var(--grad);
}

.account__card {
  margin-top: 28px; padding: clamp(22px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.account__card p { margin: 0; }
.account__text { flex: 1 1 320px; }
.account__text h3 { font-size: 26px; margin-bottom: 6px; }
.account__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 600; font-size: 22px;
}
.avatar--small { width: 34px; height: 34px; font-size: 14px; }
.tier {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  font: 600 11px/1.8 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--plum); background: rgba(138, 63, 160, .1);
}
.chip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }

.foot {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
  padding: 36px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot p { margin: 0; }

/* Sign-in dialog */
.signin {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px 28px;
  background: var(--surface); color: var(--ink); text-align: center;
  box-shadow: 0 30px 80px -20px rgba(30, 19, 38, .45);
}
.signin::backdrop { background: rgba(30, 19, 38, .45); backdrop-filter: blur(3px); }
.signin > img { margin: 0 auto 10px; }
.signin h2 { font-size: 30px; margin-bottom: 14px; }
.signin__close { position: absolute; top: 10px; right: 10px; margin: 0; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); }
.icon-btn:hover { background: var(--bg); }
.code {
  margin: 10px 0 16px; padding: 14px; border-radius: 14px;
  font: 600 32px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .14em;
  background: var(--bg); border: 1px dashed var(--blush); color: var(--plum);
}
.wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--rose); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: #b3261e; }
.small { font-size: 13px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .who { margin-left: auto; }
  .download__card { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta { width: 100%; max-width: 360px; }
  .who .btn, .account__actions .btn { width: auto; }
  .chip span { display: none; }
}
