/* RuStore catalog craft — light store chrome + neon lime promo */
:root {
  --bg: #f2f3f5;
  --paper: #ffffff;
  --ink: #1a1c1f;
  --muted: rgba(26, 28, 31, 0.62);
  --soft: rgba(26, 28, 31, 0.42);
  --line: rgba(26, 28, 31, 0.1);
  --store-blue: #0077ff;
  --store-blue-ink: #005bcc;
  --lime: #b6ff3c;
  --lime-deep: #8ad400;
  --neon: #39ff14;
  --dark: #0b0d10;
  --display: "Manrope", system-ui, sans-serif;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --pad: clamp(18px, 4vw, 48px);
  --max: 1100px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

.bg-fx {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.fx-a {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 119, 255, .18), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}
.fx-b {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -140px;
  background: radial-gradient(circle, rgba(182, 255, 60, .16), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.fx-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 280px at 70% 8%, rgba(57, 255, 20, .06), transparent 55%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-30px, 36px, 0); }
}

main, .top, .colophon, .cookie-bar { position: relative; z-index: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
  background: rgba(242, 243, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.top.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 22px rgba(26, 28, 31, .06);
  background: rgba(255, 255, 255, 0.92);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(26, 28, 31, .14);
}
.logo-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-store {
  background: var(--store-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 119, 255, .28);
  min-width: 160px;
}
.btn-store:hover {
  background: var(--store-blue-ink);
  box-shadow: 0 14px 28px rgba(0, 119, 255, .36);
}
.btn-soft {
  background: #e8eaed;
  color: var(--ink);
}
.btn-soft:hover { background: #dde0e5; }

/* Store card — RuStore product header */
.store-card {
  width: min(var(--max), 100%);
  margin: 20px auto 0;
  padding: clamp(22px, 4vw, 32px);
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(26, 28, 31, .06);
}
.store-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(26, 28, 31, .16);
}
.store-dev {
  margin: 0 0 4px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--store-blue);
}
.store-meta h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.store-sub {
  margin: 6px 0 0;
  color: var(--soft);
  font-weight: 500;
  font-size: .95rem;
}
.store-stats {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px 22px;
  margin-top: 16px;
}
.store-stats div {
  display: grid;
  gap: 2px;
}
.store-stats b {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
}
.store-stats span {
  font-size: .78rem;
  color: var(--soft);
  font-weight: 500;
}
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.store-note {
  margin: 12px 0 0;
  font-size: .84rem;
  color: var(--soft);
  font-weight: 500;
}

.section-head { margin-bottom: 20px; }
.section-head .kicker {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.03em;
  font-weight: 800;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 48ch;
}

.promo,
.interface,
.how,
.features,
.developer,
.faq,
.legal-brief {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--pad) 0;
}

.promo-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.promo-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 36px rgba(26, 28, 31, .12);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(26, 28, 31, .16);
}
.promo-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shot-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #101418;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(26, 28, 31, .1);
  transition: transform .25s var(--ease);
}
.shot-grid figure:hover { transform: translateY(-5px); }
.shot-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.flow li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.flow li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 28, 31, .08);
}
.flow span {
  font-family: var(--display);
  font-weight: 800;
  color: var(--store-blue);
  font-size: 1.2rem;
}
.flow h3 { margin: 0 0 6px; font-size: 1.02rem; }
.flow p { margin: 0; color: var(--muted); font-weight: 500; }

.feature-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.feature-table > div {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-table > div:nth-child(2n) { border-right: 0; }
.feature-table > div:nth-last-child(-n+2) { border-bottom: 0; }
.feature-table h3 { margin: 0 0 8px; font-size: 1.02rem; font-family: var(--display); }
.feature-table p { margin: 0; color: var(--muted); font-weight: 500; }

/* Neon band like RuStore promo energy */
.neon-band {
  width: min(var(--max), 100%);
  margin: clamp(40px, 7vw, 72px) auto 0;
  padding: 0 var(--pad);
}
.neon-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 42px);
  border-radius: 22px;
  background:
    radial-gradient(500px 200px at 90% 10%, rgba(182, 255, 60, .22), transparent 55%),
    radial-gradient(420px 180px at 10% 90%, rgba(0, 200, 255, .12), transparent 50%),
    var(--dark);
  color: #fff;
  border: 1px solid rgba(182, 255, 60, .18);
  box-shadow: 0 20px 48px rgba(11, 13, 16, .28);
}
.neon-inner::before {
  content: "";
  position: absolute;
  width: 180%;
  height: 2px;
  top: 30%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 60, .55), transparent);
  animation: trail 4.5s linear infinite;
  transform: rotate(-18deg);
  opacity: .7;
}
@keyframes trail {
  from { transform: translateX(-10%) rotate(-18deg); }
  to { transform: translateX(20%) rotate(-18deg); }
}
.neon-pill {
  position: relative;
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: #101410;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.neon-inner h2 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.03em;
  font-weight: 800;
}
.neon-inner > p {
  position: relative;
  margin: 12px 0 0;
  max-width: 52ch;
  color: rgba(255,255,255,.62);
  font-weight: 500;
}

.dev-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.dev-panel h3 { margin: 0 0 8px; font-family: var(--display); }
.dev-panel p { margin: 0; color: var(--muted); font-weight: 500; }
.dev-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dev-panel a {
  color: var(--store-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 64ch;
}

.legal-brief { padding-bottom: 18px; }
.legal-brief h2 { margin: 0 0 10px; font-size: 1.02rem; }
.legal-brief p {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: .9rem;
  max-width: 78ch;
}
.legal-brief a {
  color: var(--store-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Colophon footer — preserved format */
.colophon {
  margin-top: 36px;
  background: #0e100e;
  color: rgba(240, 239, 232, 0.72);
}
.colophon-top {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 40px var(--pad) 28px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid rgba(240, 239, 232, 0.08);
}
.colophon-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.colophon-mark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.colophon-mark strong {
  font-family: var(--display);
  font-size: 1.2rem;
  color: #f0efe8;
  font-weight: 800;
  letter-spacing: -.03em;
}
.colophon-top p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  color: rgba(240, 239, 232, 0.48);
}
.colophon-legal {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 22px var(--pad);
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(240, 239, 232, 0.42);
}
.colophon-legal strong { color: rgba(240, 239, 232, 0.78); }
.colophon-legal a {
  color: rgba(182, 255, 60, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.colophon-links {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad) 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 0.84rem;
}
.colophon-links a {
  color: rgba(240, 239, 232, 0.55);
  padding: 4px 10px 4px 0;
}
.colophon-links a:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: rgba(240, 239, 232, 0.22);
}
.colophon-links a:hover { color: #fff; }
.colophon-base {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 14px var(--pad) 28px;
  border-top: 1px solid rgba(240, 239, 232, 0.08);
  font-size: 0.78rem;
  color: rgba(240, 239, 232, 0.32);
}

html.cookie-open { overflow: hidden; }
.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1200;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;
  background: rgba(16, 24, 32, 0.96);
  color: #f3f6fa;
  border: 1px solid rgba(243, 246, 250, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16, 24, 32, .35);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  align-items: center;
  backdrop-filter: blur(12px);
  animation: cookie-in .45s var(--ease);
}
.cookie-bar[hidden] { display: none !important; }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.cookie-bar p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(243, 246, 250, 0.7);
  max-width: 62ch;
}
.cookie-bar a { color: #b6ff3c; text-decoration: underline; }
.cookie-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-bar button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-bar .btn-necessary {
  background: transparent;
  color: rgba(243, 246, 250, 0.75);
  border: 1px solid rgba(243, 246, 250, 0.22);
}
.cookie-bar .btn-accept {
  background: var(--store-blue);
  color: #fff;
}

.doc {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 48px var(--pad) 72px;
}
.doc h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}
.doc-meta { color: var(--soft); margin: 0 0 24px; }
.doc-body h2 {
  margin: 1.7em 0 .55em;
  font-family: var(--display);
  font-size: 1.15rem;
}
.doc-body p, .doc-body li { color: rgba(26, 28, 31, .8); }
.doc-body a { color: var(--store-blue-ink); text-decoration: underline; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .store-card { grid-template-columns: 88px 1fr; }
  .store-icon { width: 88px; height: 88px; border-radius: 22px; }
  .store-stats { grid-template-columns: 1fr 1fr; }
  .promo-rail { grid-template-columns: 1fr 1fr; }
  .shot-grid, .dev-panel { grid-template-columns: 1fr 1fr; }
  .feature-table { grid-template-columns: 1fr; }
  .feature-table > div { border-right: 0; }
  .feature-table > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-table > div:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .store-card { grid-template-columns: 1fr; justify-items: start; }
  .promo-rail, .shot-grid, .dev-panel, .cookie-bar, .store-stats {
    grid-template-columns: 1fr;
  }
  .flow li { grid-template-columns: 48px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
