/* NewDanilWhite8 — indigo / amber / mint — Outfit */
:root {
  --bg-deep: #0c0b10;
  --bg-card: #15121c;
  --bg-elevated: #1e1a28;
  --text: #f4f0ff;
  --text-muted: #a89fc4;
  --accent: #e8a849;
  --accent-dim: #c4852e;
  --mint: #5eead4;
  --violet: #a78bfa;
  --plum: #2d1a3d;
  --ring: rgba(167, 139, 250, 0.45);
  --shadow-glow: 0 0 32px rgba(232, 168, 73, 0.25);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particles-canvas,
  .particles-bg,
  .hero__glow,
  .float-blob,
  .feature-card__icon--spin,
  .feature-card__icon--orbit {
    animation: none !important;
    opacity: 0.35;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

body.gates-locked {
  overflow: hidden;
}

body.gates-locked .site-header,
body.gates-locked .main,
body.gates-locked .site-footer {
  filter: blur(0);
  pointer-events: none;
  user-select: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #1a1020;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Particles layer */
.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(167, 139, 250, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(232, 168, 73, 0.1), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(94, 234, 212, 0.08), transparent);
  animation: bg-shift 18s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(25deg);
  }
}

/* Floating blobs */
.float-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blob-float 14s ease-in-out infinite;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
  background: rgba(12, 11, 16, 0.85);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.2);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.site-nav a:hover {
  color: var(--mint);
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.4);
}

/* Main */
.main {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.25) 0%, transparent 65%);
  animation: hero-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.hero__eyebrow-icon {
  animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(120deg, var(--mint), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-accent {
  color: var(--accent);
}

.text-mint {
  color: var(--mint);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #1a0f12;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(232, 168, 73, 0.45);
}

.btn--pulse {
  animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(232, 168, 73, 0.35);
  }
  50% {
    box-shadow: 0 0 36px rgba(94, 234, 212, 0.35);
  }
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--ring);
}

.btn--secondary:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--violet);
}

.btn--accent {
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  color: #fff;
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.45);
}

.btn--link {
  background: transparent;
  color: var(--mint);
  padding: 0.5rem 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 2px solid transparent;
}

.btn--link:hover {
  border-bottom-color: var(--mint);
  transform: none;
}

.btn--full {
  width: 100%;
  margin-top: 0.75rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
  position: relative;
}

.section__head {
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Offer card */
.offer-card {
  background: var(--bg-card);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, border-color 0.25s;
}

.offer-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: rgba(94, 234, 212, 0.35);
}

.offer-card__media {
  text-align: center;
  margin-bottom: 1rem;
}

.offer-card__media img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.offer-card__heading {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.offer-card__text {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.offer-card__legal {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(94, 234, 212, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(45, 26, 61, 0.5);
}

.feature-card__title {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.feature-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--plum), var(--bg-card));
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.feature-card__icon--spin {
  animation: icon-spin 8s linear infinite;
  background: conic-gradient(from 0deg, var(--mint), var(--violet), var(--accent), var(--mint));
}

@keyframes icon-spin {
  to {
    transform: rotate(360deg);
  }
}

.feature-card__icon--orbit {
  position: relative;
  background: var(--bg-card);
  animation: orbit-rotate 6s linear infinite;
}

.feature-card__icon--orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

@keyframes orbit-rotate {
  to {
    transform: rotate(-360deg);
  }
}

.feature-card__icon--tick {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(167, 139, 250, 0.2));
  position: relative;
}

.feature-card__icon--tick::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  width: 10px;
  height: 18px;
  border: solid var(--mint);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Article */
.article-block p {
  color: var(--text-muted);
  max-width: 65ch;
}

.article-block__h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

/* Responsible */
.responsible {
  background: rgba(45, 26, 61, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(94, 234, 212, 0.15);
}

.responsible__text {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(15, 18, 28, 0.95);
  border-top: 1px solid rgba(167, 139, 250, 0.15);
  padding: 2.5rem 1.25rem 3rem;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__heading {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.site-footer__intro {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-badge:hover {
  opacity: 1;
  transform: scale(1.03);
}

.footer-badge img {
  width: auto;
  max-width: 180px;
  height: 48px;
  object-fit: contain;
}

.footer-badge--text {
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.footer-badge--text:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.site-footer__18 {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(168, 159, 196, 0.75);
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 6, 14, 0.88);
  backdrop-filter: blur(8px);
}

.overlay.is-hidden,
.overlay[hidden] {
  display: none !important;
}

.overlay__panel {
  width: min(100%, 420px);
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30, 26, 40, 0.98), rgba(20, 16, 28, 0.99));
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.overlay__panel--wide {
  width: min(100%, 420px);
}

.overlay__logo {
  display: block;
  margin: 0 auto 1rem;
  border-radius: 16px;
}

.overlay__logo--sm {
  width: 64px;
  height: 64px;
}

.overlay__badge {
  text-align: center;
  margin: 0 0 0.5rem;
}

.overlay__title {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  text-align: center;
}

.overlay__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.cookie-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overlay__actions--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.overlay__blocked {
  text-align: center;
  color: #fca5a5;
  margin: 1rem 0 0;
}

.is-hidden {
  display: none !important;
}

/* Puzzle */
.puzzle-wrap {
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.25);
  position: relative;
}

#puzzle-canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
}

#puzzle-canvas:active {
  cursor: grabbing;
}

.puzzle-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
