.glossary-page {
  --glossary-navy: #0a1e3f;
  --glossary-blue: #12408a;
  --glossary-bright-blue: #1a5cff;
  --glossary-cyan: #3fc9f0;
  --glossary-soft-blue: #cfe0ff;
  --glossary-surface: #ffffff;
  --glossary-page-bg: #f5f8ff;
  --glossary-border: #dfe8f7;
  --glossary-heading: #0a1e3f;
  --glossary-muted: #667085;
  --glossary-gradient: linear-gradient(120deg, #0a1e3f 0%, #12408a 52%, #1a6fe0 100%);
  --glossary-accent-gradient: linear-gradient(90deg, #1a5cff 0%, #3fc9f0 100%);
  margin: 0;
  color: var(--glossary-heading);
  background: var(--glossary-page-bg);
  font-family: 'Poppins', 'Encode Sans', sans-serif !important;
}

.glossary-page *,
.glossary-page *::before,
.glossary-page *::after {
  box-sizing: border-box;
}

.glossary-container {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.glossary-hero {
  position: relative;
  min-height: 490px;
  padding: 148px 24px 72px;
  overflow: hidden;
  color: #fff;
  background: var(--glossary-gradient);
  isolation: isolate;
}

.glossary-hero::after {
  position: absolute;
  right: -15%;
  bottom: -55%;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.025),
    0 0 0 160px rgba(255, 255, 255, 0.018);
  content: '';
}

.glossary-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-position: center center;
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 95%);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 95%);
}

.glossary-hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.glossary-hero-glow-one {
  top: -160px;
  left: -100px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(63, 201, 240, 0.22), transparent 68%);
}

.glossary-hero-glow-two {
  top: 30px;
  right: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(77, 118, 255, 0.28), transparent 70%);
}

.glossary-hero-inner {
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.glossary-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e7efff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.glossary-eyebrow svg {
  width: 16px;
  height: 16px;
  fill: var(--glossary-cyan);
}

.glossary-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.glossary-hero h1 span {
  display: inline-block;
  color: #92e7ff;
}

.glossary-hero-copy {
  max-width: 740px;
  margin: 20px auto 0;
  color: var(--glossary-soft-blue);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.65;
}

.glossary-search {
  position: relative;
  width: min(700px, 100%);
  margin-top: 34px;
}

.glossary-search input {
  width: 100%;
  height: 62px;
  padding: 0 58px 0 56px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  outline: 0;
  color: var(--glossary-heading);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 42px rgba(2, 18, 50, 0.3);
  font: inherit;
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.glossary-search input::placeholder {
  color: #8390a5;
  opacity: 1;
}

.glossary-search input:focus {
  border-color: var(--glossary-cyan);
  box-shadow:
    0 0 0 4px rgba(63, 201, 240, 0.2),
    0 18px 46px rgba(2, 18, 50, 0.34);
  transform: translateY(-1px);
}

.glossary-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.glossary-search-icon {
  position: absolute;
  top: 50%;
  left: 21px;
  z-index: 1;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--glossary-blue);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.glossary-search-shortcut {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d9e1ed;
  border-radius: 7px;
  color: #66758d;
  background: #f4f7fb;
  box-shadow: 0 1px 2px rgba(10, 30, 63, 0.08);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-50%);
  pointer-events: none;
}

.glossary-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: rgba(231, 239, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.glossary-hero-meta strong {
  color: #fff;
  font-weight: 600;
}

.glossary-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--glossary-cyan);
}

.glossary-alpha-nav {
  position: sticky;
  top: 72px;
  z-index: 90;
  border-bottom: 1px solid #e5ebf5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(10, 30, 63, 0.06);
  backdrop-filter: blur(14px);
}

.glossary-alpha-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.glossary-alpha-label {
  flex: 0 0 auto;
  color: #718096;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glossary-alpha-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.glossary-alpha-list a,
.glossary-alpha-list span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.glossary-alpha-list a {
  color: var(--glossary-blue);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.glossary-page .glossary-alpha-list a:hover,
.glossary-page .glossary-alpha-list a:focus-visible,
.glossary-alpha-list a.is-current {
  color: #fff !important;
  background: var(--glossary-bright-blue);
  outline: none;
  transform: translateY(-1px);
}

.glossary-alpha-list .is-disabled {
  color: #c4cbd7;
  cursor: not-allowed;
}

.glossary-alpha-list a.is-search-disabled {
  color: #c4cbd7;
  background: transparent;
  pointer-events: none;
  transform: none;
}

.glossary-directory {
  padding: 76px 0 100px;
  background:
    radial-gradient(circle at 0 0, rgba(63, 201, 240, 0.08), transparent 25%),
    var(--glossary-page-bg);
}

.glossary-directory-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

.glossary-section-kicker {
  margin: 0 0 8px;
  color: var(--glossary-bright-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glossary-directory-intro h2 {
  margin: 0;
  color: var(--glossary-heading);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.glossary-result-count {
  margin: 0 0 5px;
  color: var(--glossary-muted);
  font-size: 13px;
}

.glossary-result-count strong {
  color: var(--glossary-heading);
  font-weight: 600;
}

.glossary-letter-section {
  margin-top: 62px;
  scroll-margin-top: 160px;
}

.glossary-letter-section:first-child {
  margin-top: 0;
}

.glossary-letter-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.glossary-letter-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--glossary-accent-gradient);
  box-shadow: 0 6px 14px rgba(26, 92, 255, 0.2);
}

.glossary-letter-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.glossary-letter-heading h2 {
  min-width: 25px;
  margin: 0;
  color: var(--glossary-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.glossary-letter-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #cfdbef, rgba(207, 219, 239, 0.15));
}

.glossary-letter-count {
  color: #8792a6;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glossary-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glossary-term-card {
  position: relative;
  display: flex;
  min-height: 192px;
  padding: 26px 26px 23px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--glossary-border);
  border-radius: 12px;
  background: var(--glossary-surface);
  box-shadow: 0 8px 24px rgba(10, 30, 63, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.glossary-term-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--glossary-accent-gradient);
  content: '';
}

.glossary-term-card::after {
  position: absolute;
  top: -58px;
  right: -58px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(26, 92, 255, 0.035);
  content: '';
  transition: background 180ms ease, transform 180ms ease;
}

.glossary-term-card:hover {
  border-color: #c9daf7;
  box-shadow: 0 16px 38px rgba(10, 30, 63, 0.1);
  transform: translateY(-4px);
}

.glossary-term-card:hover::after {
  background: rgba(63, 201, 240, 0.08);
  transform: scale(1.2);
}

.glossary-term-letter {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #e1eafa;
  border-radius: 7px;
  color: var(--glossary-bright-blue);
  background: #f2f7ff;
  font-size: 11px;
  font-weight: 600;
}

.glossary-term-card h3 {
  max-width: calc(100% - 35px);
  margin: 0 0 11px;
  color: var(--glossary-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.glossary-term-card p {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--glossary-muted);
  font-size: 13px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.glossary-term-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  color: var(--glossary-bright-blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.glossary-term-link svg,
.glossary-cta-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.glossary-page .glossary-term-link:hover,
.glossary-page .glossary-term-link:focus-visible {
  color: #0f48d8 !important;
  outline: none;
  text-decoration: none;
}

.glossary-term-link:hover svg,
.glossary-term-link:focus-visible svg,
.glossary-cta-button:hover svg,
.glossary-cta-button:focus-visible svg {
  transform: translateX(3px);
}

.glossary-empty {
  max-width: 620px;
  margin: 20px auto 0;
  padding: 62px 32px;
  border: 1px solid var(--glossary-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(10, 30, 63, 0.07);
  text-align: center;
}

.glossary-empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 16px;
  color: var(--glossary-bright-blue);
  background: #edf4ff;
}

.glossary-empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.glossary-empty h2 {
  margin: 0 0 9px;
  color: var(--glossary-heading);
  font-size: 23px;
  font-weight: 500;
}

.glossary-empty p {
  margin: 0;
  color: var(--glossary-muted);
  font-size: 14px;
}

.glossary-empty button {
  margin-top: 24px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--glossary-accent-gradient);
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.glossary-cta {
  position: relative;
  padding: 62px 0;
  overflow: hidden;
  color: #fff;
  background: var(--glossary-gradient);
  isolation: isolate;
}

.glossary-cta::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.12;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 28px 28px;
  content: '';
}

.glossary-cta-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.glossary-cta-orb-one {
  top: -170px;
  right: 12%;
  width: 320px;
  height: 320px;
  border: 70px solid rgba(63, 201, 240, 0.06);
}

.glossary-cta-orb-two {
  bottom: -220px;
  left: -90px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025);
}

.glossary-cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.glossary-cta-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 17px;
  color: #91e7ff;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.glossary-cta-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.glossary-cta-copy p {
  margin: 0 0 7px;
  color: var(--glossary-soft-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.glossary-cta-copy h2 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.glossary-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: var(--glossary-accent-gradient);
  box-shadow: 0 12px 28px rgba(1, 21, 61, 0.28);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.glossary-page .glossary-cta-button:hover,
.glossary-page .glossary-cta-button:focus-visible {
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(1, 21, 61, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.glossary-page .glossary-search input:focus-visible,
.glossary-page .glossary-alpha-list a:focus-visible,
.glossary-page .glossary-term-link:focus-visible,
.glossary-page .glossary-cta-button:focus-visible,
.glossary-page .glossary-empty button:focus-visible {
  outline: 3px solid rgba(63, 201, 240, 0.48);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .glossary-hero {
    padding-top: 132px;
  }

  .glossary-alpha-inner {
    gap: 14px;
  }

  .glossary-alpha-list {
    justify-content: flex-start;
    padding: 10px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .glossary-alpha-list::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 991px) {
  .glossary-hero {
    min-height: 450px;
    padding-top: 126px;
  }

  .glossary-alpha-nav {
    top: 76px;
  }

  .glossary-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glossary-cta-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .glossary-cta-button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .glossary-container {
    width: min(100% - 32px, 1180px);
  }

  .glossary-hero {
    min-height: 420px;
    padding: 120px 16px 55px;
  }

  .glossary-hero h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .glossary-search {
    margin-top: 28px;
  }

  .glossary-search input {
    height: 56px;
    padding-left: 50px;
    font-size: 14px;
  }

  .glossary-search-icon {
    left: 18px;
    width: 21px;
    height: 21px;
  }

  .glossary-alpha-inner {
    width: 100%;
    gap: 8px;
    padding-left: 16px;
  }

  .glossary-alpha-label {
    position: sticky;
    left: 0;
    z-index: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-right: 9px;
    background: linear-gradient(90deg, #fff 82%, rgba(255, 255, 255, 0));
  }

  .glossary-alpha-list {
    padding-right: 16px;
  }

  .glossary-directory {
    padding: 58px 0 72px;
  }

  .glossary-directory-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 42px;
  }

  .glossary-result-count {
    margin: 0;
  }

  .glossary-letter-section {
    margin-top: 50px;
  }

  .glossary-cta {
    padding: 50px 0;
  }

  .glossary-cta-inner {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 18px;
  }

  .glossary-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .glossary-cta-icon svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 575px) {
  .glossary-eyebrow {
    margin-bottom: 17px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .glossary-hero-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .glossary-search-shortcut {
    display: none;
  }

  .glossary-search input {
    padding-right: 20px;
  }

  .glossary-hero-meta {
    gap: 9px;
    font-size: 11px;
  }

  .glossary-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .glossary-term-card {
    min-height: 180px;
    padding: 24px 22px 21px;
  }

  .glossary-letter-heading {
    gap: 9px;
  }

  .glossary-letter-count {
    font-size: 10px;
  }

  .glossary-cta-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .glossary-cta-button {
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glossary-page {
    scroll-behavior: auto;
  }

  .glossary-page *,
  .glossary-page *::before,
  .glossary-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
