
/* Professional polish layer for AllGalaxy / MediMood */
html { scroll-padding-top: 132px; }
body.ag-professionalized {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 38%, #f6f7fb 100%) !important;
}

#dtr-header-global, .dtr-responsive-header.fixed-top {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07) !important;
}

#site-nav .nav-link {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}
#site-nav .nav-link.nav-cta {
  padding: 11px 16px !important;
  border-radius: 14px !important;
}

#home {
  min-height: 780px !important;
}
#home .container.dtr-overlay-content {
  padding-top: 24px;
  padding-bottom: 32px;
}
#home .hero-kicker {
  margin-bottom: 16px !important;
}
#home h1 {
  color: #ffffff !important;
  font-size: clamp(2.5rem, 4vw, 4rem) !important;
  line-height: 1.04 !important;
  font-weight: 950 !important;
  max-width: 11ch;
  margin: 0 0 14px !important;
  text-shadow: 0 14px 36px rgba(2, 6, 23, 0.40);
}
#home .lead {
  max-width: 60ch;
  font-size: 1.02rem !important;
  color: rgba(255,255,255,0.88) !important;
  margin: 0 0 18px !important;
}
.hero-actions {
  margin: 18px 0 20px !important;
}
.hero-actions .btn-brand,
.hero-actions .btn-ghost {
  min-width: 170px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}
.hero-actions .btn-ghost[href] {
  text-decoration: none;
}

#portal > .container,
#features > .container,
#proof > .container,
#evaluation > .container,
#security > .container,
#faq > .container,
#resellers > .container,
#plans > .container,
#healthy-habits > .container,
#brain-boosting-habits > .container,
#brain-games > .container,
#resources > .container {
  position: relative;
}

#portal,
#features,
#proof,
#evaluation,
#security,
#faq,
#resellers,
#plans,
#healthy-habits,
#brain-boosting-habits,
#brain-games {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

#portal h2,
#features h2,
#proof h2,
#evaluation h2,
#security h2,
#faq h2,
#resellers h2,
#plans h2,
#healthy-habits h2,
#brain-boosting-habits h2,
#brain-games h2,
#resources h2 {
  color: #0f172a !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
}

.feature-has-box,
.proof-card,
.eval-callout,
.score,
.faq-item,
.plan-card,
.form-surface,
.games-shell,
.ag-resource-shell {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08) !important;
  border-radius: 22px !important;
}

.feature-has-box:hover,
.proof-card:hover,
.plan-card:hover,
.faq-item:hover,
.score:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12) !important;
}

.proof-grid,
.plans-grid,
.games-grid {
  gap: 18px !important;
}

#resources {
  padding-top: 46px !important;
  padding-bottom: 18px !important;
}
.ag-resource-shell {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(247,248,255,0.88));
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: center;
}
.ag-resource-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  color: #4338ca;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.ag-resource-copy p {
  margin: 0;
  color: #475569;
}
.ag-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.ag-resource-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ag-resource-links a:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

#healthy-habits,
#brain-boosting-habits,
#brain-games {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
}

#dtr-footer {
  background: linear-gradient(135deg, #484645 0%, #6c6762 100%) !important;
}
.ag-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
#dtr-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
#dtr-footer .footer-links a {
  margin-right: 0 !important;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
#dtr-footer .footer-links a:hover {
  border-bottom-color: rgba(255,255,255,0.44);
}

#demo-form-container .form-surface {
  border-radius: 24px !important;
}
#demo-form-container .form-control-mm,
#demo-form-container textarea.form-control-mm {
  color: #0f172a !important;
}

@media (max-width: 1100px) {
  #site-nav .nav-link {
    font-size: 13px !important;
    padding: 9px 10px !important;
  }
}

@media (max-width: 992px) {
  #home { min-height: auto !important; }
  #home h1 { max-width: 100%; font-size: clamp(2.1rem, 8vw, 3rem) !important; }
  .ag-resource-shell {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .ag-resource-links {
    justify-content: flex-start;
  }
  .hero-actions {
    gap: 10px !important;
  }
  .hero-actions .btn-brand,
  .hero-actions .btn-ghost,
  .hero-actions .btn-ghost[href] {
    width: 100%;
  }
}

@media (max-width: 640px) {
  #home .trust-strip {
    grid-template-columns: 1fr !important;
  }
  .feature-has-box,
  .proof-card,
  .eval-callout,
  .score,
  .faq-item,
  .plan-card,
  .form-surface,
  .games-shell,
  .ag-resource-shell {
    border-radius: 18px !important;
  }
}


/* Alignment and resource center refinements */
#resources {
  padding-top: 52px !important;
  padding-bottom: 28px !important;
}
#resources .container {
  max-width: 1180px !important;
}
#resources .ag-resource-shell {
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px 30px 26px;
  text-align: center;
}
#resources .ag-resource-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#resources .ag-resource-copy h2 {
  margin: 0 0 10px !important;
  max-width: 760px;
}
#resources .ag-resource-copy p {
  margin: 0 auto !important;
  max-width: 860px;
}
#resources .ag-resource-eyebrow {
  margin-bottom: 14px;
}
#resources .ag-resource-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  justify-content: center !important;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
#resources .ag-resource-links a {
  min-height: 52px;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  padding: 13px 16px;
}

#healthy-habits .row:first-child .col-12,
#brain-boosting-habits .row:first-child .col-12,
#brain-games .row:first-child .col-12,
#resellers .row:first-child .col-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

#healthy-habits .row:first-child .col-12 h2,
#brain-boosting-habits .row:first-child .col-12 h2,
#brain-games .row:first-child .col-12 h2,
#resellers .row:first-child .col-12 h2,
#faq > .container > h2 {
  display: block;
  width: 100%;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#healthy-habits .row:first-child .col-12 p,
#brain-boosting-habits .row:first-child .col-12 p,
#brain-games .row:first-child .col-12 p,
#resellers .row:first-child .col-12 p,
#faq .faq-shell {
  margin-left: auto !important;
  margin-right: auto !important;
}

#faq > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#faq > .container > .section-title-rule {
  margin-left: auto !important;
  margin-right: auto !important;
}
#faq > .container > h2.reveal,
#faq > .container > .section-title-rule,
#faq > .container > .faq-shell {
  width: min(100%, 980px);
}
#faq > .container > h2.reveal {
  max-width: 980px;
}

@media (max-width: 992px) {
  #resources .ag-resource-shell {
    padding: 24px 18px 20px;
  }
  #resources .ag-resource-links {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
