  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: "\201C"; /* opening double quote */
  position: absolute;
  top: -20px;
  left: clamp(8px, 2vw, 20px);
  font-size: clamp(60px, 10vw, 80px);
  line-height: 0;
  color: var(--brand-3);
  opacity: 0.3;
}
.testimonial-card .quote {
  font-style: italic;
  font-size: clamp(14px, 3.5vw, 18px);
  color: var(--txt);
  margin-bottom: clamp(8px, 2vw, 14px);
}
.testimonial-card .author {
  font-weight: 600;
  font-size: clamp(14px, 3vw, 16px);
  color: var(--brand-1);
  text-align: right;
}

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--txt);
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      line-height: 1.65;
    }

    a {
      color: inherit;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 clamp(16px, 4vw, 28px);
    }

    .page {
      padding: clamp(48px, 8vw, 96px) 0;
    }

    #root:focus {
      outline: none;
    }

    #root:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px rgba(96, 165, 255, .28);
      border-radius: clamp(12px, 3vw, 22px);
    }

    .title-xxl {
      font-size: clamp(36px, 6.2vw, 82px);
      letter-spacing: -.03em;
      line-height: 1.05;
      margin: 0 0 24px;
      color: #ffffff;
      font-weight: 800;
      text-shadow: 0 2px 20px rgba(96, 165, 255, .3);
    }

    .lead {
      color: #e8f0ff;
      font-size: clamp(17px, 2.2vw, 20px);
      max-width: 840px;
      line-height: 1.75;
      font-weight: 500;
    }

    .glow {
      position: fixed;
      inset: -20vh -10vw -10vh -10vw;
      z-index: -3;
      filter: blur(80px);
      opacity: .35;
      background:
        
        linear-gradient(90deg, var(--aurora-left) 0%, var(--aurora-mid) 45%, var(--aurora-right) 100%),
        radial-gradient(52vw 52vw at 12% 18%, color-mix(in oklab, var(--aurora-left) 45%, transparent), transparent 60%),
        radial-gradient(48vw 48vw at 85% 15%, color-mix(in oklab, var(--aurora-right) 45%, transparent), transparent 65%),
        radial-gradient(60vw 60vw at 50% 80%, color-mix(in oklab, var(--aurora-mid) 35%, transparent), transparent 60%);
    
      pointer-events: none;
    }

    canvas#aurora {
      pointer-events: none;
      position: fixed;
      inset: 0;
      z-index: -2;
      opacity: .9;
    }

    .skip-link {
      position: absolute;
      inset-inline-start: clamp(12px, 5vw, 40px);
      top: 12px;
      z-index: 999;
      padding: 10px 16px;
      border-radius: 999px;
      background: var(--panel);
      border: 1px solid var(--glass-bd);
      color: #fff;
      font-weight: 600;
      transform: translateY(-120%);
      transition: transform var(--tr-fast);
    }

    .skip-link:focus {
      transform: translateY(0);
      outline: none;
    }

    .hdr {
      position: sticky;
      top: 0;
      z-index: 100;
      background: linear-gradient(180deg, rgba(7, 11, 18, .98), rgba(7, 11, 18, .88));
      backdrop-filter: saturate(180%) blur(16px);
      border-bottom: 1px solid var(--glass-bd);
    }

    .hdr-row {
      display: flex;
      align-items: center;
      gap: clamp(12px, 2vw, 20px);
      padding: clamp(8px, 1.2vw, 14px) clamp(14px, 3vw, 28px);
      flex-wrap: wrap;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: clamp(8px, 1.5vw, 12px);
      text-decoration: none;
      color: var(--txt);
      flex-shrink: 0;
    }

    .logo-badge {
      width: clamp(32px, 5.5vw, 48px);
      height: clamp(32px, 5.5vw, 48px);
      border-radius: 11px;
      display: grid;
      place-items: center;
      background: linear-gradient(145deg, #243041, #0b1220);
      border: 1px solid var(--glass-bd);
      box-shadow: var(--shadow);
    }

    .logo-badge svg {
      width: clamp(16px, 3vw, 24px);
      height: clamp(16px, 3vw, 24px);
      color: var(--brand-1);
    }

    .brand {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .brand b {
      letter-spacing: .05em;
      font-size: clamp(13px, 2.2vw, 17px);
      color: #ffffff;
      font-weight: 700;
    }

    .brand small {
      color: #b5c7e9;
      letter-spacing: .16em;
      font-size: clamp(8px, 1.5vw, 11px);
      font-weight: 600;
      text-transform: uppercase;
    }

    .menu-toggle {
      display: none;
      border: 1px solid var(--glass-bd);
      background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
      color: #ffffff;
      font-weight: 700;
      padding: 10px 14px;
      border-radius: 999px;
      cursor: pointer;
      gap: 10px;
      align-items: center;
      transition: background var(--tr-fast);
    }

    .menu-toggle svg {
      width: 18px;
      height: 18px;
    }

    .menu-toggle:focus-visible {
      outline: 2px solid var(--brand-1);
      outline-offset: 3px;
    }

    nav {
      display: flex;
      flex-wrap: wrap;
      gap: clamp(5px, .9vw, 8px);
      margin-left: auto;
      align-items: center;
      transition: max-height var(--tr-fast) ease;
    }

    nav a {
      color: #e8f0ff;
      text-decoration: none;
      padding: clamp(7px, 1.1vw, 11px) clamp(11px, 1.6vw, 18px);
      border-radius: 9px;
      position: relative;
      transition: all var(--tr-fast);
      font-size: clamp(13px, 1.7vw, 16px);
      font-weight: 600;
      background: rgba(255, 255, 255, .02);
      border: 1px solid transparent;
      white-space: nowrap;
    }

    nav a:hover,
    nav a:focus-visible {
      transform: translateY(-2px);
      color: #fff;
      background: rgba(255, 255, 255, .06);
      border-color: rgba(160, 185, 230, .2);
    }

    nav a.active {
      background: linear-gradient(135deg, #1f2a3a, #0e1726);
      border: 1px solid var(--glass-bd);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    }

    .cta {
      flex-shrink: 0;
      margin-left: clamp(5px, 1vw, 12px);
    }

    .cta .btn {
      width: auto;
      max-width: min(100%, 320px);
    }

    .btn {
      all: unset;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      padding: clamp(7px, 1.1vw, 11px) clamp(11px, 1.6vw, 18px);
      border-radius: 10px;
      font-weight: 700;
      font-size: clamp(13px, 1.7vw, 16px);
      transition: all var(--tr-fast);
      text-align: center;
      justify-content: center;
      white-space: normal;
      word-break: break-word;
    }

    .hdr .btn {
      white-space: nowrap;
    }

    .btn:disabled {
      opacity: .6;
      cursor: not-allowed;
    }

    .btn-ghost {
      background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
      border: 1px solid var(--glass-bd);
      color: #ffffff;
    }

    .btn-ghost:hover,
    .btn-ghost:focus-visible {
      background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06));
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
      color: #0a0e17;
      box-shadow: 0 6px 20px rgba(96, 165, 255, .22);
      border: 1px solid rgba(255, 255, 255, .2);
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
      transform: translateY(-3px);
      box-shadow: 0 9px 26px rgba(96, 165, 255, .32);
    }

    @media (hover: none) {
      .btn-ghost:hover,
      .btn-ghost:focus-visible {
        transform: none;
        box-shadow: none;
      }

      .btn-primary:hover,
      .btn-primary:focus-visible {
        transform: none;
        box-shadow: 0 6px 20px rgba(96, 165, 255, .22);
      }

      nav a:hover,
      nav a:focus-visible {
        transform: none;
      }

      .card:hover,
      .card:focus-within,
      .card:focus-visible,
      .metric:hover,
      .metric:focus-visible {
        transform: none;
        box-shadow: var(--shadow);
      }
    }

    .hero {
      display: grid;
      gap: 20px;
      justify-items: start;
    }

    .hero-cta {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 8px;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
    }

    .hero-cta .btn {
      flex: 0 1 auto;
      min-height: 44px;
      min-width: 0;
      max-width: 100%;
      padding-inline: clamp(14px, 4vw, 22px);
    }

    .metrics {
      margin-top: clamp(28px, 5vw, 56px);
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
      gap: clamp(12px, 2vw, 20px);
    }

    .metric {
      border: 1px solid var(--glass-bd);
      background: var(--glass);
      border-radius: 16px;
      padding: clamp(16px, 2.5vw, 24px) clamp(18px, 3vw, 28px);
      text-align: left;
      box-shadow: var(--shadow);
      transition: all var(--tr-med);
      position: relative;
      overflow: hidden;
    }

    .metric::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
      border-radius: 16px 16px 0 0;
    }

    .metric:hover,
    .metric:focus-visible {
      transform: translateY(-5px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15);
    }

    .metric-value {
      font-size: clamp(28px, 4.5vw, 48px);
      font-weight: 800;
      background: linear-gradient(135deg, #d6b3ff, #ff6ec7);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: block;
      margin-bottom: 6px;
      line-height: 1.1;
    }

    .metric-label {
      color: #ffffff;
      font-size: clamp(14px, 2vw, 18px);
      font-weight: 600;
      margin-bottom: 5px;
    }

    .metric-desc {
      color: #c5d5f5;
      font-size: clamp(12px, 1.7vw, 15px);
      line-height: 1.5;
      font-weight: 500;
    }

    .chip {
      font-size: clamp(10px, 1.6vw, 13px);
      border: 1px solid var(--glass-bd);
      background: var(--glass);
      padding: 6px 11px;
      border-radius: 999px;
      color: #e8f4ff;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .grid {
      display: grid;
      gap: clamp(14px, 2.5vw, 24px);
    }

    .g-3 {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    /* Four column grid used for resources section */
    .g-4 {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    }

    .panel {
      border: 1px solid var(--glass-bd);
      background: var(--glass);
      border-radius: var(--rad-md);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .card {
      padding: clamp(18px, 2.8vw, 26px);
      position: relative;
      transition: all var(--tr-med);
    }

    .card:hover,
    .card:focus-within,
    .card:focus-visible {
      transform: translateY(-4px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
    }

    .ic {
      width: clamp(44px, 7vw, 56px);
      height: clamp(44px, 7vw, 56px);
      border-radius: 13px;
      display: grid;
      place-items: center;
      margin-bottom: 14px;
      background: linear-gradient(145deg, #1a2838, #0d1622);
      border: 1px solid var(--glass-bd);
      box-shadow: var(--shadow);
    }

    .ic svg {
      width: clamp(22px, 4vw, 28px);
      height: clamp(22px, 4vw, 28px);
      color: #e8f4ff;
    }

    .card h3 {
      margin: 0 0 10px;
      font-size: clamp(17px, 2.8vw, 22px);
      color: #ffffff;
      font-weight: 700;
      line-height: 1.3;
    }

    .card p {
      color: #d4dff5;
      margin: 0 0 12px;
      font-size: clamp(13px, 2vw, 16px);
      line-height: 1.65;
      font-weight: 500;
    }

    .muted {
      color: var(--muted);
    }

    .tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 10px 0;
    }

    .tag {
      font-size: clamp(10px, 1.6vw, 13px);
      border: 1px solid var(--glass-bd);
      padding: 5px 9px;
      border-radius: 8px;
      color: #d0e0ff;
      font-weight: 600;
      background: rgba(96, 165, 255, .08);
    }

    .actions {
      margin-top: 12px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }

    .action-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .action-meta .chip {
      flex: 0 0 auto;
    }

    .action-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .action-buttons .btn,
    .action-buttons a.btn {
      min-height: 40px;
      min-width: 132px;
      width: auto;
    }

    .soon {
      position: absolute;
      top: 16px;
      right: 16px;
      font-size: clamp(9px, 1.5vw, 12px);
      padding: 6px 11px;
      border-radius: 999px;
      background: linear-gradient(135deg, #ffd16644, #ff6ec744);
      border: 1px solid #ffffff33;
      font-weight: 700;
      color: #fff4d0;
    }

    .controls {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }

    .search {
      flex: 1;
      min-width: 220px;
      padding: 12px 15px;
      border-radius: 12px;
      border: 1px solid var(--glass-bd);
      background: linear-gradient(180deg, #0c1320, #0a101b);
      color: #ffffff;
      font-size: clamp(13px, 1.9vw, 16px);
      font-weight: 500;
    }

    .search::placeholder {
      color: #8fa5c9;
    }

    .kb-grid {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    mark {
      background: linear-gradient(135deg, #ffe08a77, #ff6ec755);
      padding: 2px 5px;
      border-radius: 5px;
      color: #ffffff;
      font-weight: 600;
    }

    dialog.modal {
      width: min(1100px, 94vw);
      max-height: 90vh;
      border: 1px solid var(--glass-bd);
      border-radius: 20px;
      background: rgba(12, 18, 30, .97);
      backdrop-filter: saturate(160%) blur(14px);
      color: var(--txt);
      padding: 0;
      box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    }

    dialog::backdrop {
      background: rgba(2, 6, 12, .75);
      backdrop-filter: blur(4px);
    }

    .m-hdr {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: clamp(12px, 2vw, 18px) clamp(16px, 2.8vw, 24px);
      border-bottom: 1px solid var(--glass-bd);
      background: linear-gradient(180deg, #101828, #0c1422);
      flex-wrap: wrap;
      gap: 10px;
    }

    .m-hdr strong {
      font-size: clamp(16px, 2.4vw, 20px);
      color: #ffffff;
      font-weight: 700;
    }

    .m-body {
      padding: clamp(14px, 2.5vw, 20px) clamp(16px, 2.8vw, 24px);
      max-height: calc(88vh - 60px);
      overflow: auto;
    }

    .m-meta {
      display: flex;
      gap: 9px;
      color: #d4dff5;
      font-size: clamp(11px, 1.6vw, 14px);
      flex-wrap: wrap;
      margin: 0 0 10px;
    }

    .toc {
      border: 1px solid var(--glass-bd);
      border-radius: 13px;
      padding: 12px;
      margin: 10px 0;
      background: #0b1320;
    }

    .toc b {
      color: #ffffff;
      font-size: clamp(13px, 1.9vw, 16px);
    }

    .toc a {
      color: #c5d5f5;
      text-decoration: none;
      display: block;
      padding: 4px 0;
      font-size: clamp(12px, 1.8vw, 15px);
      font-weight: 500;
      transition: color var(--tr-fast);
    }

    .toc a:hover,
    .toc a:focus-visible {
      color: #fff;
    }

    .m-body pre {
      background: #0a1120;
      border: 1px solid var(--glass-bd);
      border-radius: 13px;
      padding: clamp(10px, 2vw, 14px);
      overflow: auto;
      font-size: clamp(12px, 1.8vw, 15px);
      color: #f0f8ff;
      font-weight: 500;
      position: relative;
    }

    .m-body h2 {
      color: #ffffff;
      font-size: clamp(20px, 3vw, 26px);
      margin-top: clamp(20px, 3.2vw, 32px);
      font-weight: 700;
    }

    .m-body h3 {
      color: #ffffff;
      font-size: clamp(17px, 2.5vw, 22px);
      font-weight: 600;
    }

    .m-body ul,
    .m-body ol {
      color: #d4dff5;
      line-height: 1.75;
      font-weight: 500;
      padding-left: 20px;
    }

    .m-body li {
      margin: 7px 0;
    }

    .m-body code {
      background: rgba(96, 165, 255, .15);
      padding: 2px 6px;
      border-radius: 5px;
      color: #a5d5ff;
      font-weight: 600;
      font-size: .92em;
    }

    .copy {
      float: right;
    }

    .video {
      position: relative;
      padding-top: 56.25%;
      background: #000;
      border-radius: 13px;
      overflow: hidden;
    }

    .video iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .term {
      font-family: 'Fira Code', ui-monospace, Consolas, monospace;
      font-size: clamp(12px, 1.8vw, 15px);
      height: clamp(360px, 55vh, 580px);
      overflow: auto;
      position: relative;
      color: #f0f8ff;
    }

    .term::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, #0a111e, #0a0f19);
      opacity: .98;
    }

    .term .inner {
      position: relative;
      padding: clamp(34px, 5vw, 44px) clamp(12px, 2vw, 18px) clamp(12px, 2vw, 18px);
    }

    .term .bar {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: clamp(36px, 5.5vw, 42px);
      border-bottom: 1px solid var(--glass-bd);
      background: linear-gradient(180deg, #0e1626, #0c1320);
    }

    .prompt {
      color: var(--ok);
      font-weight: 700;
      margin-right: 7px;
    }

    .user {
      color: var(--brand-1);
    }

    .term input {
      all: unset;
      color: #f0f8ff;
      caret-color: var(--brand-1);
      width: 100%;
      font-weight: 500;
    }

    .ok {
      color: var(--ok);
    }

    .wr {
      color: var(--warn);
    }

    .er {
      color: var(--err);
    }

    table {
      border-collapse: collapse;
      width: 100%;
      overflow-x: auto;
      display: block;
      font-size: clamp(11px, 1.7vw, 14px);
      color: #f0f8ff;
    }

    th,
    td {
      border-bottom: 1px solid #ffffff22;
      padding: clamp(4px, 1vw, 7px) clamp(6px, 1.4vw, 9px);
      text-align: left;
      white-space: nowrap;
    }

    th {
      color: #c5d5ff;
      font-weight: 700;
    }

    footer {
      border-top: 1px solid var(--glass-bd);
      padding: clamp(20px, 3.2vw, 32px) 0;
      color: #c5d5f5;
      margin-top: clamp(50px, 8vw, 90px);
      background: linear-gradient(180deg, transparent, #0a0f18);
    }

    footer.hide {
      display: none;
    }

    .foot-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
      gap: clamp(18px, 3vw, 28px);
    }

    .foot h4 {
      margin: 0 0 10px;
      color: #ffffff;
      font-size: clamp(15px, 2vw, 18px);
      font-weight: 700;
    }

    .foot a {
      color: #c5d5f5;
      text-decoration: none;
      font-size: clamp(13px, 1.8vw, 16px);
      display: block;
      margin: 6px 0;
      font-weight: 500;
      transition: color var(--tr-fast);
    }

    .foot a:hover,
    .foot a:focus-visible {
      color: #fff;
    }

    @media (min-width: 640px) {
      .hero-cta {
        justify-content: flex-start;
      }

      .action-buttons .btn,
      .action-buttons a.btn {
        min-width: 144px;
      }
    }

    @media (max-width: 1024px) {
      .brand small {
        display: none;
      }
    }

    @media (max-width: 900px) {
      nav {
        width: 100%;
        order: 2;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        margin-left: 0;
      }

      nav[data-open="true"] {
        max-height: 360px;
        padding-top: 6px;
      }

      nav a {
        font-size: 15px;
        padding: 11px 14px;
        border-radius: 12px;
        justify-content: center;
        white-space: normal;
      }

      .cta {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
      }

      .cta .btn {
        width: min(100%, 320px);
      }

      .menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
      }
    }

    @media (max-width: 768px) {
      .hdr-row {
        padding: 10px 16px;
        gap: 12px;
      }

      .logo-badge {
        width: 36px;
        height: 36px;
      }

      .hero-cta {
        flex-direction: column;
        align-items: stretch;
      }

      .hero-cta .btn {
        width: auto;
        align-self: center;
      }

      .metrics {
        grid-template-columns: 1fr;
      }

      .g-3,
      .kb-grid {
        grid-template-columns: 1fr;
      }

      .actions {
        align-items: stretch;
      }

      .action-meta {
        justify-content: center;
      }

      .action-buttons {
        justify-content: center;
        width: 100%;
      }

      .action-buttons .btn,
      .action-buttons a.btn {
        width: auto;
        min-width: 0;
        max-width: min(100%, 260px);
      }

      .btn {
        white-space: normal;
      }

      .m-hdr {
        flex-direction: column;
        align-items: stretch;
      }

      .m-hdr > div {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 8px;
      }

      .m-hdr > div .btn {
        flex: 1;
      }

      table {
        font-size: 12px;
      }
    }

    @media (max-width: 560px) {
      .title-xxl {
        font-size: clamp(28px, 8vw, 42px);
      }

      .lead {
        font-size: clamp(15px, 3vw, 18px);
      }

      .btn {
        white-space: normal;
      }

      .card h3 {
        font-size: clamp(16px, 3.2vw, 20px);
      }

      .card p {
        font-size: clamp(12px, 2.2vw, 15px);
      }

      .metric-value {
        font-size: clamp(24px, 6vw, 36px);
      }

      .metric-label {
        font-size: clamp(13px, 2.5vw, 16px);
      }

      .controls {
        flex-direction: column;
        align-items: stretch;
      }

      .controls .chip,
      .controls .btn {
        width: 100%;
        justify-content: center;
      }

      .search {
        min-width: 100%;
      }

      .action-buttons {
        justify-content: center;
      }

      dialog.modal {
        width: 96vw;
        max-height: 94vh;
      }

      .m-body {
        padding: 12px;
      }

      .term {
        height: clamp(280px, 45vh, 400px);
        font-size: 11px;
      }
    }

    @media (max-width: 420px) {
      .hdr-row {
        gap: 10px;
      }

      .logo-badge {
        width: 32px;
        height: 32px;
      }

      .card {
        padding: 16px;
      }

      .ic {
        width: 40px;
        height: 40px;
      }

      .ic svg {
        width: 20px;
        height: 20px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
      }
    }


/* Fix: don't block clicks with background layers */
.glow, #aurora, .noise { pointer-events: none; }

/* Subtle film grain to remove color banding on gradients (esp. mobile zoom) */
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .04;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 0, transparent 70%),
    radial-gradient(1px 1px at 80% 10%, #fff 0, transparent 70%),
    radial-gradient(1px 1px at 40% 70%, #fff 0, transparent 70%),
    radial-gradient(1px 1px at 60% 50%, #fff 0, transparent 70%);
  mix-blend-mode: overlay;
}

/* Medium title size for subsections on home and new pages */
.title-xl {
  font-size: clamp(28px, 4.8vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(96, 165, 255, .3);
}



/* Ready-state guard to avoid shell flicker before bootstrap completes. */
/* Avoid tab/filter flicker before the app marks the document as ready. */
html:not([data-nph-ready="1"]) .tabs,
html:not([data-nph-ready="1"]) .page-tabs,
html:not([data-nph-ready="1"]) [data-role="tabs"],
html:not([data-nph-ready="1"]) .filters {
  display: none !important;
}

/* ===== Premium visual polish: foundation ===== */
html {
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(120, 160, 255, .08), transparent 60%),
    radial-gradient(900px 480px at 92% 0%, rgba(214, 179, 255, .08), transparent 58%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 94%, #11182a 6%), var(--bg) 30%);
}

.container {
  max-width: 1320px;
  padding-inline: clamp(18px, 4vw, 34px);
}

.page {
  padding-block: var(--section-gap);
}

.page + .page {
  padding-top: 0;
}

.title-xxl {
  max-width: 12ch;
  margin-bottom: 18px;
  text-shadow: none;
}

.title-xl,
.section-heading {
  max-width: 18ch;
  text-shadow: none;
}

.lead,
.section-intro {
  max-width: var(--content-measure);
  color: var(--text-soft);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: color-mix(in oklab, var(--brand-1) 55%, var(--txt) 45%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand-1) 45%, transparent), transparent);
}

.hdr {
  background: color-mix(in oklab, var(--bg) 86%, rgba(9, 13, 21, .9) 14%);
  backdrop-filter: saturate(155%) blur(18px);
}

.hdr-row {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 76px;
  padding-inline: clamp(18px, 4vw, 34px);
}

.logo-badge {
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 90%, #fff 10%), color-mix(in oklab, var(--surface-3) 96%, #000 4%));
  box-shadow: var(--shadow-soft), var(--shadow-line);
}

.brand b { letter-spacing: .06em; }
.brand small { color: var(--text-quieter); }

nav {
  gap: 10px;
}

nav a {
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: color-mix(in oklab, var(--txt) 84%, var(--muted) 16%);
}

nav a:hover,
nav a:focus-visible {
  background: color-mix(in oklab, var(--surface-2) 74%, transparent);
  border-color: var(--line-soft);
  transform: none;
}

nav a.active {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 96%, #fff 4%), color-mix(in oklab, var(--surface-3) 100%, transparent));
  border-color: var(--line-strong);
  box-shadow: var(--shadow-line);
}

.btn {
  min-height: 42px;
  border-radius: 12px;
}

.btn-ghost {
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 88%, transparent), color-mix(in oklab, var(--surface-3) 92%, transparent));
  border-color: var(--line-soft);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-1) 82%, white 18%), color-mix(in oklab, var(--brand-3) 72%, white 14%));
  box-shadow: 0 14px 34px rgba(121, 100, 214, .22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(121, 100, 214, .28);
}

.search,
select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface-2) 88%, transparent), color-mix(in oklab, var(--surface-3) 100%, transparent));
  color: var(--txt);
}

select {
  padding: 0 14px;
}

footer#footer {
  padding-bottom: clamp(34px, 5vw, 56px);
}

footer#footer .container.foot {
  width: min(100% - clamp(32px, 6vw, 76px), 480px) !important;
}

footer#footer .foot-grid {
  gap: 22px !important;
}

footer#footer .foot h4 {
  margin-bottom: 8px;
  color: color-mix(in oklab, var(--txt) 90%, var(--muted) 10%);
}

footer#footer .foot a {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--text-soft);
  text-decoration: none;
}

footer#footer .foot a:hover,
footer#footer .foot a:focus-visible {
  color: var(--txt);
}

@media (max-width: 900px) {
  .hdr-row {
    min-height: auto;
  }

  .title-xxl {
    max-width: 14ch;
  }

  .container {
    padding-inline: 18px;
  }
}


/* ===== Production polish pass: structure, rhythm, header scale ===== */
.brand small {
  letter-spacing: .12em;
  font-size: clamp(7px, 1.1vw, 9px);
}

.brand b {
  font-size: clamp(12px, 1.5vw, 15px);
}

.grid {
  align-items: stretch;
}

.grid > .card,
.grid > article.card,
.grid > .panel {
  height: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.card p,
.card .muted {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tags {
  margin-bottom: 0;
}

.actions {
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  align-items: stretch;
}

.actions .btn,
.actions a.btn {
  flex: 1 1 148px;
  justify-content: center;
  min-width: 148px;
}

.actions > :only-child {
  max-width: 180px;
}

.section-copy.compact {
  max-width: 72ch;
  margin-bottom: 18px;
}

#root .page:first-child {
  padding-top: clamp(34px, 5vw, 54px);
}

/* ===== Pass 8: header balance and rhythm ===== */
.brand {
  gap: 10px;
}

.brand b {
  letter-spacing: .07em;
  font-size: clamp(12px, 1.35vw, 14px);
}

.brand small {
  letter-spacing: .16em;
  font-size: clamp(7px, .95vw, 8px);
}

nav {
  gap: 8px;
}

nav a {
  padding: 10px 14px;
}

.hdr .btn-primary {
  min-width: 176px;
}
