:root {
  --bg: #090711;
  --band: #100d17;
  --panel: #18131f;
  --panel-2: #21182b;
  --header: #16072e;
  --text: #ffffff;
  --muted: #b8afc1;
  --quiet: #887f91;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.27);
  --magenta: #d349ef;
  --magenta-dark: #b932d0;
  --cyan: #55dbe7;
  --green: #59d698;
  --coral: #ff715f;
  --amber: #ffbd56;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Proxima Nova", "Open Sans", "Noto Sans", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, textarea, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1280px, calc(100% - 56px)); margin-inline: auto; }

.site-header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(5, 1, 16, 0.22);
}
.nav-inner { width: 100%; min-width: 0; display: flex; align-items: center; gap: 18px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 800; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.context-label { flex: 0 1 auto; min-width: 0; max-width: 230px; height: 32px; overflow: hidden; display: flex; align-items: center; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.28); font-size: 14px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.header-search { position: relative; flex: 1 1 500px; width: auto; min-width: 220px; max-width: 500px; margin-left: auto; }
.header-search input { display: block; width: 100%; height: 42px; padding: 0 46px 0 18px; border: 1px solid #514764; border-radius: 999px; outline: none; color: #fff; background: #272039; }
.header-search input::placeholder { color: #aaa1b6; }
.header-search input:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(211, 73, 239, 0.15); }
.header-search :is(i, svg) { position: absolute; top: 50%; right: 15px; width: 19px; height: 19px; transform: translateY(-50%); color: #bbb2c5; pointer-events: none; }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.create-small, .primary, .secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.create-small, .primary { border: 1px solid var(--magenta); color: #fff; background: var(--magenta); box-shadow: 0 9px 24px rgba(211, 73, 239, 0.2); }
.create-small:hover, .primary:hover { border-color: var(--magenta-dark); background: var(--magenta-dark); }
.secondary { border: 1px solid #574b63; color: #fff; background: #21192a; }
.secondary:hover { border-color: #83738f; background: #2a2035; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.icon-btn:hover, .icon-btn:focus-visible { outline: none; background: rgba(255, 255, 255, 0.1); }
.mobile-panel { display: none; padding: 15px 20px; background: #1d0d37; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }

.hero { min-height: 650px; display: flex; align-items: center; padding: 64px 0 76px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr); gap: 62px; align-items: center; }
.eyebrow, .section-kicker { color: var(--cyan); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--magenta); }
h1 { max-width: 650px; margin: 0 0 20px; font-size: 52px; line-height: 1.08; letter-spacing: 0; }
.hero-copy { max-width: 620px; margin: 0 0 25px; color: #c5bdcc; font-size: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #443a50; border-radius: 999px; color: #ded8e4; background: #1b1522; font-size: 12px; }
.facts i { width: 16px; color: var(--green); }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.micro { margin: 12px 0 0; color: var(--quiet); font-size: 12px; }

.workbench { overflow: hidden; border: 1px solid #584965; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.workbench-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; background: #28183a; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.workbench-head strong { font-size: 14px; }
.ready { display: flex; align-items: center; gap: 7px; color: #bcebd7; font-size: 12px; }
.ready::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(89, 214, 152, 0.12); }
.workbench-body { padding: 20px; }
.field-label { display: block; margin-bottom: 8px; color: #c8bfce; font-size: 12px; font-weight: 800; }
.switches { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 13px; padding-bottom: 2px; }
.switches button { min-height: 34px; padding: 0 11px; border: 1px solid #51445d; border-radius: 999px; color: #cfc7d5; background: #282030; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.switches button[aria-pressed="true"] { border-color: var(--magenta); color: #fff; background: var(--magenta); }
.prompt-box { width: 100%; min-height: 145px; resize: none; padding: 13px 14px; border: 1px solid #554861; border-radius: 8px; outline: none; color: #fff; background: #0d0a11; line-height: 1.5; }
.prompt-box:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(211, 73, 239, 0.14); }
.workbench-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.counter { color: var(--quiet); font-size: 11px; }
.open-creator { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border: 0; border-radius: 999px; color: #fff; background: var(--magenta); font-weight: 800; cursor: pointer; }
.open-creator:hover { background: var(--magenta-dark); }
.workbench-note { display: grid; grid-template-columns: 126px 1fr; min-height: 108px; overflow: hidden; margin-top: 16px; border: 1px solid #4b4055; border-radius: 8px; background: #211a29; }
.workbench-note img { width: 100%; height: 100%; object-fit: cover; }
.workbench-note div { padding: 13px; }
.workbench-note b { display: block; margin-bottom: 4px; }
.workbench-note p { margin: 0; color: #aaa1b3; font-size: 12px; }
.workbench-note span { display: inline-block; margin-top: 8px; color: var(--cyan); font-size: 11px; font-weight: 800; }

.showcase-stack { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 10px; min-height: 470px; }
.showcase-stack a { position: relative; overflow: hidden; display: block; border: 1px solid #554861; border-radius: 8px; background: var(--panel); text-decoration: none; }
.showcase-stack img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.showcase-stack a:hover img { transform: scale(1.025); }
.showcase-stack > a { min-height: 470px; }
.stack-grid { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.stack-caption { position: absolute; inset: auto 0 0; padding: 12px 16px; background: rgba(9, 7, 17, 0.92); border-top: 1px solid rgba(255,255,255,0.12); }
.stack-caption b { display: block; font-size: 17px; }
.stack-caption span { color: #c0b8c7; font-size: 11px; }

.band { padding: 74px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: var(--bg); }
.band.alt { background: var(--band); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-kicker { margin-bottom: 8px; }
.section-head h2 { margin: 0 0 11px; font-size: 34px; line-height: 1.2; }
.section-head p { margin: 0; color: #aea6b7; font-size: 16px; }
.definition { max-width: 900px; padding: 22px 0 22px 24px; border-left: 3px solid var(--cyan); }
.definition p { margin: 0; color: #d4cdd9; font-size: 18px; }

.steps, .framework-grid, .format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step, .framework-item, .format-item { min-height: 210px; padding: 22px; border: 1px solid #403649; border-radius: 8px; background: var(--panel); }
.step { border-top: 3px solid var(--magenta); }
.step-num { color: #dc84ef; font-size: 12px; font-weight: 850; }
.item-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 16px 0 13px; border-radius: 8px; color: var(--cyan); background: #25202d; }
.step h3, .framework-item h3, .format-item h3 { margin: 0 0 7px; font-size: 18px; }
.step p, .framework-item p, .format-item p { margin: 0; color: #aaa2b2; font-size: 13px; }
.framework-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.framework-item { min-height: 180px; padding: 18px; }
.framework-item .item-icon { margin-top: 0; }
.framework-item h3 { font-size: 15px; }

.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prompt-card { overflow: hidden; border: 1px solid #44394d; border-radius: 8px; background: var(--panel); }
.prompt-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prompt-card-body { padding: 17px; }
.prompt-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; color: var(--cyan); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.prompt-meta span:last-child { color: #8f8597; }
.prompt-card h3 { margin: 0 0 8px; font-size: 18px; }
.prompt-card p { min-height: 120px; margin: 0; color: #b9b0c0; font-size: 13px; }
.use-prompt { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding: 0 12px; border: 1px solid #574861; border-radius: 6px; color: #fff; background: #241b2d; font-weight: 800; cursor: pointer; }
.use-prompt:hover { border-color: var(--magenta); color: #f3b6ff; }
.disclosure { margin-top: 16px; color: #8e8597; font-size: 12px; }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { overflow: hidden; border: 1px solid #44394d; border-radius: 8px; background: var(--panel); }
.game-card > a { display: block; color: inherit; text-decoration: none; }
.game-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.22s ease; }
.game-card:hover img { transform: scale(1.025); }
.game-card-body { padding: 17px; }
.game-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--cyan); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.game-label i { width: 16px; }
.game-card h3 { margin: 0 0 6px; font-size: 18px; }
.game-card p { min-height: 62px; margin: 0; color: #afa7b7; font-size: 13px; }
.play-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); color: #eda6fa; font-size: 12px; font-weight: 800; }
.play-row i { width: 16px; }

.blueprint { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 38px; align-items: start; }
.blueprint-code { padding: 22px; border: 1px solid #51445c; border-radius: 8px; background: #0c0910; box-shadow: var(--shadow); }
.blueprint-code .field-label { color: var(--cyan); }
.blueprint-code p { margin: 0 0 16px; color: #d1cad6; font-size: 16px; }
.blueprint-code ul { margin: 0; padding: 0; list-style: none; }
.blueprint-code li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.09); color: #aaa2b1; font-size: 12px; }
.blueprint-code li i { width: 16px; flex: 0 0 auto; color: var(--green); }
.mechanic-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #403649; border-radius: 8px; background: #403649; }
.mechanic-block { min-height: 150px; padding: 20px; background: var(--panel); }
.mechanic-block i { color: var(--coral); }
.mechanic-block b { display: block; margin: 13px 0 5px; }
.mechanic-block span { color: #aaa2b2; font-size: 12px; }

.refine-layout, .feature-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 42px; align-items: start; }
.refine-list { border-top: 1px solid #41374a; }
.refine-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid #41374a; }
.refine-row i { color: var(--coral); }
.refine-row b { display: block; margin-bottom: 4px; }
.refine-row span { color: #aaa1b1; font-size: 13px; }
.feature-media { position: relative; overflow: hidden; border: 1px solid #4e4157; border-radius: 8px; background: var(--panel); }
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-media figcaption { padding: 16px 18px; color: #b7afbe; font-size: 13px; }
.feature-media strong { display: block; margin-bottom: 4px; color: #fff; font-size: 18px; }

.faq-list { border-top: 1px solid #44394d; }
.faq-item { border-bottom: 1px solid #44394d; }
.faq-q { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4px; border: 0; color: #fff; background: transparent; text-align: left; font-weight: 800; cursor: pointer; }
.faq-q:hover { color: #efadfb; }
.faq-q i { flex: 0 0 auto; transition: transform 0.2s; }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-a { display: none; max-width: 900px; padding: 0 44px 20px 4px; color: #b3aabc; }
.faq-a.open { display: block; }

.explore-layout { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.7fr); gap: 70px; align-items: start; }
.explore-intro .section-head { margin: 0; }
.explore-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.explore-item { min-height: 104px; display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: start; padding: 20px 4px; border-top: 1px solid #403649; color: #fff; text-decoration: none; }
.explore-item:nth-last-child(-n + 2) { border-bottom: 1px solid #403649; }
.explore-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #493d53; border-radius: 8px; color: var(--cyan); background: #211a28; }
.explore-copy b { display: block; margin: 1px 0 3px; font-size: 15px; }
.explore-copy small { display: block; color: #92899b; font-size: 12px; line-height: 1.4; }
.explore-item > i { width: 17px; margin-top: 11px; color: var(--magenta); }
.explore-item:hover .explore-copy b { color: #efadfb; }
.explore-item:hover .explore-icon { border-color: var(--magenta); }

.final-cta { padding: 48px 0; border-top: 1px solid #50385e; border-bottom: 1px solid #50385e; background: #201329; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-row h2 { margin: 0 0 6px; font-size: 31px; }
.cta-row p { margin: 0; color: #b8afbf; }

.site-footer { padding: 58px 0 0; color: #fff; background: #0b0710; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 38px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 250px; color: #aaa1b2; font-size: 13px; }
.social-preview { margin-top: 20px; }
.social-preview h3 { margin: 0 0 11px; font-size: 12px; }
.social-icons { display: flex; align-items: center; gap: 9px; }
.social-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #4c4054; border-radius: 50%; background: #211829; }
.social-icon img { width: 19px; height: 19px; object-fit: contain; opacity: 0.9; }
.footer-col h3 { margin: 0 0 14px; font-size: 13px; }
.footer-col a, .footer-col span { display: block; padding: 5px 0; color: #aaa1b2; text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: #efadfb; }
.footer-col .future { color: #655d6d; }
.legal { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.legal-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #786f80; font-size: 12px; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { color: #aaa1b2; text-decoration: none; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy-area { max-width: 780px; }
  .framework-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-search { flex-basis: 340px; min-width: 200px; max-width: 340px; }
}

@media (max-width: 980px) {
  .container { width: min(100% - 36px, 1280px); }
  .header-search { display: none; }
  .prompt-grid, .steps, .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refine-layout, .feature-layout, .explore-layout { grid-template-columns: 1fr; gap: 30px; }
  .showcase-stack { min-height: 400px; }
  .showcase-stack > a { min-height: 400px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blueprint { grid-template-columns: 1fr; }
  .mechanic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1280px); }
  .site-header { height: 56px; }
  .nav-inner { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span, .context-label { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .create-small { min-height: 36px; padding-inline: 12px; }
  .hero { min-height: 0; padding: 38px 0 52px; }
  .hero-grid { display: block; }
  .hero-copy-area { margin-bottom: 28px; }
  h1 { font-size: 38px; }
  .hero-copy { font-size: 16px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; }
  .facts li { padding: 7px 9px; font-size: 11px; }
  .workbench-body { padding: 15px; }
  .workbench-note { grid-template-columns: 105px 1fr; }
  .band { padding: 54px 0; }
  .section-head { margin-bottom: 25px; }
  .section-head h2 { font-size: 28px; }
  .prompt-grid, .steps, .framework-grid, .format-grid, .explore-list { grid-template-columns: 1fr; }
  .showcase-stack { grid-template-columns: 1fr; min-height: 0; }
  .showcase-stack > a { min-height: 300px; }
  .stack-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .stack-grid a { min-height: 160px; }
  .stack-caption { padding: 9px 10px; }
  .stack-caption b { font-size: 13px; }
  .game-grid, .mechanic-strip { grid-template-columns: 1fr; }
  .game-card p { min-height: 0; }
  .framework-item, .step, .format-item { min-height: 0; }
  .prompt-card p { min-height: 0; }
  .explore-item:nth-last-child(2) { border-bottom: 0; }
  .cta-row { display: block; }
  .cta-row .primary { margin-top: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-inner { align-items: flex-start; flex-direction: column; }
}
