:root {
  --bg: #ffffff;
  --bg-soft: #f9f9f9;
  --ink: #111111;
  --muted: #6b6b76;
  --pink: #ff2d78;
  --purple: #b400ff;
  --cyan: #00f0ff;
  --footer: #0a0a0f;
  --glass: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.55);
  --shadow: 0 0 30px rgba(180, 0, 255, 0.18), 0 0 60px rgba(0, 240, 255, 0.1);
  --font-display: Georgia, "Times New Roman", ui-serif, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --neon: linear-gradient(135deg, #ff2d78, #b400ff, #00f0ff);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

.neon-text {
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-neon {
  color: #fff;
  background: var(--neon);
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.45), 0 0 40px rgba(180, 0, 255, 0.25);
}

.btn-neon:hover {
  box-shadow: 0 0 28px rgba(255, 45, 120, 0.65), 0 0 50px rgba(0, 240, 255, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(180, 0, 255, 0.25);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(180, 0, 255, 0.35);
  color: var(--ink);
}

.glass {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.band {
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 38%);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 6vw;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.site-header .logo {
  justify-self: start;
}

.site-header .nav-links {
  justify-self: center;
}

.header-spacer {
  justify-self: end;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(180, 0, 255, 0.08);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--neon);
}

.studio {
  position: relative;
  overflow: hidden;
  padding: 4rem 6vw 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 45, 120, 0.16), transparent 52%),
    radial-gradient(ellipse at 92% 100%, rgba(0, 240, 255, 0.14), transparent 50%),
    #ffffff;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

.glow-pink {
  top: -120px;
  left: -80px;
  background: var(--pink);
}

.glow-cyan {
  right: -80px;
  bottom: -80px;
  background: var(--cyan);
}

.studio-title {
  position: relative;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin: 0 0 1.6rem;
}

.prompt-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem 1rem;
  border-radius: 28px;
  text-align: left;
}

.prompt-card textarea {
  width: 100%;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  font: 1.05rem/1.5 var(--font-body);
  color: var(--ink);
  min-height: 72px;
}

.prompt-card:focus-within {
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.45), var(--shadow);
}

.prompt-slots {
  display: flex;
  gap: 0.7rem;
  margin: 0.35rem 0 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.extra-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.prompt-slot {
  margin: 0;
  width: 96px;
  cursor: pointer;
}

.prompt-slot.active .slot-media img,
.prompt-slot.active .slot-empty-text {
  box-shadow: 0 0 0 2px var(--cyan), 0 0 16px rgba(0, 240, 255, 0.4);
}

.prompt-slot.active .slot-empty-text {
  border-color: var(--cyan);
}

.slot-media {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
}

.prompt-slot img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  display: block;
}

.prompt-slot img[hidden] {
  display: none;
}

.slot-empty-text {
  display: none;
  width: 88px;
  height: 88px;
  padding: 0.45rem;
  border: 2px dashed rgba(180, 0, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.prompt-slot.empty .slot-empty-text {
  display: flex;
}

.prompt-slot.empty img {
  display: none;
}

.slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 2;
}

.slot-remove:hover {
  background: #ff2d78;
}

.slot-remove[hidden] {
  display: none;
}

.prompt-slot figcaption {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
  text-align: center;
}

.prompt-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.gen-error {
  margin: 0.55rem 0 0;
  color: #c0392b;
  font-size: 0.85rem;
}

.btn-neon:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.prompt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.prompt-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.2rem auto 0;
  max-width: 980px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(180, 0, 255, 0.2);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
}

.pill img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.pill:hover,
.pill.active {
  box-shadow: 0 0 18px rgba(255, 45, 120, 0.35);
  border-color: rgba(255, 45, 120, 0.5);
}

.studio-pickers {
  max-width: 980px;
  margin: 2.8rem auto 0;
  text-align: left;
}

.subhead {
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.model-grid button,
.cloth-row button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.model-grid img,
.cloth-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.cloth-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.model-grid button:hover,
.cloth-row button:hover {
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.model-grid button.selected,
.cloth-row button.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

.output {
  max-width: 860px;
  margin: 2rem auto 0;
  border-radius: 24px;
  padding: 1.4rem;
  min-height: 180px;
}

.output[hidden],
.loading[hidden],
.result-single[hidden],
.result-error[hidden] {
  display: none !important;
}

.result-error {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  min-height: 280px;
  padding: 2rem 1.2rem;
  text-align: center;
}

.result-error-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #c0392b;
}

.result-error-body {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.5;
}

.result-error-body[hidden] {
  display: none !important;
}

.loading {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  color: var(--muted);
}

.neon-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(180, 0, 255, 0.2);
  border-top-color: var(--pink);
  border-right-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-single {
  display: grid;
  justify-items: center;
}

.result-single figure {
  margin: 0;
  width: min(100%, 420px);
}

.result-single img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.22);
}

.result-single figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.preview-section {
  padding: 3.5rem 6vw 4.5rem;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(180, 0, 255, 0.14), transparent 52%),
    linear-gradient(180deg, #f4f0ff 0%, #eef8ff 100%);
}

.feature-stage {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  padding: 1.4rem;
  border-radius: 32px;
}

.preview-photo {
  position: relative;
}

.preview-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
  border-radius: 22px;
  box-shadow: 0 0 28px rgba(255, 45, 120, 0.25);
}

.reset-btn {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 600;
}

.feature-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.feature-list-head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
}

.feature-list-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(180, 0, 255, 0.15);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font: 0.95rem/1.2 var(--font-body);
}

.feature-btn .check {
  margin-left: auto;
  opacity: 0;
}

.feature-btn.active {
  color: #fff;
  background: var(--neon);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(180, 0, 255, 0.4);
}

.feature-btn.active .check {
  opacity: 1;
}

.explained {
  padding: 2.4rem 6vw 2.8rem;
  background:
    radial-gradient(ellipse at 8% 90%, rgba(255, 45, 120, 0.1), transparent 48%),
    linear-gradient(180deg, #fffdfb 0%, #fff5f8 100%);
}

.explained-kicker {
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.explained-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0.2rem 0 0.5rem;
}

.explained-title em {
  font-style: italic;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.explained-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.4rem;
  color: var(--muted);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-tile {
  min-width: 0;
}

.zigzag-media {
  border-radius: 16px;
  overflow: hidden;
}

.zigzag-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.zigzag-media.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.zigzag-media.pair img {
  height: 180px;
}

.tryon-visual {
  position: relative;
}

.float-thumbs {
  position: absolute;
  right: 8px;
  top: 10px;
  display: grid;
  gap: 0.3rem;
}

.float-thumbs img {
  width: 36px;
  height: 46px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zigzag-copy {
  padding: 0.75rem 0.15rem 0;
}

.badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.zigzag-copy h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.zigzag-copy p {
  font-size: 0.85rem;
  margin: 0;
}

.zigzag-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.zigzag-actions .btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.learn {
  font-weight: 500;
}

.glow-cyan-card .zigzag-media {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.28);
}

.glow-purple-card .zigzag-media {
  box-shadow: 0 0 30px rgba(180, 0, 255, 0.3);
}

.glow-pink-card .zigzag-media {
  box-shadow: 0 0 30px rgba(255, 45, 120, 0.3);
}

.pricing {
  padding: 2.2rem 6vw 3.2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #f3fffe 0%, #f7f8ff 100%);
}

.pricing h2 {
  text-align: center;
  font-size: 2.2rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
}

.price-card {
  border-radius: 22px;
  padding: 1.4rem;
}

.price-card.featured {
  box-shadow: 0 0 32px rgba(255, 45, 120, 0.28);
}

.price {
  font-size: 1.8rem;
  margin: 0.3rem 0;
}

.soon {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

main,
.legal-wrap {
  flex: 1 1 auto;
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  background: var(--footer);
  color: #d8d8e4;
  padding: 1.45rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 92px;
}

.site-footer .logo {
  font-size: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem 1.35rem;
  font-size: 1rem;
  margin-left: auto;
}

.site-footer a:hover {
  text-shadow: 0 0 12px var(--cyan);
}

.footer-meta {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #9a9aaa;
  text-align: right;
  max-width: 22rem;
}

address {
  font-style: normal;
}

.legal-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 6vw 2.5rem;
}

.legal-wrap h1 {
  font-size: 2.2rem;
}

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

#preview,
#features,
#pricing {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.45rem;
  }

  .header-spacer {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.1rem;
  }

  .footer-meta {
    text-align: left;
    width: 100%;
  }

  .model-grid,
  .cloth-row,
  .price-grid,
  .feature-stage,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .preview-photo img,
  .zigzag-media img,
  .zigzag-media.pair img,
  .result-single img {
    height: 240px;
  }

  address {
    text-align: left;
  }

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