/* ============================================================
   extendr — style.css
   ============================================================ */

:root {
  --bg: #0c0d0a;
  --bg-soft: #121410;
  --surface: #161812;
  --line: rgba(235, 240, 220, 0.1);
  --text: #eef0e6;
  --text-dim: rgba(238, 240, 230, 0.55);
  --accent: #ccf63f;
  --accent-ink: #0c0d0a;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); font-style: normal; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-2%, -3%); }
  80% { transform: translate(4%, 2%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
}
.preloader__inner {
  display: flex; align-items: baseline; gap: 1.25rem;
  font-family: var(--font-display);
}
.preloader__logo { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; }
.preloader__logo i, .nav__logo i, .footer__logo i { color: var(--accent); font-style: normal; }
.preloader__count { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.preloader__bar {
  width: min(260px, 60vw); height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.preloader__bar span {
  display: block; width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid transparent;
  z-index: 9500;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease,
    background-color 0.3s ease, border-color 0.3s ease;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover {
  width: 52px; height: 52px;
  background: transparent;
  border-color: rgba(238, 240, 230, 0.85);
}
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn:hover::after { transform: translateY(0); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid::after { background: var(--text); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost::after { background: var(--accent); }
.btn--ghost:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn--lg { padding: 1.2rem 2.4rem; font-size: 1.05rem; }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 13, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em;
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__link {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s ease;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 7900;
  background: rgba(12, 13, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: var(--pad);
  gap: 2.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.25;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.menu.is-open .menu__link { transform: translateY(0); opacity: 1; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.06s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.12s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.18s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 3rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 1200px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 2rem;
  background: rgba(12, 13, 10, 0.5);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9.5vw, 8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero__title em { font-style: italic; font-weight: 600; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__sub {
  max-width: 540px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  margin-bottom: 2.6rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta {
  position: relative; z-index: 1;
  margin-top: auto;
  padding-top: 4rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 0.82rem; color: var(--text-dim);
  letter-spacing: 0.02em;
}
.hero__scroll i { font-style: normal; display: inline-block; animation: bob 1.8s ease infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-dim);
  padding-right: 0.6rem;
}
.marquee__track i { color: var(--accent); font-style: normal; padding: 0 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Shared section bits ---------- */
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 880px;
}
.split-words .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .word > span { display: inline-block; transform: translateY(110%); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(6rem, 12vw, 11rem) var(--pad); max-width: 1200px; }
.manifesto__kicker {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
}
.manifesto__text .m-word { color: rgba(238, 240, 230, 0.18); transition: color 0.3s ease; }
.manifesto__stats {
  display: flex; gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Catalog ---------- */
.catalog { border-top: 1px solid var(--line); }
.catalog__head {
  padding: clamp(4rem, 8vw, 7rem) var(--pad) 2.5rem;
  display: flex; flex-direction: column;
}
.catalog__hint { color: var(--text-dim); font-size: 0.85rem; margin-top: 1.2rem; }
.catalog__pin { overflow: hidden; }
.catalog__track {
  display: flex; gap: 1.4rem;
  padding: 0 var(--pad) clamp(4rem, 8vw, 6rem);
  width: max-content;
}
.app-card {
  width: clamp(290px, 26vw, 380px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex; flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, background 0.45s ease;
  flex-shrink: 0;
}
.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(204, 246, 63, 0.4);
  background: #191c13;
}
.app-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.4rem; }
.app-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--accent-ink);
  background: var(--tint, var(--accent));
}
.app-card__price {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(204, 246, 63, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.app-card p { font-size: 0.92rem; color: var(--text-dim); flex-grow: 1; }
.app-card__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.app-card__tags span {
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-dim);
  background: rgba(235, 240, 220, 0.06);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.app-card__foot {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem; margin-top: 0.3rem;
  font-size: 0.82rem;
}
.app-card__rating { color: var(--text); font-weight: 600; }
.app-card__guide { color: var(--accent); }
.app-card--cta {
  justify-content: center; gap: 1.2rem;
  background: transparent;
  border-style: dashed;
  border-color: rgba(235, 240, 220, 0.2);
}
.app-card--cta h3 { font-size: 2rem; line-height: 1.1; }
.app-card--cta .btn { align-self: flex-start; }

/* ---------- Pillars ---------- */
.pillars {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
}
.pillars__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(204, 246, 63, 0.35); }
.pillar__num { font-size: 1.5rem; color: var(--accent); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
}
.pillar p { font-size: 0.95rem; color: var(--text-dim); }
.pillar--feature { background: linear-gradient(160deg, #1a1d12, var(--surface) 60%); }
.guide-mock {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  background: rgba(12, 13, 10, 0.5);
}
.guide-mock__step {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; color: var(--text-dim);
}
.guide-mock__step i {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 0.72rem;
}
.guide-mock__step.is-done i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.guide-mock__step.is-done { color: var(--text); }
.guide-mock__step.is-active i { border-color: var(--accent); color: var(--accent); }
.guide-mock__step.is-active { color: var(--text); }

/* ---------- Request ---------- */
.request {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
  align-items: center;
}
.request__sub {
  color: var(--text-dim);
  margin: 1.6rem 0 2.2rem;
  max-width: 460px;
}
.request__board { display: flex; flex-direction: column; gap: 1rem; }
.board-card {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.board-card:hover { transform: translateX(6px); border-color: rgba(204, 246, 63, 0.35); }
.board-card__votes {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  color: var(--accent);
  min-width: 42px;
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}
.board-card__votes i { font-style: normal; font-size: 0.7rem; }
.board-card__body { display: flex; flex-direction: column; gap: 0.35rem; }
.board-card__body h4 { font-size: 0.98rem; font-weight: 600; line-height: 1.4; }
.board-card__status {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.board-card__status.is-estimating { color: #ffd166; background: rgba(255, 209, 102, 0.1); }
.board-card__status.is-building { color: var(--accent); background: rgba(204, 246, 63, 0.1); }
.board-card__status.is-quoted { color: #5fd4ff; background: rgba(95, 212, 255, 0.1); }
.board-card--ghost { border-style: dashed; opacity: 0.65; }

/* ---------- Roadmap ---------- */
.roadmap { padding: clamp(5rem, 10vw, 9rem) var(--pad); border-top: 1px solid var(--line); }
.roadmap__rail {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  padding-top: 2.6rem;
}
.roadmap__line {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--line);
  overflow: hidden;
}
.roadmap__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.phase { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding-right: 1rem; }
.phase::before {
  content: "";
  position: absolute; top: -2.6rem; left: 0;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  margin-top: 1px;
}
.phase__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.phase__tag.is-live { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.phase h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.phase p { font-size: 0.93rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(6rem, 12vw, 10rem) var(--pad) 2.5rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 115%, rgba(204, 246, 63, 0.13), transparent 70%);
}
.footer__kicker {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.footer__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 3rem;
}
.footer__title .line { display: block; overflow: hidden; }
.footer__title .line > span { display: block; }
.footer__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer__bottom {
  margin-top: clamp(5rem, 10vw, 8rem);
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  flex-wrap: wrap;
}
.footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.footer__links { display: flex; gap: 1.6rem; font-size: 0.85rem; }
.footer__links a { color: var(--text-dim); transition: color 0.3s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Anim helpers ---------- */
.anim-fade { opacity: 0; transform: translateY(28px); }
.anim-card { opacity: 0; transform: translateY(40px); }
html.no-motion .anim-fade,
html.no-motion .anim-card { opacity: 1; transform: none; }
html.no-motion .split-words .word > span,
html.no-motion .hero__title .line > span,
html.no-motion .footer__title .line > span { transform: none; }
html.no-motion .manifesto__text .m-word { color: inherit; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pillars__grid { grid-template-columns: 1fr; max-width: 640px; }
  .request { grid-template-columns: 1fr; }
  .request__board { max-width: 640px; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .catalog__pin { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .catalog__pin::-webkit-scrollbar { display: none; }
  .catalog__track { padding-bottom: 3rem; }
  .app-card { width: min(320px, 82vw); }

  .roadmap__rail { grid-template-columns: 1fr; padding-top: 0; gap: 0; }
  .roadmap__line { display: none; }
  .phase { padding: 1.6rem 0 1.6rem 1.8rem; border-left: 2px solid var(--line); }
  .phase::before { top: 2.2rem; left: -7px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__meta { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   v2 — Rechat-only: install, types, apps page, toast
   ============================================================ */

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translate(-50%, 140%);
  z-index: 9600;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.92rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  max-width: calc(100vw - 2.5rem);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- App card: location badge + copy link ---------- */
.app-card__loc {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(204, 246, 63, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}
.app-card__badges {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.4rem;
}
.app-card__status {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}
.app-card__status.is-live {
  color: var(--accent);
  background: rgba(204, 246, 63, 0.1);
}
.app-card--soon .app-card__icon { opacity: 0.65; }
.app-card--soon h3 { color: var(--text-dim); }
.copy-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  padding: 0.2rem 0;
  transition: opacity 0.3s ease;
}
.copy-link:hover { opacity: 0.75; }
.copy-link.is-copied { color: var(--text); }
.copy-link.is-soon { color: var(--text-dim); cursor: default; font-weight: 500; }
.app-card__foot .app-card__price { border: none; padding: 0.3rem 0; color: var(--text-dim); }

/* ---------- Install section ---------- */
.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
  align-items: center;
}
.install__sub { color: var(--text-dim); margin: 1.6rem 0 2.4rem; max-width: 480px; }
.install__steps { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.install-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.install-step__num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(204, 246, 63, 0.4);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.install-step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.2rem;
}
.install-step p { font-size: 0.92rem; color: var(--text-dim); }
.install__badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2.4rem; }
.install__badges span {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-dim);
  border: 1px dashed rgba(235, 240, 220, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

.install-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.install-mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 10, 0.55);
}
.install-mock__bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(235, 240, 220, 0.15);
}
.install-mock__bar em {
  font-style: normal; font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: 0.8rem;
  font-family: var(--font-display); font-weight: 500;
}
.install-mock__body { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.install-mock__label {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
}
.install-mock__field {
  display: flex; align-items: center; gap: 0.8rem;
  border: 1px solid rgba(204, 246, 63, 0.35);
  border-radius: 12px;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  background: rgba(12, 13, 10, 0.6);
}
.install-mock__field code {
  font-size: 0.8rem;
  color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.install-mock__hint { font-size: 0.85rem; color: var(--text-dim); }
.install-mock__result {
  display: flex; align-items: center; gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  background: rgba(12, 13, 10, 0.4);
}
.install-mock__appicon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.install-mock__result strong { font-family: var(--font-display); font-size: 0.98rem; display: block; }
.install-mock__result em { font-style: normal; font-size: 0.78rem; color: var(--text-dim); }
.install-mock__check {
  margin-left: auto;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- App types ---------- */
.types { padding: clamp(5rem, 10vw, 9rem) var(--pad); border-top: 1px solid var(--line); }
.types__sub { color: var(--text-dim); margin-top: 1.4rem; max-width: 520px; }
.types__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.type-card {
  display: flex; flex-direction: column; gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}
.type-card:hover { transform: translateY(-6px); border-color: rgba(204, 246, 63, 0.4); }
.type-card__glyph { font-size: 1.7rem; color: var(--accent); line-height: 1; }
.type-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.type-card p { font-size: 0.88rem; color: var(--text-dim); flex-grow: 1; }
.type-card__count {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
}
.type-card--ghost { border-style: dashed; background: transparent; opacity: 0.75; }

/* ---------- Nav current page ---------- */
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { transform: scaleX(1); }

/* ---------- Apps page ---------- */
.page-hero {
  padding: clamp(9rem, 16vw, 13rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}
.page-hero__title { max-width: 980px; }
.page-hero__sub { color: var(--text-dim); margin-top: 1.6rem; max-width: 540px; }

.filterbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.filterbar__search {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  min-width: min(280px, 100%);
  flex: 1 1 220px;
  max-width: 380px;
  transition: border-color 0.3s ease;
}
.filterbar__search:focus-within { border-color: rgba(204, 246, 63, 0.55); }
.filterbar__search-icon { color: var(--text-dim); font-size: 1.05rem; }
.filterbar__search input {
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  width: 100%;
}
.filterbar__search input::placeholder { color: var(--text-dim); }
.filterbar__pills, .filterbar__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill {
  cursor: pointer;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 600;
  padding: 0.55rem 1.1rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pill:hover { color: var(--text); border-color: rgba(235, 240, 220, 0.3); }
.pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pill--soon {
  border-style: dashed;
  opacity: 0.55;
  cursor: default;
  display: inline-flex; align-items: center;
}
.pill--soon:hover { color: var(--text-dim); border-color: var(--line); }
.tagchip {
  cursor: pointer;
  background: rgba(235, 240, 220, 0.05);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 500;
  padding: 0.4rem 0.85rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.tagchip:hover { color: var(--text); }
.tagchip.is-active {
  color: var(--accent);
  border-color: rgba(204, 246, 63, 0.4);
  background: rgba(204, 246, 63, 0.08);
}

.apps-results { padding: clamp(2rem, 4vw, 3rem) var(--pad) clamp(4rem, 8vw, 6rem); min-height: 50vh; }
.apps-results__count { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.6rem; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.apps-grid .app-card { width: auto; }

.apps-empty[hidden] { display: none; }
.apps-empty {
  border: 1px dashed rgba(235, 240, 220, 0.25);
  border-radius: var(--radius);
  padding: clamp(3rem, 7vw, 5rem) 2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.9rem;
}
.apps-empty__glyph { font-size: 2.2rem; color: var(--accent); }
.apps-empty h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.apps-empty p { color: var(--text-dim); max-width: 420px; font-size: 0.95rem; }
.apps-empty__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 0.8rem; }

.install-strip { padding: 0 var(--pad) clamp(4rem, 8vw, 6rem); }
.install-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(204, 246, 63, 0.07), transparent 55%), var(--surface);
}
.install-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.install-strip__inner p { color: var(--text-dim); max-width: 560px; font-size: 0.95rem; }

.footer--compact { padding-top: clamp(2rem, 4vw, 3rem); background: none; }

/* ---------- Buy me a coffee ---------- */
.app-card__coffee {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.app-card__coffee:hover { color: var(--accent); }

.coffee-strip { padding: 0 var(--pad) clamp(4rem, 8vw, 6rem); }
.coffee-strip__inner {
  display: flex; align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(204, 246, 63, 0.08), transparent 55%), var(--surface);
}
.coffee-strip__cup {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(204, 246, 63, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.coffee-strip__copy { flex: 1 1 320px; }
.coffee-strip__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.coffee-strip__copy p { color: var(--text-dim); max-width: 600px; font-size: 0.95rem; }

/* ---------- v2 responsive ---------- */
@media (max-width: 1024px) {
  .install { grid-template-columns: 1fr; }
  .install__mock { max-width: 640px; }
}
@media (max-width: 820px) {
  .filterbar { gap: 0.8rem; }
  .filterbar__search { max-width: none; flex-basis: 100%; }
  .filterbar__pills, .filterbar__tags {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filterbar__pills::-webkit-scrollbar, .filterbar__tags::-webkit-scrollbar { display: none; }
  .pill, .tagchip { white-space: nowrap; flex-shrink: 0; }
  .install-mock__field code { font-size: 0.72rem; }
  .toast { bottom: 1.2rem; font-size: 0.85rem; }
}
