/* =========================================================
   Промена МК - Global Styles
   Modern dark theme with glassmorphism + gradient mesh
   ========================================================= */

:root {
  --bg: #07070b;
  --bg-2: #0d0d14;
  --surface: rgba(20, 20, 28, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --primary: #8b5cf6;
  --primary-2: #6366f1;
  --accent: #06b6d4;
  --gold: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  --gradient-text: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 35%, #67e8f9 100%);
  --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.25);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

p { margin: 0; color: var(--text-dim); }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: #c4b5fd; }

img { max-width: 100%; display: block; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(64px, 10vw, 130px) 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.section-head .eyebrow { margin: 0 auto 18px; }

.section-head p {
  margin-top: 18px;
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px #a78bfa;
}

/* =========================================================
   Background mesh / glow
   ========================================================= */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 600px at 12% 8%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(700px 500px at 88% 22%, rgba(6, 182, 212, 0.14), transparent 65%),
    radial-gradient(600px 600px at 60% 100%, rgba(99, 102, 241, 0.12), transparent 65%),
    var(--bg);
}

.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Navigation
   ========================================================= */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 7, 11, 0.65);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.logo:hover .logo-text {
  filter: brightness(1.08);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.25));
}

/* Текст лого: златни букви (ПРОМЕНА МК) */
.logo-text {
  display: inline-block;
  min-width: 0;
  flex-shrink: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(0.82rem, 2.2vw, 1.15rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fceea3 0%, #d4af37 35%, #b8860b 70%, #f0e68c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  max-width: min(100%, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text-mk {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer .logo .logo-text {
  font-size: clamp(0.78rem, 2vw, 1.02rem);
  max-width: 100%;
}

@media (max-width: 720px) {
  .logo-text {
    font-size: clamp(0.72rem, 3.2vw, 0.95rem);
    letter-spacing: 0.03em;
    max-width: min(100%, 46vw);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  gap: clamp(10px, 1.4vw, 28px);
}

.nav-links a {
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 20px; height: 20px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.5);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-arrow {
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* =========================================================
   Cards / glass surfaces
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.card-glass {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.card-glow:hover::before { opacity: 1; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.footer a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer a:hover { color: #fff; }

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 14px;
  max-width: 360px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.socials a:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-stagger.in > * { opacity: 1; transform: none; }

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* =========================================================
   Mobile
   ========================================================= */
/* Порано хамбургер мени — сите линкови (вкл. Искуства) се гледаат на таблет/тесен desktop */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn:not(.menu-toggle) { display: none; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 7, 11, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    align-items: flex-start;
    z-index: 60;
  }

  .nav-links.open a {
    white-space: normal;
    font-size: 1rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Global mobile compaction ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 1.95rem); }
  h3 { font-size: 1.2rem; }
  .card { padding: 20px; border-radius: 14px; }
  .btn { padding: 11px 18px; font-size: 0.92rem; }
  .btn-lg { padding: 13px 20px; font-size: 0.95rem; }
  .eyebrow { font-size: 0.7rem; padding: 5px 11px; }
}
