/* ============================================================
   OPROS LANDING — DESIGN SYSTEM
   Шрифты: Unbounded (заголовки) + Nunito (текст) — не Inter, не Roboto
   Цвета: тёмная основа #0D0F14 + акцент #4F7EFF (синий) + #00E5A0 (мятный)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Nunito:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Цвета */
  --c-bg:          #0D0F14;
  --c-bg-2:        #13161E;
  --c-bg-card:     #181C27;
  --c-bg-card-h:   #1E2333;
  --c-border:      rgba(255,255,255,0.07);
  --c-border-h:    rgba(79,126,255,0.35);

  --c-accent:      #4F7EFF;
  --c-accent-glow: rgba(79,126,255,0.25);
  --c-mint:        #00E5A0;
  --c-mint-glow:   rgba(0,229,160,0.20);
  --c-warn:        #FFB547;

  --c-text:        #E8EAF2;
  --c-text-2:      #8B90A7;
  --c-text-3:      #565B72;
  --c-white:       #FFFFFF;

  /* Градиенты */
  --g-hero:        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,126,255,0.18) 0%, transparent 70%),
                   radial-gradient(ellipse 40% 30% at 80% 20%, rgba(0,229,160,0.10) 0%, transparent 60%);
  --g-accent:      linear-gradient(135deg, #4F7EFF 0%, #00E5A0 100%);
  --g-card:        linear-gradient(145deg, #181C27 0%, #13161E 100%);
  --g-text:        linear-gradient(90deg, #4F7EFF 0%, #00E5A0 100%);

  /* Типографика */
  --font-display:  'Unbounded', sans-serif;
  --font-body:     'Nunito', sans-serif;

  /* Размеры */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Тени */
  --shadow-card:   0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow:   0 0 40px rgba(79,126,255,0.18);
  --shadow-mint:   0 0 30px rgba(0,229,160,0.15);

  /* Переходы */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:   0.15s;
  --t-mid:    0.3s;
  --t-slow:   0.6s;

  /* Контейнер */
  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 80px);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Typography ── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

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

.label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--r-full);
  padding: 14px 28px;
  transition: all var(--t-mid) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 0 0 0 var(--c-accent-glow);
}

.btn-primary:hover {
  background: #5F8EFF;
  box-shadow: 0 0 30px var(--c-accent-glow), 0 4px 16px rgba(79,126,255,0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--c-border-h);
  color: var(--c-white);
}

.btn-mint {
  background: var(--c-mint);
  color: #0D0F14;
  font-weight: 800;
}

.btn-mint:hover {
  background: #00F5AE;
  box-shadow: 0 0 30px var(--c-mint-glow);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 16px 36px;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* ── Cards ── */
.card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all var(--t-mid) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--c-border-h);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--g-accent);
  opacity: 0;
  transition: opacity var(--t-mid);
}

.card:hover::before {
  opacity: 0.6;
}

/* ── Section ── */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header .label {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--c-text-2);
  margin-top: 16px;
  line-height: 1.65;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--c-border-h);
  background: rgba(79,126,255,0.08);
  color: var(--c-accent);
  margin-bottom: 12px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-mint);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--c-border);
}

/* ── Scroll animations (базовые) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Utilities ── */
.text-center  { text-align: center; }
.text-muted   { color: var(--c-text-2); }
.text-mint    { color: var(--c-mint); }
.text-accent  { color: var(--c-accent); }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.mt-32        { margin-top: 32px; }
.mt-48        { margin-top: 48px; }

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