@font-face {
  font-family: "Campaign Forge Display";
  src: url("/assets/fonts/Cinzel-Bold.woff2?v=nav-font-20260427") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #f7edd8;
  --ink-soft: #d8cdb7;
  --ink-dim: #a99d88;
  --coal: #0b0d0c;
  --blackglass: rgba(8, 10, 10, 0.82);
  --panel: rgba(19, 23, 20, 0.92);
  --panel-2: rgba(26, 31, 27, 0.9);
  --panel-3: #202822;
  --line: rgba(247, 237, 216, 0.16);
  --line-strong: rgba(247, 237, 216, 0.28);
  --green: #61c0a0;
  --green-dark: #143a30;
  --amber: #d8aa55;
  --ember: #c86243;
  --red: #c64945;
  --blue: #77a7cf;
  --paper: #f2e3c7;
  --paper-ink: #21170d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --radius: 8px;
  --display: "Campaign Forge Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 190px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(97, 192, 160, 0.09), transparent 32rem),
    linear-gradient(180deg, #0b0d0c 0%, #10120f 44%, #0b0d0c 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(247, 237, 216, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 237, 216, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(8, 10, 10, 0.98), rgba(12, 15, 13, 0.98)),
    url("assets/brand/background.jpg") center / cover;
  animation: introExit 3s ease forwards;
}

.intro-mark {
  display: grid;
  gap: 18px;
  justify-items: center;
  transform: translateY(-12px);
  animation: introRise 2.4s ease forwards;
}

.intro-mark img {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 0 50px rgba(97, 192, 160, 0.22);
}

.intro-mark span {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 5.5rem);
  letter-spacing: 0;
}

.intro-line {
  width: min(420px, 72vw);
  height: 1px;
  margin-top: -12px;
  overflow: hidden;
  background: rgba(247, 237, 216, 0.14);
}

.intro-line::after {
  display: block;
  width: 40%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, var(--green), var(--amber), transparent);
  animation: forgeScan 1.8s ease-in-out infinite;
}

.intro-gate p {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes introRise {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: translateY(-12px) scale(1); }
}

@keyframes forgeScan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

@keyframes introExit {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.88);
  padding: 12px clamp(18px, 4vw, 48px);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.brand img,
.site-footer img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(97, 192, 160, 0.18);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 850;
}

.site-header nav a,
.site-footer a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.header-download,
.button,
.small-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 237, 216, 0.07);
  color: var(--ink);
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 900;
}

.header-download {
  gap: 8px;
  border-color: rgba(216, 170, 85, 0.36);
  background: var(--paper);
  color: var(--paper-ink);
}

.header-download span {
  color: #7b3e25;
}

.button.primary,
.small-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #64c9a6, #d8aa55);
  color: #08110d;
}

.button.full {
  width: 100%;
}

.button:hover,
.small-btn:hover,
.header-download:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.demo-export-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 7, 0.74);
  padding: 18px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.demo-export-dialog.is-open {
  opacity: 1;
}

.demo-export-dialog__panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26, 31, 27, 0.98), rgba(10, 13, 12, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.demo-export-dialog__panel--notice {
  width: min(440px, 100%);
}

.demo-export-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 237, 216, 0.06);
  color: var(--ink);
  font-weight: 900;
}

.demo-export-dialog__eyebrow {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-export-dialog h2 {
  margin: 0 40px 10px 0;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.15;
}

.demo-export-dialog p {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.demo-export-dialog__form {
  display: grid;
  gap: 10px;
}

.demo-export-dialog__form label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-export-dialog textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 9, 9, 0.92);
  color: var(--ink);
  padding: 12px;
}

.demo-export-dialog__status {
  min-height: 22px;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.demo-export-dialog__status[data-tone="success"] {
  color: var(--green);
}

.demo-export-dialog__status[data-tone="error"] {
  color: #f09a91;
}

.demo-export-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(88vh - 72px);
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) clamp(18px, 4vw, 56px) 28px;
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.96), rgba(8, 10, 10, 0.72), rgba(8, 10, 10, 0.9)),
    url("assets/brand/background.jpg") center / cover;
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  pointer-events: none;
  background: linear-gradient(0deg, var(--coal), transparent);
}

.hero-copy,
.hero-console,
.hero-footer {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 1050px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.6rem, 11vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
}

.hero-kicker {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

.hero-actions,
.download-actions,
.support-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-console {
  border: 1px solid rgba(247, 237, 216, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(26, 31, 27, 0.94), rgba(12, 15, 13, 0.94)),
    linear-gradient(135deg, rgba(97, 192, 160, 0.18), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.console-top,
.window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--ink-dim);
  font-size: 0.82rem;
  font-weight: 850;
}

.console-top span,
.window-top span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--ember);
}

.console-top span:nth-child(2),
.window-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3),
.window-top span:nth-child(3) {
  background: var(--green);
}

.console-top strong,
.window-top strong {
  margin-left: 8px;
  color: var(--ink-soft);
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.console-card,
.console-map,
.stat-card,
.data-card,
.tool-panel,
.support-card,
.support-list article,
.guide-grid article,
.chain-grid article,
.price-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 237, 216, 0.055);
}

.console-card {
  min-height: 132px;
  padding: 16px;
}

.console-card.active {
  border-color: rgba(97, 192, 160, 0.42);
  background: linear-gradient(180deg, rgba(20, 58, 48, 0.76), rgba(247, 237, 216, 0.05));
}

.console-card.wide {
  grid-column: span 2;
}

.console-card small,
.stat-label,
.meta-label {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.console-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.console-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.turn-row {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(247, 237, 216, 0.12);
}

.turn-row span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.turn-row.danger span {
  background: var(--ember);
}

.console-map {
  min-height: 188px;
  padding: 12px;
}

.map-grid {
  position: relative;
  height: 100%;
  min-height: 164px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(247, 237, 216, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 237, 216, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(97, 192, 160, 0.16), rgba(216, 170, 85, 0.14), rgba(198, 73, 69, 0.12));
  background-size: 36px 36px, 36px 36px, auto;
}

.token {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(247, 237, 216, 0.8);
  border-radius: 99px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.26);
}

.token.ally { background: var(--green); }
.token.enemy { background: var(--red); }
.token.one { left: 24%; top: 48%; }
.token.two { left: 38%; top: 60%; }
.token.three { left: 62%; top: 30%; }
.token.four { left: 74%; top: 54%; }

.hero-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  max-width: 1050px;
}

.hero-footer article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.hero-footer strong,
.hero-footer span {
  display: block;
}

.hero-footer strong {
  font-size: 1.55rem;
}

.hero-footer span {
  color: var(--ink-dim);
}

.tool-chain,
.demo-section,
.guides-band,
.about-band,
.support-band,
.download-band {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 4vw, 56px);
}

.section-head {
  max-width: 980px;
  margin-bottom: 34px;
}

.section-head.tight {
  margin-bottom: 20px;
}

.section-head p:not(.eyebrow),
.about-copy p,
.support-card p,
.download-band p,
.guide-grid p,
.chain-grid p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.chain-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chain-grid article,
.guide-grid article {
  min-height: 220px;
  padding: 22px;
}

.chain-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
  font-family: var(--display);
  font-size: 2.6rem;
}

.demo-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 270px;
  gap: 14px;
  align-items: stretch;
  min-height: 760px;
}

.real-demo-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blackglass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.real-demo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.real-demo-toolbar h3 {
  margin: 6px 0 4px;
  font-size: 1.35rem;
}

.real-demo-toolbar p {
  margin: 0;
  color: var(--ink-soft);
}

.real-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.real-demo-frame-wrap {
  position: relative;
  min-height: 820px;
  background: #080a0a;
  overflow: auto;
}

.real-demo-frame-wrap iframe {
  display: block;
  width: 100%;
  min-width: 1180px;
  min-height: 820px;
  height: 82vh;
  border: 0;
  background: #080a0a;
}

.real-demo-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 10, 0.92);
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.demo-rail,
.demo-workspace,
.demo-context {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blackglass);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.demo-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow: hidden;
}

.rail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  color: var(--ink-soft);
  font-weight: 950;
  text-transform: uppercase;
}

.rail-title strong {
  color: var(--amber);
}

.rail-scroll {
  max-height: calc(100vh - 164px);
  overflow: auto;
  padding: 10px;
}

.tool-tab {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 62px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  padding: 9px;
  text-align: left;
}

.tool-tab:hover,
.tool-tab.active {
  border-color: rgba(97, 192, 160, 0.42);
  background: rgba(20, 58, 48, 0.64);
}

.tool-tab img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 7px;
}

.tool-tab strong,
.tool-tab span {
  display: block;
}

.tool-tab strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-tab span {
  color: var(--ink-dim);
  font-size: 0.78rem;
}

.demo-workspace {
  overflow: hidden;
}

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.workspace-topbar h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.category-pill,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(97, 192, 160, 0.32);
  border-radius: 999px;
  background: rgba(20, 58, 48, 0.56);
  color: var(--green);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pill.amber {
  border-color: rgba(216, 170, 85, 0.38);
  background: rgba(216, 170, 85, 0.11);
  color: var(--amber);
}

.pill.red {
  border-color: rgba(198, 73, 69, 0.42);
  background: rgba(198, 73, 69, 0.12);
  color: #ef9c91;
}

.demo-badge {
  min-width: 220px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.demo-badge span,
.demo-badge strong {
  display: block;
}

.demo-badge span {
  color: var(--ink-dim);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-body {
  min-height: 680px;
  padding: 18px;
}

.demo-context {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 18px;
}

.demo-context h3 {
  margin-bottom: 10px;
}

.demo-context ul {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--ink-soft);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.55fr);
  gap: 14px;
}

.tool-layout.three {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.45fr) minmax(240px, 0.8fr);
}

.tool-layout.single {
  grid-template-columns: 1fr;
}

.tool-panel {
  min-width: 0;
  padding: 16px;
}

.tool-panel.scroll {
  max-height: 650px;
  overflow: auto;
}

.tool-panel h4 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.98rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-head h4 {
  margin-bottom: 0;
}

.stack {
  display: grid;
  gap: 12px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.data-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-card {
  padding: 12px;
}

.data-card.selected {
  border-color: rgba(97, 192, 160, 0.56);
  background: rgba(20, 58, 48, 0.62);
}

.data-card h4,
.data-card h5 {
  margin: 0 0 7px;
  color: var(--ink);
}

.data-card p,
.data-card li,
.muted,
.form-hint {
  color: var(--ink-soft);
}

.data-card p {
  margin-bottom: 8px;
}

.data-card button {
  margin-top: 8px;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.detail-title h4 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.stat-row,
.line-row,
.combat-row,
.inventory-row,
.spell-row {
  display: grid;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(247, 237, 216, 0.09);
  padding: 9px 0;
}

.stat-row {
  grid-template-columns: 1fr auto;
}

.combat-row {
  grid-template-columns: minmax(0, 1fr) 70px 70px auto;
}

.inventory-row {
  grid-template-columns: minmax(0, 1.2fr) 80px 80px;
}

.spell-row {
  grid-template-columns: minmax(0, 1fr) 90px 90px;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.ability-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 237, 216, 0.05);
  padding: 8px;
  text-align: center;
}

.ability-grid span {
  display: block;
  color: var(--ink-dim);
  font-size: 0.7rem;
  font-weight: 900;
}

.ability-grid strong {
  display: block;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid.one {
  grid-template-columns: 1fr;
}

label {
  display: grid;
  gap: 5px;
  color: var(--ink-dim);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--ink);
  padding: 10px 11px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select option {
  background: #151a16;
  color: var(--ink);
}

.small-btn,
.icon-btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.icon-btn {
  width: 36px;
  padding: 0;
}

.limit-note,
.gated-note {
  border: 1px solid rgba(216, 170, 85, 0.3);
  border-radius: var(--radius);
  background: rgba(216, 170, 85, 0.1);
  color: #ead4a2;
  padding: 12px;
}

.status-log {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-log li {
  border-left: 3px solid rgba(97, 192, 160, 0.54);
  background: rgba(247, 237, 216, 0.045);
  padding: 8px 10px;
  color: var(--ink-soft);
}

.battle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 237, 216, 0.055);
  padding: 12px;
}

.battle-card.active {
  border-color: rgba(216, 170, 85, 0.62);
  background: rgba(216, 170, 85, 0.12);
}

.hp-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(247, 237, 216, 0.13);
}

.hp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.session-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
  overflow: auto;
}

.session-column {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 10px;
}

.session-column h4 {
  margin-bottom: 10px;
}

.session-card {
  border: 1px solid rgba(247, 237, 216, 0.14);
  border-radius: 7px;
  background: rgba(247, 237, 216, 0.07);
  padding: 10px;
  margin-bottom: 10px;
}

.session-card[draggable="true"] {
  cursor: grab;
}

.session-card textarea {
  min-height: 76px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.map-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(247, 237, 216, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 237, 216, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 34% 34%, rgba(97, 192, 160, 0.28), transparent 18%),
    radial-gradient(circle at 68% 58%, rgba(198, 73, 69, 0.24), transparent 16%),
    linear-gradient(135deg, #1a271f, #352d22 48%, #161b18);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.map-stage.fog::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 42% 54%, transparent 0 21%, rgba(0, 0, 0, 0.56) 33%, rgba(0, 0, 0, 0.84) 100%);
}

.map-label {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(247, 237, 216, 0.2);
  border-radius: 6px;
  background: rgba(8, 10, 10, 0.74);
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.map-label.one { left: 8%; top: 14%; }
.map-label.two { right: 8%; top: 28%; }
.map-label.three { left: 36%; bottom: 12%; }

.map-token {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #07110d;
  font-size: 0.72rem;
  font-weight: 950;
}

.map-token.ally { background: var(--green); }
.map-token.enemy { background: var(--red); color: #fff3eb; }

.json-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: 14px;
}

.video-screen {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(19, 23, 20, 0.94), rgba(8, 10, 10, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(97, 192, 160, 0.16), transparent 36%);
  overflow: hidden;
}

.tour-frame {
  padding: 18px;
  animation: frameIn 0.45s ease;
}

@keyframes frameIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tour-progress {
  display: grid;
  gap: 8px;
}

.tour-progress button {
  justify-content: flex-start;
  width: 100%;
}

.tour-progress button.active {
  border-color: rgba(97, 192, 160, 0.55);
  background: rgba(20, 58, 48, 0.62);
}

.about-band,
.support-band,
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.support-card,
.price-panel {
  padding: 24px;
}

.support-list {
  display: grid;
  gap: 12px;
}

.support-list article {
  padding: 16px;
}

.support-list strong,
.support-list span {
  display: block;
}

.support-list span {
  margin-top: 4px;
  color: var(--ink-soft);
}

.price-panel span {
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
}

.price-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 4rem;
}

.itch-widget {
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.itch-widget iframe {
  max-width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

@media (max-width: 1220px) {
  .demo-app {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .demo-context {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .header-download {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-console {
    transform: none;
  }

  .chain-grid,
  .guide-grid,
  .about-band,
  .support-band,
  .download-band,
  .tool-layout,
  .tool-layout.three,
  .video-stage {
    grid-template-columns: 1fr;
  }

  .demo-app {
    grid-template-columns: 1fr;
  }

  .real-demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .real-demo-actions,
  .real-demo-actions .button {
    width: 100%;
  }

  .demo-rail {
    position: static;
    max-height: none;
  }

  .rail-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
  }
}

@media (max-width: 680px) {
  .hero-footer,
  .data-grid,
  .data-grid.three,
  .form-grid,
  .session-board {
    grid-template-columns: 1fr;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .console-card.wide {
    grid-column: auto;
  }

  .workspace-topbar,
  .panel-head,
  .detail-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-badge {
    min-width: 0;
    border-left: 0;
    padding-left: 0;
  }

  .rail-scroll {
    grid-template-columns: 1fr;
  }

  .combat-row,
  .inventory-row,
  .spell-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.1rem);
  }
}

/* Current homepage polish */
.intro-gate {
  pointer-events: none;
  animation: introExit 1.05s ease forwards;
}

.intro-mark {
  transform: translateY(0);
  animation: introRise 0.85s ease forwards;
}

.intro-mark span {
  display: none;
}

.intro-gate p {
  margin-top: -8px;
}

.site-header {
  min-height: 68px;
  grid-template-columns: minmax(190px, auto) minmax(420px, 1fr) auto;
  gap: 18px;
  border-bottom-color: rgba(216, 170, 85, 0.22);
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.94), rgba(22, 25, 20, 0.91)),
    radial-gradient(circle at 24% 0, rgba(97, 192, 160, 0.18), transparent 28rem);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
}

.brand span,
.site-footer span {
  font-family: var(--display);
  font-size: 1.08rem;
}

.brand img,
.site-footer img {
  border: 1px solid rgba(216, 170, 85, 0.24);
}

.site-header nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(720px, 100%);
  justify-self: center;
  gap: 4px;
  border: 1px solid rgba(247, 237, 216, 0.13);
  border-radius: 999px;
  background: rgba(247, 237, 216, 0.045);
  padding: 4px;
}

.site-header nav a {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f5e8c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 950;
  padding: 8px 16px;
  text-transform: uppercase;
}

.site-header nav a:hover {
  border-color: rgba(216, 170, 85, 0.32);
  background:
    linear-gradient(135deg, rgba(97, 192, 160, 0.22), rgba(216, 170, 85, 0.14));
  color: #ffffff;
}

.header-download {
  min-width: 132px;
  min-height: 46px;
  border: 1px solid rgba(255, 229, 151, 0.66);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #67d0aa 0%, #f0bf5e 54%, #fff1bd 100%);
  box-shadow:
    0 10px 30px rgba(97, 192, 160, 0.2),
    0 0 20px rgba(216, 170, 85, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #1d1006;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 244, 205, 0.68),
    0 0 11px rgba(255, 224, 142, 0.32);
  text-transform: uppercase;
}

.header-download span,
.header-download strong {
  display: block;
  line-height: 1;
}

.header-download span {
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-download strong {
  font-size: 1.02rem;
}

.button {
  border-radius: 999px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button.primary {
  background:
    linear-gradient(135deg, #68d0aa, #f3c867 58%, #fff2d2);
  box-shadow: 0 12px 32px rgba(97, 192, 160, 0.17);
}

.button.ghost {
  border-color: rgba(216, 170, 85, 0.32);
  background: rgba(216, 170, 85, 0.08);
}

.compact-hero {
  min-height: min(760px, calc(100vh - 68px));
  padding: clamp(74px, 7vw, 116px) clamp(18px, 4vw, 56px) 24px;
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.98) 0%, rgba(7, 9, 9, 0.72) 54%, rgba(7, 9, 9, 0.94) 100%),
    radial-gradient(circle at 72% 18%, rgba(216, 170, 85, 0.22), transparent 24rem),
    url("assets/brand/background.jpg") center / cover;
}

.compact-hero .hero-copy {
  max-width: 900px;
}

h1 {
  max-width: 980px;
  margin-bottom: 16px;
  background: none;
  color: var(--ink);
  font-size: clamp(4rem, 9vw, 7.3rem);
  line-height: 0.98;
}

.hero-title {
  color: #fff1cf;
  background: none;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.54));
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(41, 23, 9, 0.82),
    0 5px 12px rgba(0, 0, 0, 0.68),
    0 0 20px rgba(247, 237, 216, 0.16);
  -webkit-text-fill-color: #fff1cf;
  -webkit-text-stroke: 1.1px rgba(33, 18, 7, 0.92);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.hero-kicker {
  max-width: 660px;
  color: #e5d7bb;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.founder-note {
  margin: 14px 0 0;
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 900;
}

.hero-footer {
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 10px;
  margin-top: clamp(28px, 5vw, 56px);
}

.hero-footer article {
  border: 1px solid rgba(247, 237, 216, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 10, 10, 0.42);
  padding: 13px 14px;
  backdrop-filter: blur(10px);
}

.hero-footer strong {
  font-size: 1.18rem;
}

.tools-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(97, 192, 160, 0.08), rgba(216, 170, 85, 0.08)),
    rgba(12, 14, 12, 0.82);
  border-block: 1px solid var(--line);
}

.tools-strip article,
.story-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 237, 216, 0.055);
}

.tools-strip article {
  min-height: 116px;
  padding: 18px;
}

.tools-strip span,
.story-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tools-strip strong {
  display: block;
  max-width: 30rem;
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  line-height: 1.2;
}

.demo-section,
.demo-teaser {
  padding: clamp(42px, 6vw, 80px) clamp(18px, 4vw, 56px);
  scroll-margin-top: 190px;
}

.demo-teaser {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 0, rgba(97, 192, 160, 0.12), transparent 28rem),
    rgba(8, 10, 10, 0.34);
}

.demo-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
  max-width: none;
}

.demo-head h2 {
  max-width: 780px;
}

.demo-head p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.real-demo-shell {
  border-color: rgba(216, 170, 85, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 24, 20, 0.96), rgba(7, 9, 9, 0.98));
}

.real-demo-toolbar {
  min-height: 104px;
  padding: 18px clamp(16px, 2vw, 24px);
  background:
    linear-gradient(90deg, rgba(97, 192, 160, 0.12), transparent 42%),
    rgba(247, 237, 216, 0.035);
}

.real-demo-toolbar h3 {
  font-size: clamp(1.22rem, 2vw, 1.75rem);
}

.real-demo-frame-wrap {
  height: min(980px, calc(100vh - 142px));
  min-height: 860px;
  background: #050606;
  overscroll-behavior: contain;
}

.real-demo-frame-wrap iframe {
  width: 100%;
  min-width: 1360px;
  height: 100%;
  min-height: 920px;
}

.real-demo-loading {
  letter-spacing: 0;
}

.demo-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-teaser-grid article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247, 237, 216, 0.075), rgba(247, 237, 216, 0.035));
  padding: 20px;
}

.demo-teaser-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-teaser-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.2;
}

.demo-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(220px, 0.55fr));
  gap: 14px;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 4vw, 56px);
}

.story-card {
  padding: clamp(18px, 3vw, 28px);
}

.story-card.primary-story {
  background:
    linear-gradient(135deg, rgba(97, 192, 160, 0.13), rgba(216, 170, 85, 0.08)),
    rgba(247, 237, 216, 0.045);
}

.story-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.compact-support {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 56px);
}

.compact-support h2,
.download-band h2 {
  max-width: 760px;
}

.compact-support .support-list {
  align-self: stretch;
}

.compact-support .support-list article {
  min-height: 110px;
}

.download-band {
  padding: clamp(48px, 6vw, 86px) clamp(18px, 4vw, 56px);
}

.price-panel strong {
  font-size: clamp(3rem, 6vw, 4.4rem);
}

.full-demo-page {
  height: 100vh;
  overflow: hidden;
}

.full-demo-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.full-demo-header nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
}

.full-demo-main {
  height: calc(100vh - 68px);
  margin-top: 68px;
}

.full-demo-page .real-demo-shell,
.full-demo-page .real-demo-frame-wrap {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.full-demo-page .real-demo-toolbar {
  min-height: 66px;
}

.full-demo-page .real-demo-frame-wrap {
  height: calc(100vh - 134px);
}

.full-demo-page .real-demo-frame-wrap iframe {
  min-height: calc(100vh - 134px);
}

.home-hero {
  min-height: calc(100vh - 68px);
  place-items: center start;
  padding-bottom: clamp(54px, 7vw, 92px);
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.96) 0%, rgba(7, 9, 9, 0.48) 50%, rgba(7, 9, 9, 0.88) 100%),
    linear-gradient(0deg, rgba(7, 9, 9, 0.72), transparent 34%),
    url("assets/brand/background.jpg") center / cover;
}

.home-hero .hero-copy {
  max-width: 920px;
}

.home-hero .hero-actions {
  margin-top: clamp(18px, 3vw, 34px);
}

.home-overview,
.tool-group,
.about-feature-grid,
.principles-band,
.support-grid-page,
.support-links-section,
.report-template {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.78fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
  max-width: none;
}

.home-section-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.home-flow-grid,
.principles-grid,
.support-grid-page,
.support-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-flow-grid article,
.principles-grid article,
.support-grid-page article,
.support-link-grid a,
.report-template,
.about-feature-grid article,
.tool-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 237, 216, 0.055);
}

.home-flow-grid article {
  overflow: hidden;
  min-height: 330px;
}

.home-flow-grid img {
  width: 100%;
  height: 196px;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(97, 192, 160, 0.11), transparent 62%),
    rgba(5, 7, 7, 0.72);
  padding: 12px;
  filter: saturate(1.06) contrast(1.04);
}

.home-flow-grid span,
.tool-detail-copy span,
.about-feature-grid span,
.support-grid-page span {
  display: block;
  margin: 18px 18px 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-flow-grid strong {
  display: block;
  padding: 0 18px 10px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.22;
}

.home-flow-grid p {
  margin: 0;
  padding: 0 18px 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.home-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.page-hero {
  position: relative;
  min-height: 440px;
  padding: clamp(86px, 10vw, 132px) clamp(18px, 4vw, 56px) clamp(54px, 7vw, 86px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.97), rgba(7, 9, 9, 0.68), rgba(7, 9, 9, 0.92)),
    url("assets/brand/background.jpg") center / cover;
}

.page-title {
  max-width: 980px;
  margin-bottom: 18px;
  color: #f7e5b6;
  font-family: var(--display);
  font-size: clamp(3rem, 7.2vw, 5.7rem);
  line-height: 1.04;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.tools-page-hero {
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.98), rgba(7, 9, 9, 0.68), rgba(7, 9, 9, 0.92)),
    url("assets/tools/battlemaster.jpg") center / cover;
}

.about-page-hero {
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.97), rgba(7, 9, 9, 0.66), rgba(7, 9, 9, 0.92)),
    url("assets/tools/battlemaster-about.jpg") center / cover;
}

.support-page-hero {
  background:
    linear-gradient(90deg, rgba(7, 9, 9, 0.97), rgba(7, 9, 9, 0.68), rgba(7, 9, 9, 0.92)),
    url("assets/tools/quickref.jpg") center / cover;
}

.principles-grid article,
.support-grid-page article,
.support-link-grid a {
  padding: 20px;
}

.principles-grid strong {
  margin: 0 0 10px;
}

.support-links-section {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 8%, rgba(97, 192, 160, 0.11), transparent 28rem),
    rgba(8, 10, 10, 0.3);
}

.support-link-grid a {
  display: block;
  min-height: 136px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.support-link-grid a:hover {
  border-color: rgba(97, 192, 160, 0.42);
  background: rgba(20, 58, 48, 0.36);
  transform: translateY(-1px);
}

.support-link-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.support-link-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.28;
}

.principles-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.28;
}

.tool-group.alt,
.principles-band,
.report-template {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 0, rgba(97, 192, 160, 0.1), transparent 28rem),
    rgba(8, 10, 10, 0.34);
}

.tool-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.tool-detail-card.wide {
  grid-column: 1 / -1;
}

.tool-detail-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247, 237, 216, 0.035), transparent 38%),
    rgba(4, 6, 6, 0.86);
  padding: 0;
  cursor: zoom-in;
  filter: saturate(1.12) contrast(1.08) brightness(1.04);
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 12%, rgba(97, 192, 160, 0.12), transparent 30rem),
    rgba(3, 4, 4, 0.86);
  backdrop-filter: blur(14px);
}

.screenshot-lightbox.open {
  display: grid;
}

.screenshot-lightbox-panel {
  width: min(96vw, 1500px);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 151, 0.26);
  border-radius: 12px;
  background: rgba(5, 7, 7, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.64);
}

.screenshot-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.screenshot-lightbox-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 700;
}

.screenshot-lightbox-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 237, 216, 0.26);
  border-radius: 999px;
  background: rgba(247, 237, 216, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: 800 1.25rem/1 var(--body);
}

.screenshot-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 68px);
  object-fit: contain;
  background: #050707;
}

body.lightbox-open {
  overflow: hidden;
}

.tool-detail-copy {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.tool-detail-copy span,
.about-feature-grid span,
.support-grid-page span {
  margin: 0 0 10px;
}

.tool-detail-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.28rem, 2vw, 1.78rem);
  line-height: 1.08;
}

.tool-detail-copy p,
.about-feature-grid p,
.principles-grid p,
.support-grid-page p,
.report-template pre {
  color: var(--ink-soft);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(247, 237, 216, 0.1);
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  content: "";
}

.about-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(240px, 0.75fr));
  gap: 14px;
}

.about-feature-grid article {
  padding: clamp(22px, 3vw, 30px);
}

.about-feature-grid h2,
.support-grid-page h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.principles-band .section-head {
  margin-bottom: 22px;
}

.report-template {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.report-template pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(247, 237, 216, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  padding: 18px;
  white-space: pre-wrap;
}

.page-download {
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    grid-template-columns: auto 1fr;
  }

  .site-header nav {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
  }

  .header-download {
    width: auto;
    min-width: 132px;
  }

  .tools-strip,
  .story-grid,
  .demo-head,
  .demo-teaser-grid,
  .compact-support,
  .home-section-head,
  .home-flow-grid,
  .tool-detail-grid,
  .about-feature-grid,
  .principles-grid,
  .support-grid-page,
  .support-link-grid,
  .report-template {
    grid-template-columns: 1fr;
  }

  .tool-detail-card {
    grid-template-columns: 1fr;
  }

  .tool-detail-card img {
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compact-hero {
    min-height: auto;
  }

  .real-demo-frame-wrap {
    height: 860px;
  }

  .full-demo-page .site-header {
    position: fixed;
  }

  .full-demo-main {
    height: calc(100vh - 118px);
    margin-top: 118px;
  }

  .full-demo-page .real-demo-frame-wrap {
    height: calc(100vh - 184px);
  }

  .full-demo-page .real-demo-frame-wrap iframe {
    min-height: calc(100vh - 184px);
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(3rem, 15vw, 4.15rem);
  }

  .hero-footer,
  .tools-strip {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 10px;
  }

  .site-header nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    min-height: calc(100vh - 150px);
  }

  .page-title {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .full-demo-main {
    height: calc(100vh - 170px);
    margin-top: 170px;
  }

  .full-demo-page .real-demo-frame-wrap {
    height: calc(100vh - 236px);
  }

  .full-demo-page .real-demo-frame-wrap iframe {
    min-height: calc(100vh - 236px);
  }
}

.full-demo-page .real-demo-shell {
  display: flex;
  flex-direction: column;
}

.full-demo-page .real-demo-frame-wrap {
  order: 1;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.full-demo-page .real-demo-frame-wrap iframe {
  height: 100%;
  min-height: 100%;
}

.full-demo-page .real-demo-toolbar {
  order: 2;
  flex: 0 0 auto;
  min-height: 48px;
  align-items: center;
  flex-direction: row;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 7px 12px;
}

.full-demo-page .real-demo-toolbar > div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.full-demo-page .real-demo-toolbar h3 {
  margin: 0;
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-demo-page .category-pill {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 0.66rem;
  white-space: nowrap;
}

.full-demo-page .real-demo-actions {
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
}

.full-demo-page .real-demo-actions .button {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .full-demo-page .real-demo-toolbar {
    gap: 8px;
  }

  .full-demo-page .real-demo-toolbar h3 {
    display: none;
  }
}
