/*!
 * Ingressoagora - custom theme layer
 * Loaded after the base Bootstrap theme (css/pink.css) to modernize the
 * visual design and fix mobile layout issues without touching the
 * generated vendor stylesheet.
 */

:root {
  --ia-primary: #f50057;
  --ia-primary-dark: #b2004a;
  --ia-accent: #7b2ff7;
  --ia-ink: #12061a;
}

html {
  scroll-behavior: smooth;
}

/* prevent the decorative section-angle triangles (which use 100vw borders)
   and the fixed hero background from ever causing a horizontal scrollbar */
html, body {
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ia-primary);
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Navigation                                                        */
/* ---------------------------------------------------------------- */
.smart-scroll {
  background: linear-gradient(to bottom, rgba(10, 4, 14, 0.65) 0%, rgba(10, 4, 14, 0) 100%);
}

.smart-scroll.up {
  background-color: rgba(12, 5, 16, 0.92) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  transition: color 0.2s ease-out;
}

/* the collapsed mobile menu has no background in the base theme, so its
   links float transparently over whatever content is behind the nav —
   give it a solid panel so it is always legible */
@media (max-width: 767.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem 1rem;
    background-color: rgba(12, 5, 16, 0.97);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .navbar-collapse .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: 0;
  }

  .navbar-collapse .nav-link {
    padding: 0.85rem 0.25rem;
  }
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */
.btn {
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--ia-primary) 0%, var(--ia-accent) 130%);
  border: 0;
}

.btn-primary:hover,
.btn-primary:focus {
  background-image: linear-gradient(135deg, var(--ia-primary-dark) 0%, var(--ia-accent) 130%);
}

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */
.bg-hero {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(123, 47, 247, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 0, 87, 0.35), transparent 45%),
    linear-gradient(180deg, #0c0510 0%, #170a1f 100%);
}

.bg-hero:before {
  background-color: rgba(6, 2, 9, 0.55);
}

/* background-attachment: fixed is unreliable on mobile browsers (notably
   iOS Safari) and can cause the hero image to flicker or disappear while
   scrolling, so switch to a normal scrolling background below desktop */
@media (max-width: 767.98px) {
  .bg-hero {
    background-attachment: scroll;
  }
}

.bg-hero h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.25;
}

.bg-hero .lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------------- */
/* Feature icon boxes                                                */
/* ---------------------------------------------------------------- */
.icon-box {
  box-shadow: 0 10px 30px rgba(18, 6, 26, 0.08);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.feature-boxes .box {
  border-radius: 1rem;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.feature-boxes .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(18, 6, 26, 0.08);
}

.feature-boxes .box:hover .icon-box {
  transform: scale(1.08);
}

/* ---------------------------------------------------------------- */
/* Pricing                                                            */
/* ---------------------------------------------------------------- */
.pricing-table .card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}

.pricing-table .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.pricing-table .card.card-featured {
  border: 2px solid var(--ia-primary);
  position: relative;
  z-index: 1;
  transform: scale(1.04);
}

.pricing-table .card.card-featured:hover {
  transform: scale(1.04) translateY(-8px);
}

.pricing-table .card.card-featured .badge-featured {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(135deg, var(--ia-primary) 0%, var(--ia-accent) 130%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
  .pricing-table .card.card-featured {
    transform: none;
  }

  .pricing-table .card.card-featured:hover {
    transform: translateY(-8px);
  }
}

/* ---------------------------------------------------------------- */
/* FAQ                                                                */
/* ---------------------------------------------------------------- */
#faq h6 {
  position: relative;
  padding-left: 1rem;
  font-weight: 700;
}

#faq h6:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 3px;
  border-radius: 2px;
  background: var(--ia-primary);
}

/* ---------------------------------------------------------------- */
/* Footer                                                             */
/* ---------------------------------------------------------------- */
footer {
  background-color: var(--ia-ink);
}

/* ---------------------------------------------------------------- */
/* Contact form                                                      */
/* ---------------------------------------------------------------- */
.contact-form .form-control {
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0.75rem 1rem;
  height: auto;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form .form-control:focus {
  border-color: var(--ia-primary);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fff;
}

.contact-form label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------------- */
/* Mobile spacing                                                    */
/* ---------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  .pt-7 {
    padding-top: 5rem !important;
  }

  .pb-7 {
    padding-bottom: 5rem !important;
  }

  .pt-6 {
    padding-top: 3.5rem !important;
  }

  .pt-5 {
    padding-top: 2.5rem !important;
  }

  .mt-6 {
    margin-top: 3.5rem !important;
  }

  h1 {
    word-break: break-word;
  }

  /* the two-column float layout gets cramped on narrow phones */
  .features-list li {
    width: 100%;
    float: none;
  }

  .pricing-table .card-deck {
    margin-left: 0;
    margin-right: 0;
  }

  footer .col-sm-5,
  footer .col-sm-2 {
    margin-bottom: 2rem;
  }
}
