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

:root {
  --bg: #0b0b14;
  --card: #161622;
  --card2: #1c1c2e;
  --border: rgba(139, 92, 246, 0.22);
  --purple: #8b5cf6;
  --purple2: #a78bfa;
  --purple-dark: #6d28d9;
  --blue: #3b82f6;
  --blue-open: #3b82f6;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --ok: #34d399;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple2); text-decoration: none; }
a:hover { color: #c4b5fd; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 20, 0.92);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}
.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  width: 100%;
}
.btn-blue:hover { filter: brightness(1.08); color: #fff; }
.btn-outline {
  width: 100%;
  background: transparent;
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 28px;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.35);
  display: block;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 35%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section { padding: 48px 0; }
.section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card .icon { font-size: 1.35rem; margin-bottom: 12px; }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card2), var(--card2)) padding-box,
    linear-gradient(160deg, #8b5cf6, #3b82f6) border-box;
  box-shadow: 0 12px 40px rgba(91, 33, 182, 0.25);
}
.price-top { margin-bottom: 16px; }
.price-top .amount {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.price-top .period {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.price-top .hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 2.4em;
}
.price-card h4 {
  font-size: 0.95rem;
  margin: 8px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 18px;
}
.price-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #d1d5db;
  font-size: 0.9rem;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* FAQ — two columns on desktop */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}
.faq-intro {
  background: #14141f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  position: sticky;
  top: 88px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.faq-intro svg {
  width: 110px;
  height: 100px;
  margin: 0 auto 18px;
  display: block;
}
.faq-intro .tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.faq-intro h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.faq-intro p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 260px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}
.faq-item {
  background: transparent;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.faq-item .faq-q {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #b0b4c0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-family: inherit;
}
.faq-item .faq-q:hover { color: #e5e7eb; }
.faq-item .sign {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0.7;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item .answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item .answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item .answer {
  padding: 0 20px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease, padding 0.3s ease;
}
.faq-item.is-open {
  background: var(--blue-open);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.28);
}
.faq-item.is-open .faq-q {
  color: #fff;
  font-weight: 600;
  background: transparent;
}
.faq-item.is-open .sign { opacity: 1; color: #fff; }
.faq-item.is-open .answer-wrap { grid-template-rows: 1fr; }
.faq-item.is-open .answer {
  opacity: 1;
  transform: translateY(0);
  padding: 0 20px 18px;
}

/* Reviews */
.reviews-section { padding: 48px 0 24px; }
.reviews-head {
  text-align: center;
  margin-bottom: 28px;
}
.reviews-head .tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.reviews-head h2 {
  font-size: 1.9rem;
  font-weight: 700;
}
.reviews-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.review-card {
  flex: 0 0 calc((100% - 32px) / 3);
  background: #161622;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 26px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.review-card .quote {
  color: #3b82f6;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.review-card .text {
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}
.review-card .stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.review-card .name {
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.95rem;
}
.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.reviews-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #1c1c2a;
  color: #e5e7eb;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.reviews-nav button:hover {
  background: #2a2a3c;
  transform: scale(1.05);
}

/* CTA */
.cta {
  margin: 20px auto 60px;
  max-width: 760px;
  text-align: center;
  padding: 36px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.22), rgba(28, 28, 48, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin-bottom: 18px; }
.cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}
.legal h1 { font-size: 2rem; margin-bottom: 6px; font-weight: 700; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 1.15rem; color: var(--purple2); margin: 26px 0 10px; }
.legal p, .legal li { color: #c8c8d4; margin-bottom: 8px; font-size: 0.95rem; }
.legal ul { padding-left: 18px; margin-bottom: 10px; }

.footer {
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer a { margin: 0 8px; }

/* 404 */
.page-404 {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.page-404 .code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.page-404 h1 { font-size: 1.6rem; margin-bottom: 10px; color: #f3f4f6; }
.page-404 p { color: var(--muted); margin-bottom: 24px; max-width: 400px; }

/* Mobile menu */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro {
    position: static;
    min-height: auto;
    padding: 36px 24px;
  }
  .review-card { flex: 0 0 calc((100% - 16px) / 2); }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none !important; }
  .menu-btn { display: flex; }
  .header-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 0;
  }
  .logo { min-width: 0; }
  .logo-text { font-size: 1rem; white-space: nowrap; }
  .logo img { width: 30px; height: 30px; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 16px;
    background: rgba(11, 11, 20, 0.98);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    animation: menuIn 0.2s ease;
  }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu a {
    color: #d1d5db;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .mobile-menu a:hover,
  .mobile-menu a.active {
    background: rgba(139, 92, 246, 0.18);
    color: #fff;
  }
  .mobile-menu .btn {
    margin-top: 8px;
    width: 100%;
  }

  .hero { padding: 28px 0 16px; }
  .hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 14px;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 0.95rem; margin-bottom: 18px; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .grid, .pricing { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .review-card { flex: 0 0 100%; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
