:root {
  color-scheme: light;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-soft: #fff8f1;
  --ink: #191817;
  --muted: #68615b;
  --line: #ded8d1;
  --brand: #f5792a;
  --brand-dark: #be5018;
  --blue: #1773d1;
  --green: #1e8f67;
  --charcoal: #25211e;
  --shadow: 0 18px 48px rgba(49, 41, 34, .12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::selection {
  background: rgba(245, 121, 42, .24);
}

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

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(27, 24, 22, .76);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.footer-links,
.install-actions,
.prompt-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--brand);
}

.brand-mark svg,
.button-icon svg,
.arrow svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nav-links {
  gap: 6px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}

.nav-links a,
.header-download {
  border-radius: 999px;
  padding: 9px 13px;
}

.nav-links a:hover,
.header-download:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.header-download {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #211c18;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, .9) 0%, rgba(20, 17, 15, .64) 46%, rgba(20, 17, 15, .18) 100%),
    linear-gradient(0deg, rgba(20, 17, 15, .72) 0%, rgba(20, 17, 15, .08) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 58px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(48px, 8vw, 94px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 7px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 780;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 34px rgba(245, 121, 42, .28);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 40px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.hero-facts div {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, .18);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.intro-band {
  background: var(--charcoal);
  color: #fff;
  padding: 42px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.intro-grid > *,
.split > *,
.reference-layout > *,
.warning-layout > *,
.tab-panel,
.prompt-card,
.prompt-table-wrap,
.showcase,
.mini-prompt {
  min-width: 0;
}

.intro-grid h2,
.section-heading h2,
.copy h2,
.warning-layout h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 34px;
}

.section-heading p:not(.section-kicker),
.copy p {
  color: var(--muted);
  font-size: 17px;
}

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

.flow-step,
.steps-panel,
.config-tabs,
.prompt-card,
.prompt-table-wrap,
.showcase,
.mini-prompt,
.warning-box,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.flow-step {
  padding: 28px;
}

.step-number {
  color: var(--brand);
  font-weight: 850;
  font-size: 13px;
}

.flow-step h3,
.showcase h3,
.mini-prompt h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.flow-step p,
.showcase p,
.mini-prompt p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  background: #fff;
}

.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.copy {
  max-width: 560px;
}

.install-actions,
.footer-links,
.prompt-head {
  gap: 14px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--blue);
  font-weight: 760;
}

.drag-button {
  cursor: grab;
}

.steps-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 241, .8), rgba(255, 255, 255, .96)),
    var(--surface);
}

.setup-list {
  counter-reset: setup;
  list-style: none;
  margin: 0;
  padding: 0;
}

.setup-list li {
  position: relative;
  padding: 20px 20px 20px 66px;
  border-bottom: 1px solid var(--line);
}

.setup-list li:last-child {
  border-bottom: 0;
}

.setup-list li::before {
  counter-increment: setup;
  content: counter(setup);
  position: absolute;
  left: 18px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}

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

.setup-list span {
  margin-top: 4px;
  color: var(--muted);
}

.config-section {
  background: #f0f4f6;
}

.config-tabs {
  overflow: hidden;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f9fafb;
}

.tab-button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 58px;
  padding: 14px;
  font-weight: 800;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--brand);
}

.tab-panel {
  padding: 28px;
}

.tab-panel p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--muted);
}

pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #2f3338;
  border-radius: var(--radius);
  background: #171a1f;
  color: #ecf0f4;
  padding: 18px;
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.copy-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 780;
}

.copy-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.tab-panel .copy-button {
  margin-top: 14px;
}

.image-section {
  background: #fff;
}

.reference-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.reference-layout h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.reference-layout p {
  color: var(--muted);
  font-size: 17px;
}

.prompt-card {
  margin-top: 26px;
  overflow: hidden;
}

.prompt-head {
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.prompt-card pre {
  border: 0;
  border-radius: 0;
}

.reference-visual {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
}

.upload-pane,
.blender-pane {
  position: relative;
  min-height: 330px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.upload-pane {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background:
    linear-gradient(155deg, rgba(23, 115, 209, .12), rgba(245, 121, 42, .08)),
    #fff;
}

.upload-pane span {
  position: relative;
  z-index: 2;
  font-weight: 850;
}

.image-lines {
  position: absolute;
  inset: 28px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.image-lines i {
  display: block;
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(245, 121, 42, .92), rgba(23, 115, 209, .78));
}

.image-lines i:nth-child(2) {
  width: 74%;
  background: linear-gradient(90deg, rgba(30, 143, 103, .86), rgba(245, 121, 42, .58));
}

.image-lines i:nth-child(3) {
  width: 88%;
  background: linear-gradient(90deg, rgba(37, 33, 30, .72), rgba(23, 115, 209, .52));
}

.image-lines i:nth-child(4) {
  width: 62%;
}

.arrow {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--brand);
}

.blender-pane {
  display: grid;
  place-items: end start;
  padding: 22px;
  background: #20252b;
  color: #fff;
}

.viewport-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 34px 34px;
}

.viewport-grid span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .28);
}

.viewport-grid span:nth-child(1) {
  inset: 18px auto auto 18px;
  width: 82px;
  height: 82px;
}

.viewport-grid span:nth-child(2) {
  right: 22px;
  top: 42px;
  width: 54px;
  height: 118px;
}

.viewport-grid span:nth-child(3) {
  left: 46px;
  bottom: 74px;
  width: 112px;
  height: 54px;
}

.viewport-grid span:nth-child(4) {
  right: 54px;
  bottom: 42px;
  width: 76px;
  height: 76px;
}

.mesh-object {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 136px;
  height: 136px;
  border: 2px solid rgba(255, 255, 255, .9);
  background:
    linear-gradient(135deg, rgba(245, 121, 42, .96) 0 50%, rgba(23, 115, 209, .86) 50% 100%);
  transform: translate(-50%, -50%) rotate(45deg) skew(-8deg, -8deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.blender-pane strong,
.blender-pane small {
  position: relative;
  z-index: 2;
}

.blender-pane strong {
  font-size: 22px;
}

.blender-pane small {
  display: block;
  color: rgba(255, 255, 255, .72);
}

.gallery-section {
  background: #f8f2eb;
}

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

.showcase {
  overflow: hidden;
}

.showcase img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ddd;
}

.showcase div {
  padding: 20px;
}

.prompts-section {
  background: #fff;
}

.prompt-table-wrap {
  overflow-x: auto;
  margin-top: 28px;
}

.prompt-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  font-size: 14px;
}

.prompt-table th,
.prompt-table td {
  vertical-align: top;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prompt-table th {
  background: #f7f3ef;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.prompt-table tr:last-child td {
  border-bottom: 0;
}

.prompt-table td:first-child {
  width: 220px;
}

.prompt-table td:nth-child(2) {
  width: 360px;
}

.prompt-table td:nth-child(3) {
  width: 150px;
}

.prompt-table td:last-child {
  width: 86px;
}

.prompt-table strong,
.prompt-table span {
  display: block;
}

.prompt-table span {
  margin-top: 5px;
  color: var(--muted);
}

.prompt-table code {
  color: #20252b;
  white-space: normal;
}

.prompt-table a {
  color: var(--blue);
  font-weight: 760;
}

.prompt-note,
.more-prompts {
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 121, 42, .24);
  background: var(--surface-soft);
  padding: 20px 22px;
}

.prompt-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.prompt-subheading {
  margin-top: 54px;
}

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

.mini-prompt {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
}

.mini-prompt .copy-button {
  margin-top: auto;
  align-self: flex-start;
}

.more-prompts h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.more-prompts ul {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.more-prompts li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.safety-section {
  background: #22201e;
  color: #fff;
}

.warning-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 44px;
  align-items: start;
}

.warning-box {
  border-color: rgba(245, 121, 42, .35);
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  padding: 28px;
}

.warning-box p {
  margin-top: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

.warning-box ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, .78);
}

.faq-section {
  background: var(--bg);
}

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

.faq-list details {
  padding: 18px 22px;
  box-shadow: none;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 40px 0;
  background: #171615;
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .64);
}

.footer-links a {
  color: rgba(255, 255, 255, .78);
}

.footer-links a:hover {
  color: #fff;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border-radius: 7px;
  background: #171615;
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding-top: 174px;
  }

  .intro-grid,
  .split,
  .reference-layout,
  .warning-layout {
    grid-template-columns: 1fr;
  }

  .flow,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .container,
  .hero-content {
    width: min(calc(100% - 28px), var(--container));
  }

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

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 17px;
  }

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

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .tab-button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tab-button:last-child {
    border-bottom: 0;
  }

  .reference-visual {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .upload-pane,
  .blender-pane {
    min-height: 230px;
  }

  .arrow {
    transform: rotate(90deg);
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
