/* ПУСК · визитка-приглашение — токены дизайна (тёмный премиум, золото) */

:root {
  /* Базовые токены ПУСК */
  --pusk-bg: #08080c;
  --pusk-fg: #eaeaef;
  --pusk-surface: rgba(20, 20, 28, 0.6);
  --pusk-muted: #8a8a96;
  --pusk-accent: #c9a84a;
  --pusk-accent-2: #f0c75a;
  --pusk-accent-3: #fde68a;
  --pusk-border: rgba(201, 168, 74, 0.22);
  --pusk-glass-blur: 14px;

  --pusk-font-display: "Unbounded", system-ui, sans-serif;
  --pusk-font-body: "Manrope", system-ui, sans-serif;

  /* Theme aliases (для Tailwind @theme inline) */
  --background: var(--pusk-bg);
  --foreground: var(--pusk-fg);
  --primary: var(--pusk-accent);
  --primary-foreground: #08080c;
  --card: var(--pusk-surface);
  --card-foreground: var(--pusk-fg);
  --popover: var(--pusk-surface);
  --popover-foreground: var(--pusk-fg);
  --secondary: rgba(255, 255, 255, 0.06);
  --secondary-foreground: var(--pusk-fg);
  --muted: var(--pusk-muted);
  --muted-foreground: var(--pusk-muted);
  --accent: var(--pusk-accent);
  --accent-foreground: #08080c;
  --border: var(--pusk-border);
  --input: var(--pusk-border);
  --ring: var(--pusk-accent);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pusk-bg);
  color: var(--pusk-fg);
  font-family: var(--pusk-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(201, 168, 74, 0.35); color: #fff; }

/* ---------- Шрифт заголовка ---------- */
.font-disp { font-family: var(--pusk-font-display); }

/* ---------- Aurora background (amber/gold, animated sweep) ---------- */
@keyframes aurora-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
}
.aurora-layer {
  position: absolute; inset: 0; z-index: 0;
  height: 100%; width: 100%;
  transform: scale(2);
  background-color: transparent;
  --aurora: repeating-linear-gradient(
    100deg,
    rgba(201, 168, 74, 0.30) 10%,
    rgba(240, 199, 90, 0.22) 15%,
    rgba(253, 230, 138, 0.30) 20%,
    rgba(180, 130, 40, 0.28) 25%,
    rgba(201, 168, 74, 0.30)
  );
  background-image: var(--aurora);
  background-size: 200% 200%;
  animation: aurora-sweep 16s linear infinite alternate;
}
.aurora-layer::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  height: 100%; width: 100%;
  background: radial-gradient(ellipse at 100% 0%, transparent 60%, var(--pusk-bg));
  opacity: 1;
}
.aurora-fade {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 25%, var(--pusk-bg) 92%);
}

/* ---------- Shimmer-текст (золото) ---------- */
@keyframes shiny-sweep {
  0%   { background-position: 0 0; }
  50%  { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.shimmer-gold {
  background: linear-gradient(90deg, #c9a84a 0%, #fde68a 45%, #f0c75a 60%, #c9a84a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shiny-sweep 3.2s linear infinite;
  filter: drop-shadow(0 0 22px rgba(240, 199, 90, 0.45));
}

/* ---------- Glass panel ---------- */
.glass {
  background: var(--pusk-surface);
  backdrop-filter: blur(var(--pusk-glass-blur));
  -webkit-backdrop-filter: blur(var(--pusk-glass-blur));
  border: 1px solid var(--pusk-border);
}

/* ---------- Border-beam panel (золото, Motiq → gold) ---------- */
:root {
  --beam-accent: #c9a84a;
  --beam-accent-text: #f0c75a;
  --beam-bg: #08080c;
  --beam-border: rgba(201, 168, 74, 0.25);
  --beam-fg: #f8fafc;
  --beam-fg-secondary: #c5c5d0;
  --beam-secondary-accent: #fde68a;
  --beam-signature: #f0c75a;
  --beam-surface: rgba(17, 17, 24, 0.55);
}
.mk-beam-panel {
  position: relative;
  width: 100%;
  border: 1px solid var(--beam-border);
  background: var(--beam-surface);
  backdrop-filter: blur(var(--pusk-glass-blur));
  -webkit-backdrop-filter: blur(var(--pusk-glass-blur));
  padding: 1.6rem;
  border-radius: 20px;
  isolation: isolate;
  --mk-beam-a: 40deg;
}
.mk-beam-ring, .mk-beam-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  pointer-events: none;
  background: conic-gradient(
    from var(--mk-beam-a, 0deg),
    transparent 0deg,
    color-mix(in srgb, #c9a84a 4%, transparent) 18deg,
    color-mix(in srgb, #c9a84a 55%, transparent) 46deg,
    #fde68a 56deg,
    color-mix(in srgb, #f0c75a 22%, #ffffff) 60deg,
    transparent 63deg,
    transparent 198deg,
    color-mix(in srgb, #f0c75a 4%, transparent) 216deg,
    color-mix(in srgb, #f0c75a 50%, transparent) 244deg,
    #f0c75a 254deg,
    color-mix(in srgb, #f0c75a 26%, #ffffff) 258deg,
    transparent 261deg,
    transparent 360deg
  );
}
.mk-beam-ring {
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.mk-beam-glow { filter: blur(14px); opacity: 0.35; z-index: -1; }

/* ---------- Reveal при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- CTA-кнопка (стеклянная, conic свечение) ---------- */
@keyframes rotate-gradient { to { transform: rotate(360deg); } }
@keyframes borderBeamRotation { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-ring {
  position: absolute; inset: -200%;
  width: 400%; height: 400%;
  animation: rotate-gradient var(--speed, 4s) linear infinite;
}
.cta-ring > div {
  position: absolute; inset: 0;
  background: conic-gradient(
    from calc(270deg - (var(--spread, 90deg) * 0.5)),
    transparent 0,
    var(--shimmer-color, rgba(240, 199, 90, 0.75)) var(--spread, 90deg),
    transparent var(--spread, 90deg)
  );
}
.cta-beam {
  position: absolute;
  width: 200%; height: 200%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(253, 230, 138, 0.5), rgba(253, 230, 138, 0.5), rgba(253, 230, 138, 0.5), rgba(253, 230, 138, 0.5), transparent);
  animation: borderBeamRotation 4s infinite linear;
}
.cta-core {
  position: absolute; inset: 1px;
  background: rgba(8, 8, 12, 0.82);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}

/* Кнопка целиком */
.pusk-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  overflow: hidden;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 40px rgba(240, 199, 90, 0.25);
}
.pusk-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 46px 10px rgba(240, 199, 90, 0.38);
}
.pusk-cta:focus-visible { outline: 2px solid var(--pusk-accent); outline-offset: 4px; }

/* ---------- Кнопка действия (текст) ---------- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #f0c75a, #c9a84a);
  color: #08080c;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.95rem 2.1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  box-shadow: 0 10px 34px rgba(201, 168, 74, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 44px rgba(201, 168, 74, 0.45); }
.btn-gold .arr { transition: transform 0.2s ease; }
.btn-gold:hover .arr { transform: translateX(4px); }

/* ---------- Бейдж приглашения ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pusk-accent-2);
  background: rgba(201, 168, 74, 0.1);
  border: 1px solid var(--pusk-border);
}
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pusk-accent-2);
  box-shadow: 0 0 12px rgba(240, 199, 90, 0.9);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- Feature grid ---------- */
.feature-icon {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  color: var(--pusk-accent-2);
  background: rgba(201, 168, 74, 0.12);
  border: 1px solid var(--pusk-border);
}

/* ---------- Divider ---------- */
.hr-glow {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(201,168,74,0.4), transparent);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none !important; }
  .shimmer-gold { animation: none !important; filter: none; }
  .pusk-cta { transition: none; box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .badge-pill .dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .mk-beam-ring, .mk-beam-glow { display: none; }
  .mk-beam-panel { border-color: CanvasText; }
}
