:root {
  --bg: #0a0a0b;
  --panel: #1b1b1d;
  --panel-strong: #232326;
  --text: #f5f3ee;
  --muted: #a5a29b;
  --dim: #5f5b55;
  --line: rgba(255, 255, 255, 0.1);
  --lime: #d9ff2f;
  --orange: #f1772e;
  --orange-dark: #753215;
  --cream: #ffe0b4;
  --radius-lg: 44px;
  --radius-md: 28px;
  --radius-sm: 18px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 8%, rgba(217, 255, 47, 0.12), transparent 26rem),
    radial-gradient(circle at 20% 18%, rgba(241, 119, 46, 0.18), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
input {
  font: inherit;
}

.site-shell {
  width: min(100% - 32px, 1320px);
  margin-inline: auto;
}

.site-nav,
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}

.brand-mark,
.nav-pill,
.nav-action {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand-mark {
  justify-self: start;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  color: var(--muted);
}

.brand-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(217, 255, 47, 0.4);
}

.brand-icon::before,
.brand-icon::after {
  position: absolute;
  inset: 8px;
  content: "";
  border-radius: 2px;
  background: var(--bg);
}

.brand-icon::after {
  transform: rotate(90deg);
}

.nav-pill {
  justify-self: center;
  padding: 0 22px;
  color: var(--muted);
}

.nav-pill::after {
  width: 6px;
  height: 6px;
  margin-left: 12px;
  border-radius: 50%;
  content: "";
  background: var(--lime);
}

.nav-action {
  justify-self: end;
  padding: 0 20px;
  color: var(--bg);
  background: var(--lime);
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-action:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 255, 47, 0.22);
}

.hero {
  min-height: calc(100dvh - 86px);
  padding: 8px 0 24px;
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 -22px;
  font-size: clamp(4.4rem, 10.5vw, 9.5rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.78;
}

.hero-title span {
  display: block;
}

.hero-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 214, 136, 0.86), transparent 11rem),
    radial-gradient(circle at 50% 52%, rgba(241, 119, 46, 0.8), transparent 22rem),
    linear-gradient(135deg, #f47f36 0%, #a93e19 46%, #151111 100%);
  box-shadow: var(--shadow);
}

.hero-orbit {
  position: absolute;
  inset: 7% 10% auto auto;
  width: min(72vw, 680px);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  opacity: 0.7;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  inset: 10%;
  content: "";
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.hero-orbit::after {
  inset: 22%;
}

.command-bar {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(74%, 760px);
  min-height: 74px;
  margin: 56px auto 0;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(24, 20, 17, 0.7);
  background: rgba(255, 222, 191, 0.58);
  backdrop-filter: blur(18px);
}

.command-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(217, 255, 47, 0.7);
}

.hero-figure {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(42vw, 320px);
  height: 318px;
  transform: translateX(-50%) scale(0.78);
  transform-origin: bottom center;
}

.figure-head,
.result-head {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 230px;
  height: 210px;
  transform: translateX(-50%);
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 168, 133, 0.7), transparent 28%),
    linear-gradient(140deg, #ffd6a3, #f2a465 58%, #b85d2f);
  box-shadow:
    inset -18px -24px 45px rgba(108, 44, 18, 0.35),
    inset 18px 20px 34px rgba(255, 244, 211, 0.42),
    0 34px 60px rgba(65, 18, 8, 0.38);
}

.figure-head::before {
  position: absolute;
  inset: -34px 18px auto;
  height: 80px;
  border-radius: 55px 55px 32px 32px;
  content: "";
  background: linear-gradient(140deg, #3b1e15, #7b3b25);
}

.eye,
.sample-eye,
.pet-eye {
  position: absolute;
  top: 88px;
  width: 34px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 32%, white 0 14%, transparent 15%),
    #271511;
}

.eye.left,
.sample-eye.left,
.pet-eye.left {
  left: 58px;
}

.eye.right,
.sample-eye.right,
.pet-eye.right {
  right: 58px;
}

.cheek {
  position: absolute;
  top: 124px;
  width: 62px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 125, 105, 0.42);
  filter: blur(1px);
}

.cheek.left {
  left: 28px;
}

.cheek.right {
  right: 28px;
}

.smile,
.sample-smile {
  position: absolute;
  left: 50%;
  top: 142px;
  width: 42px;
  height: 22px;
  transform: translateX(-50%);
  border-bottom: 5px solid #6f2d20;
  border-radius: 50%;
}

.figure-body,
.result-body {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 190px;
  height: 190px;
  transform: translateX(-50%);
  border-radius: 46% 46% 34% 34%;
  background: linear-gradient(150deg, #ff9b38, #cc5520 62%, #5d2311);
  box-shadow:
    inset 18px 24px 40px rgba(255, 221, 145, 0.32),
    0 28px 50px rgba(60, 16, 8, 0.34);
}

.figure-base {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 320px;
  height: 52px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(90deg, #9c3e1a, #f68a36, #6a2b16);
  filter: blur(0.2px);
}

.hero-copy {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: min(320px, calc(100% - 68px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(11, 11, 12, 0.66);
  backdrop-filter: blur(16px);
}

.hero-copy p,
.generator-copy p,
.showcase-header p,
.seo-panel p,
.steps-grid p,
.faq-list p,
.form-note {
  color: var(--muted);
}

.hero-copy p {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.primary-button {
  padding: 0 24px;
  color: #111208;
  background: var(--lime);
  font-weight: 800;
}

.secondary-button {
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-button:active,
.secondary-button:active,
.nav-action:active {
  transform: translateY(1px) scale(0.99);
}

.showcase,
.generator-section,
.content-band,
.seo-panel,
.faq {
  padding: 72px 0;
}

.section-index {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  line-height: 1;
}

.showcase-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

.showcase h2,
.generator-copy h2,
.content-band h2,
.seo-panel h2,
.faq h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  font-weight: 300;
  line-height: 0.92;
}

.showcase-header p {
  margin: 0 0 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.18fr 0.92fr;
  grid-auto-rows: 220px;
  gap: 18px;
}

.sample-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, #232326, #111112);
  box-shadow: var(--shadow);
}

.sample-card h3 {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.sample-main {
  grid-row: span 2;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 151, 0.9), transparent 11rem),
    linear-gradient(145deg, #783015, #251310 72%);
}

.sample-puffy {
  background:
    radial-gradient(circle at 52% 44%, rgba(255, 196, 153, 0.88), transparent 9rem),
    linear-gradient(145deg, #f17c35, #111112 78%);
}

.sample-hero {
  background:
    radial-gradient(circle at 54% 48%, rgba(217, 255, 47, 0.16), transparent 10rem),
    linear-gradient(145deg, #111112, #38200f);
}

.sample-pet {
  grid-column: span 2;
  background:
    radial-gradient(circle at 62% 48%, rgba(255, 214, 151, 0.7), transparent 11rem),
    linear-gradient(145deg, #f28a3d, #27120d);
}

.sample-face,
.pet-face {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 160px;
  height: 138px;
  transform: translate(-50%, -50%);
  border-radius: 48% 48% 45% 45%;
  background: linear-gradient(140deg, #ffd6a3, #f4a96f 68%, #b55a30);
  box-shadow: inset -14px -16px 30px rgba(92, 36, 15, 0.3);
}

.sample-face.large {
  top: 37%;
  width: 230px;
  height: 210px;
}

.sample-face.compact {
  top: 48%;
  width: 142px;
  height: 126px;
}

.sample-mouth {
  position: absolute;
  left: 50%;
  top: 84px;
  width: 34px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #632616;
}

.helmet {
  position: absolute;
  left: 50%;
  top: 23%;
  width: 180px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 58px;
  background: linear-gradient(145deg, #ff9e35, #1d1d21 62%);
}

.mini-body {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 48% 48% 34% 34%;
  background: #ff8f32;
}

.pet-ears {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 180px;
  height: 80px;
  transform: translateX(-50%);
}

.pet-ears::before,
.pet-ears::after {
  position: absolute;
  top: 0;
  width: 78px;
  height: 88px;
  content: "";
  border-radius: 18px 60px 32px 60px;
  background: #ffb45d;
}

.pet-ears::before {
  left: 0;
  transform: rotate(-28deg);
}

.pet-ears::after {
  right: 0;
  transform: rotate(28deg);
}

.pet-face {
  width: 210px;
  height: 146px;
  background: linear-gradient(145deg, #ffe0aa, #d98945);
}

.pet-eye {
  top: 56px;
  height: 18px;
  border-radius: 999px;
}

.pet-nose {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 18px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #51301f;
}

.generator-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: start;
}

.generator-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.generator-form,
.result-card,
.steps-grid article,
.seo-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.generator-form,
.result-card {
  padding: 20px;
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  place-items: center;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 255, 47, 0.08), transparent 9rem),
    rgba(0, 0, 0, 0.18);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-label {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.upload-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-preview {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-zone.has-preview .photo-preview {
  display: block;
}

.upload-zone.has-preview .upload-label,
.upload-zone.has-preview .upload-help {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
}

.preset-field {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.preset-field legend {
  margin-bottom: 12px;
  color: var(--muted);
}

.preset-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preset-options label {
  display: block;
}

.preset-options input {
  position: absolute;
  opacity: 0;
}

.preset-options span {
  display: flex;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.preset-options input:checked + span {
  color: #111208;
  background: var(--lime);
}

.turnstile-wrap {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
}

.cf-turnstile {
  display: grid;
  min-height: 58px;
  border-radius: 14px;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
}

.generate-button {
  width: 100%;
  margin-top: 18px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.result-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.result-stage {
  display: grid;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 212, 151, 0.72), transparent 8rem),
    linear-gradient(155deg, #f37d35, #151112 72%);
}

.result-toy {
  position: relative;
  width: 220px;
  height: 260px;
}

.result-head {
  width: 150px;
  height: 142px;
}

.result-body {
  width: 126px;
  height: 126px;
  bottom: 18px;
}

.result-stage p {
  position: relative;
  z-index: 2;
  width: min(80%, 260px);
  margin: -30px auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
}

.result-stage.is-generating .result-toy {
  animation: floatToy 1.4s ease-in-out infinite alternate;
}

.result-stage.is-success {
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 255, 47, 0.28), transparent 10rem),
    linear-gradient(155deg, #fff0d5, #f28a3d 42%, #121212 100%);
}

.result-stage.is-error {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 88, 88, 0.3), transparent 9rem),
    linear-gradient(155deg, #3b1515, #111112);
}

@keyframes floatToy {
  from {
    transform: translateY(0) rotate(-1deg);
  }

  to {
    transform: translateY(-12px) rotate(1deg);
  }
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.content-band {
  border-top: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.steps-grid article {
  min-height: 220px;
  padding: 22px;
}

.steps-grid span {
  color: var(--lime);
}

.steps-grid h3 {
  margin: 68px 0 10px;
  font-size: 1.45rem;
}

.seo-panel {
  padding: 44px;
}

.seo-panel p {
  max-width: 72ch;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

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

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

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 1.05rem;
}

.footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .showcase-header,
  .generator-section,
  .generator-card,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

  .sample-main,
  .sample-pet {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 1320px);
  }

  .site-nav,
  .footer {
    grid-template-columns: auto 1fr auto;
  }

  .brand-mark span:last-child,
  .nav-pill {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  .hero-title {
    margin-bottom: -10px;
    font-size: clamp(4.2rem, 23vw, 7.4rem);
  }

  .hero-panel {
    min-height: 500px;
    border-radius: 28px;
  }

  .command-bar {
    width: calc(100% - 34px);
    margin-top: 48px;
    padding: 0 18px;
    text-align: center;
  }

  .hero-figure {
    width: 320px;
    bottom: 86px;
  }

  .hero-copy {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .showcase,
  .generator-section,
  .content-band,
  .seo-panel,
  .faq {
    padding: 48px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .preset-options {
    grid-template-columns: 1fr;
  }

  .seo-panel {
    padding: 28px;
  }
}

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