/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

a {
  color: inherit;
  text-decoration: none
}

ul {
  list-style: none
}

img {
  max-width: 100%;
  display: block
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -.02em
}

.logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0
}

.nav {
  display: flex;
  gap: 32px
}

.nav__link {
  color: #a0a0a0;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s
}

.nav__link:hover {
  color: #fff
}

.nav__link--active {
  color: #fff;
  position: relative
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0066ff;
  border-radius: 1px;
  animation: navFadeIn .3s ease
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: scaleX(0)
  }

  to {
    opacity: 1;
    transform: scaleX(1)
  }
}

.header__cta {
  display: inline-flex
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  white-space: nowrap
}

.btn--primary {
  background: #0066ff;
  color: #fff
}

.btn--primary:hover {
  background: #0055dd;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 102, 255, .3)
}

.btn--gradient {
  background: #0066ff;
  color: #fff;
  font-size: 1rem;
  padding: 16px 36px
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 102, 255, .3)
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .05)
}

.btn--outline-light {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1)
}

/* ===== BURGER (MOBILE) ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.burger.active span:nth-child(2) {
  opacity: 0
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 20px
}

.hero__subtitle {
  font-size: 1.05rem;
  color: #999;
  line-height: 1.7;
  margin-bottom: 36px
}

.hero__demo {
  display: flex;
  justify-content: flex-end
}

/* Chat Demo Card */
.chat-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px 20px rgba(0, 102, 255, .06), 0 0 160px 60px rgba(0, 204, 136, .04), 0 8px 32px rgba(0, 0, 0, .4)
}

.chat-card::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, .12) 0%, transparent 70%);
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: top .4s ease-out, left .4s ease-out, opacity .4s;
  opacity: 0;
  z-index: 0
}

.chat-card:hover::before,
.chat-card.glow-active::before {
  opacity: 1
}

.chat-card>* {
  position: relative;
  z-index: 1
}

.chat-card__row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px
}

.chat-card__row:last-of-type {
  margin-bottom: 16px
}

.chat-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff
}

.chat-card__avatar--blue {
  background: rgba(0, 102, 255, .2);
  color: #0066ff
}

.chat-card__avatar--green {
  background: rgba(0, 204, 136, .2);
  color: #00cc88
}

.chat-card__content {
  flex: 1;
  min-width: 0
}

.chat-card__label {
  font-size: .8rem;
  color: #777;
  margin-bottom: 6px;
  display: block
}

.chat-card__bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5
}

.chat-card__bubble--dark {
  background: rgba(255, 255, 255, .06);
  color: #ddd
}

.chat-card__bubble--green {
  background: rgba(0, 204, 136, .12);
  color: #ccc;
  border: 1px solid rgba(0, 204, 136, .15)
}

.chat-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .8rem;
  color: #666
}

.chat-card__auto {
  color: #00cc88;
  font-weight: 600
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: 12px
}

.section__subtitle {
  font-size: 1rem;
  color: #888;
  text-align: center;
  margin-bottom: 56px
}

/* ===== FEATURES ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all .3s
}

.card:hover {
  border-color: rgba(0, 102, 255, .3);
  background: rgba(255, 255, 255, .05);
  transform: translateY(-4px)
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px
}

.card__icon--blue {
  background: rgba(0, 102, 255, .15);
  color: #0066ff
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3
}

.card__text {
  font-size: .88rem;
  color: #888;
  line-height: 1.6
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.solutions__grid--4 {
  grid-template-columns: repeat(4, 1fr)
}

.solution-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all .3s
}

.solution-card:hover {
  border-color: rgba(0, 102, 255, .3);
  background: rgba(255, 255, 255, .05);
  transform: translateY(-4px)
}

.solution-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden
}

.solution-card__icon--ozon {
  background: #005BFF
}

.solution-card__icon--avito {
  background: #00AAFF
}

.solution-card__icon--ymarket {
  background: #FFCC00
}

.solution-card__icon--wb {
  background: #CB11AB
}

.solution-card__icon svg {
  width: 28px;
  height: 28px
}

.solution-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px
}

.solution-card__text {
  font-size: .9rem;
  color: #888;
  line-height: 1.6
}

/* ===== STEPS ===== */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px
}

.step {
  padding: 28px 24px;
  border-left: 2px solid rgba(255, 255, 255, .06);
  transition: all .3s
}

.step:hover {
  border-left-color: #0066ff
}

.step__number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0066ff, #00cc88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 14px;
  line-height: 1
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3
}

.step__text {
  font-size: .85rem;
  color: #777;
  line-height: 1.6
}

/* ===== PRICING ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative
}

.pricing__highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(33.333% - 16px);
  height: 100%;
  border: 2px solid rgba(0, 102, 255, .45);
  border-radius: 20px;
  pointer-events: none;
  transition: all .45s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 24px rgba(0, 102, 255, .08);
  z-index: 1
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: #0066ff;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: .02em;
  z-index: 2;
  transition: all .45s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none
}

.price-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .3s;
  z-index: 3
}

.price-card:hover {
  border-color: rgba(0, 102, 255, .2)
}

.price-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px
}

.price-card__desc {
  font-size: .85rem;
  color: #777;
  margin-bottom: 20px
}

.price-card__price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1
}

.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: #ccc
}

.price-card__features svg {
  flex-shrink: 0
}

.price-card__btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  padding: 14px 28px;
  transition: all .45s cubic-bezier(.4, 0, .2, 1)
}

.price-card__btn:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1)
}

.price-card__btn.active {
  background: #0066ff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 102, 255, .25)
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 60px 0 0
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.footer__desc {
  font-size: .9rem;
  color: #777;
  max-width: 300px;
  line-height: 1.6
}

.footer__heading {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: #888;
  transition: color .2s
}

.footer__link:hover {
  color: #fff
}

.footer__link svg {
  flex-shrink: 0
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 20px 0;
  font-size: .8rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center
}

/* ===== FADE ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible
}

.modal {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s
}

.modal-overlay.open .modal {
  transform: translateY(0)
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  z-index: 1
}

.modal__close:hover {
  color: #fff
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  padding-right: 40px
}

.modal__body {
  font-size: .88rem;
  color: #bbb;
  line-height: 1.7
}

.modal__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 10px
}

.modal__body p {
  margin-bottom: 10px
}

.modal__body ul {
  margin: 8px 0 16px 20px
}

.modal__body li {
  list-style: disc;
  margin-bottom: 6px;
  color: #aaa
}

.modal__body a {
  color: #0066ff;
  text-decoration: underline
}

/* ===== RESPONSIVE: TABLET ===== */
@media(max-width:1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .solutions__grid--4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .steps__grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .hero__demo {
    justify-content: center
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media(max-width:768px) {
  .container {
    padding: 0 16px
  }

  .nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 32px
  }

  .header.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 100;
    backdrop-filter: none;
    -webkit-backdrop-filter: none
  }

  .header.menu-open .nav {
    display: flex
  }

  .header.menu-open .header__inner {
    position: relative
  }

  .nav__link {
    font-size: 1.2rem;
    color: #fff
  }

  .nav__link--active {
    color: #0066ff
  }

  .nav__link--active::after {
    display: none
  }

  .header__cta {
    display: none
  }

  .burger {
    display: flex
  }

  .hero {
    padding: 100px 0 40px
  }

  .hero__content {
    text-align: center
  }

  .hero__title {
    font-size: 1.8rem
  }

  .hero__subtitle {
    font-size: .95rem
  }

  .hero__content .btn {
    width: 100%;
    justify-content: center
  }

  .hero__demo {
    justify-content: center
  }

  .features__grid {
    grid-template-columns: 1fr
  }

  .solutions__grid,
  .solutions__grid--4 {
    grid-template-columns: 1fr
  }

  .steps__grid {
    grid-template-columns: 1fr
  }

  .pricing__grid {
    grid-template-columns: 1fr
  }

  .pricing__highlight,
  .pricing__badge {
    display: block
  }

  .pricing__highlight {
    transition: all .5s cubic-bezier(.4, 0, .2, 1)
  }

  .pricing__badge {
    transition: all .5s cubic-bezier(.4, 0, .2, 1)
  }

  .price-card__btn.active {
    background: #0066ff;
    border-color: transparent
  }

  .section {
    padding: 60px 0
  }

  .section__title {
    font-size: 1.6rem
  }

  .section__subtitle {
    margin-bottom: 36px
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }

  .chat-card {
    padding: 20px;
    box-shadow: 0 0 40px 10px rgba(0, 102, 255, .05), 0 4px 16px rgba(0, 0, 0, .3)
  }

  .chat-card__bubble {
    font-size: .85rem
  }

  .step__number {
    font-size: 2rem
  }

  .modal {
    padding: 24px;
    max-height: 85vh
  }
}

/* ===== RESPONSIVE: SMALL MOBILE ===== */
@media(max-width:380px) {
  .hero__title {
    font-size: 1.5rem
  }

  .btn--gradient {
    padding: 14px 28px;
    font-size: .9rem
  }

  .price-card {
    padding: 28px 20px
  }

  .price-card__price {
    font-size: 1.3rem
  }

  .section__subtitle {
    font-size: .88rem
  }

  .modal__title {
    font-size: 1.2rem
  }

  .solution-card {
    padding: 24px 20px
  }
}