/* Body layout refresh. Navbar and footer are intentionally untouched. */
:root {
  --layout-ink: #f8fafc;
  --layout-muted: #9fb3c8;
  --layout-line: rgba(167, 243, 208, 0.16);
  --layout-panel: rgba(255, 255, 255, 0.055);
  --layout-panel-strong: rgba(20, 184, 166, 0.11);
}

body {
  background:
    linear-gradient(180deg, #08111f 0%, #0f172a 36%, #08111f 100%) !important;
}

.navbar-brand .brand-logo,
.navbar-brand > .brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

body > .breadcrumb-wrap,
body > .bc-wrap {
  background: rgba(8, 17, 31, 0.92) !important;
  border-bottom: 1px solid var(--layout-line) !important;
  padding: 0.65rem 0 !important;
}

body > section {
  background: transparent !important;
  position: relative;
  isolation: isolate;
}

body > section:not(.hero-section):not(.page-hero):not(.hero):not(.py-4) {
  padding: clamp(3.6rem, 6vw, 6.6rem) 0 !important;
}

body > section:not(.hero-section):not(.page-hero):not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.05), transparent 34%, rgba(167, 243, 208, 0.04)),
    radial-gradient(circle at 82% 12%, rgba(20, 184, 166, 0.12), transparent 28%);
  opacity: 0.86;
}

body > section:nth-of-type(even):not(.hero-section):not(.page-hero):not(.hero)::before {
  background:
    linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.07) 48%, transparent),
    radial-gradient(circle at 12% 22%, rgba(167, 243, 208, 0.1), transparent 30%);
}

.hero-section,
.page-hero,
.hero {
  min-height: auto !important;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem) !important;
  background:
    linear-gradient(135deg, #08111f 0%, #10253a 46%, #0f172a 100%) !important;
  border-bottom: 1px solid var(--layout-line);
}

.hero-section .row,
.page-hero .row,
.hero .row {
  align-items: stretch !important;
}

.hero-section .col-lg-6:first-child,
.page-hero .col-lg-6:first-child,
.page-hero .col-lg-7:first-child,
.hero .col-lg-7:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title,
.page-hero h1,
.hero h1 {
  max-width: 820px;
  letter-spacing: 0 !important;
}

.hero-desc,
.page-hero-desc,
.hero .hero-desc {
  max-width: 720px !important;
}

.hero-img-wrap,
.page-hero .content-img,
.hero .stat-card,
.hero .glass-card {
  position: relative;
}

.hero-img-wrap::before,
.page-hero .content-img::before,
.hero .stat-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 22px;
  pointer-events: none;
}

.hero-img-wrap .content-img,
.page-hero .content-img,
.hero .content-img {
  min-height: clamp(280px, 35vw, 470px) !important;
  border-radius: 20px !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28) !important;
}

.hero-stats,
.stats-bar,
.hero .row .stat-card {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--layout-line) !important;
  border-radius: 14px !important;
}

.hero-stats {
  gap: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 2rem !important;
}

.hero-stat {
  padding: 1rem 0.75rem;
  border-right: 1px solid rgba(167, 243, 208, 0.1);
}

.hero-stat:last-child {
  border-right: 0;
}

body > section.py-4 {
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 !important;
}

body > section.py-4 .container {
  max-width: 1120px;
  padding-left: var(--bs-gutter-x, 0.75rem);
  padding-right: var(--bs-gutter-x, 0.75rem);
}

body > section.py-4 .content-img {
  width: min(100%, 980px) !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 14px !important;
  border: 1px solid var(--layout-line) !important;
  max-height: none !important;
  height: clamp(210px, 28vw, 330px) !important;
  object-fit: cover !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24) !important;
  background: rgba(255, 255, 255, 0.035);
}

.section-label,
.sec-label,
.page-hero-label,
.hero-badge {
  border-radius: 999px !important;
}

.section-title,
.sec-title {
  max-width: 900px;
}

.text-center .section-title,
.text-center .sec-title {
  margin-left: auto;
  margin-right: auto;
}

.section-desc,
.sec-desc {
  max-width: 760px !important;
}

.glass-card,
.feature-card,
.feat-card,
.game-card,
.info-box,
.privacy-notice,
.rg-section,
.pricing-card,
.testimonial-card,
.faq-item,
.stat-card,
.timeline-item,
.step-wrap > .glass-card,
.promo-banner {
  border-radius: 10px !important;
  background: var(--layout-panel) !important;
  border-color: var(--layout-line) !important;
  box-shadow: none !important;
}

.glass-card:hover,
.feature-card:hover,
.feat-card:hover,
.game-card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.faq-item:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(20, 184, 166, 0.42) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
}

body > section .row.g-4,
body > section .row.g-3,
body > section .row.g-5 {
  row-gap: 1.4rem !important;
}

.feature-icon,
.feat-icon,
.rg-icon,
.step-num {
  border-radius: 8px !important;
}

.step-wrap .row,
body > section:has(.step-num) .row {
  align-items: stretch;
}

.step-connector {
  display: none !important;
}

.step-num {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body > section:has(.step-num) .glass-card,
body > section:has(.step-num) .text-center {
  text-align: left !important;
}

.comparison-table {
  border-spacing: 0 !important;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.1rem !important;
}

.pricing-card.featured {
  transform: translateY(-12px);
}

.testimonial-author {
  border-top: 1px solid rgba(167, 243, 208, 0.1);
  padding-top: 1rem;
}

.faq-question,
.faq-q {
  border-radius: 10px !important;
}

.faq-answer,
.faq-a {
  border-radius: 0 0 10px 10px !important;
}

.content-img.image-placeholder,
.image-placeholder {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.11), rgba(255, 255, 255, 0.025) 42%, rgba(167, 243, 208, 0.07)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px) !important;
}

.content-img.image-placeholder::after,
.image-placeholder::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.24);
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body > section:has(.content-img) .row {
  align-items: center !important;
}

body > section:not(.hero-section):not(.page-hero):not(.hero):has(.content-img) .row > [class*="col-"]:first-child {
  order: 2;
}

body > section:not(.hero-section):not(.page-hero):not(.hero):has(.content-img) .row > [class*="col-"]:last-child {
  order: 1;
}

.btn-hero-primary,
.btn-primary-teal,
.btn-teal {
  border-radius: 8px !important;
}

.btn-hero-secondary,
.btn-outline-teal,
.btn-outline {
  border-radius: 8px !important;
}

.rg-section {
  padding: clamp(1.5rem, 4vw, 3rem) !important;
}

.privacy-notice {
  max-width: 980px;
  margin: 0 auto;
}

.inserted-image-section {
  padding-top: clamp(2rem, 4vw, 3.5rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

.inserted-image-section .content-img {
  height: clamp(190px, 20vw, 260px) !important;
  width: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1px solid var(--layout-line) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

body > section:not(.hero-section):not(.page-hero):not(.hero):not(.py-4):not(.inserted-image-section) .content-img {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover !important;
}

.cat-tabs,
.hero .cat-tabs {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--layout-line);
  border-radius: 12px;
  padding: 0.55rem;
}

@media (min-width: 992px) {
  body > section:not(.hero-section):not(.page-hero):not(.hero) > .container > .row > .col-lg-6:only-child,
  body > section:not(.hero-section):not(.page-hero):not(.hero) > .container > .row > .col-lg-8:only-child,
  body > section:not(.hero-section):not(.page-hero):not(.hero) > .container > .row > .col-lg-10:only-child {
    max-width: 100%;
    flex: 0 0 100%;
  }

  body > section:not(.hero-section):not(.page-hero):not(.hero) > .container > .row.justify-content-center > [class*="col-lg-8"],
  body > section:not(.hero-section):not(.page-hero):not(.hero) > .container > .row.justify-content-center > [class*="col-lg-10"] {
    max-width: 980px;
  }

  .hero-section .row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  }

  .hero-section .row > [class*="col-"] {
    width: auto;
    max-width: none;
  }
}

@media (max-width: 991px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .pricing-card.featured {
    transform: none;
  }

  body > section:not(.hero-section):not(.page-hero):not(.hero):has(.content-img) .row > [class*="col-"] {
    order: initial !important;
  }
}

@media (max-width: 767px) {
  body > section:not(.hero-section):not(.page-hero):not(.hero) {
    padding: 3rem 0 !important;
  }

  .hero-section,
  .page-hero,
  .hero {
    padding: 3rem 0 2.5rem !important;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(167, 243, 208, 0.1);
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  body > section.py-4 .content-img {
    height: 210px !important;
  }

  .inserted-image-section .content-img {
    height: 210px !important;
  }
}
