/* ─────────────────────────────────────────────────────────────────
   NeiroLanding — общая дизайн-система
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg: #0A0B10;
  --surface: #12141C;
  --card: #181B26;
  --border: #242836;
  --text: #E8EAF0;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --green-400: #4ADE80;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --accent: #818CF8;
  --danger: #EF4444;
}

* { scroll-behavior: smooth; }

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Unbounded', 'Mulish', sans-serif;
  letter-spacing: -0.01em;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── Glow & gradient effects ───────────────────────────────────── */
.glow-green { box-shadow: 0 0 40px rgba(74, 222, 128, 0.2); }
.glow-green-sm { box-shadow: 0 0 20px rgba(74, 222, 128, 0.15); }
.text-glow { text-shadow: 0 0 40px rgba(74, 222, 128, 0.4); }

.gradient-text {
  background: linear-gradient(135deg, #4ADE80 0%, #818CF8 60%, #4ADE80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74,222,128,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 60%, rgba(129,140,248,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(74,222,128,0.06) 0%, transparent 50%),
    var(--bg);
}

/* ─── Cards ─────────────────────────────────────────────────────── */
.glass-card {
  background: rgba(24, 27, 38, 0.8);
  border: 1px solid rgba(36, 40, 54, 0.8);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(74,222,128,0.1);
}

.pricing-popular {
  background: linear-gradient(145deg, #0F2018 0%, #0A1A14 100%);
  border-color: rgba(74,222,128,0.5) !important;
  box-shadow: 0 0 60px rgba(74,222,128,0.1), inset 0 1px 0 rgba(74,222,128,0.2);
}

/* Dot background */
.dot-bg {
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.badge-green {
  background: rgba(74,222,128,0.10);
  border: 1px solid rgba(74,222,128,0.3);
  color: #86EFAC;
}
.badge-accent {
  background: rgba(129,140,248,0.10);
  border: 1px solid rgba(129,140,248,0.3);
  color: #C7D2FE;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34,197,94,0.35);
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  border: 1px solid var(--border);
  color: #D1D5DB;
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  border-color: var(--green-400);
  color: var(--green-400);
}

/* ─── Reveal animation ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: var(--green-500);
  color: var(--bg);
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  max-width: 320px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── Navigation ────────────────────────────────────────────────── */
.nl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0 16px;
  background: rgba(10,11,16,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36,40,54,0.6);
  transition: border-color 0.3s ease;
}
.nl-nav.scrolled {
  border-bottom-color: rgba(36,40,54,0.95);
}
@media (min-width: 640px) { .nl-nav { padding: 0 24px; } }
@media (min-width: 1024px) { .nl-nav { padding: 0 32px; } }

.nl-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nl-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
}
.nl-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-500);
  color: var(--bg);
  font-weight: 900;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nl-nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
}
.nl-nav-links a { transition: color 0.2s; }
.nl-nav-links a:hover { color: var(--green-400); }
.nl-nav-links a.active { color: white; }
@media (min-width: 768px) { .nl-nav-links { display: flex; } }

.nl-nav-cta {
  display: none;
}
@media (min-width: 768px) { .nl-nav-cta { display: inline-flex; } }

.nl-burger {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: 0;
}
@media (min-width: 768px) { .nl-burger { display: none; } }
.nl-burger span {
  width: 22px;
  height: 2px;
  background: #D1D5DB;
  border-radius: 2px;
}
.nl-burger span:last-child { width: 14px; align-self: flex-start; margin-left: 4px; }

.nl-mobile {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 0 0 16px 0;
  padding: 16px;
}
.nl-mobile.open { display: block; }
.nl-mobile a {
  display: block;
  padding: 8px 0;
  color: #D1D5DB;
  font-size: 14px;
  font-weight: 500;
}
.nl-mobile a:hover { color: var(--green-400); }
.nl-mobile-cta {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  color: white !important;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.nl-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
  padding: 48px 16px 32px;
  margin-top: 80px;
}
.nl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.nl-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .nl-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.nl-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  margin-bottom: 12px;
  font-weight: 600;
}
.nl-footer ul { list-style: none; padding: 0; margin: 0; }
.nl-footer li { margin-bottom: 8px; }
.nl-footer a {
  color: #D1D5DB;
  font-size: 14px;
  transition: color 0.2s;
}
.nl-footer a:hover { color: var(--green-400); }
.nl-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: #6B7280;
}
@media (min-width: 768px) {
  .nl-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ─── Breadcrumbs ───────────────────────────────────────────────── */
.nl-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin: 96px 0 0 0;
  padding: 16px;
  max-width: 1200px;
}
@media (min-width: 768px) { .nl-breadcrumbs { padding: 16px 24px; } }
.nl-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nl-breadcrumbs li::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-dim);
}
.nl-breadcrumbs li:last-child::after { content: ''; }
.nl-breadcrumbs a { color: var(--text-muted); transition: color 0.2s; }
.nl-breadcrumbs a:hover { color: var(--green-400); }
.nl-breadcrumbs li:last-child { color: white; }

/* ─── Prose (для блога) ─────────────────────────────────────────── */
.prose {
  color: #D1D5DB;
  font-size: 17px;
  line-height: 1.75;
  font-family: 'Mulish', sans-serif;
}
.prose h1 {
  font-family: 'Unbounded', sans-serif;
  color: white;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
.prose h2 {
  font-family: 'Unbounded', sans-serif;
  color: white;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin: 56px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.prose h3 {
  font-family: 'Unbounded', sans-serif;
  color: white;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 24px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: white; font-weight: 700; }
.prose a {
  color: var(--green-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74,222,128,0.4);
}
.prose a:hover { text-decoration-color: var(--green-400); }
.prose blockquote {
  border-left: 3px solid var(--green-400);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: #E5E7EB;
  font-style: italic;
  background: rgba(74,222,128,0.04);
  border-radius: 0 8px 8px 0;
}
.prose code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: #FCD34D;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.prose th {
  background: var(--card);
  color: white;
  font-weight: 700;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
}
.prose tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

.prose-callout {
  background: linear-gradient(135deg, rgba(74,222,128,0.07), rgba(129,140,248,0.05));
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0;
}
.prose-callout strong { color: var(--green-400); }

/* ─── Pricing common ────────────────────────────────────────────── */
.pricing-card {
  background: rgba(24, 27, 38, 0.8);
  border: 1px solid rgba(36, 40, 54, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-4px);
}
.pricing-premium-plus:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.12);
}
@media (max-width: 1280px) {
  .pricing-card { padding: 24px; }
}

/* ─── Form ──────────────────────────────────────────────────────── */
.nl-input, .nl-select, .nl-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: white;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Mulish', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nl-input:focus, .nl-select:focus, .nl-textarea:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}
.nl-textarea { min-height: 96px; resize: vertical; }
.nl-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Misc ──────────────────────────────────────────────────────── */
.section { padding: 80px 16px; }
@media (min-width: 640px) { .section { padding: 80px 24px; } }
@media (min-width: 1024px) { .section { padding: 96px 32px; } }
.container-narrow { max-width: 800px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; }
.container-wide { max-width: 1280px; margin: 0 auto; }

.scroll-container {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.scroll-container::-webkit-scrollbar { height: 6px; }
.scroll-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.work-card { width: min(360px, 80vw); scroll-snap-align: start; }

/* ─── Article meta ──────────────────────────────────────────────── */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.article-meta span::before { content: '·'; margin-right: 8px; color: var(--text-dim); }
.article-meta span:first-child::before { content: ''; margin: 0; }

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  background: rgba(24, 27, 38, 0.8);
  border: 1px solid rgba(36, 40, 54, 0.8);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}
.article-card:hover {
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-4px);
}
.article-card.has-cover { padding: 0; }
.article-card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #0F1218;
  border-bottom: 1px solid rgba(36, 40, 54, 0.6);
  transition: opacity 0.3s ease;
}
.article-card.has-cover .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.article-card:hover .cover { opacity: 0.92; }
.article-card .topic {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-400);
  font-weight: 700;
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
  line-height: 1.3;
}
.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.article-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-400);
  text-decoration: none;
}
