/* ============================================================
   НЕЙРОМИКА — Main Stylesheet
   Mobile-first, dark tech premium aesthetic
   Palette: #0A0B0F, #D9A441, #E8B86A, #F1E6D2, #8C6B2F, #0F1320
   ============================================================ */

:root {
  --bg:          #0A0B0F;
  --bg-deep:     #0F1320;
  --gold:        #D9A441;
  --gold-light:  #E8B86A;
  --cream:       #F1E6D2;
  --bronze:      #8C6B2F;
  --card-bg:     #111319;
  --text:        #F1E6D2;
  --text-muted:  rgba(241,230,210,0.6);
  --border:      rgba(217,164,65,0.2);
  --border-hover:rgba(217,164,65,0.6);
  --glow:        rgba(232,184,106,0.15);
  --font-head:   'Unbounded', 'Montserrat', sans-serif;
  --font-body:   'Inter', 'Manrope', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--card-bg);
  color: var(--gold);
  border: 1px solid var(--bronze);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(217,164,65,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }
.btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(217,164,65,0.25), inset 0 0 10px rgba(217,164,65,0.08);
  color: var(--gold-light);
}

.btn--primary { /* default gold border variant */ }

.btn--large {
  padding: 18px 48px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.btn--full { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.85;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,11,15,0.92) 0%,
    rgba(10,11,15,0.75) 45%,
    rgba(10,11,15,0.3) 100%
  );
}

/* Neural decorative dots */
.neural-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.nd {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 3s ease-in-out infinite;
}

.nd-1 { width: 4px; height: 4px; top: 25%; left: 15%; opacity: 0.6; animation-delay: 0s; }
.nd-2 { width: 3px; height: 3px; top: 45%; left: 8%; opacity: 0.4; animation-delay: 0.7s; }
.nd-3 { width: 5px; height: 5px; top: 65%; left: 22%; opacity: 0.5; animation-delay: 1.4s; }
.nd-4 { width: 3px; height: 3px; top: 35%; left: 35%; opacity: 0.3; animation-delay: 0.4s; }
.nd-5 { width: 4px; height: 4px; top: 75%; left: 40%; opacity: 0.4; animation-delay: 1.1s; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0.9; }
}

/* Decorative SVG lines */
.deco-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 700px;
}

/* Brand tag */
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid rgba(217,164,65,0.3);
  border-radius: 2px;
  background: rgba(10,11,15,0.6);
}

.brand-sigil {
  color: var(--gold);
  font-size: 0.9em;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-style: italic;
}

.hero__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero__slogan {
  margin-top: 36px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--bronze);
  text-transform: lowercase;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section { position: relative; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label--bottom {
  margin-top: 48px;
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Decorative BG SVG on sections */
.section-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-bg-deco svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  background: linear-gradient(135deg, #0D0E14 0%, #0A0B0F 60%, #0F1320 100%);
  padding: 100px 0;
  overflow: hidden;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: rgba(17,19,25,0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.benefit-card:hover {
  border-color: rgba(217,164,65,0.45);
  box-shadow: 0 8px 40px rgba(217,164,65,0.08);
}

.benefit-card:hover::after { opacity: 1; }

.benefit-card__icon {
  margin-bottom: 20px;
}

.benefit-card__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.benefit-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   OFFERS
   ============================================================ */
.offers {
  background: var(--bg);
  padding: 100px 0;
  overflow: hidden;
}

.offers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .offers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.offer-card:hover {
  border-color: rgba(217,164,65,0.5);
  box-shadow: 0 16px 60px rgba(217,164,65,0.1);
  transform: translateY(-4px);
}

.offer-card--featured {
  border-color: rgba(217,164,65,0.3);
}

.offer-card__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(217,164,65,0.12), transparent 70%);
  pointer-events: none;
}

.offer-card__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(217,164,65,0.25);
  line-height: 1;
}

.offer-card__title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.offer-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.offer-card__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offer-card__meta-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}

.meta-label {
  font-family: var(--font-head);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--bronze);
  text-transform: uppercase;
  padding-top: 3px;
}

.meta-value {
  font-size: 0.825rem;
  color: var(--text);
  line-height: 1.5;
}

.offer-card__price {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, #0F1320 0%, #0A0B0F 50%, #10130A 100%);
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}

/* Golden ring decoration */
.cta-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(217,164,65,0.07);
  pointer-events: none;
}

.cta-ring::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(217,164,65,0.05);
}

/* Particles */
.particles { position: absolute; inset: 0; pointer-events: none; }

.p {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: float-up 4s ease-in-out infinite;
}

.p1 { width: 3px; height: 3px; left: 15%; top: 70%; animation-delay: 0s; opacity: 0.5; }
.p2 { width: 2px; height: 2px; left: 30%; top: 80%; animation-delay: 0.8s; opacity: 0.3; }
.p3 { width: 4px; height: 4px; left: 55%; top: 75%; animation-delay: 1.5s; opacity: 0.4; }
.p4 { width: 2px; height: 2px; left: 70%; top: 65%; animation-delay: 0.4s; opacity: 0.35; }
.p5 { width: 3px; height: 3px; left: 85%; top: 78%; animation-delay: 1.1s; opacity: 0.5; }
.p6 { width: 2px; height: 2px; left: 45%; top: 85%; animation-delay: 2s; opacity: 0.3; }

@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
  100% { transform: translateY(0) scale(1); opacity: 0.4; }
}

.final-cta__content {
  position: relative;
  z-index: 2;
}

.final-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 28px;
}

.final-cta__text {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #06070A;
  border-top: 1px solid rgba(140,107,47,0.25);
  padding: 60px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer__contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__contact:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.social-icon:hover {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(217,164,65,0.2);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__sep { color: var(--border); }

.footer__link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--gold); }

.footer__copy {
  font-size: 0.75rem;
  color: rgba(241,230,210,0.3);
}

@media (min-width: 768px) {
  .footer__contacts { flex-direction: row; gap: 32px; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,7,10,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card-bg);
  border: 1px solid rgba(217,164,65,0.25);
  border-radius: 4px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.modal__close:hover { opacity: 1; }

.modal__brand {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.modal__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.modal__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(217,164,65,0.25);
  border-radius: 2px;
  padding: 12px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-input::placeholder { color: rgba(241,230,210,0.3); }

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(217,164,65,0.1);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(217,65,65,0.5);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-link:hover { color: var(--gold-light); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-visible .reveal-child:nth-child(1) { transition-delay: 0.15s; }
.is-visible .reveal-child:nth-child(2) { transition-delay: 0.3s; }
.is-visible .reveal-child:nth-child(3) { transition-delay: 0.45s; }

.is-visible .reveal-child {
  opacity: 1;
  transform: none;
}

/* ============================================================
   LEGAL PAGES (shared base - used in policy/oferta)
   ============================================================ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.legal-page h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.legal-page .legal-notice {
  background: rgba(217,164,65,0.1);
  border: 1px solid rgba(217,164,65,0.3);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin: 16px 0 32px;
}

.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-page p, .legal-page li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-page ul, .legal-page ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 40px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.legal-back:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (min-width: 768px) {
  .hero__content { padding-top: 120px; padding-bottom: 100px; }
  .final-cta { padding: 160px 0; }
}

@media (min-width: 1200px) {
  .hero__title { letter-spacing: -0.04em; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}
