:root {
  color-scheme: dark;
  --obsidian: #0f0d0a;
  --coal: #17130e;
  --coal-2: #211a12;
  --ember: #c4832d;
  --gold: #e5bd63;
  --gold-2: #f4d98b;
  --parchment: #edd9ac;
  --parchment-light: #f8edcf;
  --parchment-deep: #c7a66e;
  --ink: #20170d;
  --ink-muted: #5c4527;
  --cream: #fff3cf;
  --ash: #d8c6a2;
  --teal: #5fb3ac;
  --green: #78a85a;
  --red: #a14b44;
  --line-dark: rgba(29, 18, 8, 0.34);
  --line-gold: rgba(229, 189, 99, 0.46);
  --shadow-hard: 0 26px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 42px rgba(70, 40, 12, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #0b0907 0%, #16110d 42%, #0f0d0a 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 238, 190, 0.03), rgba(255, 238, 190, 0.03) 1px, transparent 1px, transparent 5px),
    linear-gradient(180deg, rgba(255, 210, 112, 0.03), transparent 34%, rgba(0, 0, 0, 0.18));
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 800;
  line-height: 0.98;
}

h1 {
  max-width: 640px;
  font-size: 4.6rem;
}

h2 {
  max-width: 720px;
  font-size: 3rem;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  line-height: 1.16;
}

p {
  margin: 0;
}

code {
  color: #ffdf91;
  font-size: 1rem;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--green));
  transition: width 120ms linear;
}

.site-header {
  position: sticky;
  top: 4px;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(229, 189, 99, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 231, 156, 0.04), transparent 28%, rgba(255, 231, 156, 0.03)),
    rgba(9, 8, 7, 0.91);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.brand,
.site-nav,
.header-actions,
.header-github,
.version-badge,
.btn {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--gold-2);
  text-decoration: none;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.54));
}

.site-nav {
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #e7d4a9;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 12px 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: #fff5d6;
  background: rgba(255, 239, 190, 0.08);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  gap: 12px;
  justify-content: flex-end;
}

.header-github,
.version-badge {
  min-height: 40px;
  border: 1px solid rgba(229, 189, 99, 0.36);
  border-radius: 6px;
  color: #f7e9c1;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
}

.header-github {
  gap: 8px;
  padding: 8px 13px;
  background: rgba(255, 239, 190, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-github:hover,
.header-github:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-2);
  background: rgba(229, 189, 99, 0.16);
}

.version-badge {
  padding: 8px 11px;
  color: #cdbd98;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: clip;
  border-bottom: 1px solid rgba(229, 189, 99, 0.34);
}

.hero-bg,
.final-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(11, 9, 7, 0.98) 0%, rgba(11, 9, 7, 0.9) 35%, rgba(11, 9, 7, 0.18) 72%, rgba(11, 9, 7, 0.44) 100%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.1), rgba(11, 9, 7, 0.82)),
    url("./assets/generated/hero-forge-workbench.png");
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: 48px;
  width: min(var(--max), calc(100% - 44px));
  min-height: 720px;
  margin: 0 auto;
  padding: 74px 0 52px;
}

.hero-copy {
  padding-top: 6px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #6d4719;
}

.hero-lede {
  max-width: 540px;
  margin-top: 22px;
  color: #f9ebc5;
  font-size: 1.18rem;
  line-height: 1.48;
}

.hero-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  max-width: 570px;
}

.hero-proofs article {
  min-width: 0;
  text-align: center;
}

.hero-proofs img {
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
  transition: transform 180ms ease;
}

.hero-proofs article:hover img {
  transform: translateY(-3px) rotate(-2deg);
}

.hero-proofs h2 {
  margin: 0 0 4px;
  color: #ffefbf;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.12;
}

.hero-proofs p {
  color: #decda7;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(229, 189, 99, 0.54);
  border-radius: 7px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn-primary {
  color: #1b1207;
  background: linear-gradient(180deg, #f0c66c 0%, #d69b3c 100%);
}

.btn-dark,
.btn-outline {
  color: #fff0c6;
  background: rgba(12, 10, 8, 0.72);
}

.btn-outline {
  margin-top: 20px;
  border-color: rgba(229, 189, 99, 0.4);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: #ffdfa0;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(180deg, #ffd979 0%, #dfa244 100%);
}

.btn-dark:hover,
.btn-dark:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(229, 189, 99, 0.16);
}

.platforms {
  margin-top: 14px;
  color: #d3c09b;
  font-size: 1rem;
}

.app-showcase {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 14px;
  border: 2px solid rgba(229, 189, 99, 0.5);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 232, 166, 0.13), rgba(255, 232, 166, 0.02) 36%, rgba(0, 0, 0, 0.46)),
    #130f0a;
  box-shadow: var(--shadow-hard);
}

.app-showcase::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border: 1px solid rgba(229, 189, 99, 0.28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(229, 189, 99, 0.18), rgba(0, 0, 0, 0.18));
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.desktop-shot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.image-button:hover img,
.image-button:focus-visible img {
  filter: brightness(1.07) contrast(1.04);
}

.image-button:focus-visible,
.dialog-close:focus-visible,
summary:focus-visible,
.btn:focus-visible,
.header-github:focus-visible,
.brand:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.card-composite {
  position: absolute;
  right: 20px;
  bottom: -34px;
  width: min(232px, 34%);
  transform: rotate(1.4deg);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.fantasy-card {
  overflow: hidden;
  border: 2px solid #17110a;
  border-radius: 12px;
  color: #20170d;
  background:
    linear-gradient(180deg, #e8d2a2 0%, #f5e7c7 58%, #d7b87d 100%);
  box-shadow: inset 0 0 0 5px rgba(92, 63, 22, 0.48);
}

.card-title-row,
.card-type {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(41, 28, 12, 0.44);
  border-radius: 7px;
  background: rgba(255, 244, 211, 0.72);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.fantasy-card img {
  width: calc(100% - 16px);
  margin: 0 8px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(41, 28, 12, 0.58);
  object-fit: cover;
}

.card-type {
  display: block;
  margin-top: 7px;
}

.fantasy-card p,
.card-flavor {
  margin: 8px 11px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.26;
}

.card-flavor {
  padding-top: 5px;
  border-top: 1px solid rgba(41, 28, 12, 0.26);
  font-style: italic;
}

.parchment-band {
  position: relative;
  color: var(--ink);
  background:
    repeating-linear-gradient(8deg, rgba(92, 53, 14, 0.055), rgba(92, 53, 14, 0.055) 1px, transparent 1px, transparent 7px),
    linear-gradient(180deg, rgba(255, 249, 224, 0.84), rgba(231, 204, 150, 0.96)),
    var(--parchment);
  border-top: 1px solid rgba(67, 38, 11, 0.24);
  border-bottom: 1px solid rgba(67, 38, 11, 0.24);
}

.parchment-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(73, 42, 13, 0.08), transparent 20%, transparent 80%, rgba(73, 42, 13, 0.08)),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(48, 28, 8, 0.035) 32px);
}

.case-study {
  min-height: 320px;
  overflow: clip;
  padding: 54px 22px 62px;
}

.case-study::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: clamp(28px, 5vw, 52px) max(16px, calc(50% - 460px)) clamp(34px, 5vw, 58px);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 248, 222, 0.94), rgba(248, 232, 190, 0.88) 45%, rgba(226, 193, 130, 0.72) 100%),
    linear-gradient(180deg, rgba(255, 251, 235, 0.9), rgba(226, 191, 123, 0.82));
  border-top: 1px solid rgba(88, 54, 18, 0.28);
  border-bottom: 1px solid rgba(88, 54, 18, 0.32);
  box-shadow:
    0 18px 42px rgba(75, 43, 12, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(80, 49, 16, 0.16);
}

.case-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.88) contrast(0.92);
  mix-blend-mode: multiply;
}

.section-center {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px) clamp(18px, 5vw, 44px);
  text-align: center;
}

.section-center h2 {
  margin: 0 auto;
  color: #1b1108;
  text-shadow: 0 1px 0 rgba(255, 246, 216, 0.72);
}

.section-center p:not(.eyebrow) {
  margin-top: 18px;
  color: #241509;
  font-size: 1.04rem;
  font-weight: 560;
}

.tool-section,
.workflow-section,
.ai-section {
  padding: 56px 22px;
}

.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  gap: 44px;
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.tool-copy h2 {
  margin-bottom: 28px;
}

.tool-list {
  display: grid;
  gap: 19px;
}

.tool-list article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 15px;
  align-items: center;
}

.tool-list img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 6px 9px rgba(61, 37, 10, 0.32));
}

.tool-list p,
.workflow-steps p,
.ai-copy p,
.ai-flow p,
.deep-dive p,
.final-content p,
.site-footer p {
  color: inherit;
  font-size: 1rem;
}

.product-panel {
  margin: 0;
  padding: 9px;
  border: 2px solid rgba(47, 27, 9, 0.54);
  border-radius: 8px;
  background: #18120d;
  box-shadow: var(--shadow-soft);
}

.product-panel img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.workflow-section {
  padding-top: 28px;
}

.workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  width: min(var(--max), 100%);
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.workflow-steps li {
  min-width: 0;
}

.workflow-steps img {
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(61, 37, 10, 0.28));
  transition: transform 180ms ease;
}

.workflow-steps li:hover img {
  transform: translateY(-4px);
}

.workflow-steps span {
  display: block;
  color: #2b1a0a;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 800;
}

.workflow-steps p {
  margin-top: 6px;
  color: #5a3e1c;
  line-height: 1.34;
}

.dark-band {
  color: var(--cream);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 7px),
    linear-gradient(180deg, #0d0b08 0%, #17120e 100%);
}

.roadmap-section {
  padding: 58px 22px;
}

.roadmap-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(620px, 1fr);
  gap: 32px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 30px;
  border: 2px solid rgba(229, 189, 99, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(229, 189, 99, 0.08), transparent 32%),
    #100f0c;
  box-shadow: var(--shadow-hard), inset 0 0 0 1px rgba(255, 232, 166, 0.08);
}

.roadmap-board::before,
.roadmap-board::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(229, 189, 99, 0.66);
  transform: rotate(45deg);
}

.roadmap-board::before {
  top: 11px;
  left: 11px;
}

.roadmap-board::after {
  right: 11px;
  bottom: 11px;
}

.roadmap-intro p {
  margin-top: 12px;
  color: #decda7;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.milestones li {
  position: relative;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(229, 189, 99, 0.4);
}

.milestones li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--coal);
}

.milestones li.done::before {
  background: var(--green);
}

.milestones li.active::before {
  background: var(--ember);
}

.milestone-top {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  color: var(--gold-2);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.08rem;
}

.milestone-top span {
  color: #f7c96a;
}

.milestones ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #dccba7;
}

.milestones li li {
  padding-left: 0;
  border-left: 0;
  font-size: 1rem;
}

.milestones li li::before {
  display: none;
}

.milestones em {
  display: block;
  margin-top: 12px;
  color: #a9d48e;
  font-style: normal;
  font-weight: 800;
}

.milestones li:not(.done) em {
  color: #cbb994;
}

.ai-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(560px, 1fr);
  gap: 40px;
  align-items: center;
}

.ai-copy,
.ai-flow {
  position: relative;
  z-index: 1;
}

.ai-copy {
  width: min(350px, 100%);
  justify-self: end;
}

.ai-copy p {
  margin-top: 14px;
  color: #4d3417;
}

.lock-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #2b1a0a;
  font-weight: 800;
}

.ai-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(760px, 100%);
  padding: 24px;
  border: 1px solid rgba(74, 45, 13, 0.42);
  border-radius: 8px;
  background: rgba(255, 246, 219, 0.38);
}

.ai-flow article {
  position: relative;
  text-align: center;
}

.ai-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -18px;
  width: 28px;
  height: 2px;
  background: #6d4719;
}

.ai-flow img {
  width: 82px;
  height: 82px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(61, 37, 10, 0.28));
}

.ai-flow p {
  margin-top: 6px;
  color: #5a3e1c;
  line-height: 1.35;
}

.deep-dive {
  padding: 56px 22px;
}

.deep-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(300px, 1fr);
  gap: 18px 34px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.deep-grid > div {
  grid-row: span 3;
}

details {
  min-width: 0;
  border: 1px solid rgba(229, 189, 99, 0.3);
  border-radius: 8px;
  background: rgba(255, 239, 190, 0.06);
}

summary {
  min-height: 50px;
  padding: 14px 16px;
  color: var(--gold-2);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

details p {
  padding: 0 16px 16px;
  color: #e1cfaa;
}

.final-cta {
  position: relative;
  overflow: clip;
  min-height: 360px;
  padding: 78px 22px;
  color: var(--cream);
  border-top: 1px solid rgba(229, 189, 99, 0.32);
}

.final-bg {
  background-image:
    linear-gradient(90deg, rgba(11, 9, 7, 0.9), rgba(11, 9, 7, 0.52) 46%, rgba(11, 9, 7, 0.9)),
    linear-gradient(180deg, rgba(11, 9, 7, 0.1), rgba(11, 9, 7, 0.8)),
    url("./assets/generated/final-cta-forge.png");
}

.final-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.final-content h2 {
  margin: 0 auto;
}

.final-content p:not(.eyebrow) {
  margin: 16px auto 0;
  max-width: 660px;
  color: #ead9b5;
}

.final-content .hero-actions {
  justify-content: center;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) 1fr;
  gap: 28px;
  padding: 34px clamp(22px, 5vw, 64px);
  color: #d6c39d;
  background: #090807;
  border-top: 1px solid rgba(229, 189, 99, 0.22);
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 1.28rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer a {
  color: #ead9b5;
  font-size: 1rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff4d2;
  text-decoration: underline;
}

.image-dialog {
  width: min(1120px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid rgba(229, 189, 99, 0.58);
  border-radius: 10px;
  background: #100d0a;
  box-shadow: var(--shadow-hard);
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.image-dialog img {
  max-height: 80vh;
  margin-top: 12px;
  border-radius: 6px;
  object-fit: contain;
}

.dialog-close {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(229, 189, 99, 0.42);
  border-radius: 6px;
  color: #fff0c6;
  background: rgba(255, 239, 190, 0.08);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.reveal-section {
  opacity: 1;
  transform: none;
}

.js-enhanced .reveal-section {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease, transform 520ms ease;
}

.js-enhanced .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero-shell,
  .content-grid,
  .roadmap-board,
  .ai-section,
  .deep-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    gap: 28px;
    padding-top: 42px;
  }

  .app-showcase {
    max-width: 820px;
  }

  .ai-copy {
    width: min(760px, 100%);
    justify-self: start;
  }

  .milestones,
  .ai-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-flow article:nth-child(2)::after {
    display: none;
  }

  .deep-grid > div {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.28rem;
  }

  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    font-size: 1.14rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-github {
    padding: 8px 10px;
  }

  .version-badge {
    display: none;
  }

  .site-nav {
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .site-nav a {
    flex: 0 1 auto;
    padding-inline: 10px;
  }

  .hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    width: min(100% - 28px, var(--max));
    padding: 38px 0 44px;
  }

  .hero-proofs,
  .workflow-steps,
  .milestones,
  .ai-flow,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-proofs {
    max-width: 420px;
    text-align: left;
  }

  .hero-proofs article {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px 12px;
    align-items: center;
    text-align: left;
  }

  .hero-proofs img {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    margin: 0;
  }

  .card-composite {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(245px, 86%);
    margin: 16px auto 0;
    transform: rotate(0deg);
  }

  .case-study,
  .tool-section,
  .workflow-section,
  .ai-section,
  .deep-dive,
  .roadmap-section,
  .final-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-grid {
    gap: 28px;
  }

  .tool-list article {
    grid-template-columns: 54px 1fr;
  }

  .tool-list img {
    width: 54px;
    height: 54px;
  }

  .workflow-steps {
    gap: 26px;
  }

  .roadmap-board {
    padding: 22px;
  }

  .ai-flow {
    padding: 18px;
  }

  .ai-flow article::after {
    display: none;
  }

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

@media (max-width: 430px) {
  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2.02rem;
  }

  .hero-actions,
  .final-content .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .header-github {
    width: 44px;
    justify-content: center;
    gap: 0;
    padding: 8px;
  }

  .header-github svg {
    color: #f7e9c1;
    flex: 0 0 auto;
  }

  .github-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enhanced .reveal-section {
    opacity: 1;
    transform: none;
  }
}
