/* Скачок landing — design tokens & shared styles */
:root {
  --sk-bg: #0a0617;
  --sk-bg-2: #0e0820;
  --sk-primary: #b347ff;
  --sk-secondary: #ff3db2;
  --sk-accent: #00f0ff;
  --sk-highlight: #ffd93d;
  --sk-fg: #f7f5ff;
  --sk-fg-dim: rgba(245, 243, 255, 0.74);
  --sk-fg-faint: rgba(245, 243, 255, 0.48);
  --sk-border: rgba(245, 243, 255, 0.1);
  --sk-border-str: rgba(245, 243, 255, 0.18);

  /* SF Pro everywhere — Apple-style */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sk-bg);
  color: var(--sk-fg);
  font-family: var(--font-body);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}
.font-display { font-weight: 700; letter-spacing: -0.035em; }
h1, h2, h3, h4 { font-feature-settings: "ss01"; }
img { -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* === GLOBAL BG TEXTURE === */
.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.page-bg::before {
  content: "";
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(179, 71, 255, 0.18), transparent 38%),
    radial-gradient(circle at 82% 8%, rgba(0, 240, 255, 0.10), transparent 42%),
    radial-gradient(circle at 90% 78%, rgba(255, 61, 178, 0.13), transparent 45%);
}
.page-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 20%, transparent 80%);
}

/* === GLASS === */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--sk-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
}
.glass:hover {
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
}
.glass-strong {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--sk-border-str);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* === GLOSSY ICON TILE (existing brand treatment) === */
.glass-tile {
  position: relative;
  background: linear-gradient(135deg, #3b5fff 0%, #b347ff 50%, #ff3db2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
    0 10px 40px rgba(179, 71, 255, 0.35),
    0 0 60px rgba(255, 61, 178, 0.2);
  overflow: hidden;
}
.glass-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
  pointer-events: none;
}
.glass-tile::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.9) 0.5px, transparent 1.5px),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.8) 0.5px, transparent 1.5px),
    radial-gradient(circle at 82% 55%, rgba(255, 255, 255, 0.9) 0.5px, transparent 1.5px),
    radial-gradient(circle at 30% 72%, rgba(255, 255, 255, 0.7) 0.5px, transparent 1.5px),
    radial-gradient(circle at 55% 88%, rgba(255, 255, 255, 0.85) 0.5px, transparent 1.5px);
  pointer-events: none; opacity: 0.7;
}

/* === TYPE === */
.font-display { font-family: var(--font-display); letter-spacing: -0.03em; font-weight: 700; }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }
.holo-text {
  background: linear-gradient(90deg, #b347ff, #ff3db2 40%, #00f0ff 80%, #b347ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holo-shift 7s ease-in-out infinite;
}
.silver-text {
  background: linear-gradient(180deg, #ffffff 0%, #e9e4ff 45%, #a89ccf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Apple-like display scale */
.hero-xl {
  font-size: clamp(35px, 5.7vw, 77px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.42;
  font-weight: 400;
  color: var(--sk-fg-dim);
  letter-spacing: 0;
}
body { font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; }
p { line-height: 1.47; }
/* noise overlay */
.noise {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.8'/></svg>");
}
/* marquee */
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { display: flex; gap: 48px; animation: marquee-x 40s linear infinite; width: max-content; }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* logo wall */
.logo-wall-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee-x 45s linear infinite;
}
.logo-wall:hover .logo-wall-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .logo-wall-track { animation: none; } }
.text-stroke {
  -webkit-text-stroke: 1.5px rgba(245, 243, 255, 0.45);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, #c759ff 0%, #ff3db2 55%, #ff5e9f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 12px rgba(0, 0, 0, 0.22),
    0 14px 42px -10px rgba(179, 71, 255, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 10px rgba(0, 0, 0, 0.15),
    0 20px 60px -10px rgba(179, 71, 255, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--sk-fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sk-border-str);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-xl { padding: 18px 30px; font-size: 17px; border-radius: 18px; }

/* === ANIMATIONS === */
@keyframes holo-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes aurora-breath { 0%, 100% { transform: scale(1); opacity: 0.45; } 50% { transform: scale(1.1); opacity: 0.7; } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-soft-delayed { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse-ring-slow { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.06); opacity: 0.25; } }
@keyframes ping-dot { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes type-pop { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }
.typing-dot { display: inline-block; animation: typing-bounce 1.2s ease-in-out infinite; }
@keyframes shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  60%, 100% { transform: translateX(260%) skewX(-20deg); }
}
.animate-aurora { animation: aurora-breath 8s ease-in-out infinite; }
.animate-float-soft { animation: float-soft 5s ease-in-out infinite; }
.animate-float-soft-delayed { animation: float-soft-delayed 6.5s ease-in-out infinite; animation-delay: 1s; }
.animate-pulse-ring-slow { animation: pulse-ring-slow 4.5s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 18s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .animate-aurora, .animate-float-soft, .animate-float-soft-delayed,
  .animate-pulse-ring-slow, .animate-spin-slow, .holo-text { animation: none; }
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

section { position: relative; z-index: 1; }

/* === FAQ === */
.faq-item { overflow: hidden; transition: background 0.25s ease, border-color 0.25s ease; }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.018em;
  color: var(--sk-fg);
  transition: color 0.2s ease;
}
.faq-item.open .faq-trigger { color: var(--sk-fg); }
.faq-trigger:hover { color: var(--sk-fg); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sk-border-str);
  color: var(--sk-fg-dim);
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(179, 71, 255, 0.3), rgba(255, 61, 178, 0.3));
  border-color: var(--sk-primary);
  color: var(--sk-fg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0 24px;
  color: var(--sk-fg-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
}
.faq-item.open .faq-content { max-height: 360px; padding-bottom: 22px; }

/* === SHINE (button highlight) === */
.shine-wrap { position: relative; overflow: hidden; }
.shine-wrap::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
}

/* === HEADER === */
.header-blur {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(10, 6, 23, 0.55);
  border-bottom: 1px solid rgba(245, 243, 255, 0.05);
}

/* === UTILS === */
.divider-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sk-fg-faint); }

/* === REVEAL ON SCROLL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.34s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* === SECTION SPACING === */
section { padding: 120px 0; }
@media (max-width: 820px) { section { padding: 80px 0; } }

/* Section title scale */
.section-title {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--sk-fg-dim);
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sk-accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: currentColor; opacity: 0.6; }

/* === QR button + modal === */
.qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--sk-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1),
              border-color 240ms ease,
              box-shadow 240ms ease,
              background 240ms ease;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.qr-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(179,71,255,0.45);
  background: linear-gradient(135deg, rgba(179,71,255,0.12), rgba(0,240,255,0.06));
  box-shadow: 0 14px 36px -12px rgba(179,71,255,0.55);
}
.qr-btn-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #b347ff, #3b5fff);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              0 4px 14px -4px rgba(179,71,255,0.6);
}
.qr-btn-label { white-space: nowrap; }

@media (max-width: 720px) {
  .qr-btn { padding: 10px 14px 10px 10px; font-size: 13px; }
}

.qr-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 6, 18, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease,
              background 380ms ease,
              backdrop-filter 380ms ease;
}
.qr-modal.open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(8, 6, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.qr-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(28,22,52,0.95), rgba(16,12,32,0.95));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 40px 100px -20px rgba(179,71,255,0.45),
              0 0 0 1px rgba(255,255,255,0.04);
  text-align: center;
  transform: translateY(28px) scale(0.94);
  opacity: 0;
  transition: transform 420ms cubic-bezier(.2,.9,.25,1.15),
              opacity 320ms ease;
}
.qr-modal.open .qr-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.qr-modal-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 28px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(179,71,255,0.35), transparent 55%);
  z-index: -1;
  pointer-events: none;
}
.qr-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--sk-fg-dim);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.qr-modal-close:hover {
  background: rgba(255,255,255,0.10);
  color: var(--sk-fg);
  transform: rotate(90deg);
}
.qr-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sk-fg-faint);
  font-weight: 600;
}
.qr-modal-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sk-fg);
}
.qr-modal-frame {
  margin: 22px auto 16px;
  width: 280px; max-width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  display: grid; place-items: center;
  box-shadow: 0 24px 60px -20px rgba(179,71,255,0.55);
}
.qr-modal-frame img {
  width: 100%; height: 100%; object-fit: contain;
}
.qr-modal-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sk-fg-dim);
  letter-spacing: 0.02em;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 280px;
  padding: 16px;
  border-radius: 18px;
  font-size: 13px;
  display: none;
}
.tweaks-panel.active { display: block; }
.tweaks-panel h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.tweaks-row label { color: var(--sk-fg-dim); font-size: 12px; flex-shrink: 0; }
.tweaks-seg { display: inline-flex; background: rgba(255,255,255,0.04); border: 1px solid var(--sk-border); border-radius: 10px; padding: 2px; gap: 2px; }
.tweaks-seg button { padding: 4px 10px; border-radius: 8px; font-size: 11px; color: var(--sk-fg-dim); }
.tweaks-seg button.active { background: linear-gradient(135deg, var(--sk-primary), var(--sk-secondary)); color: #fff; }
