/**
 * MagicBox AI — overlay theme for marketing site
 * Подключается ПОСЛЕ site.css. Базовый site.css не меняется.
 * Включение: UI_THEME=magicbox в .env
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

html[data-ui-theme="magicbox"],
html[data-ui-theme="magicbox"]:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --card: #111111;
  --card-hover: #161616;
  --accent-1: #00d4ff;
  --accent-2: #ff00ff;
  --accent-text: #ffffff;
  --gradient-brand: linear-gradient(90deg, #00d4ff, #a020f0, #ff00ff);
}

.site-header {
  background: rgba(0, 0, 0, .82);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  font-size: 1.15rem;
}

.logo-mark {
  display: none;
}

.logo-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(160, 32, 240, .25));
}

.logo-magic {
  color: #fff;
}

.logo-box {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo-ai {
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: .58em;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    var(--gradient-brand) border-box;
  box-shadow: 0 0 12px rgba(160, 32, 240, .3);
  vertical-align: super;
}

.btn-primary,
.pricing-card.is-featured .btn,
.cta-band .btn,
.footer-cta a {
  background: var(--gradient-brand);
  border: 1px solid rgba(160, 32, 240, .25);
  box-shadow: 0 0 20px rgba(160, 32, 240, .2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-primary:hover,
.pricing-card.is-featured .btn:hover,
.cta-band .btn:hover,
.footer-cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 212, 255, .25), 0 0 30px rgba(160, 32, 240, .22);
  filter: brightness(1.05);
}

.btn-ghost:hover {
  border-color: rgba(160, 32, 240, .35);
  color: var(--accent-1);
}

.nav a.is-active,
.nav a:hover {
  color: var(--accent-1);
}

.eyebrow {
  background: rgba(0, 212, 255, .08);
  color: var(--accent-1);
}

.pricing-card.is-featured {
  border-color: rgba(160, 32, 240, .4);
  background: linear-gradient(180deg, #0a0020, var(--card) 42%);
}

.pricing-card.is-featured::before {
  background: var(--gradient-brand);
}

.hero-glow {
  background:
    radial-gradient(800px 200px at 10% 0%, rgba(0, 212, 255, .1), transparent 50%),
    radial-gradient(600px 180px at 90% 10%, rgba(255, 0, 255, .08), transparent 55%);
}

/* Focus / focus-visible — align marketing chrome with app purple focus language */
.nav a:focus-visible,
.btn:focus-visible,
.lang-switch a:focus-visible,
.post-featured:focus-visible,
.post-card:focus-visible,
.model-card:focus-visible,
.site-footer a:focus-visible,
.faq-item summary:focus-visible {
  outline-color: rgba(168, 85, 247, 0.75);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.16), 0 0 10px rgba(168, 85, 247, 0.12);
}
