:root {
  --pointer-x: 50vw;
  --pointer-y: 28vh;
  --scroll-progress: 0;
  --ambient-shift: 0px;
}

::selection {
  background: rgba(204, 120, 64, 0.28);
  color: #123f89;
}

#root::before {
  content: "";
  position: fixed;
  left: var(--pointer-x);
  top: var(--pointer-y);
  z-index: 30;
  width: min(38rem, 72vw);
  height: min(38rem, 72vw);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 167, 92, 0.16) 0%, rgba(29, 94, 200, 0.07) 38%, transparent 70%);
  filter: blur(16px);
  mix-blend-mode: screen;
  opacity: 0.82;
  transition: opacity 300ms ease;
}

#root::after {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 70;
  width: calc(var(--scroll-progress) * 100%);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #1d5ec8, #cc7840 58%, #ffb36e);
  box-shadow: 0 0 18px rgba(204, 120, 64, 0.62);
}

.ambient-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.ambient-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 8%;
  right: -13rem;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(29, 94, 200, 0.12), rgba(204, 120, 64, 0.06) 43%, transparent 70%);
  filter: blur(10px);
  transform: translate3d(0, calc(var(--ambient-shift) * -0.22), 0);
  animation: ambient-drift 9s ease-in-out infinite alternate;
}

.ambient-section:nth-of-type(even)::before {
  right: auto;
  left: -14rem;
  animation-delay: -3s;
}

.ambient-section.ambient-blue::before {
  background: radial-gradient(circle, rgba(255, 183, 112, 0.18), rgba(255, 255, 255, 0.06) 42%, transparent 70%);
}

.ambient-section > * {
  position: relative;
  z-index: 1;
}

main h1,
main h2 {
  text-shadow: 0 0 28px rgba(29, 94, 200, 0.12);
  animation: title-light 6s ease-in-out infinite;
}

main .text-white,
main [class*="text-white"] {
  --title-light-color: rgba(255, 183, 112, 0.22);
}

[data-testid^="card-"],
.publication-card,
.faq-card {
  position: relative;
  overflow: hidden;
}

[data-testid^="card-"]::before,
.publication-card::before,
.faq-card::before,
a.gold-gradient-bg::after,
button.gold-gradient-bg::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 42%;
  pointer-events: none;
  transform: translateX(-180%) rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  filter: blur(1px);
  transition: transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-testid^="card-"]:hover::before,
.publication-card:hover::before,
.faq-card:hover::before,
a.gold-gradient-bg:hover::after,
button.gold-gradient-bg:hover::after {
  transform: translateX(520%) rotate(12deg);
}

[data-testid^="card-"]:hover,
.publication-card:hover {
  box-shadow: 0 22px 55px rgba(18, 63, 137, 0.13), 0 0 0 1px rgba(204, 120, 64, 0.12);
}

.faq-section {
  padding: 5rem 1.5rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(29, 94, 200, 0.08), transparent 31rem),
    linear-gradient(180deg, #ffffff, #f5f7fb);
}

.faq-shell {
  width: min(74rem, 100%);
  margin: 0 auto;
}

.faq-heading {
  max-width: 50rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.faq-heading h2 {
  margin: 0.65rem 0 1rem;
  color: #1d5ec8;
  font-family: var(--app-font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
}

.faq-heading p {
  margin: 0 auto;
  max-width: 43rem;
  color: #596579;
  font-size: 1.05rem;
  line-height: 1.75;
}

.faq-eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(204, 120, 64, 0.28);
  border-radius: 999px;
  color: #a75c2d;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(204, 120, 64, 0.08);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.faq-card {
  border: 1px solid rgba(29, 94, 200, 0.1);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 38px rgba(18, 63, 137, 0.06);
  backdrop-filter: blur(12px);
  transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.faq-card:hover,
.faq-card[open] {
  transform: translateY(-3px);
  border-color: rgba(204, 120, 64, 0.34);
  background: #fff;
  box-shadow: 0 20px 46px rgba(18, 63, 137, 0.1), 0 0 34px rgba(204, 120, 64, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.7rem;
  padding: 1.25rem 1.35rem;
  color: #173d78;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question small {
  display: block;
  margin-bottom: 0.35rem;
  color: #b46635;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-plus {
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1d5ec8, #173d78);
  box-shadow: 0 8px 22px rgba(29, 94, 200, 0.2);
  font-size: 1.35rem;
  font-weight: 400;
  transition: transform 280ms ease, background 280ms ease;
}

.faq-card[open] .faq-plus {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #cc7840, #8f431d);
}

.faq-answer {
  margin: 0 1.35rem;
  padding: 0 0 1.4rem;
  border-top: 1px solid rgba(29, 94, 200, 0.08);
  color: #5c6676;
  font-size: 0.98rem;
  line-height: 1.72;
}

.faq-card[open] .faq-answer {
  padding-top: 1rem;
  animation: answer-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.faq-disclaimer {
  max-width: 50rem;
  margin: 2rem auto 0;
  color: #7c8798;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

@keyframes ambient-drift {
  from { translate: -2% -3%; scale: 0.96; opacity: 0.72; }
  to { translate: 4% 5%; scale: 1.06; opacity: 1; }
}

@keyframes title-light {
  0%, 100% { text-shadow: 0 0 24px rgba(29, 94, 200, 0.08); }
  50% { text-shadow: 0 0 34px var(--title-light-color, rgba(204, 120, 64, 0.17)); }
}

@keyframes answer-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 48rem) {
  #root::before { display: none; }
  .faq-section { padding: 4rem 1.15rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-question { min-height: auto; padding: 1.15rem; }
  .faq-answer { margin-inline: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  #root::before { display: none; }
  .ambient-section::before,
  main h1,
  main h2 { animation: none !important; transform: none !important; }
  [data-testid^="card-"]::before,
  .publication-card::before,
  .faq-card::before,
  a.gold-gradient-bg::after,
  button.gold-gradient-bg::after { display: none; }
}
