
    :root {
      --primary: #2563eb;
      --primary-soft: #eff6ff;
      --primary-hover: #1d4ed8;
      --accent-yellow: #facc15;
      --text-main: #0f172a;
      --text-muted: #6b7280;
      --bg-page: #f9fafb;
      --bg-hero: #f8f5ef;
      --border: #e5e7eb;
      --radius-lg: 20px;
      --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
    }

    :root{
   /* MAIN TITLES */
  --fs-xxxl: clamp(2.4rem, 4vw, 3rem);      
  --fs-xxl: clamp(2rem, 3.2vw, 2.5rem);      
  --fs-xl: 1.9rem;                        

  /* SUBHEADINGS */
  --fs-lg: 1.25rem;                        
  --fs-1_2: 1.2rem;  

 
  --fs-md: 1.1rem;                          
  --fs-base: 1.5rem;                           
  --fs-sm: 1.2rem;                          
  --fs-xs: 0.82rem;                          
  --fs-tiny: 0.75rem;                        

  /* SPECIAL EXACT-MATCH VALUES */
  --fs-1_25: 1.25rem;             
  --fs-0_96: 0.96rem;             
  --fs-0_95: 0.95rem;
  --fs-0_88: 0.88rem;
  --fs-2_1: 2.1rem;               
  --fs-1_9: 1.9rem;              

  /* FONT WEIGHTS */
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-normal: 400;

  /* LINE HEIGHTS */
  --lh-hero-title: 1.1;
  --lh-title: 1.2;
  --lh-normal: 1.65;

}

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
      background: #ffffff;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: 0.2s;
    }

    img {
      max-width: 100%;
      display: block;
    }

    h1,
    h2,
    h3,
    h4 {
      margin: 0;
      font-weight: 700;
      line-height: 1.25;
    }

    p {
      margin: 0 0 22px;
      font-size: 16px;
      color: #374151;
    }

    ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }

   
   
  
    .hero {
      background: var(--bg-hero);
      border-bottom: 1px solid #f3f4f6;
      position: relative;
      overflow: hidden;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 10% 0%, rgba(250, 204, 21, 0.2), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(59, 130, 246, 0.18), transparent 55%);
      opacity: 0.5;
      pointer-events: none;
    }

    .hero-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px 46px;
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 40px;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .hero-left {
      max-width: 640px;
    }

    .hero-tags {
      display: flex;
      gap: 10px;
      margin-bottom: 18px;
    }

    .hero-pill {
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    .hero-pill.blue {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .hero-pill.green {
      background: #dcfce7;
      color: #166534;
    }

    .hero-title {
      font-size: 46px;
      letter-spacing: -0.03em;
      margin-bottom: 14px;
    }

    .hero-subtitle {
      font-size: 17px;
      color: var(--text-muted);
      max-width: 520px;
    }

    .hero-meta-row {
      display: flex;
      gap: 22px;
      margin-top: 20px;
      font-size: 14px;
      color: var(--text-muted);
      flex-wrap: wrap;
      align-items: center;
    }

    .hero-meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      font-size: 13px;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    }

    .hero-meta-pill i {
      font-size: 14px;
      color: var(--primary);
    }

    .hero-meta-small {
      font-size: 14px;
      color: var(--text-muted);
    }

    .hero-right {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hero-art-wrapper {
      position: relative;
      width: 100%;
      max-width: 420px;
      perspective: 1200px;
    }

    .hero-art-bg {
      position: absolute;
      inset: -20px -10px -16px;
      background:
        radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.3), transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.32), transparent 55%),
        #fef9c3;
      border-radius: 30px;
      opacity: 0.7;
      filter: blur(2px);
      animation: heroGlow 12s ease-in-out infinite alternate;
    }

    @keyframes heroGlow {
      0% {
        transform: translateY(0) scale(1);
      }

      50% {
        transform: translateY(-6px) scale(1.02);
      }

      100% {
        transform: translateY(2px) scale(0.99);
      }
    }

    .hero-art-card {
      position: relative;
      border-radius: 26px;
      padding: 18px;
      background: #fefefe;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
      z-index: 1;
      transform-style: preserve-3d;
      transform: rotateX(0) rotateY(0);
      transition: transform 0.6s ease, box-shadow 0.4s ease, translateY 0.4s ease;
    }

    .hero-art-wrapper:hover .hero-art-card {
      transform: translateY(-10px) rotateX(6deg) rotateY(-4deg);
      box-shadow: 0 26px 55px rgba(15, 23, 42, 0.35);
    }

    .hero-art-card img {
      border-radius: 16px;
    }

    .hero-sticker-top {
      position: absolute;
      top: 10px;
      left: 16px;
      background: #fff;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .hero-sticker-bottom {
      position: absolute;
      bottom: 12px;
      right: 20px;
      background: #111827;
      color: #fff;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.4);
    }

    .float {
      animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
      0% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-8px);
      }

      100% {
        transform: translateY(0);
      }
    }


    .glossary-shell {
      max-width: 1200px;
      margin: 32px auto 72px;
      padding: 0 20px;
    }

    .glossary-header {
      margin-bottom: 20px;
    }

    .glossary-eyebrow {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      color: #9ca3af;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .glossary-title-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: baseline;
      flex-wrap: wrap;
    }

    .glossary-title-row h2 {
      font-size: 26px;
    }

    .glossary-sub {
      font-size: 14px;
      color: var(--text-muted);
    }

    .glossary-search-row {
      margin-top: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
    }

    .search-box {
      flex: 1 1 260px;
      max-width: 520px;
      display: flex;
      align-items: center;
      background: #ffffff;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      padding: 6px 10px 6px 12px;
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
      transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .search-box:focus-within {
      border-color: #c7d2fe;
      transform: translateY(-1px);
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    }

    .search-box i {
      color: var(--text-muted);
      margin-right: 8px;
      font-size: 14px;
    }

    .search-box input {
      border: 0;
      outline: none;
      background: transparent;
      font-size: 14px;
      width: 100%;
    }

    .search-hint {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* Letter navigation bar */
    .letter-nav {
      margin-top: 22px;
      padding: 10px 14px;
      border-radius: 999px;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      align-items: center;
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    }

    .letter-nav-label {
      font-size: 12px;
      font-weight: 600;
      color: #6b7280;
      margin-right: 6px;
    }

    .letter-btn {
      border-radius: 999px;
      border: none;
      background: transparent;
      padding: 4px 7px;
      min-width: 22px;
      font-size: 12px;
      cursor: pointer;
      color: #9ca3af;
      font-weight: 500;
      transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    }

    .letter-btn.has-terms {
      color: #4b5563;
    }

    .letter-btn.active {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
      transform: translateY(-1px);
    }

    .letter-btn.has-terms:hover:not(.active) {
      background: #e5edff;
      color: #1d4ed8;
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    }


    .glossary-content {
      margin-top: 32px;
    }

    .letter-section {
      margin-bottom: 40px;
    }

    .letter-heading {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }

    .letter-heading span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 999px;
      background: #eff6ff;
      color: #1d4ed8;
      font-weight: 700;
      font-size: 16px;
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }

    .letter-heading small {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* CARD GRID */
    .term-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 18px;
      border-radius: 0;
      border: none;
      background: transparent;
      overflow: visible;
      box-shadow: none;
    }

    .glossary-item {
      padding: 18px 20px;
      border-radius: 18px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      cursor: pointer;
      transition: background 0.16s ease, transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
      position: relative;
      overflow: hidden;
    }

    .glossary-item::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.12), transparent 55%);
      transition: opacity 0.2s ease;
      pointer-events: none;
    }

    .glossary-item:hover::after {
      opacity: 1;
    }

    .glossary-item:hover {
      background: #ffffff;
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
      border-color: #d4ddff;
    }

    .glossary-item:last-child {
      border-bottom: none;
    }

    .glossary-item-header {
      display: block;
    }

    .glossary-term {
      font-size: var(--fs-base);
      font-weight: 600;
      color: #111827;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .glossary-badge {
      display: none;
    }

    .glossary-def {
      display: none;
    }

    .glossary-empty {
      padding: 14px;
      font-size: 14px;
      color: #6b7280;
      font-style: italic;
    }

   

    .reveal {
      opacity: 0;
      transform: translateY(24px) scale(0.98);
      transition:
        opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    
    @media (max-width: 960px) {
      .nav-menu {
        display: none;
      }

      .hero-inner {
        grid-template-columns: 1fr;
        padding: 30px 18px 32px;
      }

      .hero-right {
        order: -1;
      }

      .hero-title {
        font-size: 34px;
      }

      .glossary-shell {
        margin-top: 24px;
      }

      .letter-nav {
        border-radius: 14px;
      }

      .glossary-title-row {
        align-items: flex-start;
      }
    }

    @media (min-width: 961px) and (max-width: 1120px) {
      .hero-title {
        font-size: 40px;
      }
    }