:root {
  --home-bg: #ff5b1f;
  --home-bg-strong: #ff7a2f;
  --home-surface: rgba(255, 242, 233, 0.28);
  --home-surface-strong: rgba(255, 246, 239, 0.84);
  --home-surface-soft: rgba(255, 244, 237, 0.42);
  --home-line: rgba(41, 23, 14, 0.12);
  --home-line-strong: rgba(18, 10, 6, 0.26);
  --home-text: #1d110b;
  --home-text-soft: rgba(29, 17, 11, 0.72);
  --home-muted: rgba(54, 29, 17, 0.64);
  --home-accent: #111111;
  --home-accent-soft: rgba(17, 17, 17, 0.08);
  --home-shadow: 0 30px 110px rgba(96, 34, 5, 0.16);
  --home-radius-xl: 2rem;
  --home-radius-lg: 1.5rem;
  --home-radius-md: 1.1rem;
  --home-radius-sm: 0.85rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body.hg-entrance {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem clamp(0.9rem, 1.4vw, 1.45rem) 1.8rem;
  overflow-x: hidden;
  color: var(--home-text);
  font-family: "Sora", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 194, 142, 0.34) 0%, rgba(255, 194, 142, 0) 26%),
    radial-gradient(circle at 84% 20%, rgba(255, 134, 72, 0.24) 0%, rgba(255, 134, 72, 0) 24%),
    linear-gradient(180deg, #ff6a24 0%, #ff4f1a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.hg-entrance-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

#entranceAsciiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.98;
}

.hg-entrance-glow,
.hg-entrance-grid {
  position: absolute;
  inset: auto;
}

.hg-entrance-glow-a {
  inset: 8% auto auto 4%;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 191, 0.24) 0%, rgba(255, 219, 191, 0) 72%);
  filter: blur(18px);
}

.hg-entrance-glow-b {
  inset: auto 0 2% auto;
  width: 23rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 168, 0.2) 0%, rgba(255, 206, 168, 0) 70%);
  filter: blur(24px);
}

.hg-entrance-grid-a,
.hg-entrance-grid-b {
  background-image: radial-gradient(circle, rgba(255, 237, 226, 0.28) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.18;
}

.hg-entrance-grid-a {
  inset: 18% auto auto -4%;
  width: 28rem;
  height: 54rem;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.hg-entrance-grid-b {
  inset: 16% -2% auto auto;
  width: 24rem;
  height: 36rem;
  mask-image: radial-gradient(circle at 30% 46%, black 0%, black 44%, transparent 94%);
  -webkit-mask-image: radial-gradient(circle at 30% 46%, black 0%, black 44%, transparent 94%);
}

.hg-sitebar,
.hg-landing,
.hg-resources-shell {
  position: relative;
  z-index: 1;
}

.hg-sitebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  max-width: 110rem;
  margin: 0 auto;
}

.hg-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.72rem;
  min-width: 0;
}

.hg-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.95rem;
  color: rgba(255, 239, 230, 0.82);
  filter: drop-shadow(0 8px 18px rgba(30, 102, 255, 0.2));
}

.hg-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hg-brand-wordmark {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.95rem, 1.25vw + 1.1rem, 2.95rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hg-brand-ascii {
  flex-basis: 100%;
  padding-inline-start: calc(2.5rem + 0.72rem);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home-muted);
  white-space: nowrap;
}

.hg-primary-nav {
  display: flex;
  justify-content: center;
  gap: 0.18rem;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0.24rem;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.88);
  box-shadow: 0 18px 36px rgba(52, 18, 2, 0.2);
  backdrop-filter: blur(16px);
}

.hg-nav-pill {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 240, 230, 0.82);
  padding: 0.82rem 1.02rem;
  border-radius: 0.92rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.hg-nav-pill::after {
  content: "";
  position: absolute;
  inset: auto 0.94rem 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 190, 152, 0.92);
  opacity: 0;
  transform: scaleX(0.32);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hg-nav-pill:hover,
.hg-nav-pill:focus-visible,
.hg-nav-pill.is-active {
  color: #ffffff;
  outline: none;
}

.hg-nav-pill.is-active::after,
.hg-nav-pill:hover::after,
.hg-nav-pill:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hg-sitebar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
}

.hg-sitebar-actions::before {
  content: "";
  width: 1px;
  height: 1.85rem;
  background: rgba(255, 234, 221, 0.28);
}

.hg-icon-button,
.hg-launch-button,
.hg-outline-button,
.hg-card-link {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.hg-icon-button {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff4ed;
  cursor: pointer;
  font-size: 0.92rem;
}

.hg-icon-button:hover,
.hg-icon-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 32px rgba(62, 18, 2, 0.18);
  outline: none;
}

.hg-launch-button,
.hg-outline-button,
.hg-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.hg-launch-button {
  padding: 0.82rem 1.16rem;
  background: linear-gradient(135deg, #111111 0%, #1c1c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.56);
  box-shadow: 0 14px 28px rgba(62, 18, 2, 0.18);
  font-size: 0.92rem;
}

.hg-launch-button:hover,
.hg-launch-button:focus-visible,
.hg-outline-button:hover,
.hg-outline-button:focus-visible,
.hg-card-link:hover,
.hg-card-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hg-launch-button-secondary {
  padding-inline: 1.2rem;
}

.hg-outline-button {
  padding: 0.86rem 1.28rem;
  border: 1.5px solid rgba(255, 239, 230, 0.46);
  background: rgba(255, 247, 243, 0.16);
  color: #fff7f2;
}

.hg-outline-button-link {
  text-decoration: none;
}

.hg-landing {
  max-width: 110rem;
  margin: 0 auto;
  padding-top: clamp(1.6rem, 4vw, 3.2rem);
}

.hg-view {
  min-height: calc(100vh - 7rem);
}

.hg-view[hidden] {
  display: none !important;
}

.hg-view-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-top: clamp(1.4rem, 4vw, 3.8rem);
  padding-bottom: clamp(1rem, 4vw, 2.4rem);
}

.hg-home-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(34rem, calc(100vh - 11rem));
}

.hg-home-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.78rem;
  text-align: center;
  max-width: 40rem;
}

.hg-home-copy::before {
  content: "+ + + +";
  position: absolute;
  inset: -1.5rem auto auto calc(100% + 1rem);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(30, 102, 255, 0.22);
  white-space: nowrap;
}

.hg-home-kicker,
.hg-prep-kicker {
  margin: 0;
  color: var(--home-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
}

.hg-home-title,
.hg-resources-copy h2,
.hg-prep-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hg-home-title {
  font-size: clamp(4.8rem, 7.2vw, 6.85rem);
}

.hg-home-title-accent {
  color: var(--home-accent);
  font-style: italic;
}

.hg-home-subtitle {
  margin: 0;
  font-size: clamp(1.02rem, 1vw + 0.54rem, 1.55rem);
  color: rgba(255, 245, 238, 0.94);
}

.hg-home-lede {
  margin: 0;
  max-width: 31rem;
  font-size: clamp(0.96rem, 0.75vw + 0.66rem, 1.34rem);
  color: rgba(255, 240, 231, 0.88);
  line-height: 1.55;
}

.hg-home-ascii-block {
  margin: -0.05rem 0 0;
  padding: 0.62rem 0.92rem 0.7rem;
  border: 1px solid rgba(255, 238, 227, 0.2);
  border-radius: 1rem;
  background: rgba(255, 247, 243, 0.12);
  box-shadow: 0 10px 28px rgba(62, 18, 2, 0.1);
  color: rgba(255, 238, 227, 0.88);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: pre-wrap;
}

.hg-home-divider {
  display: block;
  width: 4.3rem;
  height: 2px;
  margin: 0.25rem auto 0.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 238, 227, 0) 0%, rgba(255, 238, 227, 0.84) 50%, rgba(255, 238, 227, 0) 100%);
}

.hg-home-support {
  margin: 0;
  font-size: clamp(0.98rem, 0.84vw + 0.54rem, 1.3rem);
  color: rgba(255, 247, 242, 0.94);
  line-height: 1.4;
}

.hg-home-cta,
.hg-prep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.hg-home-stack {
  display: grid;
  gap: 1rem;
  width: min(100%, 64rem);
  margin-top: 1.15rem;
}

.hg-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
}

.hg-home-stat {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 238, 227, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 247, 243, 0.12);
  backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: 0 10px 28px rgba(62, 18, 2, 0.08);
}

.hg-home-stat span,
.hg-home-routebar span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 238, 227, 0.7);
}

.hg-home-stat strong {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.hg-home-stat p {
  margin: 0;
  color: rgba(255, 236, 225, 0.84);
  line-height: 1.55;
  font-size: 0.9rem;
}

.hg-home-routebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 238, 227, 0.18);
  background: rgba(18, 11, 7, 0.34);
  box-shadow: 0 10px 28px rgba(62, 18, 2, 0.12);
}

.hg-home-routebar code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #fff8f3;
}

.hg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  width: 100%;
}

.hg-surface-card,
.hg-prep-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.45rem 1.45rem 1.35rem;
  border: 1px solid rgba(255, 233, 221, 0.16);
  border-radius: var(--home-radius-lg);
  background: var(--home-surface);
  box-shadow: 0 16px 42px rgba(109, 135, 204, 0.08);
  backdrop-filter: blur(20px);
}

.hg-surface-card::before,
.hg-prep-card::before,
.hg-resources-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 102, 255, 0.06) 0%, rgba(30, 102, 255, 0) 32%);
}

.hg-surface-card:hover,
.hg-surface-card:focus-within,
.hg-prep-card:hover,
.hg-prep-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(30, 102, 255, 0.2);
  box-shadow: 0 24px 54px rgba(95, 131, 218, 0.16);
}

.hg-surface-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.hg-surface-card-head h2 {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
  font-weight: 600;
}

.hg-surface-card-head p,
.hg-surface-preview p,
.hg-prep-card p,
.hg-prep-copy p,
.hg-resources-copy p,
.hg-resource-label em {
  margin: 0;
  color: var(--home-text-soft);
  line-height: 1.8;
}

.hg-surface-icon {
  display: inline-grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  color: var(--home-accent);
  background: rgba(30, 102, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(30, 102, 255, 0.14);
}

.hg-surface-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hg-surface-preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 10rem;
  padding: 1rem;
  border-radius: var(--home-radius-md);
  border: 1px solid rgba(33, 79, 184, 0.08);
  background: rgba(247, 250, 255, 0.82);
}

.hg-preview-meta,
.hg-preview-prompt,
.hg-preview-agent,
.hg-marketplace-row,
.hg-binary-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hg-preview-meta,
.hg-preview-agent {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.24rem;
}

.hg-preview-label,
.hg-preview-prompt span,
.hg-prep-card span,
.hg-resource-label em,
.hg-marketplace-row span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hg-preview-meta strong,
.hg-preview-agent strong,
.hg-preview-prompt strong,
.hg-prep-card strong,
.hg-marketplace-row strong {
  font-size: 1rem;
  font-weight: 600;
}

.hg-mini-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 0.3rem;
  min-height: 4.5rem;
}

.hg-mini-chart span {
  display: block;
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(30, 102, 255, 0.18) 0%, rgba(30, 102, 255, 0.62) 100%);
}

.hg-mini-chart span:nth-child(1) { height: 26%; }
.hg-mini-chart span:nth-child(2) { height: 18%; }
.hg-mini-chart span:nth-child(3) { height: 32%; }
.hg-mini-chart span:nth-child(4) { height: 22%; }
.hg-mini-chart span:nth-child(5) { height: 44%; }
.hg-mini-chart span:nth-child(6) { height: 38%; }
.hg-mini-chart span:nth-child(7) { height: 61%; }
.hg-mini-chart span:nth-child(8) { height: 48%; }
.hg-mini-chart span:nth-child(9) { height: 72%; }
.hg-mini-chart span:nth-child(10) { height: 66%; }

.hg-binary-preview {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(33, 79, 184, 0.08);
  border-bottom: 1px solid rgba(33, 79, 184, 0.08);
}

.hg-binary-preview span {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.hg-binary-preview strong {
  color: var(--home-accent);
}

.hg-marketplace-row {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(33, 79, 184, 0.08);
}

.hg-card-link {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-accent);
  font-weight: 600;
}

.hg-prep-view {
  display: grid;
  place-items: center;
}

.hg-prep-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid rgba(33, 79, 184, 0.1);
  border-radius: calc(var(--home-radius-xl) + 0.3rem);
  background: rgba(255, 246, 239, 0.88);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(20px);
  position: relative;
}

.hg-prep-shell::after {
  position: absolute;
  inset: auto 1.4rem 1rem auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(59, 31, 18, 0.38);
  pointer-events: none;
}

.hg-prep-view[data-home-view="trade"] .hg-prep-shell::after {
  content: "[ route // trade ] < execute > < guardrail >";
}

.hg-prep-view[data-home-view="predict"] .hg-prep-shell::after {
  content: "[ route // predict ] < discover > < decide >";
}

.hg-prep-view[data-home-view="portfolio"] .hg-prep-shell::after {
  content: "[ route // portfolio ] < ledger > < evidence >";
}

.hg-prep-copy h2 {
  font-size: clamp(3rem, 4vw, 4.4rem);
}

.hg-prep-copy p {
  margin-top: 1rem;
  max-width: 34rem;
}

.hg-prep-grid {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.hg-prep-card {
  min-height: 9rem;
  justify-content: center;
}

.hg-resources-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(23, 12, 7, 0.24);
  backdrop-filter: blur(4px);
}

.hg-resources-shell[hidden] {
  display: none !important;
}

.hg-resources-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.1fr);
  width: min(100%, 52rem);
  min-height: min(44rem, 74vh);
  border: 1px solid rgba(27, 15, 8, 0.16);
  border-radius: calc(var(--home-radius-xl) + 0.35rem);
  background: rgba(255, 248, 244, 0.92);
  box-shadow: 0 36px 100px rgba(78, 27, 4, 0.18);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.hg-resources-modal::after {
  content: "[ docs ] [ litepaper ] [ brand ] [ faq ]";
  position: absolute;
  inset: auto 1.6rem 1.1rem auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(67, 32, 17, 0.34);
  pointer-events: none;
}

.hg-resources-copy,
.hg-resources-list {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.hg-resources-copy {
  border-right: 1px solid rgba(33, 79, 184, 0.1);
}

.hg-resources-copy h2 {
  margin-top: 0.9rem;
  font-size: clamp(3.2rem, 4vw, 4.4rem);
}

.hg-resources-copy p {
  margin-top: 1.25rem;
  max-width: 14rem;
}

.hg-resource-watermark {
  position: absolute;
  inset: auto auto -1.5rem -0.3rem;
  width: 16rem;
  color: rgba(30, 102, 255, 0.14);
  filter: drop-shadow(0 18px 40px rgba(30, 102, 255, 0.12));
}

.hg-resource-watermark svg {
  width: 100%;
  height: auto;
}

.hg-resources-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.hg-resource-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  padding: 1rem 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(33, 79, 184, 0.08);
  background: transparent;
  text-align: left;
  color: var(--home-text);
  cursor: pointer;
}

.hg-resource-row:last-child {
  border-bottom: 0;
}

.hg-resource-row:hover,
.hg-resource-row:focus-visible {
  transform: translateX(4px);
  outline: none;
}

.hg-resource-row.is-disabled {
  cursor: not-allowed;
  color: var(--home-muted);
}

.hg-resource-row.is-disabled:hover,
.hg-resource-row.is-disabled:focus-visible {
  transform: none;
}

.hg-resource-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(33, 79, 184, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--home-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

.hg-resource-label {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.hg-resource-label strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.hg-resource-label em {
  color: var(--home-text-soft);
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.9rem;
}

.hg-resource-arrow,
.hg-resource-tag {
  color: var(--home-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.hg-resource-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 102, 255, 0.1);
}

body[data-overlay="open"] .hg-primary-nav,
body[data-overlay="open"] .hg-launch-button,
body[data-overlay="open"] .hg-icon-button {
  box-shadow: 0 12px 34px rgba(95, 131, 218, 0.14);
}

@media (max-width: 1100px) {
  .hg-sitebar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hg-brand {
    justify-self: start;
  }

  .hg-primary-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hg-sitebar-actions {
    justify-self: end;
  }

  .hg-prep-shell {
    grid-template-columns: 1fr;
  }

  .hg-view-home {
    justify-content: flex-start;
  }

  .hg-home-stage {
    min-height: 28rem;
  }

  .hg-resources-modal {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hg-resources-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(33, 79, 184, 0.1);
    min-height: 16rem;
  }

  .hg-home-stats {
    grid-template-columns: 1fr;
  }

  .hg-home-routebar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 1.2rem;
  }
}

@media (max-width: 720px) {
  body.hg-entrance {
    padding-inline: 0.85rem;
  }

  .hg-sitebar {
    gap: 0.9rem;
  }

  .hg-brand-wordmark {
    font-size: 2rem;
  }

  .hg-primary-nav {
    gap: 0.1rem;
    padding-inline: 0.18rem;
  }

  .hg-nav-pill {
    padding: 0.74rem 0.88rem;
    font-size: 0.82rem;
  }

  .hg-sitebar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hg-sitebar-actions::before {
    display: none;
  }

  .hg-launch-button,
  .hg-outline-button {
    width: 100%;
  }

  .hg-home-kicker,
  .hg-prep-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .hg-home-copy,
  .hg-prep-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hg-home-copy {
    width: 100%;
  }

  .hg-home-copy::before {
    display: none;
  }

  .hg-home-stage {
    place-items: start;
    min-height: auto;
  }

  .hg-home-title {
    font-size: clamp(3.4rem, 16vw, 5.1rem);
  }

  .hg-home-subtitle {
    font-size: 1rem;
  }

  .hg-home-lede {
    max-width: 20rem;
    line-height: 1.6;
  }

  .hg-brand-ascii {
    padding-inline-start: 0;
  }

  .hg-home-ascii-block {
    width: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .hg-home-cta,
  .hg-prep-actions {
    width: 100%;
    justify-content: stretch;
  }

  .hg-prep-shell,
  .hg-resources-copy,
  .hg-resources-list {
    padding-inline: 1rem;
  }

  .hg-prep-shell::after,
  .hg-resources-modal::after {
    display: none;
  }

  .hg-resource-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hg-resource-arrow,
  .hg-resource-tag {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Light brand palette for the public entrance */

:root {
  --home-bg: #f6f9ff;
  --home-bg-strong: #ffffff;
  --home-surface: rgba(255, 255, 255, 0.72);
  --home-surface-strong: rgba(255, 255, 255, 0.9);
  --home-surface-soft: rgba(244, 248, 255, 0.82);
  --home-line: rgba(33, 79, 184, 0.12);
  --home-line-strong: rgba(30, 102, 255, 0.22);
  --home-text: #1e2f67;
  --home-text-soft: rgba(30, 47, 103, 0.74);
  --home-muted: rgba(56, 79, 139, 0.68);
  --home-accent: #1e66ff;
  --home-accent-soft: rgba(30, 102, 255, 0.08);
  --home-shadow: 0 24px 64px rgba(95, 131, 218, 0.14);
}

body.hg-entrance {
  background:
    radial-gradient(circle at 16% 14%, rgba(30, 102, 255, 0.14) 0%, rgba(30, 102, 255, 0) 26%),
    radial-gradient(circle at 84% 20%, rgba(52, 117, 255, 0.12) 0%, rgba(52, 117, 255, 0) 24%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.hg-entrance-glow-a {
  background: radial-gradient(circle, rgba(30, 102, 255, 0.18) 0%, rgba(30, 102, 255, 0) 72%);
}

.hg-entrance-glow-b {
  background: radial-gradient(circle, rgba(30, 102, 255, 0.16) 0%, rgba(30, 102, 255, 0) 70%);
}

.hg-entrance-grid-a,
.hg-entrance-grid-b {
  background-image: radial-gradient(circle, rgba(30, 102, 255, 0.16) 0.7px, transparent 0.7px);
}

.hg-brand-mark {
  color: rgba(30, 102, 255, 0.82);
}

.hg-primary-nav {
  border-color: rgba(33, 79, 184, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 36px rgba(95, 131, 218, 0.1);
}

.hg-nav-pill {
  color: var(--home-muted);
}

.hg-nav-pill::after {
  background: rgba(30, 102, 255, 0.92);
}

.hg-nav-pill:hover,
.hg-nav-pill:focus-visible,
.hg-nav-pill.is-active {
  color: var(--home-text);
  background: rgba(30, 102, 255, 0.06);
}

.hg-sitebar-actions::before {
  background: rgba(33, 79, 184, 0.18);
}

.hg-icon-button {
  background: rgba(255, 255, 255, 0.68);
  color: var(--home-text);
  box-shadow: 0 10px 24px rgba(122, 146, 214, 0.08);
}

.hg-icon-button:hover,
.hg-icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(95, 131, 218, 0.14);
}

.hg-launch-button {
  background: linear-gradient(135deg, #1e66ff 0%, #3a84ff 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(30, 102, 255, 0.18);
}

.hg-outline-button {
  border-color: rgba(30, 102, 255, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: var(--home-accent);
}

.hg-home-subtitle,
.hg-home-support {
  color: var(--home-text);
}

.hg-home-lede {
  color: var(--home-text-soft);
}

.hg-home-ascii-block {
  border-color: rgba(33, 79, 184, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(95, 131, 218, 0.1);
  color: var(--home-muted);
}

.hg-home-divider {
  background: linear-gradient(90deg, rgba(30, 102, 255, 0) 0%, rgba(30, 102, 255, 0.84) 50%, rgba(30, 102, 255, 0) 100%);
}

.hg-home-stat {
  border-color: rgba(33, 79, 184, 0.12);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(95, 131, 218, 0.08);
}

.hg-home-stat span,
.hg-home-routebar span {
  color: var(--home-muted);
}

.hg-home-stat strong,
.hg-home-routebar code {
  color: var(--home-text);
}

.hg-home-stat p {
  color: var(--home-text-soft);
}

.hg-home-routebar {
  border-color: rgba(33, 79, 184, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(95, 131, 218, 0.1);
}

.hg-prep-shell {
  border-color: rgba(33, 79, 184, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 246, 255, 0.92) 100%);
}

.hg-prep-shell::after,
.hg-resources-modal::after {
  color: rgba(56, 79, 139, 0.42);
}

.hg-resources-shell {
  background: rgba(30, 47, 103, 0.12);
}

.hg-resources-modal {
  border-color: rgba(33, 79, 184, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 36px 100px rgba(95, 131, 218, 0.18);
}
