/* ==========================================================================
   MYX — Design system
   Tokens · layout · components · homepage · motion
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg-0: #06080c;
  --bg-1: #0a0d13;
  --bg-2: #10141c;

  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .1);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --highlight: rgba(255, 255, 255, .06);

  --text: #f3f5f8;
  --muted: #9ba4b3;
  --faint: #6a7383;

  /* Brand accent (overridable per app) */
  --accent: #e31b23;
  --accent-2: #ff5960;
  --accent-soft: rgba(227, 27, 35, .14);
  --accent-glow: rgba(227, 27, 35, .35);
  --grad-end: #ffe1e2;

  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 14px;

  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .3);
  --shadow-glow: 0 18px 50px -18px var(--accent-glow);
  --header-bg: rgba(12, 15, 21, .66);
  --menu-bg: rgba(8, 10, 14, .97);

  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg-0: #f6f7f9;
  --bg-1: #ffffff;
  --bg-2: #eceef2;
  --surface: rgba(255, 255, 255, .7);
  --surface-2: rgba(255, 255, 255, .92);
  --surface-3: #fff;
  --border: rgba(16, 20, 28, .09);
  --border-strong: rgba(16, 20, 28, .17);
  --highlight: rgba(255, 255, 255, .9);
  --text: #12151b;
  --muted: #586070;
  --faint: #7a8290;
  --accent: #d71920;
  --accent-2: #e8363d;
  --accent-soft: rgba(215, 25, 32, .09);
  --accent-glow: rgba(215, 25, 32, .24);
  --grad-end: #8a0f14;
  --shadow: 0 30px 60px -30px rgba(30, 36, 48, .25), 0 2px 6px -2px rgba(30, 36, 48, .08);
  --header-bg: rgba(255, 255, 255, .75);
  --menu-bg: rgba(255, 255, 255, .98);
}

/* Per-app accents: pages use body[data-app], homepage sections use [data-accent] */
[data-app="lifeone"],
[data-accent="lifeone"] {
  --accent: #37c26b;
  --accent-2: #7fe0a0;
  --accent-soft: rgba(55, 194, 107, .14);
  --accent-glow: rgba(55, 194, 107, .32);
  --grad-end: #d8f7e3;
}

[data-app="qrone"],
[data-accent="qrone"] {
  --accent: #3b9dff;
  --accent-2: #7cc0ff;
  --accent-soft: rgba(59, 157, 255, .14);
  --accent-glow: rgba(59, 157, 255, .32);
  --grad-end: #dcecff;
}

[data-app="remoteone"],
[data-accent="remoteone"] {
  --accent: #a982ff;
  --accent-2: #c7abff;
  --accent-soft: rgba(169, 130, 255, .14);
  --accent-glow: rgba(169, 130, 255, .32);
  --grad-end: #ece3ff;
}

[data-app="breedly"],
[data-accent="breedly"] {
  --accent: #8ad76a;
  --accent-2: #b6ec9b;
  --accent-soft: rgba(138, 215, 106, .14);
  --accent-glow: rgba(138, 215, 106, .32);
  --grad-end: #e8f8df;
}

[data-app="ireject"],
[data-accent="ireject"] {
  --accent: #ff6d8a;
  --accent-2: #ff9bb0;
  --accent-soft: rgba(255, 109, 138, .14);
  --accent-glow: rgba(255, 109, 138, .32);
  --grad-end: #ffe3ea;
}

[data-app="billone"],
[data-accent="billone"] {
  --accent: #26c7b4;
  --accent-2: #72e1d2;
  --accent-soft: rgba(38, 199, 180, .14);
  --accent-glow: rgba(38, 199, 180, .32);
  --grad-end: #d8f6f2;
}

[data-app="paymentsuno"],
[data-accent="paymentsuno"] {
  --accent: #22b05a;
  --accent-2: #6fd898;
  --accent-soft: rgba(34, 176, 90, .14);
  --accent-glow: rgba(34, 176, 90, .32);
  --grad-end: #d6f5e2;
}

[data-app="nutrione"],
[data-accent="nutrione"] {
  --accent: #f76a45;
  --accent-2: #fba474;
  --accent-soft: rgba(247, 106, 69, .14);
  --accent-glow: rgba(247, 106, 69, .32);
  --grad-end: #feede6;
}

body[data-theme="light"] [data-accent],
body[data-theme="light"][data-app] {
  --grad-end: #10141c;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg-0);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Ambient background ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .32;
  pointer-events: none;
}

body::before {
  top: -22vw;
  right: -14vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  animation: drift1 22s var(--ease) infinite alternate;
}

body::after {
  bottom: -26vw;
  left: -16vw;
  background: radial-gradient(circle, #2a55c9 0%, transparent 68%);
  opacity: .22;
  animation: drift2 26s var(--ease) infinite alternate;
}

body[data-theme="light"]::before {
  opacity: .12;
}

body[data-theme="light"]::after {
  background: radial-gradient(circle, #9db8ff 0%, transparent 68%);
  opacity: .18;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

body[data-theme="light"] .bg-grid {
  background:
    linear-gradient(rgba(16, 20, 28, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 28, .045) 1px, transparent 1px);
  background-size: 64px 64px;
}

@keyframes drift1 {
  to {
    transform: translate(-60px, 40px) scale(1.1);
  }
}

@keyframes drift2 {
  to {
    transform: translate(50px, -40px) scale(1.15);
  }
}

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out .22s var(--ease) both;
}

::view-transition-new(root) {
  animation: vt-in .42s var(--ease-out) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
}

section {
  position: relative;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-sm {
  padding: clamp(40px, 5vw, 64px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

body[data-theme="light"] .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -.035em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18.5px);
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 50%, var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 13px;
  font: 700 15px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .2s;
  white-space: nowrap;
  will-change: transform;
}

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

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

.btn-lg {
  --pad: 16px 26px;
  font-size: 16px;
  border-radius: 15px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-primary:hover {
  box-shadow: 0 24px 60px -16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn .arrow {
  transition: transform .3s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-2);
  text-decoration: none;
  transition: gap .3s var(--ease-out);
}

body[data-theme="light"] .link-arrow {
  color: var(--accent);
}

.link-arrow:hover {
  gap: 10px;
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  pointer-events: none;
}

/* ---------- Header (floating pill) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  gap: 16px;
  border-radius: 18px;
}

/* Glass lives on a pseudo-element so the fixed mobile menu is not trapped by backdrop-filter */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.scrolled .nav::before {
  background: var(--header-bg);
  border-color: var(--border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, .6), inset 0 1px 0 var(--highlight);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand .wordmark {
  font: 800 22px var(--font-head);
  letter-spacing: -.02em;
}

.brand .wordmark span {
  color: var(--accent);
}

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

.nav-links .nav-cta,
.nav-actions .nav-cta {
  --pad: 10px 18px;
  font-size: 14.5px;
}

.nav-links .nav-cta {
  display: none;
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font: 600 14.5px var(--font-body);
  padding: 9px 14px;
  border-radius: 11px;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .3s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--accent-2);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.theme-toggle:active {
  transform: rotate(40deg) scale(.94);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 92px 20px 28px;
    background: var(--menu-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(-104%);
    visibility: hidden;
    transition: transform .5s var(--ease-out), visibility 0s linear .5s;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    z-index: 1;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .5s var(--ease-out), visibility 0s;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 18px;
    font-family: var(--font-head);
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-links .btn.nav-cta {
    display: inline-flex;
    margin: 14px 0 0;
    --pad: 15px 20px;
    font-size: 16px;
  }
}

/* ---------- Generic hero (app pages, 404) ---------- */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(42px, 6.6vw, 78px);
  letter-spacing: -.045em;
  margin-bottom: 22px;
}

.hero .lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 36px;
  color: var(--faint);
  font-size: 14px;
}

.hero-meta b {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 22px;
  display: block;
}

.app-icon-badge {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
  margin-bottom: 26px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  animation: float 7s ease-in-out infinite;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta,
  .hero-grid .downloads {
    justify-content: center;
  }

  .app-icon-badge {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
  }
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: min(280px, 74vw);
  aspect-ratio: 1080 / 2340;
  border-radius: 40px;
  padding: 11px;
  background: linear-gradient(160deg, #2a3444, #131c28);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 8px;
  border-radius: 99px;
  background: #0a0f17;
  z-index: 3;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--highlight);
  transition: transform .45s var(--ease-out), border-color .35s, box-shadow .45s;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
}

.feature .f-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 25px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Alternating feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.feature-row+.feature-row {
  margin-top: clamp(56px, 8vw, 110px);
}

.feature-row:nth-child(even) .fr-visual {
  order: -1;
}

.feature-row .fr-text h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.feature-row .fr-text p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.fr-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.fr-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.fr-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-top: 2px;
}

@media (max-width: 820px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .fr-visual {
    order: 0;
  }
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 4px 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  scroll-snap-align: center;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.slide.slide-phone {
  width: min(280px, 72vw);
}

.slide.slide-wide {
  width: min(760px, 88vw);
}

.slide.slide-wide img {
  width: auto;
  max-width: 100%;
  max-height: min(600px, 65vh);
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s, transform .3s var(--ease-out), color .2s;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.06);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  background: var(--border-strong);
  transition: width .35s var(--ease-out), background .3s;
}

.carousel-dots button.active {
  width: 26px;
  background: var(--accent);
}

.gallery-empty {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.gallery-empty .ge-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

/* ---------- Store badges ---------- */
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s;
}

.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-badge .sb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .sb-text small {
  font-size: 10.5px;
  color: #a6adba;
  letter-spacing: .06em;
}

.store-badge .sb-text b {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}

.store-badge.sm {
  padding: 7px 14px 7px 11px;
  gap: 9px;
  border-radius: 12px;
}

.store-badge.sm svg {
  width: 22px;
  height: 22px;
}

.store-badge.sm .sb-text small {
  font-size: 9px;
}

.store-badge.sm .sb-text b {
  font-size: 15px;
}

.store-badge.soon {
  opacity: .78;
  cursor: default;
}

.store-badge.soon:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: none;
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}

.faq-item.open {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.faq-q {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
  font: 600 17px var(--font-body);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q .chev {
  flex: 0 0 auto;
  transition: transform .4s var(--ease-out);
  color: var(--accent-2);
}

.faq-item.open .chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out);
}

.faq-a p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* ---------- Changelog timeline ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.tl-item {
  position: relative;
  padding-bottom: 34px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tl-version {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
}

.tl-date {
  font-size: 13px;
  color: var(--faint);
}

.tl-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.tl-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.tl-list li {
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.tl-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Prose (privacy / legal) ---------- */
.prose {
  max-width: 780px;
  margin-inline: auto;
}

.prose h2 {
  font-size: 26px;
  margin: 44px 0 14px;
}

.prose h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
}

.prose ul {
  color: var(--muted);
  margin: 0 0 18px 22px;
  display: grid;
  gap: 8px;
}

.prose a {
  color: var(--accent-2);
}

.prose .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 30px;
}

.policy section {
  scroll-margin-top: 96px;
}

.policy section h2 {
  font-size: 22px;
  margin: 36px 0 12px;
}

.policy strong {
  color: var(--text);
}

.policy-glance {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.policy-glance h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.policy-glance ul {
  margin-bottom: 0;
  color: var(--text);
}

.policy-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0 0 8px;
  padding-left: 22px;
  color: var(--faint);
  font-size: 15px;
}

.policy-toc li {
  margin: 4px 0;
  break-inside: avoid;
}

.policy-cta {
  margin: 36px 0 0;
}

.policy-cta .btn-primary {
  color: #fff;
}

@media (max-width: 560px) {
  .policy-toc ol {
    columns: 1;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 90%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  opacity: .5;
  pointer-events: none;
  z-index: -1;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 17px;
}

.cta-band .downloads {
  justify-content: center;
}

/* ---------- Legacy app directory cards (support / privacy hubs) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  --mx: 50%;
  --my: 0%;
  padding: 26px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--highlight);
  transition: transform .45s var(--ease-out), border-color .35s, box-shadow .45s;
  display: flex;
  flex-direction: column;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--ac-glow, rgba(255, 255, 255, .08)), transparent 55%);
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--ac, var(--accent));
  box-shadow: 0 30px 64px -28px var(--ac-glow, rgba(0, 0, 0, .8)), inset 0 1px 0 var(--highlight);
}

.app-card:hover::after {
  opacity: 1;
}

.app-card .ac-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--border);
  margin-bottom: 22px;
  background: var(--bg-1);
}

.app-card .ac-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--ac-soft, var(--accent-soft));
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.app-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.app-card .ac-desc {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.app-card .ac-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ac, var(--accent-2));
  font-weight: 700;
  font-size: 15px;
  transition: gap .3s var(--ease-out);
}

.app-card:hover .ac-link {
  gap: 11px;
}

/* ---------- Page hero / breadcrumb ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(24px, 4vw, 44px);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.04em;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--muted);
  max-width: 620px;
  margin-inline: auto;
  font-size: 18px;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ==========================================================================
   Homepage
   ========================================================================== */

/* ---------- Hero ---------- */
.home-hero {
  --mx: 50%;
  --my: 30%;
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}

.hero-bg .orb-1 {
  width: 520px;
  height: 520px;
  top: 4%;
  left: 52%;
  background: radial-gradient(circle, rgba(227, 27, 35, .75), transparent 65%);
  animation: orb1 20s ease-in-out infinite alternate;
}

.hero-bg .orb-2 {
  width: 440px;
  height: 440px;
  top: 38%;
  left: 70%;
  background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 65%);
  animation: orb2 24s ease-in-out infinite alternate;
}

.hero-bg .orb-3 {
  width: 480px;
  height: 480px;
  top: 30%;
  left: -8%;
  background: radial-gradient(circle, rgba(40, 110, 255, .4), transparent 65%);
  animation: orb3 28s ease-in-out infinite alternate;
}

body[data-theme="light"] .hero-bg .orb {
  opacity: .22;
}

.hero-bg .spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, .06), transparent 60%);
  transition: background .2s;
}

.hero-bg .hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(500px circle at var(--mx) var(--my), #000, transparent 70%);
  -webkit-mask-image: radial-gradient(500px circle at var(--mx) var(--my), #000, transparent 70%);
}

body[data-theme="light"] .hero-bg .hero-lines {
  background-image:
    linear-gradient(rgba(16, 20, 28, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 28, .07) 1px, transparent 1px);
}

@keyframes orb1 {
  to {
    transform: translate(-120px, 80px) scale(1.15);
  }
}

@keyframes orb2 {
  to {
    transform: translate(-60px, -90px) scale(.9);
  }
}

@keyframes orb3 {
  to {
    transform: translate(120px, -40px) scale(1.1);
  }
}

.home-hero .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  margin-bottom: 26px;
  transition: border-color .3s, background .3s;
}

.status-pill:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.status-pill .sp-tag {
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(55, 194, 107, .14);
  color: #5fd68c;
  font-size: 12px;
  font-weight: 700;
}

body[data-theme="light"] .status-pill .sp-tag {
  white-space: nowrap;
  flex: 0 0 auto;
  color: #1c8a45;
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.5);
    opacity: .8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.home-hero h1 {
  font-size: clamp(42px, 5.4vw, 78px);
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 24px;
}

.home-hero h1 .line {
  display: block;
}

.home-hero .lead {
  font-size: clamp(17px, 1.7vw, 19.5px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.home-hero .lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}

.icon-stack {
  display: flex;
}

.icon-stack span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--bg-2);
  border: 2px solid var(--bg-0);
  margin-left: -8px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5);
}

.icon-stack span:first-child {
  margin-left: 0;
}

.hero-trust b {
  color: var(--text);
}

/* Hero visual: fanned poster stack with parallax */
.hero-stack {
  --px: 0;
  --py: 0;
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
  perspective: 1400px;
}

.hero-stack .poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  aspect-ratio: 9 / 17.5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--bg-2);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .2);
  transition: transform 1s var(--ease-out);
}

.hero-stack .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-stack .p-center {
  z-index: 3;
  transform: translate(-50%, -50%) translate3d(calc(var(--px) * 18px), calc(var(--py) * 14px), 0) rotateY(calc(var(--px) * 6deg)) rotateX(calc(var(--py) * -6deg));
}

.hero-stack .p-left {
  z-index: 2;
  transform: translate(-50%, -50%) translate3d(calc(-72% + var(--px) * 8px), calc(8% + var(--py) * 6px), 0) rotate(-9deg) scale(.86);
}

.hero-stack .p-right {
  z-index: 2;
  transform: translate(-50%, -50%) translate3d(calc(72% + var(--px) * 8px), calc(8% + var(--py) * 6px), 0) rotate(9deg) scale(.86);
}

.hero-stack .p-left,
.hero-stack .p-right {
  filter: saturate(.9);
}

.hero-stack .glow {
  position: absolute;
  inset: 18% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 27, 35, .45), transparent);
  filter: blur(40px);
  z-index: 0;
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  background: var(--header-bg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6), inset 0 1px 0 var(--highlight);
  animation: float 6s ease-in-out infinite;
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0);
  transition: transform .8s var(--ease-out);
}

.float-chip .fc-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.float-chip small {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.float-chip .fc-text {
  line-height: 1.25;
}

.float-chip.c1 {
  top: 10%;
  left: -2%;
}

.float-chip.c2 {
  top: 46%;
  right: -4%;
  animation-delay: -2s;
}

.float-chip.c3 {
  bottom: 6%;
  left: 6%;
  animation-delay: -4s;
}

@keyframes float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-cue::before {
  content: "";
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--muted);
  animation: cue 2s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  80%,
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .home-hero .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero .lead {
    margin-inline: auto;
  }

  .home-hero .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-stack {
    width: min(440px, 100%);
    margin-top: 12px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 520px) {
  .home-hero .hero-actions .btn {
    flex: 1 1 100%;
  }

  .float-chip {
    font-size: 12px;
    padding: 7px 11px 7px 7px;
    gap: 8px;
  }

  .float-chip .fc-ico {
    width: 26px;
    height: 26px;
  }

  .float-chip small {
    display: none;
  }

  .float-chip.c1 {
    left: 0;
  }

  .float-chip.c2 {
    right: 0;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .3s, background .3s;
}

.marquee-item:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.marquee-item .mi-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--accent-soft);
}

.marquee-item small {
  color: var(--faint);
  font-weight: 500;
  font-size: 13px;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 var(--highlight);
  overflow: hidden;
}

.stat {
  padding: clamp(24px, 3.5vw, 40px);
  position: relative;
}

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

.stat .num {
  font: 800 clamp(40px, 5vw, 60px)/1 var(--font-head);
  letter-spacing: -.04em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.stat .num sup {
  font-size: .45em;
  vertical-align: top;
  margin-left: 2px;
  color: var(--accent-2);
}

.stat .label {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.stat .sub {
  color: var(--faint);
  font-size: 13.5px;
}

@media (max-width: 820px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

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

.milestones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.milestone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.milestone b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Featured app stages ---------- */
.stages {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 90% at 100% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 var(--highlight);
  overflow: hidden;
  isolation: isolate;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--accent-glow), transparent 35%, transparent 70%, var(--accent-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stage>* {
  min-width: 0;
}

.stage.flip .stage-visual {
  order: -1;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.app-glyph {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.stage-head .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-head .name {
  font: 800 22px/1.1 var(--font-head);
  letter-spacing: -.02em;
}

.stage-head .cat {
  font-size: 13.5px;
  color: var(--faint);
  font-weight: 600;
}

.stage h3 {
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -.04em;
  margin-bottom: 16px;
}

.stage .stage-desc {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 26px;
  max-width: 480px;
}

.stage-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-bottom: 30px;
}

.stage-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.stage-features li span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Animated preview: cross-fading screenshots with story-style progress */
.stage-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.stage-visual::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(30px);
  z-index: -1;
}

.preview {
  position: relative;
  width: min(300px, 78%);
  aspect-ratio: 9 / 17.5;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--bg-2);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .8s var(--ease-out);
}

.stage:hover .preview {
  --tilt: 0deg;
  transform: translateY(-6px);
}

.stage .preview {
  --tilt: 2.5deg;
}

.stage.flip .preview {
  --tilt: -2.5deg;
}

.preview.wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
}

.preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease-out);
}

.preview img.on {
  opacity: 1;
  transform: none;
}

.preview-bars {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.preview-bars i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
  position: relative;
}

.preview-bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.preview-bars i.done::after {
  transform: scaleX(1);
}

.preview-bars i.run::after {
  animation: bar var(--dur, 3.2s) linear forwards;
}

@keyframes bar {
  to {
    transform: scaleX(1);
  }
}

.stage-chip {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 10%;
  animation-delay: -1.5s;
}

.stage.flip .stage-chip {
  right: auto;
  left: 4%;
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
  }

  .stage.flip .stage-visual {
    order: 0;
  }

  .stage-visual {
    order: -1;
    padding: 8px 0 12px;
  }
}

@media (max-width: 460px) {
  .stage-features {
    grid-template-columns: 1fr;
  }

  .stage {
    border-radius: 28px;
  }
}

/* ---------- All apps: filter + tiles ---------- */
.filter-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.filter-wrap {
  display: flex;
  justify-content: center;
}

.filter-bar button {
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 14px var(--font-body);
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .25s, background .3s var(--ease);
}

.filter-bar button:hover {
  color: var(--text);
}

.filter-bar button[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5), inset 0 1px 0 var(--highlight);
}

@media (max-width: 440px) {
  .filter-bar button {
    font-size: 13px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .status-pill {
    font-size: 12.5px;
    text-align: left;
  }
}

.filter-bar .count {
  margin-left: 6px;
  font-size: 12px;
  color: var(--faint);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1020px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

.app-tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 var(--highlight);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s var(--ease-out), opacity .4s, scale .4s var(--ease-out);
}

.app-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 55%);
}

.app-tile:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 34px 70px -34px var(--accent-glow), inset 0 1px 0 var(--highlight);
}

.app-tile:hover::after {
  opacity: 1;
}

.app-tile.is-hidden {
  display: none;
}

.tile-next {
  border-style: dashed;
  border-color: var(--border-strong);
  background: radial-gradient(90% 70% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
}

.tile-next .tile-body {
  justify-content: center;
  align-items: flex-start;
  padding: 32px 28px;
}

.tile-next .app-glyph {
  margin-bottom: 20px;
}

.tile-next h3 {
  font-size: 24px;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.tile-next p {
  flex: 0 0 auto;
}

.tile-media {
  position: relative;
  aspect-ratio: 5 / 3.6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 100%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--border);
}

.tile-media img {
  width: 50%;
  aspect-ratio: 9 / 17;
  object-fit: cover;
  object-position: top;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 0;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  transition: transform .8s var(--ease-out);
}

.app-tile:hover .tile-media img {
  transform: translateY(-10px) scale(1.03);
}

.tile-media.wide {
  align-items: center;
  padding-top: 0;
}

.tile-media.wide img {
  width: 86%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transform: none;
}

.app-tile:hover .tile-media.wide img {
  transform: scale(1.03);
}

.tile-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 10, 14, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tile-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.tile-status.soon .dot {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

.tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 22px;
}

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

.tile-head .app-glyph {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 21px;
  box-shadow: 0 10px 24px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.tile-head h3 {
  font-size: 20px;
  letter-spacing: -.02em;
}

.tile-head h3 a {
  text-decoration: none;
}

/* Stretched link makes the whole tile clickable while keeping action links separate */
.tile-head h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tile-head .cat {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 600;
}

.tile-body p {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 18px;
}

.tile-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tile-actions .link-arrow {
  font-size: 14px;
}

.btn-soft {
  --pad: 8px 14px;
  font-size: 13.5px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: var(--border);
}

body[data-theme="light"] .btn-soft {
  color: var(--accent);
}

.btn-soft:hover {
  border-color: var(--accent);
}

/* ---------- Expertise bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.cell {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 2;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 var(--highlight);
  overflow: hidden;
  transition: border-color .35s, transform .5s var(--ease-out);
}

.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
}

.cell:hover {
  border-color: var(--border-strong);
}

.cell:hover::after {
  opacity: 1;
}

.cell.span-4 {
  grid-column: span 4;
}

.cell.span-3 {
  grid-column: span 3;
}

.cell .c-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.cell .c-icon svg {
  width: 22px;
  height: 22px;
}

.cell h3 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.cell p {
  color: var(--muted);
  font-size: 15px;
}

.cell.flutter {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.code-window {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(3, 5, 9, .7);
  font: 500 12.5px/1.75 var(--font-mono);
  color: #c9d1dc;
  overflow: hidden;
  box-shadow: var(--shadow);
}

body[data-theme="light"] .code-window {
  background: #0f131a;
}

.code-window .cw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.code-window .cw-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f4a;
}

.code-window .cw-bar i:nth-child(1) {
  background: #ff5f57;
}

.code-window .cw-bar i:nth-child(2) {
  background: #febc2e;
}

.code-window .cw-bar i:nth-child(3) {
  background: #28c840;
}

.code-window .cw-bar span {
  margin-left: 10px;
  color: #6f7887;
  font-size: 11.5px;
}

.code-window pre {
  padding: 14px 16px 16px;
  overflow-x: auto;
  white-space: pre;
}

.code-window .k {
  color: #ff7b93;
}

.code-window .t {
  color: #7cc0ff;
}

.code-window .s {
  color: #9be29f;
}

.code-window .c {
  color: #5d6675;
}

.code-window .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: var(--accent-2);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.skill-list span {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .cell,
  .cell.span-3 {
    grid-column: span 1;
  }

  .cell.span-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .cell.flutter {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy section ---------- */
.privacy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  align-items: start;
}

.privacy-panel>* {
  min-width: 0;
}

.privacy-panel h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
  margin-bottom: 16px;
}

.privacy-panel .pp-intro {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.principles {
  list-style: none;
  display: grid;
  gap: 18px;
}

.principles li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}

.principles .p-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.principles .p-ico svg {
  width: 20px;
  height: 20px;
}

.principles b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  margin-bottom: 2px;
}

.principles span {
  color: var(--muted);
  font-size: 14.5px;
}

.policy-list {
  display: grid;
  gap: 8px;
}

.policy-list h3 {
  font-size: 14px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 8px;
}

.policy-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}

.policy-link:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateX(4px);
}

.policy-link .pl-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--accent-soft);
}

.policy-link .pl-arrow {
  margin-left: auto;
  color: var(--faint);
  transition: color .3s, transform .4s var(--ease-out);
}

.policy-link:hover .pl-arrow {
  color: var(--accent-2);
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .privacy-panel {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 var(--highlight);
}

.review .stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 15px;
}

.review blockquote {
  font-size: 16.5px;
  line-height: 1.6;
  flex: 1;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.review figcaption b {
  display: block;
  color: var(--text);
}

.review-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}

.review-cta h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.review-cta p {
  color: var(--muted);
}

.review-cta .downloads {
  justify-content: flex-end;
}

.review-cta .stars {
  color: #fbbf24;
  letter-spacing: 3px;
  font-size: 20px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {

  .reviews,
  .review-cta {
    grid-template-columns: 1fr;
  }

  .review-cta .downloads {
    justify-content: flex-start;
  }
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border-radius: 40px;
  text-align: center;
  isolation: isolate;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -60%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  opacity: .7;
  animation: breathe 8s ease-in-out infinite alternate;
}

@keyframes breathe {
  to {
    transform: scale(1.15);
    opacity: .45;
  }
}

.contact-card h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  letter-spacing: -.045em;
  margin-bottom: 18px;
}

.contact-card p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17.5px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.copy-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.copy-email .copied {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translate(-50%, 6px);
  padding: 4px 10px;
  border-radius: 8px;
  font: 600 12px var(--font-body);
  color: var(--bg-0);
  background: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}

.copy-email.done .copied {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 30px;
  color: var(--faint);
  font-size: 14px;
}

.contact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding: clamp(52px, 7vw, 80px) 0 44px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 300px;
  margin-bottom: 22px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color .2s, border-color .3s, transform .4s var(--ease-out), background .3s;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col a {
  display: block;
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
  transition: color .2s, transform .3s var(--ease-out);
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 13.5px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-2);
}

.footer-wordmark {
  font: 800 clamp(90px, 22vw, 300px)/.8 var(--font-head);
  letter-spacing: -.06em;
  text-align: center;
  margin-bottom: -.12em;
  background: linear-gradient(180deg, var(--surface-3), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 13.5px var(--font-body);
  cursor: pointer;
}

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

.made-with {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.made-with .heart {
  color: var(--accent);
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll (staggered via --d) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Hero entrance */
.intro {
  animation: intro 1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
}

.hero-stack.intro {
  animation-name: intro-scale;
  animation-duration: 1.4s;
}

@keyframes intro-scale {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.94);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .preview img:first-child {
    opacity: 1;
  }
}
