/* Стил за глобалната начална страница (Homepage / Landing page) */
:root {
  --fon-osnova: #07080a;
  --fon-karta: #0f1217;
  --fon-karta-hover: #151921;
  --ramka: rgba(255, 255, 255, 0.08);
  --ramka-svetla: rgba(255, 255, 255, 0.16);
  --tekst: #f1f3f5;
  --tekst-muted: #9aa3ad;
  --tekst-dim: #6c757d;
  --akcent: #ff6838;
  --akcent-glow: rgba(255, 104, 56, 0.25);
  --akcent-grad: linear-gradient(135deg, #ff7e50 0%, #ff5226 100%);
  --sin-glow: rgba(56, 128, 255, 0.15);
  --zeleno: #4f9d69;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--fon-osnova);
  color: var(--tekst);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--fon-osnova);
  color: var(--tekst);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Фонов кинетичен / градиентен ефект */
.hero-glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 650px;
  background: radial-gradient(circle at 50% 20%, rgba(30, 60, 110, 0.25) 0%, rgba(255, 104, 56, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.konteiner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Навигация (Header) */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 10, 0.75);
  border-bottom: 1px solid var(--ramka);
}
.hp-nav-vatre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.hp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hp-logo-ikon {
  width: 34px;
  height: 34px;
  background: var(--akcent-grad);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--akcent-glow);
}
.hp-logo-tekst span {
  color: var(--akcent);
}

.hp-menu-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.hp-menu-links a {
  text-decoration: none;
  color: var(--tekst-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.hp-menu-links a:hover {
  color: #fff;
}

.hp-nav-butoni {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-btn-text {
  background: transparent;
  border: 0;
  color: var(--tekst);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.hp-btn-text:hover {
  background: rgba(255, 255, 255, 0.05);
}
.hp-btn-primary {
  background: #fff;
  color: #07080a;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hp-btn-primary:hover {
  background: #e2e5e9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* Потребителски статус в навигацията */
.hp-auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ramka);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--tekst);
}
.hp-btn-studio {
  background: var(--akcent-grad);
  color: #fff;
  border: 0;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 12px var(--akcent-glow);
  transition: all 0.15s ease;
}
.hp-btn-studio:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255, 104, 56, 0.4);
}

/* Hero Секция */
.hp-hero {
  padding: 90px 0 80px;
  text-align: left;
}
.hp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ramka-svetla);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tekst-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hp-badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--akcent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--akcent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hp-hero h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: 22px;
  color: #ffffff;
}
.hp-hero p.hp-podzaglavie {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--tekst-muted);
  max-width: 640px;
  margin-bottom: 36px;
}
.hp-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hp-btn-large {
  padding: 13px 28px;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hp-btn-large.primary {
  background: #ffffff;
  color: #07080a;
  border: 0;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}
.hp-btn-large.primary:hover {
  background: #e4e7eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.25);
}
.hp-btn-large.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tekst);
  border: 1px solid var(--ramka);
}
.hp-btn-large.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--ramka-svetla);
}

/* Как работи (How it works) */
.hp-section {
  padding: 70px 0;
}
.hp-section-header {
  margin-bottom: 36px;
}
.hp-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 8px;
}
.hp-section-header p {
  color: var(--tekst-muted);
  font-size: 15px;
}

.hp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-step-card {
  background: var(--fon-karta);
  border: 1px solid var(--ramka);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
  transition: all 0.2s ease;
}
.hp-step-card:hover {
  border-color: var(--ramka-svetla);
  background: var(--fon-karta-hover);
  transform: translateY(-2px);
}
.hp-step-nomer {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ramka);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--tekst-muted);
  margin-bottom: 18px;
}
.hp-step-card h3 {
  font-size: 17px;
  font-weight: 650;
  color: #ffffff;
  margin-bottom: 8px;
}
.hp-step-card p {
  font-size: 14px;
  color: var(--tekst-muted);
  line-height: 1.55;
}

/* Възможности (Features) */
.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-feature-card {
  background: var(--fon-karta);
  border: 1px solid var(--ramka);
  border-radius: 14px;
  padding: 26px 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.hp-feature-card:hover {
  border-color: rgba(255, 104, 56, 0.3);
  background: var(--fon-karta-hover);
  transform: translateY(-2px);
}
.hp-feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 104, 56, 0.1);
  color: var(--akcent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.hp-feat-icon svg {
  stroke-width: 2;
}
.hp-feature-card h3 {
  font-size: 17px;
  font-weight: 650;
  color: #ffffff;
  margin-bottom: 8px;
}
.hp-feature-card p {
  font-size: 14px;
  color: var(--tekst-muted);
  line-height: 1.55;
}

/* Цени (Pricing Banner) */
.hp-pricing-banner {
  background: linear-gradient(180deg, rgba(255, 104, 56, 0.06) 0%, rgba(20, 24, 32, 0.6) 100%);
  border: 1px solid rgba(255, 104, 56, 0.2);
  border-radius: 16px;
  padding: 44px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 10px;
}
.hp-pricing-banner h3 {
  font-size: 26px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 8px;
}
.hp-pricing-banner p {
  color: var(--tekst-muted);
  font-size: 15.5px;
  max-width: 580px;
}
.hp-pricing-stars {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
}
.hp-pricing-stars span {
  font-size: 18px;
  color: var(--akcent);
}

/* FAQ Секция */
.hp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hp-faq-item {
  background: var(--fon-karta);
  border: 1px solid var(--ramka);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.hp-faq-item:hover {
  border-color: var(--ramka-svetla);
}
.hp-faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.hp-faq-answer {
  padding: 0 22px 18px;
  color: var(--tekst-muted);
  font-size: 14.5px;
  line-height: 1.6;
  display: none;
}
.hp-faq-item.active .hp-faq-answer {
  display: block;
}
.hp-faq-chevron {
  transition: transform 0.2s ease;
}
.hp-faq-item.active .hp-faq-chevron {
  transform: rotate(180deg);
}

/* Долна лента (Footer) */
.hp-footer {
  border-top: 1px solid var(--ramka);
  padding: 36px 0;
  margin-top: 60px;
  color: var(--tekst-dim);
  font-size: 13.5px;
}
.hp-footer-vatre {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Модален прозорец за Вход / Регистрация */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 6, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-kartonka {
  background: #11141a;
  border: 1px solid var(--ramka-svetla);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  position: relative;
}
.modal-overlay.active .modal-kartonka {
  transform: scale(1);
}
.modal-zatvori {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  color: var(--tekst-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
}
.modal-zatvori:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Табове Вход / Регистрация */
.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ramka);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}
.modal-tab-btn {
  background: transparent;
  border: 0;
  color: var(--tekst-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-tab-btn.active {
  background: #1e232c;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.auth-forma {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-pole {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-pole label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tekst-muted);
}
.auth-pole input {
  background: #0a0c10;
  border: 1px solid var(--ramka);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-pole input:focus {
  border-color: var(--akcent);
  box-shadow: 0 0 0 3px var(--akcent-glow);
}
.auth-hint {
  font-size: 12px;
  color: var(--tekst-dim);
}

.auth-submit-btn {
  background: var(--akcent-grad);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px var(--akcent-glow);
}
.auth-submit-btn:hover {
  opacity: 0.93;
  transform: translateY(-1px);
}
.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.auth-greshka {
  background: rgba(201, 88, 79, 0.15);
  border: 1px solid rgba(201, 88, 79, 0.4);
  color: #ff857a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

/* Мобилна адаптивност */
@media (max-width: 900px) {
  .hp-steps-grid, .hp-features-grid {
    grid-template-columns: 1fr;
  }
  .hp-hero h1 {
    font-size: 38px;
  }
  .hp-pricing-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hp-menu-links {
    display: none;
  }
}
