html { scroll-behavior: smooth; }
    body { font-family: "General Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
    .font-display { font-family: "Sora", "General Sans", sans-serif; letter-spacing: -.015em; }
    h1, h2, h3 { font-family: "Sora", "General Sans", sans-serif; letter-spacing: -.02em; }
    .surface { background: #fff; box-shadow: 0 0 0 1px rgba(11,16,48,.04), 0 1px 2px rgba(11,16,48,.04), 0 14px 34px -16px rgba(11,16,48,.16); }
    /* Sora headings read clean at 600 */
    h1.font-display, h2.font-display, h3.font-display { font-weight: 600; }

    @keyframes tickerMove {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }
    .ticker-track { animation: tickerMove 42s linear infinite; }
    .ticker-shell:hover .ticker-track { animation-play-state: paused; }
    .coin-ico { width: 20px; height: 20px; border-radius: 999px; }
    .coin-ico-sm { width: 24px; height: 24px; border-radius: 999px; }
    [data-icon] { width: 22px; height: 22px; display: inline-block; }

    /* ---------- Blue Rhythm surface helpers ---------- */
    .grad-frame {
      border: 1px solid transparent;
      background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg, rgba(75,83,224,.55), rgba(124,132,251,.25)) border-box;
    }
    /* signature flowing rhythm rings used as background motif */
    .rhythm { position: relative; }
    .rhythm > .rhythm-layer {
      position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
    }
    .glow-shadow { box-shadow: 0 22px 50px -16px rgba(56,61,192,.40), 0 4px 14px rgba(11,16,48,.06); }

    /* ---------- buttons: every clickable control reacts ---------- */
    .btn {
      position: relative;
      transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease, filter .22s ease;
      will-change: transform;
    }
    .btn:hover { transform: translateY(-2px) scale(1.025); }
    .btn:active { transform: translateY(0) scale(.97); }
    .btn-glow:hover { filter: brightness(1.06); box-shadow: 0 18px 36px -10px rgba(75,83,224,.6); }
    .btn-glow-brand:hover { box-shadow: 0 18px 36px -10px rgba(75,83,224,.55); }
    .btn-ghost:hover { background: rgba(75,83,224,.07); border-color: rgba(75,83,224,.4); }
    .icon-pop { transition: transform .25s ease; }
    .group:hover .icon-pop, .btn:hover .icon-pop { transform: scale(1.12); }

    /* ---------- nav underline / scroll-spy ---------- */
    .nav-link { position: relative; padding-bottom: 3px; }
    .nav-link::after {
      content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
      background: linear-gradient(90deg, #4b53e0, #7c84fb);
      transition: width .25s ease;
      border-radius: 2px;
    }
    .nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
    .nav-link.is-active { color: #383dc0; }

    /* ---------- filter pills ---------- */
    .pill { transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
    .pill:hover { transform: translateY(-1px); }

    /* ---------- shortcode demo ---------- */
    .sc-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

    /* ---------- calculator range sliders ---------- */
    .crange { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer;
      background: linear-gradient(90deg, #4b53e0 0%, #7c84fb var(--p,50%), #dfe3f0 var(--p,50%), #dfe3f0 100%); }
    .crange::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
      background: #fff; border: 3px solid #4b53e0; box-shadow: 0 4px 12px rgba(75,83,224,.45); transition: transform .15s ease, box-shadow .15s ease; margin-top: 0; }
    .crange::-webkit-slider-thumb:hover { transform: scale(1.14); box-shadow: 0 6px 20px rgba(75,83,224,.55); }
    .crange:active::-webkit-slider-thumb { transform: scale(1.2); }
    .crange::-moz-range-track { height: 8px; border-radius: 999px; background: #dfe3f0; }
    .crange::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg,#4b53e0,#7c84fb); }
    .crange::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #4b53e0; box-shadow: 0 4px 12px rgba(75,83,224,.45); }

    /* ---------- long-form article typography ---------- */
    .prose-body { color: #4a567c; }
    .prose-body p { color: #4a567c; font-size: 1rem; line-height: 1.75; margin: 0 0 1rem; }
    .prose-body p:last-child { margin-bottom: 0; }
    .prose-body b { color: #0b1030; font-weight: 600; }
    .prose-body a:not(.btn) { color: #383dc0; }
    .prose-body a.btn { color: #fff; }
    .prose-body h2 { color: #0b1030; scroll-margin-top: 110px; }
    .prose-body h3 { color: #0b1030; scroll-margin-top: 110px; }
    .prose-body ul { list-style: none; padding: 0; margin: 1rem 0; }
    .prose-body ul li { color: #4a567c; line-height: 1.65; }
    .prose-body table td, .prose-body table th { vertical-align: top; }
    .toc-link.is-active { background: rgba(75,83,224,.08); color: #383dc0; font-weight: 600; }

    /* ---------- FAQ accordion ---------- */
    .faq-item .faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .faq-item.is-open .faq-body { max-height: 420px; }
    .faq-item.is-open .faq-chevron { transform: rotate(45deg); }
    .faq-chevron { transition: transform .3s ease; }

    /* ---------- styled data tables ---------- */
    .data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; overflow: hidden; border-radius: 20px; }
    .data-table thead th {
      background: linear-gradient(120deg,#0b1030,#383dc0);
      color: #fff; font-weight: 600; text-align: left; padding: 14px 18px;
      font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
    }
    .data-table thead th:first-child { border-top-left-radius: 20px; }
    .data-table thead th:last-child { border-top-right-radius: 20px; }
    .data-table tbody td { padding: 13px 18px; border-top: 1px solid #d7deee; color: #4a567c; vertical-align: middle; }
    .data-table tbody tr:nth-child(even) { background: #f7f9ff; }
    .data-table tbody tr { transition: background .18s ease; }
    .data-table tbody tr:hover { background: #eef0ff; }
    .data-table tbody td:first-child { font-weight: 600; color: #0b1030; }
    .data-table .yes { color: #059669; font-weight: 600; }
    .data-table .no { color: #e11d48; font-weight: 600; }
    .table-wrap { overflow: hidden; border-radius: 20px; box-shadow: 0 10px 30px rgba(11,16,48,.07); border: 1px solid #c7cfe2; }
    .table-wrap.scroll { overflow-x: auto; }

    /* ---------- editorial building blocks ---------- */
    .keybox { position: relative; border-radius: 22px; padding: 22px 24px 22px 26px; background: linear-gradient(120deg,#eef0ff,#f7f9ff); border: 1px solid #c6ccff; }
    .keybox::before { content:""; position:absolute; left:0; top:16px; bottom:16px; width:4px; border-radius:4px; background: linear-gradient(#4b53e0,#7c84fb); }
    .flowline { position: relative; }
    @media (min-width:768px){ .flowstep:not(:last-child)::after{ content:""; position:absolute; top:34px; right:-8px; width:16px; height:2px; background:#c7d3f7; } }

    /* ---------- quiz wizard ---------- */
    .quiz-step { display: none; animation: quizIn .35s ease; }
    .quiz-step.is-active { display: block; }
    @keyframes quizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    .quiz-opt { transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
    .quiz-opt:hover { transform: translateY(-2px); }
    .quiz-opt.is-picked { border-color: #4b53e0; background: #eef0ff; box-shadow: 0 8px 24px rgba(75,83,224,.15); }
    .quiz-progress-seg { transition: background .3s ease; }

    /* ---------- compare bar & modal ---------- */
    #compareBar { transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
    #compareBar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
    #compareModal { transition: opacity .25s ease; }
    #compareModal.is-hidden { opacity: 0; pointer-events: none; }
    #compareModalPanel { transition: transform .32s cubic-bezier(.2,.8,.2,1); }
    #compareModal.is-hidden #compareModalPanel { transform: translateY(24px) scale(.98); }
    .compare-btn.is-on { border-color: #4b53e0; background: #eef0ff; color: #383dc0; }
    body.compare-open { overflow: hidden; }
    body.has-compare-bar { padding-bottom: 88px; }
    @media (min-width:640px) and (max-width:767px){ body.has-compare-bar { padding-bottom: 96px; } }
    /* Compare is a desktop/tablet feature — remove it on phones to keep cards clean */
    @media (max-width:639px){
      .compare-btn { display: none !important; }
      #compareBar { display: none !important; }
      body.has-compare-bar { padding-bottom: 0 !important; }
    }

    /* ---------- changelog ---------- */
    .chg-up { color: #059669; }
    .chg-down { color: #e11d48; }
    .chg-new { color: #383dc0; }

    /* ---------- payout feed strip ---------- */
    @keyframes payoutScroll {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }
    .payout-feed-track { animation: payoutScroll 38s linear infinite; }
    .payout-shell:hover .payout-feed-track { animation-play-state: paused; }

    /* ---------- network radar bars ---------- */
    .net-bar { transition: width .5s cubic-bezier(.2,.8,.2,1); }
    .net-card.is-best { border-color: rgba(75,83,224,.45); box-shadow: 0 12px 32px rgba(75,83,224,.12); }

    /* ---------- weight slider panel ---------- */
    .wrange { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; outline: none; cursor: pointer;
      background: linear-gradient(90deg, #4b53e0 0%, #7c84fb var(--p,50%), #dfe3f0 var(--p,50%), #dfe3f0 100%); }
    .wrange::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid #4b53e0; box-shadow: 0 3px 10px rgba(75,83,224,.35); }
    .wrange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid #4b53e0; }

    /* ---------- hero count-up ---------- */
    .hero-stat-val { font-variant-numeric: tabular-nums; }

    /* ---------- provably fair lab ---------- */
    .fair-tab.is-active { border-color: #4b53e0; background: #eef0ff; color: #383dc0; }
    .fair-hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
    .fair-result-box { animation: fairPop .45s cubic-bezier(.2,.8,.2,1); }
    @keyframes fairPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

    /* ---------- header nav ---------- */
    .burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 40px; width: 40px; border-radius: 12px; border: 1px solid #e2e6f5; background: #fff; cursor: pointer; }
    .burger span { display: block; height: 2px; width: 18px; background: #0b1030; border-radius: 2px; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
    .burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .burger.is-active span:nth-child(2) { opacity: 0; }
    .burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    /* desktop nav */
    .nav-top { display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; padding: 9px 14px; font-size: .9rem; font-weight: 600; color: #3a4368; cursor: pointer; background: transparent; border: 0; transition: background .18s ease, color .18s ease; }
    .nav-top:hover, .nav-drop:hover .nav-top, .nav-drop:focus-within .nav-top { background: #eef0ff; color: #2a2c8f; }
    .nav-top.is-current { color: #383dc0; }
    .nav-chev { transition: transform .2s ease; }
    .nav-drop:hover .nav-chev, .nav-drop:focus-within .nav-chev { transform: rotate(180deg); }
    .nav-drop-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; min-width: 220px; border-radius: 16px; border: 1px solid #e6e9f7; background: #fff; box-shadow: 0 24px 54px -20px rgba(11,16,48,.4); padding: 8px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
    .nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { opacity: 1; transform: none; pointer-events: auto; }
    /* mobile panel + shared links */
    .nav-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 244px; border-radius: 18px; border: 1px solid #e6e9f7; background: #fff; box-shadow: 0 24px 54px -20px rgba(11,16,48,.4); padding: 10px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
    .nav-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .menu-link { display: block; border-radius: 10px; padding: 9px 12px; font-size: .9rem; font-weight: 600; color: #4a567c; transition: background .18s ease, color .18s ease; }
    .menu-link:hover { background: #eef0ff; color: #2a2c8f; }
    .menu-sub { padding-left: 30px; position: relative; }
    .menu-sub::before { content: ""; position: absolute; left: 15px; top: 50%; height: 5px; width: 5px; border-radius: 50%; background: #c6ccff; transform: translateY(-50%); }
    .menu-label { padding: 10px 12px 4px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #8b97b8; }
    .menu-div { margin: 6px 8px; border-top: 1px solid #eef1f8; }


    /* ---------- imported from static: coin landing pages ---------- */
    .acc-item > summary { list-style: none; cursor: pointer; }
    .acc-item > summary::-webkit-details-marker { display: none; }
    .acc-item .acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2,.8,.2,1); }
    .acc-item .acc-body > div { overflow: hidden; }
    .acc-item[open] .acc-body { grid-template-rows: 1fr; }
    .acc-item[open] .acc-chevron { transform: rotate(45deg); background: #4b53e0; color: #fff; border-color: #4b53e0; }
    .acc-item[open] > summary { color: #383dc0; }
    .sparkline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    @keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.4} }
    .live-dot { animation: pulseDot 2s ease infinite; }
    .step-line { position: relative; }
    .step-line::before {
      content: ""; position: absolute; left: 1.25rem; top: 2.75rem; bottom: -.5rem; width: 2px;
      background: linear-gradient(180deg, #c6ccff, transparent);
    }
    .step-line:last-child::before { display: none; }
