/* =============================================================
   Дизайн-система «Крутой лендинг за день» — токены и базовая типографика
   Источник: design-system.md (alex-kurteev.ru)
   ============================================================= */

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

:root {
  /* Фоны и поверхности */
  --color-bg: #0A0A0F;
  --color-bg-light:    rgba(255, 255, 255, 0.08);
  --color-bg-lighter:  rgba(255, 255, 255, 0.12);
  --color-border:      rgba(255, 255, 255, 0.10);
  --color-border-light:rgba(255, 255, 255, 0.15);

  /* Текст */
  --color-text:       #9CA3AF;
  --color-text-light: #D1D5DB;
  --color-white:      #FFFFFF;

  /* Акценты — основной + dark */
  --color-purple: #8B5CF6;  --color-purple-dark: #7C3AED;
  --color-cyan:   #06B6D4;  --color-cyan-dark:   #0891B2;
  --color-pink:   #EC4899;  --color-pink-dark:   #DB2777;
  --color-amber:  #F59E0B;  --color-amber-dark:  #D97706;
  --color-green:  #10B981;  --color-green-dark:  #059669;

  /* Градиенты */
  --gradient-primary:  linear-gradient(to right, var(--color-purple), var(--color-cyan));
  --gradient-text:     linear-gradient(to right, #A78BFA, #F472B6, #22D3EE);
  --gradient-text-alt: linear-gradient(to right, #22D3EE, #A78BFA, #22D3EE);

  /* Свечения (glow shadow) */
  --shadow-glow-purple:     0 0 40px rgba(139, 92, 246, 0.4);
  --shadow-glow-purple-lg:  0 0 60px rgba(139, 92, 246, 0.6);
  --shadow-glow-cyan:       0 0 40px rgba(6, 182, 212, 0.4);
  --shadow-glow-pink:       0 0 40px rgba(236, 72, 153, 0.4);
  --shadow-glow-amber:      0 0 40px rgba(245, 158, 11, 0.4);
  --shadow-glow-green:      0 0 40px rgba(16, 185, 129, 0.4);

  /* Layout */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1170px;
  --container-narrow: 900px;
}

/* ---------------- BASE ---------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------------- ТИПОГРАФИКА ---------------- */

h1, h2, h3, h4 { color: var(--color-white); margin: 0; font-weight: 700; line-height: 1.15; }

.h-hero      { font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.section-title       { font-size: clamp(1.875rem, 5vw, 3rem);  font-weight: 700; line-height: 1.15; }
.section-title--lg   { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.1;  }
.section-subtitle    { font-size: clamp(1.125rem, 2.5vw, 1.25rem); color: var(--color-text); font-weight: 400; line-height: 1.6; max-width: 760px; margin: 1rem auto 0; }

.card-title  { font-size: 1.25rem; font-weight: 700; color: var(--color-white); }
.card-title--lg { font-size: 1.5rem; }

.body        { font-size: 1rem; color: var(--color-text-light); line-height: 1.7; }
.meta        { font-size: 0.875rem; color: var(--color-text); font-weight: 500; letter-spacing: 0.05em; }
.eyebrow     { font-size: 0.75rem; color: var(--color-text); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

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

/* ---------------- LAYOUT ---------------- */

.container         { max-width: var(--container-max);    padding: 0 1rem; margin: 0 auto; }
.container--narrow { max-width: var(--container-narrow); padding: 0 1rem; margin: 0 auto; }

.section {
  position: relative;
  padding: 6rem 1rem;
  overflow: hidden;
}
@media (max-width: 768px) {
  .section { padding: 4rem 1rem; }
}

.section-header { text-align: center; margin-bottom: 3rem; }

/* ---------------- GLOW-ПЯТНА ---------------- */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(200px);
  pointer-events: none;
  z-index: 0;
}
.glow--center      { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: rgba(139, 92, 246, 0.10); }
.glow--right       { right: 0;  top: 50%; transform: translateY(-50%); width: 600px; height: 600px; background: rgba(6, 182, 212, 0.10); }
.glow--left-top    { left: 25%; top: 33%; width: 600px; height: 600px; background: rgba(139, 92, 246, 0.10); }
.glow--right-bottom{ right: 10%; bottom: 0; width: 500px; height: 500px; background: rgba(236, 72, 153, 0.08); }

/* контейнер контента поверх свечения */
.section > .container,
.section > .container--narrow { position: relative; z-index: 1; }

/* ---------------- БЕЙДЖ ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.10), rgba(6, 182, 212, 0.10));
  border: 1px solid rgba(139, 92, 246, 0.30);
  backdrop-filter: blur(8px);
  font-size: 0.875rem; font-weight: 500; color: var(--color-text-light);
}

/* ---------------- КНОПКИ ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  border: 0; cursor: pointer; line-height: 1;
  transition: all 0.3s ease;
  color: #fff;
}
.btn svg { transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow-purple);
}
.btn--primary:hover { box-shadow: var(--shadow-glow-purple-lg); transform: translateY(-2px); }

.btn--secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.btn--secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn--large { padding: 1rem 2rem; font-size: 1.125rem; }
.btn--full  { width: 100%; padding: 1.25rem 2rem; font-size: 1.125rem; }

/* ---------------- ICON BOX ---------------- */

.icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.icon-box svg { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.icon-box--lg { width: 4rem; height: 4rem; border-radius: 1rem; }
.icon-box--lg svg { width: 2rem; height: 2rem; }

.icon-box--purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); box-shadow: 0 0 30px rgba(139, 92, 246, 0.4); }
.icon-box--cyan   { background: linear-gradient(135deg, #06B6D4, #0891B2); box-shadow: 0 0 30px rgba(6, 182, 212, 0.4); }
.icon-box--pink   { background: linear-gradient(135deg, #EC4899, #DB2777); box-shadow: 0 0 30px rgba(236, 72, 153, 0.4); }
.icon-box--amber  { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
.icon-box--green  { background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }

.check-icon {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: linear-gradient(to right, rgba(139,92,246,0.2), rgba(6,182,212,0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-cyan);
  flex-shrink: 0;
}
.check-icon svg { width: 0.875rem; height: 0.875rem; stroke-width: 2.5; }

/* ---------------- GLASS-КАРТОЧКА ---------------- */

.card {
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}
.card:hover { border-color: rgba(139, 92, 246, 0.3); transform: translateY(-2px); }

.card-strong {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 2px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
}

/* premium с glow-слоем */
.card-premium { position: relative; }
.card-premium__glow {
  position: absolute; inset: -2px;
  background: linear-gradient(to right, rgba(139,92,246,0.3), rgba(236,72,153,0.3), rgba(6,182,212,0.3));
  border-radius: 1.5rem; filter: blur(20px);
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.card-premium__content { position: relative; z-index: 1; }
.card-premium:hover .card-premium__glow { opacity: 1; }

/* ---------------- АНИМАЦИИ ---------------- */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes timerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

.fade-in-up        { animation: fadeInUp 0.6s ease both; }
.fade-in-up--d1    { animation-delay: 0.1s; }
.fade-in-up--d2    { animation-delay: 0.2s; }
.fade-in-up--d3    { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
