:root {
  color-scheme: dark;
  --bg: #111417;
  --bg-soft: #171b20;
  --surface: rgba(31, 36, 42, 0.82);
  --surface-strong: #242a31;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(232, 238, 242, 0.12);
  --line-strong: rgba(232, 238, 242, 0.22);
  --text: #f3f6f4;
  --muted: #aeb8b6;
  --soft: #dce3e1;
  --blue: #8ab4f8;
  --green: #81c995;
  --yellow: #fdd663;
  --red: #f28b82;
  --ink: #101418;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at 16% 8%, rgba(138, 180, 248, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(129, 201, 149, 0.1), transparent 26rem),
    radial-gradient(circle at 60% 92%, rgba(253, 214, 99, 0.06), transparent 24rem),
    linear-gradient(180deg, #101418 0%, #12171b 42%, #15191d 100%);
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
select,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(138, 180, 248, 0.62);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 22, 26, 0.76);
  backdrop-filter: blur(22px);
}

.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #172033;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 22px rgba(138, 180, 248, 0.18);
  font-size: 13px;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(138, 180, 248, 0.12);
  transform: translateY(-2px);
}

.nav-action,
.button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.nav-action {
  white-space: nowrap;
  color: #d6e4ff;
  border-color: rgba(138, 180, 248, 0.34);
  background: rgba(138, 180, 248, 0.11);
}

.button:hover,
.nav-action:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 180, 248, 0.52);
  background: rgba(138, 180, 248, 0.15);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.button:active,
.nav-action:active,
.filter-button:active,
.tag:active,
.meta-pill:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  color: #111820;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #a8c7fa);
  box-shadow: 0 12px 28px rgba(138, 180, 248, 0.18);
}

.button.primary:hover {
  background: linear-gradient(135deg, #a8c7fa, #cfe0ff);
}

.button.secondary {
  border-color: rgba(129, 201, 149, 0.38);
  color: #daf6df;
  background: rgba(129, 201, 149, 0.1);
}

.button.ghost {
  border-color: rgba(253, 214, 99, 0.32);
  color: #ffe9a3;
  background: rgba(253, 214, 99, 0.08);
}

.button.copied,
.nav-action.copied {
  color: #102116;
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(129, 201, 149, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: 56px;
  padding: 70px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 760;
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  max-width: 840px;
}

.hero h2 {
  margin: 12px 0 0;
  color: #cfe0ff;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 680;
}

.hero-subtitle {
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 760px;
}

.hero-description {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-board {
  position: relative;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(43, 50, 58, 0.88), rgba(24, 29, 34, 0.82)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 24px;
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(138, 180, 248, 0.1) 46%, transparent 72%);
  pointer-events: none;
}

.board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft);
  animation: floatSoft 8s ease-in-out infinite;
}

.preview-card:nth-child(2) {
  animation-delay: -2s;
}

.preview-card:nth-child(3) {
  animation-delay: -4s;
}

.preview-large {
  grid-row: span 2;
}

.preview-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.preview-meta {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: rgba(20, 24, 29, 0.74);
}

.preview-meta span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.preview-meta strong {
  font-size: 14px;
}

.prompt-stack {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-pill,
.filter-button,
.tag,
.meta-pill,
.modal-tags span,
.skills-grid span {
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.prompt-pill {
  border: 1px solid rgba(138, 180, 248, 0.2);
  padding: 8px 13px;
  color: #d6e4ff;
  background: rgba(20, 26, 32, 0.72);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.prompt-pill:hover,
.tag:hover,
.meta-pill:hover,
.modal-tags span:hover,
.skills-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 180, 248, 0.48);
  background: rgba(138, 180, 248, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.node-line {
  position: absolute;
  right: 32px;
  bottom: 118px;
  display: grid;
  gap: 18px;
}

.node-line span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 9px rgba(138, 180, 248, 0.08);
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section {
  padding: 86px 0;
}

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

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(30px, 4.4vw, 54px);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 16px 0 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.info-card,
.workflow-step,
.workflow-example,
.gallery-card,
.generator-panel,
.iteration-card,
.generated-card,
.modal-content-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.info-card:hover,
.workflow-step:hover,
.iteration-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 180, 248, 0.32);
  background: rgba(39, 45, 52, 0.86);
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #102116;
  background: var(--green);
  font-weight: 800;
}

.info-card h3,
.workflow-step h3,
.gallery-card h3,
.iteration-card h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.info-card p,
.workflow-step p,
.gallery-card p,
.iteration-card p,
.final-cta p {
  margin: 0;
  color: var(--muted);
}

.generator-section {
  background: rgba(255, 255, 255, 0.026);
  border-block: 1px solid var(--line);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 20px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.workflow-step {
  position: relative;
  padding: 20px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.workflow-step::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: rgba(138, 180, 248, 0.14);
  color: #d6e4ff;
  font-weight: 800;
}

.workflow-example {
  padding: 24px;
  background: linear-gradient(145deg, rgba(39, 45, 52, 0.96), rgba(26, 31, 37, 0.92));
}

.workflow-example h3 {
  margin: 0 0 20px;
}

.workflow-example dl,
.workflow-example dd {
  margin: 0;
}

.workflow-example div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.workflow-example dt {
  color: var(--yellow);
  font-weight: 760;
}

.workflow-example dd {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 20px;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 9px 17px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-2px);
  color: #d6e4ff;
  border-color: rgba(138, 180, 248, 0.5);
  background: rgba(138, 180, 248, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.filter-button.active {
  color: #111820;
  border-color: transparent;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(138, 180, 248, 0.18);
}

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

.gallery-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .22s ease, opacity .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.gallery-card.enter {
  animation: cardIn .26s ease both;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 180, 248, 0.36);
  background: rgba(39, 45, 52, 0.92);
  box-shadow: var(--shadow);
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1.07);
}

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

.gallery-image {
  aspect-ratio: 16 / 10;
  background: #1b2228;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}

.gallery-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.gallery-card h3 {
  margin: 0;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill,
.tag,
.modal-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 13px;
}

.meta-pill {
  color: #d6e4ff;
  border-color: rgba(138, 180, 248, 0.22);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.card-actions .button {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 14px;
}

.card-actions .button.primary {
  grid-column: 1 / -1;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.generator-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 40px;
  align-items: start;
}

.generator-panel {
  padding: 22px;
}

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

.generator-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 14px;
}

.generator-form select,
.generator-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  padding: 0 14px;
  outline: none;
  color-scheme: dark;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.generator-form select option {
  color: var(--text);
  background: #242a31;
}

.generator-form select option:checked {
  color: #111820;
  background: var(--blue);
}

.generator-form input::placeholder {
  color: rgba(220, 227, 225, 0.42);
}

.generator-form select:focus,
.generator-form input:focus {
  border-color: rgba(138, 180, 248, 0.7);
  background: rgba(138, 180, 248, 0.1);
  box-shadow: 0 0 0 4px rgba(138, 180, 248, 0.12);
}

.full-field {
  grid-column: 1 / -1;
}

.generator-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generated-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.generated-card {
  min-height: 186px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(138, 180, 248, 0.08), rgba(129, 201, 149, 0.055)),
    rgba(255, 255, 255, 0.045);
}

.generated-card h3 {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 16px;
}

.generated-card p {
  margin: 0;
  color: var(--soft);
  white-space: pre-wrap;
}

.iteration-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
}

.iteration-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.iteration-card.before {
  border-color: rgba(242, 139, 130, 0.24);
}

.iteration-card.after {
  border-color: rgba(129, 201, 149, 0.3);
}

.iteration-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--yellow);
  font-weight: 760;
  font-size: 13px;
}

.iteration-card h4 {
  margin: 22px 0 8px;
  color: var(--soft);
}

.iteration-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-weight: 680;
}

.skills-grid span:nth-child(3n + 1) {
  border-color: rgba(138, 180, 248, 0.28);
}

.skills-grid span:nth-child(3n + 2) {
  border-color: rgba(129, 201, 149, 0.28);
}

.skills-grid span:nth-child(3n) {
  border-color: rgba(253, 214, 99, 0.26);
}

.final-cta {
  padding: 94px 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(138, 180, 248, 0.12), rgba(129, 201, 149, 0.08)),
    #14191d;
}

.cta-inner {
  max-width: 920px;
}

.final-cta p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  margin-bottom: 12px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.cta-actions .button {
  min-width: 120px;
  text-align: center;
}

#copyEmailBtn.copied {
  background: var(--accent-green, #81c995);
  color: #14191d;
  border-color: var(--accent-green, #81c995);
}

@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .button {
    width: 100%;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 12, 16, 0.62);
  backdrop-filter: blur(14px);
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn .18s ease both;
}

.modal-backdrop.closing {
  display: flex;
  animation: fadeOut .18s ease both;
}

.prompt-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(840px, 92vh);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #242a31;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  padding: 28px;
  animation: modalIn .2s ease both;
}

.modal-backdrop.closing .prompt-modal {
  animation: modalOut .18s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.modal-close:hover {
  transform: translateY(-2px);
  background: rgba(242, 139, 130, 0.14);
  border-color: rgba(242, 139, 130, 0.36);
}

.modal-head {
  padding-right: 48px;
}

.modal-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.modal-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 8px 0 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.modal-prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-content-block {
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(138, 180, 248, 0.065), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.modal-content-block h3 {
  margin: 0 0 10px;
  color: var(--yellow);
}

.modal-content-block h4 {
  margin: 18px 0 8px;
  color: #d6e4ff;
}

.modal-content-block p {
  margin: 0;
  color: var(--soft);
}

.modal-content-block .button {
  width: 100%;
  margin-top: 18px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.hero-studio {
  position: relative;
  min-height: calc(100vh - 72px);
  display: block;
  overflow: hidden;
  padding: 70px 0 72px;
  isolation: isolate;
}

.hero-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}

.hero-ambient {
  position: absolute;
  inset: -18% -10% 0;
  z-index: -4;
  background:
    radial-gradient(circle at 18% 16%, rgba(138, 180, 248, .26), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(129, 201, 149, .18), transparent 28rem),
    radial-gradient(circle at 50% 78%, rgba(253, 214, 99, .12), transparent 28rem);
}

.hero-stage {
  position: absolute;
  inset: 42px 0 auto;
  height: min(560px, 58vh);
  z-index: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-stage.dragging {
  cursor: grabbing;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 20, 23, .02), rgba(17, 20, 23, .42) 88%),
    radial-gradient(ellipse at center, transparent 0%, rgba(17,20,23,.14) 78%);
}

.hero-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  min-height: 100%;
  padding: 26px max(32px, calc((100vw - var(--max)) / 2));
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint;
}

.studio-card {
  flex: 0 0 clamp(230px, 23vw, 340px);
  height: clamp(285px, 36vw, 430px);
  border: 1px solid rgba(232, 238, 242, .16);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(35, 41, 48, .78);
  box-shadow: 0 30px 78px rgba(0, 0, 0, .32);
  transform: translateY(var(--lift, 0)) scale(var(--scale, 1)) rotate(var(--rotate, 0deg));
  opacity: var(--opacity, .9);
  filter: brightness(var(--brightness, 1)) saturate(1.02);
  transition: transform .22s ease, filter .22s ease, opacity .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.studio-card:hover {
  --lift: -12px;
  --scale: 1.035;
  --brightness: 1.08;
  --opacity: 1;
  z-index: 2;
  border-color: rgba(138, 180, 248, .42);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
}

.depth-front {
  --scale: 1.04;
  --brightness: 1.08;
  --opacity: 1;
}

.depth-mid {
  --scale: .96;
  --brightness: 1.02;
  --opacity: .94;
}

.depth-side {
  --scale: .9;
  --brightness: .92;
  --opacity: .82;
}

.studio-card:nth-child(2n) {
  --rotate: -1.6deg;
  margin-top: 34px;
}

.studio-card:nth-child(3n) {
  --rotate: 1.8deg;
  margin-top: -28px;
}

.image-card {
  position: relative;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 18, .02) 34%, rgba(11, 14, 18, .52));
}

.studio-card-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.studio-card-caption span,
.mini-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.studio-card-caption strong {
  color: var(--text);
  font-size: 18px;
}

.info-card-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(138, 180, 248, .16), rgba(129, 201, 149, .08)),
    rgba(32, 38, 45, .88);
}

.info-card-hero h3 {
  margin: 12px 0 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
}

.info-card-hero p {
  margin: 0;
  color: var(--soft);
}

.mini-chips,
.mini-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mini-chips span,
.mini-copy-row span {
  border: 1px solid rgba(232, 238, 242, .18);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--soft);
  background: rgba(255, 255, 255, .065);
  font-size: 13px;
}

.mini-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin-top: 24px;
}

.mini-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 214px);
  display: grid;
  align-content: end;
  justify-items: center;
  padding-top: min(38vh, 360px);
  pointer-events: none;
}

.studio-copy {
  max-width: 920px;
  text-align: center;
  padding: 0 8px;
}

.studio-copy h1 {
  color: rgba(228, 240, 255, .92);
  font-size: clamp(42px, 5.8vw, 74px);
  font-weight: 760;
  text-shadow: 0 14px 42px rgba(0, 0, 0, .34);
}

.studio-copy h2 {
  color: rgba(207, 224, 255, .76);
  font-size: clamp(21px, 2.65vw, 32px);
  font-weight: 650;
}

.studio-copy .eyebrow {
  color: rgba(168, 199, 250, .82);
}

.studio-copy .hero-subtitle {
  color: rgba(220, 227, 225, .82);
}

.studio-copy .hero-description {
  margin-left: auto;
  margin-right: auto;
}

.studio-copy .hero-actions {
  justify-content: center;
  pointer-events: auto;
}

.hero-command-panel {
  width: min(860px, 100%);
  margin-top: 28px;
  border: 1px solid rgba(232, 238, 242, .18);
  border-radius: 30px;
  padding: 18px;
  background: rgba(36, 42, 49, .78);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  pointer-events: auto;
}

.hero-command-panel h3 {
  margin: 6px 0 14px;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-command-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-command-row input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(232, 238, 242, .16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .075);
  padding: 0 18px;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.hero-command-row input::placeholder {
  color: rgba(220, 227, 225, .46);
}

.hero-command-row input:focus {
  border-color: rgba(138, 180, 248, .7);
  background: rgba(138, 180, 248, .11);
  box-shadow: 0 0 0 4px rgba(138, 180, 248, .13);
}

@media (prefers-reduced-motion: reduce) {
  .preview-card {
    animation: none;
  }

  .studio-card,
  .gallery-card,
  .button,
  .filter-button {
    transition-duration: .01ms;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-action {
    display: none;
  }

  .nav-links.open {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 14px;
  }

  .hero,
  .workflow-layout,
  .generator-layout,
  .iteration-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
    gap: 32px;
  }

  .hero-studio {
    padding: 54px 0 62px;
  }

  .hero-stage {
    height: 470px;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 330px;
  }

  .hero-board {
    min-height: 520px;
  }

  .overview-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 52px;
  }

  .hero-studio {
    padding: 36px 0 54px;
  }

  .hero-stage {
    top: 18px;
    height: 370px;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .hero-track {
    gap: 14px;
    padding: 14px;
  }

  .studio-card {
    flex-basis: min(76vw, 300px);
    height: 330px;
    border-radius: 24px;
  }

  .hero-shell {
    padding-top: 280px;
  }

  .studio-copy {
    text-align: left;
  }

  .studio-copy .hero-actions {
    justify-content: flex-start;
  }

  .hero-command-panel {
    border-radius: 24px;
    padding: 14px;
  }

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

  .hero-command-row input {
    border-radius: 18px;
  }

  .hero-actions,
  .generator-actions,
  .modal-actions {
    flex-direction: column;
  }

  .button,
  .nav-action {
    width: 100%;
  }

  .hero-board {
    min-height: auto;
    padding: 14px;
    border-radius: 24px;
  }

  .board-grid,
  .overview-grid,
  .workflow-steps,
  .gallery-grid,
  .generator-form {
    grid-template-columns: 1fr;
  }

  .preview-large {
    grid-row: auto;
  }

  .prompt-stack,
  .node-line {
    position: static;
    margin-top: 14px;
  }

  .node-line {
    display: flex;
  }

  .workflow-example div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .card-actions .button.primary {
    grid-column: auto;
  }

  .prompt-modal {
    padding: 20px;
    border-radius: 24px;
  }

  .modal-head {
    padding-right: 42px;
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }

  .brand-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
