@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,800&family=Outfit:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=18_up_rating,android,apk_install,arrow_forward,arrow_upward,auto_awesome,backup,bolt,bookmark,bug_report,calendar_month,check_circle,close,cloud_off,code,dark_mode,download,expand_more,file_download_off,help,history,install_mobile,inventory_2,light_mode,link,lock,menu,new_releases,notifications,palette,public_off,qr_code_2,search,search_off,sell,send,settings,shield,smartphone,star,swipe,tune,verified,visibility_off&display=block");

:root {
  --font-sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Georgia", serif;

  --violet: #6d3aff;
  --violet-deep: #4a1fc4;
  --violet-ink: #2d1b63;
  --lilac: #d0bcff;
  --blush: #ffb3c7;
  --peach: #ffcf99;
  --mint: #9be8c1;
  --mist: #faf7ff;
  --petal: #efe6fb;
  --ink: #171221;
  --ink-soft: #4e4760;
  --line: #ddd2ee;

  --bg: var(--mist);
  --bg-elevated: #fffbff;
  --bg-muted: color-mix(in srgb, var(--petal) 62%, white);
  --bg-hero: radial-gradient(1100px 560px at 88% -8%, rgba(208, 188, 255, 0.62), transparent 58%),
    radial-gradient(820px 460px at -6% 12%, rgba(239, 184, 200, 0.42), transparent 52%),
    radial-gradient(640px 280px at 42% 100%, rgba(103, 80, 164, 0.08), transparent 60%),
    var(--mist);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --text-faint: #7e7590;
  --border: color-mix(in srgb, var(--line) 78%, white);
  --border-strong: color-mix(in srgb, var(--violet) 26%, var(--line));
  --shadow: 0 24px 64px -24px rgba(88, 48, 180, 0.5), 0 2px 8px -2px rgba(23, 18, 33, 0.08);
  --shadow-soft: 0 12px 32px -18px rgba(23, 18, 33, 0.22);
  --shadow-lg: 0 32px 88px -28px rgba(88, 48, 180, 0.55), 0 12px 32px -16px rgba(23, 18, 33, 0.18);
  --primary: var(--violet);
  --primary-contrast: #fff;
  --accent: #b23a7a;
  --gradient: linear-gradient(135deg, #6d3aff 0%, #9d4edd 48%, #ff6b9d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(109,58,255,.14), rgba(255,107,157,.14));
  --glass: color-mix(in srgb, white 72%, transparent);
  --nav-bg: color-mix(in srgb, var(--mist) 72%, transparent);
  --card: color-mix(in srgb, white 86%, var(--petal));
  --card-solid: #ffffff;
  --ok: #2f7a45;
  --warn: #9a6700;
  --radius: 1.4rem;
  --radius-lg: 1.9rem;
  --nav-h: 4.15rem;
  --ease: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: 420ms cubic-bezier(0.16, 1, 0.3, 1);
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 32%, transparent);
}

[data-theme="dark"] {
  --bg: #0c0a14;
  --bg-elevated: #1a1626;
  --bg-muted: #12101b;
  --bg-hero: radial-gradient(980px 520px at 92% -18%, rgba(109, 58, 255, 0.5), transparent 56%),
    radial-gradient(760px 420px at -4% 4%, rgba(255, 107, 157, 0.22), transparent 50%),
    radial-gradient(520px 240px at 50% 110%, rgba(208, 188, 255, 0.1), transparent 55%),
    #0c0a14;
  --text: #f2ecff;
  --text-muted: #c8bdd9;
  --text-faint: #9a8fae;
  --border: color-mix(in srgb, #5d5472 68%, #1a1626);
  --border-strong: color-mix(in srgb, #a78bff 34%, #2a2438);
  --shadow: 0 28px 70px -26px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 14px 36px -20px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 36px 90px -28px rgba(0,0,0,.85), 0 0 0 1px rgba(167,139,255,.08);
  --primary: #c9b3ff;
  --primary-contrast: #2d1b63;
  --accent: #ff9ebb;
  --glass: color-mix(in srgb, #1e1a2b 72%, transparent);
  --nav-bg: color-mix(in srgb, #0c0a14 78%, transparent);
  --card: color-mix(in srgb, #211c30 90%, #6d3aff);
  --card-solid: #1a1626;
  --ok: #8fdd9f;
  --warn: #f0c674;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

button,
input {
  font: inherit;
}

::selection {
  background: color-mix(in srgb, var(--lilac) 58%, white);
  color: var(--ink);
}

[data-theme="dark"] ::selection {
  background: color-mix(in srgb, var(--violet) 70%, black);
  color: #fff;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 70%, transparent);
  outline-offset: 2px;
  box-shadow: var(--ring);
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-feature-settings: "liga";
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 80;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.35);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  outline: 2px solid color-mix(in srgb, var(--lilac) 45%, transparent);
  outline-offset: 1px;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.38rem;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.nav-links a.btn-nav {
  margin-left: 0.35rem;
  padding: 0.48rem 1rem;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.nav-links a.btn-nav:hover,
.nav-links a.btn-nav.is-current {
  color: #fff;
  background: var(--gradient);
  filter: brightness(1.06);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.menu-btn {
  display: none;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.drawer {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.84rem 1.22rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), filter var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
}

.btn-ghost {
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.hero {
  background: var(--bg-hero);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.2rem;
  align-items: center;
  padding: 3.6rem 0 2.6rem;
  position: relative;
  z-index: 1;
}

.hero-grid > * {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0.85rem 0 1rem;
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  max-width: 100%;
}

.lede,
.muted,
.card p,
.step p {
  overflow-wrap: break-word;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.45rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.hero-art {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.72;
  animation: drift 9s ease-in-out infinite;
}

.orb-a {
  width: 250px;
  height: 250px;
  background: color-mix(in srgb, var(--lilac) 72%, transparent);
  top: 6%;
  right: 2%;
}

.orb-b {
  width: 190px;
  height: 190px;
  background: color-mix(in srgb, var(--blush) 72%, transparent);
  bottom: 4%;
  left: 6%;
  animation-delay: -3s;
}

.hero-stage {
  position: relative;
  width: min(100%, 400px);
  min-height: 500px;
  display: grid;
  place-items: center;
}

.mascot {
  position: absolute;
  width: 132px;
  height: 132px;
  object-fit: cover;
  right: -18px;
  top: 6px;
  z-index: 3;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 3px solid color-mix(in srgb, white 55%, transparent);
  animation: floaty 6.5s ease-in-out infinite;
}

.device {
  width: 262px;
  background: linear-gradient(160deg, #2a2633, #141218 40%, #0d0b10);
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  transform: rotate(-7deg) translate(-36px, 18px);
}

.device-screen {
  background: #f7f2fb;
  color: #1c1724;
  border-radius: 26px;
  overflow: hidden;
  min-height: 448px;
  display: flex;
  flex-direction: column;
  position: relative;
}

[data-theme="dark"] .device-screen {
  background: #16131c;
  color: #f0eaf8;
}

.device-notch {
  width: 92px;
  height: 18px;
  margin: 8px auto 0;
  background: #0d0b10;
  border-radius: 999px;
}

.device-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  padding: 0.2rem 0.9rem 0.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.device-search {
  margin: 0.35rem 0.7rem 0.45rem;
  background: color-mix(in srgb, #6750a4 12%, #efe6f6);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.76rem;
  color: #625b71;
}

[data-theme="dark"] .device-search {
  background: color-mix(in srgb, #d0bcff 12%, #211f26);
  color: #cac4d0;
}

.chips {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.7rem 0.5rem;
  overflow: hidden;
}

.chip {
  font-size: 0.66rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #ece6f0;
  color: #1d1b20;
  white-space: nowrap;
  font-weight: 600;
}

[data-theme="dark"] .chip {
  background: #2b2733;
  color: #e6e0e9;
}

.chip.on {
  background: #6750a4;
  color: #fff;
}

.listing {
  margin: 0 0.7rem 0.42rem;
  padding: 0.58rem 0.68rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 #ece6f0;
}

[data-theme="dark"] .listing {
  background: #221e2b;
  box-shadow: none;
  border: 1px solid #322d3c;
}

.listing strong {
  display: block;
  font-size: 0.76rem;
  line-height: 1.3;
}

.listing small {
  color: #79747e;
  font-size: 0.66rem;
}

.seed {
  color: var(--ok);
  font-weight: 700;
}

.device-bar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.42rem 0.2rem 0.72rem;
  font-size: 0.56rem;
  text-align: center;
  color: #625b71;
  background: #efe6f6;
  gap: 0.1rem;
}

[data-theme="dark"] .device-bar {
  background: #1b1822;
  color: #b8b0c4;
}

.device-bar div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.device-bar .material-symbols-rounded {
  font-size: 1.05rem;
}

.device-bar .active {
  color: #6750a4;
  font-weight: 700;
}

.device-bar .active .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.device-home {
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 7px auto 2px;
}

.stats {
  position: relative;
  z-index: 1;
  border-block: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
  backdrop-filter: blur(10px);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 1.05rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.2rem 0.4rem;
  text-align: center;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
}

.section {
  padding: 4.2rem 0;
}

main.section {
  padding: 1.4rem 0 4.4rem;
  background: var(--bg-hero);
}

.section-muted {
  background: var(--bg-muted);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.55rem;
}

.tab {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.52rem 1.05rem;
  font-weight: 650;
  cursor: pointer;
  transition: var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  box-shadow: var(--shadow);
}

.card.warning:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, var(--border));
}

.icon-blob {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 22px -12px rgba(103, 80, 164, 0.8);
}

.icon-blob .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem 1.2rem;
  transition: transform var(--ease), border-color var(--ease);
}

.step:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 18px -10px rgba(103, 80, 164, 0.9);
}

.step h3 {
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.faq-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.2rem);
  padding: 0.35rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-item-head {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.faq-item [data-faq-button] {
  flex: 1;
  min-width: 0;
  width: auto;
  background: none;
  border: 0;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  padding: 1.05rem 0.15rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.04rem;
}

.faq-item [data-faq-button] .material-symbols-rounded:last-child {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform var(--ease);
}

.faq-item.is-open [data-faq-button] .material-symbols-rounded:last-child {
  transform: rotate(180deg);
}

.faq-num {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.faq-panel > div {
  padding: 0 0.2rem 1.05rem 2.6rem;
  color: var(--text-muted);
}

.center {
  text-align: center;
}

.community {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.community a.card {
  color: inherit;
  text-decoration: none;
  display: block;
}

.cta-band {
  padding: 0 0 4.4rem;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.7rem 1.8rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-inner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.cta-inner h2 {
  font-family: var(--font-display);
  margin: 0 0 0.3rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  margin: 0;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}

.cta-inner .hero-actions {
  margin: 0;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--violet-deep);
  box-shadow: none;
}

.cta-inner .btn-primary:hover,
.cta-inner .btn-primary:focus {
  color: var(--violet-deep);
}

.cta-inner .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-inner .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.footer {
  background: #16131c;
  color: #c9c0d6;
  padding: 3rem 0 1.4rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer .brand span,
.footer h4 {
  color: #fff;
}

.footer .brand img {
  outline-color: color-mix(in srgb, var(--lilac) 35%, transparent);
}

.footer p {
  color: #958ca3;
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.footer a {
  color: #c9c0d6;
  text-decoration: none;
  display: block;
  margin: 0.35rem 0;
}

.footer a:hover {
  color: #fff;
}

.footer h4 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid #2c2834;
  padding-top: 1.05rem;
  text-align: center;
  color: #958ca3;
  font-size: 0.9rem;
}

.page-hero {
  padding: 1.6rem 0 1.4rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

[data-changelog] {
  min-height: 42vh;
}

.search-wrap {
  position: relative;
  max-width: 28rem;
  margin: 1.25rem auto 0;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 0.78rem 2.7rem;
  box-shadow: var(--shadow-soft);
}

.search-wrap .leading {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.search-wrap .trailing {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
}

.release-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.release-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.release-title {
  font-weight: 750;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.release-meta {
  margin: 0.3rem 0 0;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.change-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.download-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.2rem;
  align-items: start;
}

.download-layout > * {
  min-width: 0;
}

.qr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.qr-card img {
  width: 196px;
  height: 196px;
  margin: 0.75rem auto 0.85rem;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.install-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.install-grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

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

.install-n {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.install-grid h3 {
  margin: 0 0 0.15rem;
  color: var(--text);
  font-size: 1rem;
}

.install-grid p {
  margin: 0;
}

.note {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--text-muted);
}

.warning {
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border));
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state .material-symbols-rounded {
  font-size: 2.4rem;
  color: var(--text-faint);
}

.prose {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--text-muted);
}

.privacy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 44rem;
}

.privacy-card h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.4rem 0 0.45rem;
  letter-spacing: -0.03em;
}

.privacy-card p {
  margin: 0 0 0.2rem;
}

.muted {
  color: var(--text-muted);
}

code {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  word-break: break-all;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-warn {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  color: var(--warn);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.scroll-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--ease);
  z-index: 30;
  box-shadow: var(--shadow);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem 5rem;
  background: var(--bg-hero);
}

.error-page img {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
  outline: 3px solid color-mix(in srgb, var(--lilac) 40%, transparent);
}

.error-page h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -14px) scale(1.05);
  }
}

/* Tablet: stack the two-column layouts so nothing gets squeezed.
   NOTE: .hero-grid is intentionally absent — its base `grid-template-columns`
   is declared further down this file, so it has to be overridden from the
   mobile/tablet layer at the end instead. */
@media (max-width: 1024px) {
  .download-layout,
  .footer-grid,
  .cta-inner,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    text-align: center;
    flex-direction: column;
  }

  .cta-inner .hero-actions {
    justify-content: center;
  }

  .cards,
  .steps,
  .community,
  .pillars,
  .footer-cols,
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .qr-card {
    position: static;
  }

  .mascot {
    width: 120px;
    height: 120px;
    right: 8px;
    top: 18px;
  }

  .hero-art,
  .hero-stage {
    min-height: 420px;
  }
}

/* Nav collapses to the drawer earlier than the layout does, so tablets in
   portrait (768-1024px) never get a cramped inline link row. */
@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
    margin-left: auto;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
  }

  .drawer.is-open {
    pointer-events: auto;
  }

  .drawer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(16, 13, 22, 0.5);
    opacity: 0;
    transition: opacity 200ms ease;
  }

  .drawer.is-open .drawer-scrim {
    opacity: 1;
  }

  .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 86vw);
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 5rem 1.2rem 1.2rem;
    transform: translateX(100%);
    transition: transform 240ms ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .drawer.is-open .drawer-panel {
    transform: none;
  }

  .drawer-panel a {
    color: inherit;
    text-decoration: none;
    padding: 0.8rem 0.7rem;
    border-radius: 12px;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-weight: 650;
  }

  .drawer-panel a:hover,
  .drawer-panel a.is-current {
    background: var(--bg-muted);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(1120px, calc(100% - 2.4rem));
  }

  .cards,
  .steps,
  .community,
  .pillars,
  .footer-cols,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 2rem 0 1.8rem;
  }

  h1,
  .h1,
  .page-hero h1 {
    font-size: 1.9rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  .device {
    width: min(248px, 74vw);
    transform: none;
  }

  .mascot {
    display: none;
  }

  .hero-art,
  .hero-stage {
    min-height: 0;
    width: 100%;
  }

  .faq-shell {
    padding: 0.15rem 0.9rem;
  }

  .faq-panel > div {
    padding-left: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .step:hover,
  .community a.card:hover {
    transform: none;
  }

  .mascot,
  .orb,
  .float-card,
  .hero-stage::before {
    animation: none;
  }
}

/* ---------- Site polish: progress, toast, hero extras, skeletons ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--gradient);
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
  width: min(480px, calc(100% - 2rem));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: 100%;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast .material-symbols-rounded {
  color: var(--ok);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: var(--ease);
}

.copy-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.copy-btn .material-symbols-rounded {
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  backdrop-filter: blur(8px);
}

.hero-badge .material-symbols-rounded {
  font-size: 1rem;
  color: var(--primary);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lilac) 38%, transparent), transparent);
  filter: blur(10px);
  animation: drift 8s ease-in-out infinite;
  pointer-events: none;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
  animation: floaty 7s ease-in-out infinite;
  max-width: 210px;
}

.float-card small {
  display: block;
  font-weight: 500;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.float-card .material-symbols-rounded {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  color: #fff;
  background: var(--gradient);
  border-radius: 10px;
  padding: 0.35rem;
  font-size: 1.1rem;
  width: auto;
  height: auto;
}

.float-a {
  left: -6px;
  top: 22%;
}

.float-b {
  right: -4px;
  bottom: 18%;
  animation-delay: -3.2s;
}

.device {
  animation: device-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes device-in {
  from {
    opacity: 0;
    transform: rotate(-7deg) translate(-36px, 28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: rotate(-7deg) translate(-36px, 18px) scale(1);
  }
}

.skeleton {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.skeleton-bar {
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--text) 8%, transparent), color-mix(in srgb, var(--text) 16%, transparent), color-mix(in srgb, var(--text) 8%, transparent));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  margin: 0.55rem 0;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

mark {
  background: color-mix(in srgb, var(--lilac) 65%, white);
  color: var(--ink);
  border-radius: 0.25rem;
  padding: 0 0.2rem;
}

[data-theme="dark"] mark {
  background: color-mix(in srgb, var(--violet) 65%, black);
  color: #fff;
}

.search-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-faint);
  min-height: 1.4em;
}

.search-meta kbd {
  font-family: inherit;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 0.4rem;
  padding: 0.05rem 0.4rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.release-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.asset-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  text-decoration: none;
}

.asset-pill:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.release-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn-sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 28%, transparent), transparent);
  pointer-events: none;
}

.step {
  z-index: 1;
}

.platform-hint {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.platform-hint.is-visible {
  display: flex;
}

.platform-hint .material-symbols-rounded {
  color: var(--primary);
  margin-top: 0.15rem;
}

.faq-link-btn {
  margin-left: 0.2rem;
  opacity: 0;
  pointer-events: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: 8px;
  padding: 0.25rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.faq-link-btn:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.faq-item:hover .faq-link-btn,
.faq-link-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .faq-link-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.faq-item.is-highlighted {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 0.8rem;
}

.nav-links a:focus-visible,
.drawer-panel a:focus-visible,
.btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 70%, transparent);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--lilac) 58%, white);
  color: var(--ink);
}

@media (max-width: 760px) {
  .float-card {
    display: none;
  }

  .steps::before {
    display: none;
  }

  .device {
    animation: none;
    transform: none;
  }

  .release-card-head {
    flex-direction: column;
  }

  .release-actions {
    width: 100%;
  }

  .release-actions .btn {
    flex: 1;
  }
}

@media print {
  .nav,
  .drawer,
  .scroll-progress,
  .scroll-top,
  .toast-stack,
  .cta-band,
  .hero-art {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .release-card,
  .faq-shell {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ================= Visual overhaul — premium pass ================= */

/* Base */
body {
  letter-spacing: -0.011em;
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(109,58,255,.08), transparent 60%),
    var(--bg);
}
::selection {
  background: #6d3aff;
  color: #fff;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9d8cff, #ff8fb0);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-track { background: transparent; }

.wrap { width: min(1160px, calc(100% - 2.5rem)); }

/* Eyebrow label used across sections */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  background: linear-gradient(180deg, rgba(109,58,255,.12), rgba(255,107,157,.12));
  border: 1px solid color-mix(in srgb, var(--violet) 22%, var(--border));
  padding: .38rem .8rem;
  border-radius: 999px;
  margin: 0 0 .9rem;
}
[data-theme="dark"] .eyebrow { color: #d9c8ff; }
.eyebrow .material-symbols-rounded { font-size: 1rem; }

/* Floating glass nav */
.nav {
  background: transparent;
  border: 0;
  height: auto;
  padding: .85rem 0;
  backdrop-filter: none;
}
.nav-inner {
  height: 3.9rem;
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid color-mix(in srgb, white 55%, var(--border));
  border-radius: 22px;
  padding: 0 .6rem 0 1rem;
  box-shadow: 0 12px 40px -18px rgba(23,18,33,.25), inset 0 1px 0 rgba(255,255,255,.6);
}
[data-theme="dark"] .nav-inner {
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 16px 48px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.nav.is-scrolled .nav-inner {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.6);
  border-color: var(--border-strong);
}
.brand span {
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}
.brand img {
  width: 40px; height: 40px;
  border-radius: 13px;
  outline: 0;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 22px -10px rgba(109,58,255,.7);
}
.nav-links a { position: relative; }
.nav-links a.btn-nav {
  background: linear-gradient(135deg, #6d3aff, #a855f7 55%, #ec4899);
  box-shadow: 0 10px 26px -12px rgba(109,58,255,.8), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.22);
}
.icon-btn {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
[data-theme="dark"] .icon-btn { box-shadow: none; }

/* Hero — mesh + grid + glow */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(157,78,221,.28), transparent 62%),
    radial-gradient(700px 420px at 8% 18%, rgba(255,107,157,.22), transparent 58%),
    radial-gradient(600px 320px at 50% 108%, rgba(109,58,255,.12), transparent 62%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--violet) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--violet) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(780px 420px at 50% 0%, black 30%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}
.hero-grid {
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  padding: 4.2rem 0 5.2rem;
}
.kicker {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(109,58,255,.18);
  box-shadow: 0 8px 24px -14px rgba(109,58,255,.5), inset 0 1px 0 #fff;
  padding: .42rem .9rem .42rem .7rem;
  font-size: .77rem;
}
[data-theme="dark"] .kicker {
  background: rgba(255,255,255,.06);
  box-shadow: none;
}
.kicker .material-symbols-rounded {
  background: var(--gradient);
  color: #fff;
  border-radius: 999px;
  padding: 3px;
  font-size: .95rem;
  width: auto; height: auto;
}
h1, .h1 {
  font-size: clamp(2.9rem, 5.8vw, 4.9rem);
  line-height: .98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(100deg, #6d3aff 5%, #a855f7 38%, #ec4899 72%, #ff8a5c 105%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradient-pan 7s ease-in-out infinite;
}
@keyframes gradient-pan {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lede { font-size: 1.18rem; line-height: 1.65; max-width: 36rem; }
.lede a { font-weight: 650; }

.hero-badges { gap: .6rem; margin-bottom: 1.2rem; }
.hero-badge {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 28px -18px rgba(23,18,33,.35), inset 0 1px 0 #fff;
  padding: .45rem .8rem;
  font-size: .85rem;
}
[data-theme="dark"] .hero-badge {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
}
.hero-badge .material-symbols-rounded {
  background: linear-gradient(135deg, #6d3aff, #ec4899);
  color: #fff !important;
  border-radius: 8px;
  padding: 3px;
  font-size: .95rem;
  width: auto; height: auto;
}

/* Buttons — shine + lift */
.btn { padding: .92rem 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #6d3aff 0%, #8b3dff 38%, #d63384 100%);
  box-shadow: 0 18px 42px -16px rgba(109,58,255,.75), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.22);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms ease;
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 28px -20px rgba(23,18,33,.4), inset 0 1px 0 #fff;
}
[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.meta-row { opacity: .95; }
.meta-row .material-symbols-rounded { color: var(--violet); font-size: 1.05rem; }

/* Hero art — premium device */
.hero-art { min-height: 560px; }
.hero-stage { width: min(100%, 440px); min-height: 560px; }
.hero-stage::before {
  inset: 4% -4%;
  background: radial-gradient(closest-side, rgba(139,92,246,.42), rgba(236,72,153,.18), transparent 72%);
  filter: blur(28px);
}
.orb { filter: blur(26px); opacity: .9; }
.orb-a { width: 300px; height: 300px; }
.orb-b { width: 220px; height: 220px; }
.mascot {
  width: 118px; height: 118px;
  right: 6px; top: 8px;
  border-radius: 32px;
  border: 4px solid #fff;
  box-shadow: 0 24px 56px -20px rgba(23,18,33,.45);
}
[data-theme="dark"] .mascot { border-color: #221d31; }
.device {
  width: 290px;
  background: linear-gradient(165deg, #3a3348, #16121e 42%, #08060c);
  border-radius: 46px;
  padding: 11px;
  transform: none;
  box-shadow:
    0 48px 100px -32px rgba(88,40,180,.65),
    0 18px 44px -18px rgba(0,0,0,.5),
    inset 0 1px 1px rgba(255,255,255,.22),
    inset 0 0 0 1px rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  animation: device-float 7s ease-in-out infinite;
}
@keyframes device-float {
  0%,100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-12px) rotate(-1.2deg); }
}
@keyframes device-in {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.device-screen {
  border-radius: 36px;
  min-height: 500px;
  background: linear-gradient(180deg, #fff 0%, #f7f2ff 100%);
  box-shadow: inset 0 0 0 1px rgba(109,58,255,.08);
}
[data-theme="dark"] .device-screen { background: linear-gradient(180deg, #1d1927, #14111d); }
.device-notch { width: 104px; height: 22px; background: #08060c; }
.device-search {
  margin: .5rem .8rem .55rem;
  background: #fff;
  border: 1px solid #ece4f6;
  box-shadow: 0 8px 20px -14px rgba(109,58,255,.4);
  padding: .62rem .85rem;
  font-weight: 600;
}
[data-theme="dark"] .device-search { background: #242031; border-color: #332c44; }
.listing {
  border: 1px solid #eee6f8;
  box-shadow: 0 8px 20px -14px rgba(23,18,33,.25);
  padding: .65rem .75rem;
  border-radius: 16px;
}
[data-theme="dark"] .listing { border-color: #332c44; }
.chip.on { background: linear-gradient(135deg, #6d3aff, #a855f7); box-shadow: 0 6px 16px -8px rgba(109,58,255,.7); }
.device-bar { border-top: 1px solid rgba(109,58,255,.1); }

.float-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 56px -22px rgba(23,18,33,.4), inset 0 1px 0 #fff;
  border-radius: 18px;
  padding: .65rem .8rem;
  font-size: .82rem;
  max-width: 230px;
}
[data-theme="dark"] .float-card {
  background: rgba(28,24,39,.82);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 24px 56px -22px rgba(0,0,0,.7);
}
.float-a { left: -22px; top: 20%; }
.float-b { right: -10px; bottom: 16%; }
.float-card .material-symbols-rounded { border-radius: 12px; padding: 8px; }

/* Stats — overlapping glass */
.stats {
  background: transparent;
  border: 0;
  margin-top: -2.6rem;
}
.stats-row {
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid color-mix(in srgb, white 60%, var(--border));
  border-radius: 22px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.7);
  padding: 1.15rem .8rem;
  gap: 0;
}
[data-theme="dark"] .stats-row { border-color: rgba(255,255,255,.09); box-shadow: var(--shadow-lg); }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { font-size: 1.32rem; }
.stat span { font-size: .84rem; }

/* Sections */
.section { padding: 5.6rem 0; }
.section-muted {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(109,58,255,.07), transparent 65%),
    var(--bg-muted);
  border-block: 1px solid var(--border);
}
.section-head { max-width: 46rem; margin-bottom: 2.8rem; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-head p { font-size: 1.12rem; }

/* Tabs */
.tabs {
  background: color-mix(in srgb, var(--bg-elevated) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.5);
  margin-inline: auto;
  width: auto;
}
.tabs { display: flex; width: fit-content; margin-inline: auto; }
.tab { border: 0; background: transparent; padding: .6rem 1.3rem; }
.tab.is-active {
  background: linear-gradient(135deg, #6d3aff, #c026d3 60%, #ec4899);
  box-shadow: 0 10px 24px -12px rgba(109,58,255,.8), inset 0 1px 0 rgba(255,255,255,.35);
}

/* Cards — bento */
.cards { gap: 1.2rem; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--card-solid), var(--card));
  border: 1px solid color-mix(in srgb, white 60%, var(--border));
  border-radius: 22px;
  padding: 1.55rem 1.45rem;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.7);
  overflow: hidden;
}
[data-theme="dark"] .card { border-color: rgba(255,255,255,.09); box-shadow: var(--shadow-soft); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--gradient);
  opacity: 0; transition: opacity var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.icon-blob {
  width: 52px; height: 52px;
  border-radius: 16px;
  box-shadow: 0 14px 28px -14px rgba(109,58,255,.8), inset 0 1px 0 rgba(255,255,255,.4);
}
.cards .card:nth-child(1) .icon-blob { background: linear-gradient(135deg, #6d3aff, #8b5cf6); }
.cards .card:nth-child(2) .icon-blob { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.cards .card:nth-child(3) .icon-blob { background: linear-gradient(135deg, #ec4899, #f97316); }
.cards .card:nth-child(4) .icon-blob { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.card h3 { font-size: 1.12rem; letter-spacing: -.022em; }
.card p { line-height: 1.6; }

/* Steps timeline */
.steps { gap: 1.1rem; }
.steps::before { top: 2.6rem; opacity: .9; }
.step {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-solid), var(--card));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.6);
  padding: 1.5rem 1.35rem 1.4rem;
}
.step::before {
  width: 2.4rem; height: 2.4rem;
  background: linear-gradient(135deg, #6d3aff, #ec4899);
  box-shadow: 0 12px 24px -12px rgba(109,58,255,.9), inset 0 1px 0 rgba(255,255,255,.4);
  border: 2px solid #fff;
}
[data-theme="dark"] .step::before { border-color: #1e1a2b; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pillars .card:nth-child(1) .icon-blob { background: linear-gradient(135deg, #64748b, #334155); }
.pillars .card:nth-child(2) .icon-blob { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pillars .card:nth-child(3) .icon-blob { background: linear-gradient(135deg, #0ea5e9, #10b981); }

/* FAQ — stacked cards */
.faq-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: 820px;
}
.faq-list { display: grid; gap: .75rem; max-width: none; }
.faq-item {
  border: 1px solid color-mix(in srgb, white 60%, var(--border));
  background: linear-gradient(180deg, var(--card-solid), var(--card));
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.is-open { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item [data-faq-button] { padding: 1.1rem 1.15rem; }
.faq-panel > div { padding-bottom: 1.2rem; line-height: 1.65; }

/* Community */
.community .card { text-align: left; }
.community a.card:hover { transform: translateY(-5px) scale(1.01); }

/* CTA — rich mesh */
.cta-band { padding-bottom: 5rem; }
.cta-inner {
  padding: 2.8rem 2.6rem;
  border-radius: 28px;
  background:
    radial-gradient(420px 280px at 88% 12%, rgba(255,255,255,.22), transparent 62%),
    radial-gradient(380px 280px at 8% 88%, rgba(0,0,0,.18), transparent 62%),
    linear-gradient(120deg, #5b21ff 0%, #9333ea 42%, #ec4899 100%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 36px 90px -28px rgba(109,58,255,.75), inset 0 1px 0 rgba(255,255,255,.35);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(500px 260px at 85% 20%, black, transparent 72%);
  pointer-events: none;
}
.cta-inner::after { width: 320px; height: 320px; right: -70px; top: -110px; background: rgba(255,255,255,.14); filter: blur(2px); }
.cta-inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta-inner .btn-primary { background: #fff; color: #4c1d95; border-color: #fff; }
.cta-inner .btn-primary::after { display: none; }

/* Footer */
.footer { background: #0d0a15; padding-top: 3.6rem; }
.footer::before { height: 4px; background: linear-gradient(90deg, #6d3aff, #a855f7, #ec4899, #fb923c); box-shadow: 0 0 24px rgba(168,85,247,.6); }
.footer-grid { gap: 2.6rem; }
.footer a { transition: color var(--ease), transform var(--ease); }
.footer-cols a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { opacity: .9; }

/* Inner pages */
.page-hero { padding: 2.2rem 0 2rem; }
main.section {
  background:
    radial-gradient(900px 360px at 50% -80px, rgba(109,58,255,.1), transparent 62%),
    var(--bg);
}
.release-card, .qr-card, .privacy-card {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-solid), var(--card));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid color-mix(in srgb, white 60%, var(--border));
}
[data-theme="dark"] .release-card, [data-theme="dark"] .qr-card, [data-theme="dark"] .privacy-card { border-color: rgba(255,255,255,.09); }
.qr-card img { border: 1px solid #eee6f8; }
.search-wrap input {
  padding: .9rem 2.9rem;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.6);
  font-size: 1rem;
}
.search-wrap input:focus { border-color: var(--violet); box-shadow: var(--ring); outline: none; }

/* Reveal — softer + blur */
[data-reveal] { transform: translateY(22px) scale(.985); filter: blur(6px); transition: opacity 620ms ease, transform 620ms cubic-bezier(.16,1,.3,1), filter 620ms ease; }
[data-reveal].is-visible { transform: none; filter: none; }

/* Scroll progress */
.scroll-progress { height: 4px; }
.scroll-progress > span { background: linear-gradient(90deg, #6d3aff, #ec4899, #fb923c); }

/* Toast */
.toast { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* Responsive polish */
@media (max-width: 1024px) {
  .nav { padding: .6rem 0; }
  .nav-inner { border-radius: 18px; }
  .hero-grid { padding: 2.8rem 0 4rem; gap: 2.2rem; }
  .hero-art, .hero-stage { min-height: 480px; }
  .float-a { left: 0; }
  .float-b { right: 0; }
  .stats-row { border-radius: 20px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stats-row { gap: 0; }
  .stat { padding: .9rem .4rem; }
  .cta-inner { padding: 2.1rem 1.6rem; border-radius: 24px; }
}
@media (max-width: 760px) {
  h1, .h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero-grid { padding: 1.8rem 0 3.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .device { width: min(272px, 78vw); }
  .faq-item [data-faq-button] { font-size: .99rem; }
  .section { padding: 3.8rem 0; }
}

/* License page */
.license-text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  background: color-mix(in srgb, var(--primary) 7%, var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  max-height: 420px;
  overflow: auto;
}

/* ================= Particle physics + complex transitions ================= */

/* Particle canvas lives behind hero content */
.hero { isolation: isolate; }
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}
[data-theme="dark"] .particles { opacity: 1; }
.hero-grid { isolation: isolate; }

/* Hero entrance choreography (JS adds body.is-in + --delay per item) */
[data-hero-item] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.16, 1, 0.3, 1), filter 720ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, filter;
}
body.is-in [data-hero-item] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Cursor glow follower inside hero */
.hero-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 190px; height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.32), rgba(236, 72, 153, 0.14), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.9;
  will-change: transform;
}
[data-theme="dark"] .hero-cursor {
  background: radial-gradient(closest-side, rgba(167, 139, 255, 0.4), rgba(240, 171, 252, 0.16), transparent 72%);
}

/* 3D tilt + glare (JS sets --mx/--my, composes via transform) */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
}
.tilt:hover::after { opacity: 1; }
[data-theme="dark"] .tilt::after {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 55%);
}

/* Magnetic buttons use `translate` prop so :hover `transform` still applies */
.magnetic { will-change: translate; }

/* Animated feature-tab swaps */
.fx-panel.fx-enter { animation: fx-in 440ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fx-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Subtle page transitions: native crossfade where supported + fast fade-out fallback */
@view-transition { navigation: auto; }
main {
  transition: opacity 170ms ease, transform 170ms ease, filter 170ms ease;
}
body.is-leaving main {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
}
::view-transition-old(root) { animation: vt-out 220ms ease both; }
::view-transition-new(root) { animation: vt-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out {
  to { opacity: 0; transform: translateY(8px) scale(0.995); filter: blur(5px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(12px) scale(0.996); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 760px) {
  .particles { opacity: 0.7; }
  .hero-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-item] { opacity: 1; transform: none; filter: none; transition: none; }
  main { transition: none; }
  body.is-leaving main { opacity: 1; transform: none; filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .tilt::after { display: none; }
  .fx-panel.fx-enter { animation: none; }
}

/* ================= Mobile & tablet optimization =================
   Layered after every base rule so these win on source order.
     1. Safe-area insets (notches, home indicator, landscape cutouts)
     2. Touch ergonomics (44px targets, no sticky hover, tap feedback)
     3. Tablet tier  (<= 1024px)
     4. Phone tier   (<= 700px)
     5. Small phone  (<= 380px)
     6. Landscape phones (short viewports)
   ------------------------------------------------------------------ */

/* ---- 1. Safe areas + text inflation ---- */
:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --tap: 44px;
}

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

body {
  overflow-wrap: break-word;
}

/* Gutters become real padding so the safe-area insets can be added without
   breaking the centred max-width maths. 1200px = 1160px content + 2.5rem. */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: calc(1.25rem + var(--safe-l)) calc(1.25rem + var(--safe-r));
}

.nav {
  padding-top: calc(.85rem + var(--safe-t));
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

.skip-link:focus {
  top: calc(1rem + var(--safe-t));
}

.scroll-top {
  right: calc(1.1rem + var(--safe-r));
  bottom: calc(1.1rem + var(--safe-b));
  width: var(--tap);
  height: var(--tap);
}

.toast-stack {
  bottom: calc(1.2rem + var(--safe-b));
  padding-inline: var(--safe-l) var(--safe-r);
}

.drawer-panel {
  padding-top: calc(5rem + var(--safe-t));
  padding-right: calc(1.2rem + var(--safe-r));
  padding-bottom: calc(1.2rem + var(--safe-b));
  overscroll-behavior: contain;
}

.footer {
  padding-bottom: calc(1.4rem + var(--safe-b));
  padding-left: var(--safe-r);
  padding-right: var(--safe-r);
}

/* Long release tags / URLs must never force a horizontal scrollbar. */
.release-card-head > *,
.community > *,
.stats-row > *,
.footer-cols > *,
.cards > *,
.steps > *,
.pillars > *,
.install-grid li > * {
  min-width: 0;
}

.release-title,
.asset-pill,
.footer a,
.privacy-card p,
.license-text,
.release-body {
  overflow-wrap: anywhere;
}

/* ---- 2. Touch ergonomics ---- */
@media (hover: none) {
  /* Kill the 300ms double-tap-zoom delay and text-selection callouts. */
  a,
  button,
  input,
  [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Hover-only affordances must not stick after a tap. */
  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .card:hover,
  .step:hover,
  .community a.card:hover,
  .faq-item:hover {
    transform: none;
  }

  .btn-primary:hover::after {
    transform: translateX(-110%);
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    box-shadow: var(--shadow-soft);
  }

  .card:hover::before {
    opacity: 0;
  }

  /* Replace hover with a real press state. */
  .btn:active,
  .card:active,
  .step:active,
  .community a.card:active {
    transform: scale(.985);
  }

  .btn-primary:active {
    box-shadow: var(--shadow-soft);
  }

  /* 44px minimum touch targets (WCAG 2.5.5 / Apple HIG). */
  .icon-btn,
  .icon-btn-sm {
    width: var(--tap);
    height: var(--tap);
  }

  .brand {
    min-height: var(--tap);
  }

  /* The inline nav is still used on touch tablets >=921px. */
  .nav-links a,
  .nav-links a.btn-nav {
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
  }

  .tab,
  .copy-btn,
  .asset-pill,
  .search-wrap .trailing {
    min-height: var(--tap);
  }

  .faq-link-btn {
    min-width: var(--tap);
    min-height: var(--tap);
    padding: 0;
    place-items: center;
  }

  .drawer-panel a {
    min-height: var(--tap);
  }

  .footer a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    margin: 0;
  }

  /* 16px minimum stops iOS Safari zooming the viewport on focus. */
  input,
  select,
  textarea,
  .search-wrap input {
    font-size: max(1rem, 16px);
  }
}

/* ---- 3. Tablet tier (grid/hero rules live in the 1024px blocks above) ---- */
@media (max-width: 1024px) {
  /* Must live here, not in the earlier 1024px block: the base two-column
     .hero-grid rule is declared below it, and source order wins. */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* The step connector is a horizontal line — meaningless once stacked. */
  .steps::before {
    display: none;
  }

  /* Cheaper blur on mid-size GPUs. */
  .nav-inner,
  .stats-row,
  .float-card,
  .search-wrap input {
    backdrop-filter: blur(12px) saturate(1.25);
  }
}

/* ---- 4. Phone tier ---- */
@media (max-width: 700px) {
  .wrap {
    padding-inline: calc(1.1rem + var(--safe-l)) calc(1.1rem + var(--safe-r));
  }

  .nav {
    padding-top: calc(.55rem + var(--safe-t));
  }

  .nav-inner {
    border-radius: 17px;
  }

  .section {
    padding: 3.4rem 0;
  }

  .cta-band {
    padding-bottom: 3.4rem;
  }

  h1,
  .h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
    line-height: 1.04;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 7.6vw, 2.4rem);
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head p,
  .lede {
    font-size: 1.04rem;
  }

  .lede {
    max-width: 100%;
  }

  /* Base rules below re-declare .hero-art/.hero-stage min-height and
     .device animation, so the phone values have to be re-asserted here. */
  .hero-art,
  .hero-stage {
    min-height: 0;
    width: 100%;
  }

  .hero-grid {
    padding: 1.6rem 0 2.6rem;
    gap: 1.6rem;
  }

  .device {
    width: min(244px, 66vw);
    padding: 9px;
    border-radius: 38px;
    animation: none;
  }

  .device-screen {
    min-height: 408px;
    border-radius: 28px;
  }

  .device-notch {
    width: 86px;
    height: 18px;
  }

  .device-status {
    font-size: .62rem;
  }

  .device-search {
    padding: .5rem .7rem;
    font-size: .7rem;
  }

  .chip {
    font-size: .6rem;
    padding: .18rem .44rem;
  }

  .listing {
    padding: .5rem .6rem;
    border-radius: 13px;
  }

  .listing strong {
    font-size: .7rem;
  }

  .listing small {
    font-size: .6rem;
  }

  .device-bar {
    font-size: .52rem;
    padding: .34rem .2rem .58rem;
  }

  .device-bar .material-symbols-rounded {
    font-size: .95rem;
  }

  .mascot {
    display: none;
  }

  .float-card {
    display: none;
  }

  /* Four tall stacked stats eat a whole phone screen. A 2x2 board with a
     cross divider keeps the same information in half the height. */
  .stats {
    margin-top: -1.6rem;
  }

  .stats-row,
  .cards,
  .steps,
  .community,
  .pillars,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: .8rem .5rem;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  /* Primary CTA gets the full row; secondary actions split it so three
     stacked full-width buttons do not push the app screenshot off-screen. */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding-inline: .8rem;
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .card,
  .step,
  .faq-item {
    padding: 1.25rem 1.1rem;
  }

  .icon-blob {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .faq-item [data-faq-button] {
    font-size: 1rem;
    padding: 1rem .9rem;
    gap: .65rem;
  }

  .faq-panel > div {
    padding-left: .1rem;
  }

  .faq-shell {
    padding: 0;
  }

  .tabs {
    width: 100%;
    border-radius: 20px;
    padding: 5px;
  }

  .tab {
    flex: 1 1 0;
    padding: .6rem .5rem;
    font-size: .95rem;
  }

  .cta-inner {
    padding: 1.9rem 1.3rem;
    border-radius: 22px;
  }

  .release-card,
  .privacy-card,
  .qr-card {
    padding: 1.15rem 1.05rem;
  }

  .install-grid li {
    gap: .7rem;
  }

  /* Glass over moving particles hurts contrast on small screens — go solid. */
  .nav-inner,
  .kicker,
  .hero-badge,
  .btn-ghost,
  .float-card,
  .card,
  .faq-item,
  .step,
  .release-card,
  .qr-card,
  .privacy-card,
  .tabs {
    backdrop-filter: none;
  }

  .kicker,
  .hero-badge,
  .btn-ghost {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
  }

  /* The grid mask is a full-bleed blurred layer; not worth it here. */
  .hero::before {
    display: none;
  }

  .particles {
    opacity: .5;
  }

  .gradient-text {
    animation: none;
  }

  .search-meta {
    margin-top: .6rem;
  }

  .toast {
    font-size: .88rem;
    padding: .55rem .9rem;
  }

  .license-text {
    max-height: 60vh;
    font-size: .78rem;
  }
}

/* ---- 5. Small phones ---- */
@media (max-width: 380px) {
  h1,
  .h1 {
    font-size: 1.95rem;
  }

  .brand span {
    font-size: 1.24rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-inner {
    height: 3.4rem;
    border-radius: 16px;
    padding: 0 .45rem 0 .7rem;
  }

  .hero-badge,
  .kicker {
    font-size: .78rem;
    padding: .34rem .65rem;
  }

  .device {
    width: min(216px, 64vw);
  }

  .device-screen {
    min-height: 368px;
  }

  .meta-row {
    font-size: .84rem;
  }
}

/* ---- 6. Landscape phones: vertical space is the constraint ---- */
@media (orientation: landscape) and (max-height: 560px) {
  .nav {
    padding-top: calc(.45rem + var(--safe-t));
  }

  .nav-inner {
    height: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem 0 1.6rem;
  }

  h1,
  .h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }

  .hero-art,
  .hero-stage {
    min-height: 0;
  }

  .device {
    width: 176px;
    padding: 7px;
    border-radius: 28px;
    animation: none;
  }

  .device-screen {
    min-height: 246px;
    border-radius: 22px;
  }

  .device-notch {
    width: 58px;
    height: 13px;
    margin-top: 5px;
  }

  .device-status {
    font-size: .54rem;
    padding: .1rem .6rem;
  }

  .device-search {
    margin: .28rem .5rem .35rem;
    padding: .4rem .55rem;
    font-size: .6rem;
  }

  .chips {
    padding: 0 .5rem .3rem;
  }

  .chip {
    font-size: .52rem;
    padding: .12rem .36rem;
  }

  .listing {
    margin: 0 .5rem .3rem;
    padding: .38rem .5rem;
    border-radius: 11px;
  }

  .listing strong {
    font-size: .58rem;
  }

  .listing small {
    font-size: .5rem;
  }

  .device-bar {
    font-size: .46rem;
    padding: .26rem .15rem .44rem;
  }

  .device-bar .material-symbols-rounded {
    font-size: .8rem;
  }

  .mascot {
    width: 72px;
    height: 72px;
    right: 0;
    top: 0;
    border-radius: 20px;
  }

  .float-card {
    display: none;
  }

  .stats {
    margin-top: -1rem;
  }

  .section {
    padding: 2.6rem 0;
  }
}
