.cth-product {
  --paper: #100c18;
  --ink: #fcf5ff;
  --muted: #cbbdd9;
  --line: #3b2b49;
  --product-gold: #ffd88a;
  background: radial-gradient(ellipse 70rem 35rem at 62% 0, #21132e, transparent 85%), var(--paper);
  color: var(--ink);
}
.cth-product .topbar { padding-block: 1rem; }
.cth-product .mark { background: #352446; color: var(--product-gold); }
.cth-product .home-link {
  border-color: #694d7f;
  background: #21162d;
  color: #f1e6f6;
}
.cth-product .home-link:hover { background: #352446; }
.cth-product a:focus-visible { outline-color: #d9b8ff; }

.cth-product-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  margin-block: clamp(1.15rem, 3.5vw, 2.75rem);
  padding: clamp(1.2rem, 5vw, 4.25rem);
  overflow: hidden;
  border: 1px solid #523764;
  border-radius: clamp(1rem, 3vw, 2rem);
  background: radial-gradient(ellipse at 82% 48%, #4b2866, transparent 56%), linear-gradient(135deg, #261832, #171020 70%);
}
.cth-product-copy { z-index: 1; }
.cth-product-copy .eyebrow { margin: 0 0 1rem; color: var(--product-gold); }
.cth-product-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: -.075em;
  line-height: .96;
}
.cth-product-copy h1 span { color: var(--product-gold); }
.cth-product-copy .lede { max-width: 43ch; margin-block: 1.4rem 1.6rem; }
.cth-product .cth-primary {
  border-color: var(--product-gold);
  background: var(--product-gold);
  color: #20132f;
}
.cth-product .cth-primary:hover { background: #ffe5ac; box-shadow: 0 0 1.4rem #ffd88a42; }
.cth-secondary {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding-block: .5rem;
  color: #f1e6f6;
  font-size: .93rem;
  font-weight: 700;
}
.cth-secondary:hover { color: var(--product-gold); }

.cth-emblem-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.15;
  overflow: hidden;
}
.cth-emblem-stage::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(#edceff6b 1px, transparent 1px) 0 0 / 17px 17px;
  mask-image: radial-gradient(ellipse, #000 22%, transparent 74%);
  content: "";
}
.cth-emblem-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 27rem);
  height: 100%;
  transform: perspective(720px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}
.cth-orbit {
  position: absolute;
  width: 91%;
  height: 48%;
  border: 1px solid #ffd88a7a;
  border-radius: 50%;
  transform: rotate(-29deg);
}
.cth-orbit-inner {
  width: 82%;
  height: 45%;
  border-color: #cca4f278;
  border-style: dashed;
  transform: rotate(32deg);
}
.cth-emblem {
  z-index: 1;
  display: block;
  width: min(64%, 17rem);
  height: auto;
  border: 1px solid #83559c;
  border-radius: 22%;
  box-shadow: 0 1.35rem 2.5rem #0f0919aa, 0 0 2.8rem #b374eb39;
  transform: rotate(-8deg);
}

.cth-product .cth-demo-section { padding-block: clamp(1.8rem, 4vw, 3.65rem); }
.cth-product .cth-demo {
  padding: clamp(.6rem, 2vw, 1.25rem);
  border: 1px solid #4d365a;
  border-radius: 1.1rem;
  background: #1a1224;
}
.cth-product .faq summary:hover { color: var(--product-gold); }
.cth-product .footer { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .cth-product-copy { animation: cth-enter .66s cubic-bezier(.18,.8,.28,1) backwards; }
  .cth-emblem-stage { animation: cth-enter .81s .09s cubic-bezier(.18,.8,.28,1) backwards; }
  .cth-emblem-scene { transition: transform .26s cubic-bezier(.2,.75,.3,1); }
  .cth-orbit-outer {
    translate: 0 calc(var(--orbit-drift, 0px) * -.28);
    animation: cth-orbit-sweep 1.4s .1s cubic-bezier(.2,.75,.3,1) backwards;
  }
  .cth-orbit-inner { translate: 0 calc(var(--orbit-drift, 0px) * .3); }
  .cth-emblem {
    animation: cth-emblem-enter 1.05s .18s cubic-bezier(.2,.75,.3,1) backwards;
    transition: box-shadow .28s ease, transform .34s ease;
  }
  .cth-emblem-stage:hover .cth-emblem {
    box-shadow: 0 1.35rem 2.5rem #0f0919aa, 0 0 3rem #b374eb69;
    transform: rotate(-3deg) scale(1.035);
  }
  @keyframes cth-enter { from { opacity: 0; transform: translateY(1rem); } }
  @keyframes cth-orbit-sweep { from { opacity: 0; transform: rotate(-72deg); } }
  @keyframes cth-emblem-enter { from { opacity: 0; transform: translateY(12px) rotate(-24deg) scale(.85); } }
}

@media (max-width: 790px) {
  .cth-product-hero { grid-template-columns: 1fr; }
  .cth-emblem-stage { width: min(100%, 23rem); justify-self: center; }
}

.demo-section.cth-demo-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.cth-demo-section > div:first-child p { max-width: 56ch; }

.cth-demo {
  --cth-gold: #ffd88a;
  --cth-lavender: #d4c5e4;
  --cth-green: #8be3ad;
  width: 100%;
  min-width: 0;
  font: 1rem/1.35 Roboto, Arial, sans-serif;
}
.cth-demo button { cursor: pointer; }
.cth-demo button:disabled { cursor: default; }
.cth-demo button:focus-visible, .cth-screen:focus-visible { outline: 2px solid #d9b8ff; outline-offset: -3px; }

.cth-preview-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.cth-preview-controls [role="group"] { display: flex; gap: .25rem; }
.cth-preview-controls button {
  padding: .45rem .65rem;
  border: 1px solid #654875;
  border-radius: .4rem;
  background: #261a36;
  color: #f1e6f6;
  font-size: .82rem;
  font-weight: 700;
}
.cth-preview-controls button[aria-pressed="true"] { background: #49335f; color: var(--cth-gold); }
.cth-preview-controls button:hover { border-color: #b892d6; }

.cth-app {
  width: min(100%, 25rem);
  overflow: hidden;
  border: 1px solid #604575;
  border-radius: 1rem;
  background: #160f25;
  color: #f5f4ff;
  box-shadow: 0 1.25rem 2rem #261a362a;
}
.cth-system-bar { height: .65rem; background: #0e1020; }
.cth-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 9px;
  background: #261a36;
}
.cth-navigation button {
  min-height: 56px;
  padding: 0 2px;
  border: 1px solid #352742;
  border-radius: 10px;
  background: linear-gradient(135deg, #261a36, #1f152c);
  color: #c6b9d6;
  font-size: 14px;
  font-weight: 700;
}
.cth-navigation button[aria-pressed="true"] {
  border-color: #d8ae69;
  background: linear-gradient(135deg, #49335f, #3b294d);
  color: var(--cth-gold);
}
.cth-screen {
  height: 36rem;
  overflow: auto;
  padding: 22px 12px 64px;
  scrollbar-color: #584265 transparent;
  scrollbar-width: thin;
}
.cth-screen[data-settings] { padding-block: 9px 20px; }
.cth-masthead > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
}
.cth-masthead strong { padding: 12px; color: var(--cth-gold); font-size: clamp(17px, 5vw, 24px); }
.cth-language {
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 48px;
  margin-inline-end: 2px;
  border: 1px solid #75518f;
  border-radius: 12px;
  background: linear-gradient(135deg, #332342, #291c36);
  font-size: 17px;
}
.cth-masthead small {
  position: relative;
  display: block;
  padding: 12px 12px 14px;
  color: #b5a5ff;
  font-size: 11px;
}
.cth-masthead small::after {
  position: absolute;
  inset: auto auto 0 12px;
  width: 56px;
  height: 2px;
  background: #d2a96e;
  content: "";
}
.cth-section-label {
  margin: 8px 0 0;
  padding: 12px;
  font: 400 17px/1.3 Roboto, Arial, sans-serif;
  letter-spacing: normal;
}
.cth-metrics, .cth-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cth-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 3px 2px 7px; }
.cth-metrics span {
  align-content: center;
  min-height: 70px;
  border: 1px solid #644b76;
  border-radius: 12px;
  background: linear-gradient(135deg, #292139, #211b2e);
  color: var(--cth-gold);
  text-align: center;
  font-size: 13px;
}
.cth-account-grid { align-items: start; margin-inline: 3px; row-gap: 8px; }
.cth-account {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 190px;
  padding: 6px 8px;
  border: 1px solid #57416b;
  border-radius: 14px;
  background: linear-gradient(135deg, #30233e, #271c32);
  color: #f5f4ff;
  text-align: start;
}
.cth-account.is-urgent { border-color: #c6a266; background: linear-gradient(135deg, #443420, #372a1a); }
.cth-account.is-ready { min-height: 220px; border-color: #4c9b77; background: linear-gradient(135deg, #213a30, #1b2f27); }
.cth-account > span, .cth-account-name { padding-inline: 6px 3px; }
.cth-account-name, .cth-account-upgrade { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cth-account-name { align-content: center; min-height: 34px; font-size: 15px; }
.cth-account-status { align-content: center; min-height: 18px; color: var(--cth-green); font-size: 10px; }
.cth-account-timer { align-content: center; min-height: 36px; color: var(--cth-gold); font-size: 18px; font-weight: 700; }
.cth-account.is-ready .cth-account-timer { color: var(--cth-green); }
.cth-account-finish { align-content: center; min-height: 26px; color: #c9b9df; font-size: 12px; }
.cth-account-upgrade { min-height: 46px; padding-block-start: 3px; color: var(--cth-lavender); font-size: 12px; }
.cth-account .cth-card-checked { margin-block: auto 0; padding: 3px; border-radius: .3rem; background: #2e3432; text-align: center; font-size: 11px; }

.cth-timeline-list, .cth-settings-group ul { margin: 0; padding: 0; list-style: none; }
.cth-timeline-row { display: grid; gap: 5px; margin: 6px 2px; padding: 10px 16px; border-radius: 12px; background: #30243e; font-size: 14px; }
.cth-timeline-row:first-child { background: #46351f; }
.cth-timeline-row > span + span { color: var(--cth-gold); font-size: 13px; }
.cth-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-block: 0 8px; }
.cth-plain-button, .cth-filters button {
  min-height: 44px;
  border: 1px solid #57416b;
  border-radius: 6px;
  background: #30243e;
  color: #d5c9e2;
  font-size: 12px;
}
.cth-filters button[aria-pressed="true"] { color: var(--cth-gold); }
.cth-account-detail { padding: 8px; border-radius: 16px; background: #261c35; }
.cth-back, .cth-equipment { width: 100%; }
.cth-account-detail h3, .cth-account-detail h4, .cth-settings-group h4 {
  margin: 0;
  padding: 12px;
  color: var(--cth-gold);
  font: 700 20px/1.3 Roboto, Arial, sans-serif;
  letter-spacing: normal;
}
.cth-account-detail h4, .cth-settings-group h4 { font-size: 13px; }
.cth-ready { color: var(--cth-green); margin: 0; padding: 0 12px 10px; }
.cth-equipment { display: block; padding: 14px 8px; border: 1px solid #d8ae69; border-radius: 12px; background: #49335f; color: var(--cth-gold); text-align: center; font-size: 14px; }
.cth-collections h3, .cth-collections h4 { margin: 0; padding: 10px; color: var(--cth-gold); font-size: 22px; letter-spacing: normal; line-height: 1.3; }
.cth-collections h4 { color: #dab8ff; font-size: 15px; }
.cth-collections p { max-width: none; margin: 0 0 6px; padding: 6px 10px; color: #bdadce; font-size: 13px; }
.cth-collections .cth-ready { color: var(--cth-green); }
.cth-collections .cth-collection-note { font-size: 11px; }
.cth-collection-tabs { display: flex; gap: 6px; overflow: auto; padding: 2px 3px 5px; }
.cth-collection-tabs button { min-height: 46px; padding: 0 10px; border: 1px solid #654875; border-radius: 13px; background: #30243e; color: #e8dff2; font-size: 12px; }
.cth-collection-tabs button[aria-pressed="true"] { border-color: #d8ae69; background: #49335f; color: var(--cth-gold); }
.cth-collection-item { display: grid; gap: 3px; margin: 5px 3px; padding: 10px 12px 12px; border: 1px solid #654875; border-radius: 13px; background: #30243e; color: #e8dff2; font-size: 15px; }
.cth-collection-item small { color: #bdadce; font-size: 12px; }
.cth-settings-group { margin: 0 2px 9px; padding: 3px 5px 4px; border: 1px solid #654875; border-radius: 12px; background: #2c203b; }
.cth-settings-group h4 { padding: 8px 11px 5px; }
.cth-settings-group li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 2px; min-height: 54px; margin: 2px 0; padding: 3px 7px 3px 8px; border-radius: 8px; background: #352748; }
.cth-settings-group li > span:first-child, .cth-settings-group li > span:last-child { color: var(--cth-gold); text-align: center; }
.cth-settings-group strong { display: block; font-size: 14px; }
.cth-settings-group small { display: block; color: #bdadce; font-size: 11px; }

.cth-widget-preview {
  container-type: inline-size;
  padding: clamp(.4rem, 1vw, .8rem);
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #30243f, #0e1020);
}
.cth-widget {
  padding: 4px;
  border: 1px solid #604575;
  border-radius: 17px;
  background: #21172f;
  color: #fff;
}
.cth-widget-title, .cth-widget-footer {
  border: 1px solid #5b4268;
  border-radius: 10px;
  background: linear-gradient(90deg, #3d2b4b, #2d233a);
}
.cth-widget .cth-widget-title {
  margin: 0;
  padding: .55rem .7rem;
  color: var(--cth-gold);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
}
.cth-widget .cth-widget-note, .cth-widget .cth-widget-hint {
  max-width: none;
  margin: 0;
  padding: .34rem .7rem .1rem;
  color: #d4c5e4;
  font-size: .85rem;
}
.cth-widget-scroll { overflow-x: auto; scrollbar-color: #705881 #21172f; }
.cth-widget-scroll:focus-visible { outline: 2px solid #d9b8ff; outline-offset: -2px; }
.cth-widget-table {
  width: 100%;
  min-width: 54rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 .23rem;
  font-size: clamp(.76rem, 1.2vw, .9rem);
  font-variant-numeric: tabular-nums;
}
.cth-widget-col-name { width: 11%; }
.cth-widget-col-builders { width: 7%; }
.cth-widget-col-helpers { width: 13%; }
.cth-widget-col-upgrade { width: 23%; }
.cth-widget-table tbody :is(th, td) {
  height: 2.45rem;
  padding: .35rem .35rem;
  border-block: 1px solid #5b4268;
  background: #33253f;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.cth-widget-table tbody th {
  padding-inline-start: .52rem;
  border-inline-start: 1px solid #5b4268;
  border-radius: 10px 0 0 10px;
  background: #382843;
  font-weight: 700;
}
.cth-widget-table tbody td:last-child {
  border-inline-end: 1px solid #5b4268;
  border-radius: 0 10px 10px 0;
  background: #2e233a;
}
.cth-widget-builders, .cth-widget-footer { color: var(--cth-green); }
.cth-widget-helpers, .cth-widget-clock, .cth-widget-footer > span:last-child { color: var(--cth-gold); }
.cth-widget-clock { display: inline-block; min-width: 48%; }
.cth-widget-finish { color: #cbb5d9; }
.cth-widget-upgrade.is-boosted :is(.cth-widget-clock, .cth-widget-finish) { color: var(--cth-green); }
.cth-widget-clock.is-next time { padding: .12em .28em; border: 1px solid currentColor; border-radius: 6px; }
.cth-widget .cth-widget-hint { padding-block: .24rem .4rem; font-size: .72rem; }
.cth-widget-footer {
  display: grid;
  grid-template-columns: 1fr 2.3rem;
  align-items: center;
  min-height: 3rem;
  padding: 0 .5rem 0 2.8rem;
  text-align: center;
  font-weight: 700;
}
.cth-widget-footer > span:last-child { font-size: 1.35rem; }
.cth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@container (min-width: 55rem) {
  .cth-widget .cth-widget-hint { display: none; }
}
@container (max-width: 55rem) {
  .cth-widget-table tbody th { position: sticky; left: 0; z-index: 1; }
}

@media (max-width: 360px) {
  .cth-screen { padding-inline: 8px; }
  .cth-account { padding-inline: 4px; }
  .cth-language { width: 44px; }
}
