/* ---------- CSS Variables ---------- */
:root {
  --bg: #0b1020;
  --bg-alt: #0f1529;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6e8ef;
  --text-muted: #9aa3b8;
  --accent: #10a37f;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --accent-soft: rgba(16, 163, 127, 0.14);
  --danger-soft: rgba(244, 114, 182, 0.12);
  --gradient: linear-gradient(120deg, #34d399 0%, #818cf8 55%, #c084fc 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --nav-h: 72px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Переопределение переменных Bootstrap */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: #34d399;
  --bs-border-color: var(--border);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand-text {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  color: #fff;
}

h3,
.h5,
.h6 {
  font-family: var(--font-body);
  font-weight: 700;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.text-accent {
  color: var(--accent) !important;
}

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

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---------- Buttons ---------- */
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0e8f6f;
  --bs-btn-hover-border-color: #0e8f6f;
  --bs-btn-active-bg: #0c7a5f;
  --bs-btn-focus-shadow-rgb: 16, 163, 127;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(16, 163, 127, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(16, 163, 127, 0.9);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn-ghost:hover {
  color: #fff;
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--gradient);
  z-index: 1100;
}

/* ---------- Navbar ---------- */
.site-nav {
  min-height: var(--nav-h);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding-block: 1rem;
}

.site-nav.scrolled {
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 0.5rem;
}

.site-nav .brand-text {
  font-size: 1.15rem;
}

.site-nav .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-inline: 0.75rem !important;
  transition: color 0.25s;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff;
}

.site-nav .nav-link.active::after,
.site-nav .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  color: #fff;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: rgba(15, 21, 41, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.75rem;
  }

  .site-nav .nav-link::after {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 14s ease-in-out infinite;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: #10a37f;
  top: -160px;
  left: -140px;
}

.blob-2 {
  width: 460px;
  height: 460px;
  background: #6366f1;
  bottom: -180px;
  right: -120px;
  animation-delay: -6s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a7f3d0;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 163, 127, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hero-visual {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}

.hero-orb {
  width: 100%;
  animation: spinSlow 60s linear infinite;
}

.chat-card {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: min(92%, 440px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: rgba(15, 21, 41, 0.75);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.chat-dot:first-child {
  background: #f87171;
}

.chat-dot:nth-child(2) {
  background: #fbbf24;
}

.chat-dot:nth-child(3) {
  background: #34d399;
}

.chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.msg {
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  line-height: 1.55;
}

.msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  max-width: 85%;
}

.msg-ai {
  background: var(--surface-strong);
  border-bottom-left-radius: 4px;
  min-height: 5.2em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: blink 1s steps(2) infinite;
}

/* ---------- Stats ---------- */
.stats-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3rem 0;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.mini-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}

.mini-pill i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), var(--accent-2), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 2.5rem 0;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 2.5rem 2.5rem;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 0.6rem;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(16, 163, 127, .15);
}

.timeline-item:nth-child(even)::after {
  right: auto;
  left: -7px;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #a7f3d0;
  margin-bottom: 0.5rem;
}

.timeline-card {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 163, 127, .45);
}

.timeline-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.timeline-card.highlight {
  background: linear-gradient(135deg, rgba(16, 163, 127, .18), rgba(129, 140, 248, .12));
  border-color: rgba(16, 163, 127, .45);
}

@media (max-width: 767.98px) {
  .timeline::before {
    left: 7px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2rem 2.25rem;
  }

  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 0;
    right: auto;
  }
}

/* ---------- How it works ---------- */
.figure-frame {
  padding: 1rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.figure-frame img {
  border-radius: var(--radius);
  display: block;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}

.step:hover {
  background: var(--surface);
}

.step-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
}

/* ---------- Features ---------- */
.feature-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(16, 163, 127, .16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 163, 127, .4);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(129, 140, 248, .6);
}

/* ---------- Pros / Cons ---------- */
.proscons {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.proscons li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
}

.proscons li:last-child {
  border-bottom: 0;
}

.pros {
  background: linear-gradient(160deg, rgba(16, 163, 127, .12), transparent 60%);
}

.pros h3,
.pros li i {
  color: #34d399;
}

.cons {
  background: linear-gradient(160deg, rgba(244, 114, 182, .10), transparent 60%);
}

.cons h3,
.cons li i {
  color: #f472b6;
}

/* ---------- Prompts ---------- */
.tips-list {
  padding-left: 1.2rem;
}

.tips-list li {
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.tips-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.tips-list strong {
  color: #fff;
}

.prompt-box {
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prompt-tabs .nav-link {
  color: var(--text-muted);
  border-radius: 999px;
  font-weight: 600;
}

.prompt-tabs .nav-link.active {
  background: var(--accent);
  color: #fff;
}

.prompt-code {
  background: #070b17;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  color: #c7f9e5;
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

/* ---------- Quote ---------- */
.big-quote {
  max-width: 820px;
}

.big-quote i {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.big-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  color: #fff;
  margin: 1rem 0;
}

.big-quote footer {
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq {
  --bs-accordion-bg: var(--surface);
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-color: #fff;
  --bs-accordion-active-bg: var(--accent-soft);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(16, 163, 127, .25);
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-inner-border-radius: var(--radius);
}

.faq .accordion-button {
  font-weight: 700;
  padding: 1.2rem 1.4rem;
}

.faq .accordion-body {
  color: var(--text-muted);
  padding: 0.5rem 1.4rem 1.4rem;
}

/* ---------- CTA ---------- */
.cta-card {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(16, 163, 127, .28), transparent 50%),
    radial-gradient(600px circle at 100% 100%, rgba(129, 140, 248, .25), transparent 50%),
    var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.subscribe-form .input-group-text,
.subscribe-form .form-control {
  background: rgba(7, 11, 23, .7);
  border-color: var(--border);
  color: #fff;
}

.subscribe-form .form-control::placeholder {
  color: #6b7280;
}

.subscribe-form .form-control:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.form-success {
  color: #34d399;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.social {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.3s, transform 0.3s var(--ease), color 0.3s;
}

.social:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 12px 30px -8px rgba(16, 163, 127, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.9);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s;
  z-index: 1050;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- Reveal on scroll (Intersection Observer) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

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

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 30px) scale(1.08);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero .d-flex {
    justify-content: center;
  }

  .hero-visual {
    margin-bottom: 3rem;
  }

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: calc(var(--nav-h) + 2.5rem);
  }

  .chat-card {
    bottom: -18%;
    font-size: 0.85rem;
  }

  .feature-card,
  .proscons,
  .prompt-box {
    padding: 1.5rem;
  }

  .subscribe-form .input-group {
    flex-wrap: wrap;
  }

  .subscribe-form .input-group>.form-control {
    min-width: 0;
  }

  .subscribe-form .input-group>.btn {
    width: 100%;
    margin-top: .75rem;
    border-radius: var(--radius-sm) !important;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 46px;
    height: 46px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}