/* Case TokenHub — brand navy for the story, the light financial surface for the product. */
.case-tokenhub {
  --th-navy: #083650;
  --th-navy-2: #052a3f;
  --th-cyan: #00a2d4;
  --th-cyan-ink: #006f92;
  --th-ink: #102e40;
  --th-muted: #5d707c;
  --th-light: #f3f7f9;
  --th-line: #dce5ea;
  --th-brand: "Raleway", "Manrope", system-ui, sans-serif;
  background: var(--th-navy);
  color: #fff;
}
.case-tokenhub ::selection { background: var(--th-cyan); color: var(--th-navy); }
.case-tokenhub :where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--th-cyan); outline-offset: 3px; border-radius: 6px; }
.case-tokenhub h1, .case-tokenhub h2 { font-family: var(--th-brand); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.case-tokenhub p { line-height: 1.65; }

.th-kicker { display: flex; gap: 12px; align-items: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--th-cyan); margin: 0 0 28px; font-weight: 600; }
.th-kicker a { color: inherit; }
.th-kicker span { opacity: .5; }
.th-section { padding: clamp(80px, 9vw, 140px) 6vw; }
.th-section h2 { font-size: clamp(40px, 5vw, 80px); max-width: 15ch; margin: 0; }
.th-section header > p, .th-section > p, .th-brand-copy > p, .th-mobile-copy > p { max-width: 640px; font-size: clamp(17px, 1.25vw, 20px); margin-top: 26px; }

/* Browser chrome dots */
.th-browser { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 14px; background: #ffffff; border-bottom: 1px solid var(--th-line); }
.th-browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--th-line); }
.th-browser b { margin-left: 12px; font: 500 11px/1 var(--th-brand); color: var(--th-muted); letter-spacing: .02em; }

/* ── Hero ── */
.th-hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4vw; padding: clamp(130px, 16svh, 190px) 6vw 80px; overflow: clip; background: radial-gradient(70% 60% at 85% 30%, #0a5a80 0%, transparent 70%), linear-gradient(160deg, var(--th-navy) 0%, var(--th-navy-2) 100%); }
.th-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 75%); }
.th-hero h1 { font-size: clamp(56px, 7vw, 120px); margin: 0; }
.th-hero h1 em { font-style: normal; color: var(--th-cyan); }
.th-intro { max-width: 520px; margin-top: 30px; font-size: clamp(17px, 1.3vw, 20px); color: #ffffffcc; }
.th-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; margin: 44px 0 0; max-width: 560px; padding-top: 26px; border-top: 1px solid #ffffff26; }
.th-facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffffff8c; }
.th-facts dd { margin: 6px 0 0; font-size: 15px; }
.th-hero-stage { position: relative; height: min(68svh, 640px); }
.th-hero-laptop { position: absolute; inset: 0 8% 0 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 50px 120px -40px #000c, 0 0 0 1px #ffffff26; }
.th-hero-laptop img { display: block; width: 100%; height: auto; animation: th-pan 26s cubic-bezier(.45, 0, .55, 1) 1.2s infinite alternate; }
@keyframes th-pan { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + min(68svh, 640px) - 30px)); } }
.th-hero-phone { position: absolute; right: 0; bottom: -6%; width: 30%; height: auto; border-radius: 26px; border: 6px solid #0b1f2c; box-shadow: 0 40px 80px -30px #000d; animation: th-float 7s ease-in-out infinite alternate; }
@keyframes th-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* ── Context ── */
.th-context { background: var(--th-navy-2); }
.th-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5vw; margin-top: 50px; max-width: 1200px; }
.th-cols p { margin: 0; font-size: clamp(17px, 1.2vw, 19px); color: #ffffffcc; }

/* ── Brand ── */
.th-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; background: var(--th-light); color: var(--th-ink); }
.th-brand .th-kicker { color: var(--th-cyan-ink); }
.th-brand-copy > p { color: var(--th-muted); }
.th-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 14px; }
.th-sw { position: relative; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; font: 600 13px/1 var(--th-brand); letter-spacing: .04em; }
.th-sw img { position: absolute; top: 22px; left: 20px; width: min(180px, 70%); height: auto; }
.th-sw-navy { background: var(--th-navy); color: #fff; grid-row: span 2; }
.th-sw-cyan { background: var(--th-cyan); color: var(--th-navy); }
.th-sw-light { background: #fff; color: var(--th-ink); box-shadow: inset 0 0 0 1px var(--th-line); }
.th-sw-type { background: #fff; color: var(--th-ink); box-shadow: inset 0 0 0 1px var(--th-line); }
.th-sw-type b { font: 600 64px/1 var(--th-brand); letter-spacing: -.03em; margin-bottom: auto; }
.th-sw-navy, .th-sw-cyan, .th-sw-light { min-height: 150px; }

/* ── Site ── */
.th-site { background: #fff; color: var(--th-ink); }
.th-site .th-kicker, .th-platform .th-kicker, .th-mobile .th-kicker, .th-decisions .th-kicker { color: var(--th-cyan-ink); }
.th-site header > p { color: var(--th-muted); }
.th-site-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 60px; align-items: start; }
.th-scroller { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -45px #08365099, 0 0 0 1px var(--th-line); }
.th-scroller-view { height: min(78svh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--th-cyan) transparent; }
.th-scroller-view img { display: block; width: 100%; height: auto; }
.th-site-side { display: grid; gap: clamp(20px, 3vw, 44px); }

/* Screenshot figure */
.th-shot { margin: 0; }
.th-shot a { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -40px #08365099, 0 0 0 1px var(--th-line); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.th-shot img { display: block; width: 100%; height: auto; }
.th-shot a:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px #083650b3, 0 0 0 1px var(--th-line); }
.th-shot figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--th-muted); max-width: 52ch; }
.th-shot figcaption b { color: var(--th-ink); font-weight: 600; }

/* ── Platform ── */
.th-platform { background: var(--th-light); color: var(--th-ink); }
.th-platform header > p { color: var(--th-muted); }
.th-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px) clamp(20px, 3vw, 44px); margin-top: 60px; }
.th-grid .th-shot-dashboard { grid-column: 1 / -1; }
.th-grid .th-shot-dashboard figcaption { font-size: 17px; }

/* ── Mobile ── */
.th-mobile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5vw; align-items: center; background: #fff; color: var(--th-ink); }
.th-mobile-copy > p { color: var(--th-muted); }
.th-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: start; }
.th-phone { margin: 0; }
.th-phone img { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #0b1f2c; box-shadow: 0 36px 70px -36px #083650b3; }
.th-phone:nth-child(2) { margin-top: 12%; }
.th-phone:nth-child(3) { margin-top: 24%; }

/* ── Decisions ── */
.th-decisions { background: var(--th-light); color: var(--th-ink); }
.th-list { list-style: none; counter-reset: th; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 4vw; max-width: 1200px; }
.th-list li { counter-increment: th; padding: 26px 0; border-top: 1px solid var(--th-line); font-size: 17px; line-height: 1.6; color: var(--th-muted); }
.th-list li::before { content: counter(th, decimal-leading-zero); display: block; font: 600 12px/1 var(--th-brand); letter-spacing: .12em; color: var(--th-cyan-ink); margin-bottom: 14px; }
.th-list b { color: var(--th-ink); font-weight: 600; }
.th-note { max-width: 760px !important; margin-top: 46px !important; padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--th-line); font-size: 16px !important; color: var(--th-muted); }

/* ── CTA ── */
.th-cta { text-align: center; background: linear-gradient(160deg, var(--th-navy), var(--th-navy-2)); }
.th-cta h2 { margin-inline: auto; max-width: 18ch; }
.th-btn { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--th-cyan); color: var(--th-navy); font: 600 15px/1 var(--th-brand); transition: transform .3s, background .3s; }
.th-btn svg { width: 20px; height: 20px; }
.th-btn:hover { background: #3cc3ee; transform: translateY(-2px); }

/* ── Zoom dialog ── */
.th-zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94dvh; }
.th-zoom::backdrop { background: #052a3fe6; backdrop-filter: blur(6px); }
.th-zoom img { display: block; max-width: 96vw; max-height: 94dvh; width: auto; height: auto; border-radius: 10px; }
.th-zoom button { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #ffffff26; color: #fff; font-size: 26px; cursor: pointer; }

/* ── Reveal ── */
.js [data-th-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-th-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .th-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 140px; }
  .th-hero-stage { height: 440px; }
  .th-cols, .th-brand, .th-site-stage, .th-mobile { grid-template-columns: 1fr; }
  .th-grid { grid-template-columns: 1fr; }
  .th-scroller-view { height: 70svh; }
}
@media (max-width: 600px) {
  .th-section { padding: 70px 22px; }
  .th-hero { padding: 120px 22px 60px; }
  .th-hero-stage { height: 360px; }
  .th-hero-laptop { inset: 0 14% 0 0; }
  .th-facts { grid-template-columns: 1fr 1fr; }
  .th-swatches { grid-template-rows: repeat(2, minmax(120px, 1fr)); }
  .th-phones { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -22px; padding-right: 22px; scrollbar-width: none; }
  .th-phone { scroll-snap-align: start; margin-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .th-hero-laptop img, .th-hero-phone { animation: none; }
  .js [data-th-reveal] { opacity: 1; transform: none; transition: none; }
  .th-shot a { transition: none; }
}
