* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  background: radial-gradient(
    circle at 0% 0%,
    #f0f4fe 0%,
    #fafcff 50%,
    #f5f0ff 100%
  );
  color: #1a2634;
  line-height: 1.5;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100vh;
}

/* Декоративний елемент для додаткового об'єму */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(15, 98, 254, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(124, 77, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 90%,
      rgba(15, 98, 254, 0.05) 0%,
      transparent 35%
    );
  z-index: -1;
}

/* Додатковий градієнтний шар для глибини */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    rgba(15, 98, 254, 0.02) 0px,
    rgba(15, 98, 254, 0.02) 2px,
    transparent 2px,
    transparent 8px
  );
  z-index: -1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(250, 252, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 98, 254, 0.1);
  z-index: 10;
  padding: 16px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo:hover .logo-icon {
  transform: scale(1.02);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: #2c3e4e;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0f62fe, #7c4dff);
  transition: width 0.2s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #0f62fe;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0f62fe, #5a3dff);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0043ce, #3b2bb5);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 98, 254, 0.3);
}

.btn-outline {
  border: 1px solid rgba(15, 98, 254, 0.3);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  color: #1e2a3a;
}

.btn-outline:hover {
  border-color: #0f62fe;
  color: #0f62fe;
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-xl {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    rgba(15, 98, 254, 0.12),
    rgba(124, 77, 255, 0.08)
  );
  backdrop-filter: blur(4px);
  color: #0f62fe;
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.2s;
  border: 1px solid rgba(15, 98, 254, 0.15);
}

.badge:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 98, 254, 0.18),
    rgba(124, 77, 255, 0.12)
  );
  transform: translateX(2px);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #0f62fe, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: #415a6b;
  margin-bottom: 32px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: #5d6f7e;
  flex-wrap: wrap;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid rgba(15, 98, 254, 0.1);
}

.hero-stats span:hover {
  color: #0f62fe;
  border-color: rgba(15, 98, 254, 0.3);
  background: white;
}

/* demo card */
.demo-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(15, 98, 254, 0.15);
  padding: 24px;
  transition: all 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 50px -12px rgba(0, 0, 0, 0.2);
  border-color: rgba(15, 98, 254, 0.25);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #2f4b5e;
}

.demo-badge {
  background: linear-gradient(
    135deg,
    rgba(15, 98, 254, 0.1),
    rgba(124, 77, 255, 0.08)
  );
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
}

.file {
  padding: 10px 12px;
  margin: 6px 0;
  background: #f8fafd;
  border-radius: 14px;
  font-family: monospace;
  font-size: 0.9rem;
  border: 1px solid #eef2f8;
  transition: all 0.2s;
}

.file.selected {
  background: linear-gradient(135deg, #eef3ff, #f0f4fe);
  border-left: 4px solid #0f62fe;
}

.file:hover {
  border-color: rgba(15, 98, 254, 0.3);
  transform: translateX(2px);
}

.demo-context {
  margin: 20px 0 16px;
  background: #ffffff;
  border: 1px solid #e9edf2;
  border-radius: 18px;
  overflow: hidden;
}

.context-item {
  padding: 10px 16px;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  transition: all 0.2s;
}

.context-item:hover {
  background: linear-gradient(135deg, #f8fafd, #ffffff);
  padding-left: 20px;
}

.context-item.active {
  background: linear-gradient(135deg, #f0f4fe, #eef3ff);
  color: #0f62fe;
  font-weight: 500;
}

.badge-new {
  background: linear-gradient(135deg, #0f62fe15, #7c4dff15);
  color: #0f62fe;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 30px;
}

.demo-result {
  background: linear-gradient(135deg, #eef9f0, #e8f5e9);
  padding: 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #1e6f3f;
  transition: all 0.2s;
}

.demo-result:hover {
  background: linear-gradient(135deg, #e8f5e9, #eef9f0);
}

/* Sections */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f62fe;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(15, 98, 254, 0.1),
    rgba(124, 77, 255, 0.08)
  );
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 20px;
  transition: all 0.2s;
  border: 1px solid rgba(15, 98, 254, 0.1);
}

.section-tag:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(15, 98, 254, 0.15),
    rgba(124, 77, 255, 0.12)
  );
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subhead {
  font-size: 1.2rem;
  color: #4a6679;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 32px 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(15, 98, 254, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f62fe, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 98, 254, 0.25);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #0f62fe;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: #4a6679;
  line-height: 1.5;
}

/* steps */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(15, 98, 254, 0.1);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 98, 254, 0.25);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0f62fe15, #8b5cf615);
  color: #0f62fe;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.2s;
}

.step:hover .step-number {
  background: linear-gradient(135deg, #0f62fe25, #8b5cf625);
  transform: scale(1.05);
}

.code-snippet {
  background: linear-gradient(135deg, #1a2634, #0f1a24);
  border-radius: 24px;
  padding: 24px;
  color: #d4e1f0;
  font-family: monospace;
  border: 1px solid rgba(15, 98, 254, 0.2);
}

.code-title {
  display: block;
  margin-bottom: 12px;
  color: #9ab3cf;
  font-size: 0.85rem;
}

pre {
  overflow-x: auto;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 98, 254, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 98, 254, 0.25);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: #4a6679;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #0a1420, #0e1a28);
  color: white;
  border-radius: 48px;
  margin: 32px auto 80px;
  max-width: 1200px;
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 98, 254, 0.2);
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(15, 98, 254, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-container h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-note {
  margin-top: 24px;
  font-size: 0.85rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* footer */
.footer {
  border-top: 1px solid rgba(15, 98, 254, 0.1);
  padding: 48px 0 32px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(250, 252, 255, 0.9)
  );
  backdrop-filter: blur(4px);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand p {
  margin-top: 8px;
  color: #5f7f94;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  text-decoration: none;
  color: #2c3e4e;
  transition: all 0.2s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 38px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0f62fe, #8b5cf6);
  transition: width 0.2s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #0f62fe;
}

.footer-copy {
  font-size: 0.8rem;
  color: #6a859c;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
}

.footer-brand span {
  font-weight: 600;
}

.footer-brand p {
  width: 100%;
  margin-top: 8px;
  margin-left: 0;
  color: #5f7f94;
  font-size: 0.85rem;
}

/* responsive */
@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 0;
  }

  .section {
    padding-block: 48px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .steps {
    flex-direction: column;
  }
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .cta {
    padding: 32px 16px;
    border-radius: 32px;
  }
  .cta-container h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 16px;
  }
  .feature-icon {
    margin-bottom: 0;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-brand p {
    text-align: center;
  }
  .footer-container {
    justify-content: center;
  }
  .faq-grid,
  .features-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
