/* ==========================================================================
   VIBEEES API — MODERN & CLEAN STYLESHEET (v15)
   ========================================================================== */

:root {
  --bg: #080812;
  --bg2: #0f0f20;
  --bg3: #16162e;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --gold: #f59e0b;
  --text: #f8fafc;
  --text2: #94a3b8;
  --border: rgba(124, 58, 237, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --glow: 0 0 32px rgba(124, 58, 237, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(8, 8, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo img {
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 95%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

/* 1. КРУПНЫЙ ДИНАМИЧЕСКИЙ ЗАГОЛОВОК ВОЗМОЖНОСТЕЙ */
.hero-action-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 22px;
}

.action-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 22, 48, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.action-item:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
  background: rgba(124, 58, 237, 0.25);
}

.ai-icon {
  font-style: normal;
  font-size: 1.15rem;
}

/* 2. ГЛАВНЫЙ ОФФЕР */
.hero-offer-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 14px;
  color: #fff;
}

.offer-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-offer-sub {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: var(--text2);
  max-width: 660px;
  margin: 0 auto 26px;
  line-height: 1.5;
}

.hero-offer-sub strong {
  color: #fff;
}

/* 3. КНОПКИ ДЕЙСТВИЯ */
.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-btn-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s, opacity 0.2s;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.hero-btn-popular {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  background: linear-gradient(135deg, #06b6d4, var(--accent));
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.35);
  transition: transform 0.2s, opacity 0.2s;
}

.hero-btn-popular:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.pop-chip {
  position: absolute;
  top: -11px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  white-space: nowrap;
}

.btn-sub {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-main {
  font-size: 0.98rem;
  font-weight: 800;
}

.hero-btn-ghost {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: all 0.2s;
}

.hero-btn-ghost:hover {
  color: #fff;
  border-color: var(--accent2);
}

/* 4. HERO FEATURES GRID (ИНФО-КАРТОЧКИ) */
.hero-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.hf-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}

.hf-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent2);
}

.hf-card.hf-highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.08));
  border-color: rgba(124, 58, 237, 0.4);
}

.hf-card.hf-claude {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(124, 58, 237, 0.12));
  border-color: rgba(245, 158, 11, 0.35);
}

.hf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hf-icon {
  font-size: 1.4rem;
}

.hf-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #06b6d4;
  letter-spacing: 0.05em;
}

.hf-tag.claude-tag {
  color: #f59e0b;
}

.hf-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}

.hf-text {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.45;
}

.hf-text strong {
  color: #fff;
}

.hf-text code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--accent2);
}

/* CLIENTS PILLS */
.hero-clients-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.clients-caption {
  font-size: 0.74rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clients-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.c-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

/* ---- TRUST BAR TICKER ---- */
.trust-bar {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 32, 0.8);
}

.trust-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.trust-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(22, 22, 46, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.trust-pill.glow-cyan {
  border-color: rgba(6, 182, 212, 0.35);
  color: #e0f2fe;
}

/* ---- SECTIONS GENERAL ---- */
section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent2);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text2);
  font-size: 0.95rem;
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ---- MODELS GRID ---- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.model-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.model-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.model-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.model-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}

.model-desc {
  font-size: 0.84rem;
  color: var(--text2);
  line-height: 1.45;
}

.model-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent2);
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
}

/* ---- COMPARISON TABLE ---- */
.comparison-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.comparison-table th {
  padding: 16px 16px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(168, 85, 247, 0.15));
  color: var(--accent2);
}

.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table td.label {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.comparison-table td.highlight {
  color: #fff;
  font-weight: 600;
}

.check { color: #22c55e; font-weight: bold; }
.cross { color: #ef4444; font-weight: bold; }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.price-card.popular {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text2);
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text2);
  margin: 8px 0 20px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 26px;
}

.price-features li {
  padding: 7px 0;
  font-size: 0.86rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.price-features li:last-child {
  border-bottom: none;
}

.btn-buy {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-buy:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-buy.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}

.btn-buy.outline:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  user-select: none;
}

.faq-q:hover {
  color: var(--accent2);
}

.faq-q .arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text2);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 20px;
  font-size: 0.88rem;
  color: var(--text2);
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* ---- STICKY BOTTOM BAR ---- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(8, 8, 18, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-badge {
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
}

.sticky-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sticky {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s;
}

.btn-sticky:hover {
  transform: translateY(-1px);
}

.btn-sticky-day {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

.btn-sticky-week {
  background: linear-gradient(135deg, #06b6d4, var(--accent));
  color: #fff;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.84rem;
  color: var(--text2);
}

footer a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

/* ==========================================================
   MOBILE FIRST OPTIMIZATION (MAX-WIDTH: 768px)
   ========================================================== */
@media (max-width: 768px) {
  .nav {
    padding: 10px 14px;
    height: 56px;
  }
  .nav-logo img { height: 26px; }
  .nav-links { display: none; }
  .nav-cta {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero {
    padding: 130px 16px 45px; /* Увеличенный безопасный отступ под мобильную плашку */
    min-height: auto;
  }

  /* 1. Мобильный заголовок возможностей (аккуратные чипсы в 2 ряда) */
  .hero-action-headline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
  }

  .action-item {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .ai-icon {
    font-size: 0.95rem;
  }

  /* 2. Мобильный главный оффер */
  .hero-offer-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 900;
  }

  .hero-offer-sub {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  /* 3. Кнопки сразу под оффером на смартфонах */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 22px;
  }

  .hero-btn-primary,
  .hero-btn-popular,
  .hero-btn-ghost {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-btn-primary,
  .hero-btn-popular {
    padding: 12px 16px;
  }

  .btn-main {
    font-size: 0.94rem;
  }

  /* 4. Инфо-карточки 1 колонка */
  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .hf-card {
    padding: 14px 16px;
  }

  .hf-header {
    margin-bottom: 6px;
  }

  .hf-name {
    font-size: 0.92rem;
  }

  .hf-text {
    font-size: 0.8rem;
  }

  .hero-clients-row {
    margin-top: 10px;
  }

  .clients-pills {
    gap: 4px;
  }

  .c-pill {
    font-size: 0.7rem;
  }

  section {
    padding: 40px 16px !important;
  }

  .section-title {
    font-size: 1.45rem !important;
  }

  .section-sub {
    font-size: 0.84rem !important;
    margin-bottom: 24px !important;
  }

  .models-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .price-card {
    padding: 26px 18px !important;
  }

  .price-amount {
    font-size: 2.5rem !important;
  }

  .sticky-bar {
    padding: 8px 12px !important;
  }

  .sticky-info {
    display: none;
  }

  .sticky-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .btn-sticky {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 0.82rem;
  }
}
