.trueforge-page {
  background:
    radial-gradient(circle at top left, rgba(250, 233, 155, 0.08), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05), transparent 24%), #050505;
}

.trueforge-main {
  margin-top: 0;
}

.trueforge-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}

.trueforge-hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.trueforge-hero .trueforge-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(28px, 5vw, 92px);
  padding-right: 0;
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 2.4vw, 38px);
  align-items: stretch;
}

.trueforge-kicker {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.trueforge-hero-copy {
  max-width: 38rem;
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 112px;
  padding-bottom: 72px;
}

.trueforge-hero-copy h1 {
  max-width: 18ch;
  margin-bottom: 28px;
  font-size: clamp(3rem, 4.2vw, 5.2rem);
  line-height: 1.0;
}

.trueforge-lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.trueforge-download-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 32px;
}

.trueforge-download-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.trueforge-platform-btn {
  flex: 1 1 0;
  min-height: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: default;
  white-space: nowrap;
}

.trueforge-download-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.trueforge-download-note.is-unavailable {
  color: #f0c98f;
}

.trueforge-download-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.trueforge-hero-visual {
  position: relative;
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  justify-self: stretch;
  align-self: stretch;
}

.trueforge-constellation-backdrop,
.trueforge-constellation-stars,
.trueforge-constellation-twinkle,
.trueforge-constellation-particles {
  position: absolute;
  inset: 0;
}

.trueforge-constellation {
  cursor: crosshair;
}

.trueforge-constellation-backdrop {
  overflow: hidden;
  background: #000;
}

/* Stars layer: populated by generateStarfield() in JS with 180 procedural box-shadow dots.
   CSS provides a base dark background; actual stars are injected as box-shadow at runtime. */
.trueforge-constellation-stars {
  opacity: 1;
  background: transparent;
  /* 1px×1px anchor — JS sets box-shadow with all star positions */
  width: 1px;
  height: 1px;
}

.trueforge-constellation-twinkle {
  opacity: 0;
  background-image:
    radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.9) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.86) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.82) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 40% 78%, rgba(255, 255, 255, 0.84) 0 1.6px, transparent 2.6px);
  animation: trueforge-twinkle-drift 200s linear infinite;
}

.trueforge-constellation-particles {
  z-index: 1;
}

.trueforge-constellation-particles canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* In fallback, visually hide the particles canvas but keep display:block so
   it retains real dimensions. display:none = 0×0 canvas = particles.js broken. */
.trueforge-constellation.is-fallback .trueforge-constellation-particles {
  opacity: 0;
  pointer-events: none;
}

.trueforge-constellation.is-enhanced .trueforge-constellation-twinkle {
  opacity: 0.28;
}

.trueforge-constellation[data-constellation-state='static'] {
  cursor: default;
}

.trueforge-band,
.trueforge-grid-section,
.trueforge-story-section,
.trueforge-cta-section {
  padding: 88px 0;
}

.trueforge-band {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.trueforge-band .trueforge-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.trueforge-band-copy h2,
.trueforge-grid-intro h2,
.trueforge-story-copy h2,
.trueforge-cta-panel h2 {
  margin-bottom: 14px;
}

.trueforge-band-list {
  display: grid;
  gap: 18px;
}

.trueforge-band-list p,
.trueforge-grid-intro p,
.trueforge-story-copy p,
.trueforge-cta-panel p,
.trueforge-column p {
  margin: 0;
}

.trueforge-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.trueforge-column {
  padding-top: 18px;
  border-top: 1px solid rgba(250, 233, 155, 0.3);
}

.trueforge-column h3 {
  margin-bottom: 12px;
  color: var(--text-white);
}

.trueforge-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr);
  gap: 42px;
  align-items: start;
}

.trueforge-story-aside {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.trueforge-aside-line {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.trueforge-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(250, 233, 155, 0.35);
}

@keyframes trueforge-twinkle-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -10000px 5000px;
  }
}

@media (max-width: 980px) {
  .trueforge-hero .trueforge-shell,
  .trueforge-band .trueforge-shell,
  .trueforge-story-layout,
  .trueforge-columns,
  .trueforge-cta-panel {
    grid-template-columns: 1fr;
  }

  .trueforge-hero .trueforge-shell {
    width: min(100% - 32px, 1320px);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    gap: 36px;
  }

  .trueforge-hero {
    min-height: auto;
    align-items: flex-start;
  }

  .trueforge-hero-copy {
    padding-top: 132px;
    padding-bottom: 48px;
    display: block;
  }

  .trueforge-hero-copy h1 {
    max-width: 20ch;
    font-size: clamp(2.6rem, 9vw, 4.2rem);
    line-height: 1.05;
  }

  .trueforge-hero-visual {
    min-height: 460px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .trueforge-cta-panel {
    align-items: flex-start;
  }

  .trueforge-download-row {
    flex-wrap: wrap;
  }

  .trueforge-download-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .trueforge-shell {
    width: min(100% - 32px, 1240px);
  }

  .trueforge-band,
  .trueforge-grid-section,
  .trueforge-story-section,
  .trueforge-cta-section {
    padding: 72px 0;
  }

  .trueforge-download-row {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .trueforge-download-btn {
    flex: unset;
    width: 100%;
  }

  .trueforge-platform-btn {
    flex: unset;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trueforge-constellation-stars,
  .trueforge-constellation-twinkle {
    display: none;
  }
}
