/* Styles for the small custom interactions in assets/js/site.js */

/* Compact nav buttons on desktop — same look as hero "Watch Demo", scaled down */
.nav-02 .buttons-set__list {
  flex-direction: row !important;
  margin-right: 0;
  gap: 8px;
}

.nav-02 .buttons-set__item {
  font-size: 0;
  padding-bottom: 0;
  margin: 0;
}

.nav-02 .button--accent-outline {
  min-width: auto !important;
  min-height: 32px !important;
  padding: 7px 14px !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  border-width: 2px !important;
}

.nav-02 .button--accent-outline .button__text {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-02 .buttons-set__list {
    flex-direction: column !important;
    align-items: center;
    gap: 12px;
    margin-right: auto;
  }

  .nav-02 .buttons-set__item {
    width: 100%;
    text-align: center;
    padding-bottom: 0;
  }

  .nav-02 .button--accent-outline {
    min-width: 180px !important;
    min-height: 40px !important;
    padding: 10px 20px !important;
  }

  .nav-02 .button--accent-outline .button__text {
    font-size: 14px;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 12, 20, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 16px;
  }
  .lightbox__close {
    top: 12px;
    right: 12px;
  }
}

/* How it works section */
.how-it-works__header {
  margin-bottom: 48px;
}

.how-it-works__heading {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.how-it-works__subtitle {
  max-width: 480px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #64748b;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 8px;
  text-align: center;
}

.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 88px;
  right: -18px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #49beff 0%, #bfe3fb 100%);
  border-radius: 1px;
}

.how-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 83px;
  right: -22px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #49beff;
}

.how-step__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 168px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f6fbff 0%, #eaf4fd 55%, #e2f0fa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(73, 190, 255, 0.08);
}

.how-step__svg {
  width: 88%;
  max-width: 220px;
  height: auto;
}

.how-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #49beff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(73, 190, 255, 0.35);
}

.how-step__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a202c;
}

.how-step__text {
  max-width: 280px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
}

@media (max-width: 900px) {
  .how-it-works__steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 40px;
  }

  .how-step:not(:last-child)::after,
  .how-step:not(:last-child)::before {
    display: none;
  }

  .how-step__visual {
    max-width: 100%;
    height: 156px;
  }
}

@media (max-width: 480px) {
  .how-it-works__heading {
    font-size: 1.9rem;
  }

  .how-it-works__subtitle {
    font-size: 1rem;
  }

  .how-step__title {
    font-size: 20px;
  }

  .how-step__text {
    font-size: 15px;
  }
}

/* Use cases section */
.usecases-section__header {
  margin-bottom: 48px;
}

.usecases-section__heading {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.usecases-section__subtitle {
  max-width: 480px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #64748b;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.usecase-card {
  position: relative;
  padding: 36px 34px 32px;
  border: 1px solid #e8edf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.usecase-card:hover {
  border-color: #bfe3fb;
  box-shadow: 0 16px 36px rgba(73, 190, 255, 0.14);
  transform: translateY(-3px);
}

.usecase-card__index {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #cbd8e6;
}

.usecase-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, #eaf6ff 0%, #dcedfc 100%);
  color: #2680d9;
}

.usecase-card__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a202c;
}

.usecase-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #64748b;
}

.usecase-card__text strong {
  color: #1a202c;
  font-weight: 700;
}

.usecases-section__footnote {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid #eef2f6;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  color: #94a3b8;
}

.usecases-section__footnote strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 720px) {
  .usecases-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 20px;
  }

  .usecase-card {
    padding: 28px 26px 26px;
  }
}

@media (max-width: 480px) {
  .usecases-section__heading {
    font-size: 1.9rem;
  }

  .usecases-section__subtitle {
    font-size: 1rem;
  }

  .usecase-card__icon {
    width: 52px;
    height: 52px;
  }

  .usecase-card__title {
    font-size: 19px;
  }

  .usecase-card__text {
    font-size: 15px;
  }
}

/* Pricing section */
.pricing-section__header {
  margin-bottom: 32px;
}

.pricing-section__heading {
  font-size: 1.85rem;
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 18px 16px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pricing-card:hover {
  border-color: #d7e2ee;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pricing-card--featured {
  border-color: #49beff;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 42%);
  box-shadow: 0 8px 28px rgba(73, 190, 255, 0.12);
}

.pricing-card--featured:hover {
  border-color: #38a8eb;
  box-shadow: 0 10px 32px rgba(73, 190, 255, 0.16);
}

.pricing-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: #49beff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.pricing-card__name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a202c;
}

.pricing-card__price {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f6;
  line-height: 1;
}

.pricing-card__amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a202c;
}

.pricing-card__period {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

.pricing-card__features {
  margin: 0 0 14px;
  flex: 1;
}

.pricing-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
}

.pricing-card__row + .pricing-card__row {
  border-top: 1px solid #f1f5f9;
}

.pricing-card__row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.35;
}

.pricing-card__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: right;
  line-height: 1.35;
}

.pricing-card__row--logo {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.pricing-card__logo-no {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}

.pricing-card__logo-yes {
  color: #49beff !important;
}

.pricing-card__logo-yes::before {
  content: "✓ ";
}

.pricing-card__cta {
  display: block;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.pricing-card__cta:hover {
  border-color: #49beff;
  color: #2563eb;
  background: #f8fbff;
}

.pricing-card__cta--primary {
  border-color: #49beff;
  background: #49beff;
  color: #fff;
}

.pricing-card__cta--primary:hover {
  border-color: #38a8eb;
  background: #38a8eb;
  color: #fff;
}

.pricing-section__enterprise {
  max-width: 980px;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: #64748b;
}

.pricing-section__enterprise-link {
  color: #49beff;
  font-weight: 600;
  text-decoration: none;
}

.pricing-section__enterprise-link:hover {
  color: #38a8eb;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .pricing-card {
    padding: 18px 16px 14px;
  }

  .pricing-section__heading {
    font-size: 1.6rem;
  }

  .pricing-section__enterprise {
    font-size: 14px;
    padding: 0 12px;
  }
}
