:root {
  --ink: #14211d;
  --muted: #5e6d67;
  --paper: #f4f0e7;
  --cloud: #fbfaf5;
  --moss: #254d38;
  --fern: #6d9a62;
  --sun: #e0ad4e;
  --coral: #d96d4d;
  --lake: #347b8f;
  --line: rgba(20, 33, 29, 0.14);
  --shadow: 0 24px 70px rgba(28, 37, 31, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 240, 231, 0.9), rgba(251, 250, 245, 1) 24rem),
    radial-gradient(circle at 18% 18%, rgba(224, 173, 78, 0.18), transparent 26rem),
    var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(20, 33, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 29, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 20, 17, 0.72), rgba(10, 20, 17, 0));
}

.brand,
.main-nav,
.nav-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.8) 43% 48%, transparent 49%),
    radial-gradient(circle at 64% 34%, var(--sun) 0 18%, transparent 19%),
    linear-gradient(145deg, var(--fern), var(--lake));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.main-nav {
  gap: clamp(0.75rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: #fff;
}

.nav-action,
.primary-link,
.secondary-link,
.price-card a {
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.nav-action {
  padding: 0 1.15rem;
  color: #15211d;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowPan 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 20, 17, 0.9) 0%, rgba(7, 20, 17, 0.62) 40%, rgba(7, 20, 17, 0.08) 76%),
    linear-gradient(180deg, rgba(7, 20, 17, 0.36), rgba(7, 20, 17, 0.2) 52%, rgba(244, 240, 231, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 28rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: 92vh;
  margin: 0 auto;
  padding: 7.5rem 0 5rem;
}

.hero-copy {
  max-width: 44rem;
  color: #fff;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.8rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f1c563;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 43rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  padding: 0 1.35rem;
}

.primary-link {
  color: #10211b;
  background: var(--sun);
  box-shadow: 0 16px 36px rgba(224, 173, 78, 0.36);
}

.secondary-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.generator-panel {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(251, 250, 245, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-head,
.status-line,
.metric-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head {
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  font-size: 1.45rem;
}

.credit-pill {
  flex: 0 0 auto;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss);
  background: rgba(109, 154, 98, 0.1);
  font-size: 0.82rem;
}

.field-label,
.settings-grid span {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf7;
  outline: none;
}

textarea {
  min-height: 8.2rem;
  padding: 0.9rem;
  resize: vertical;
  line-height: 1.55;
}

textarea:focus,
select:focus,
input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(52, 123, 143, 0.28);
  outline-offset: 2px;
}

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

.chip {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fffdf7;
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.chip.active {
  color: #fff;
  border-color: var(--moss);
  background: var(--moss);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

select {
  min-height: 2.7rem;
  padding: 0 0.75rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--lake);
}

.generate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.1rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--moss), var(--lake));
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(37, 77, 56, 0.28);
}

.button-spark {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 18px var(--sun);
}

.generation-status {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-track {
  height: 0.48rem;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 33, 29, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sun), var(--coral), var(--lake));
  transition: width 220ms ease;
}

.preview-band,
.gallery-section,
.feature-band,
.workflow-section,
.pricing-section,
.faq-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 0;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 700;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.main-output {
  position: relative;
  min-height: 26rem;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #d8ddcf;
  box-shadow: var(--shadow);
}

.main-output img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  transition:
    filter 280ms ease,
    transform 380ms ease;
}

.main-output.generated img {
  transform: scale(1.025);
}

.main-output figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(12, 25, 21, 0.62);
  backdrop-filter: blur(16px);
}

#downloadButton {
  flex: 0 0 auto;
  min-height: 2.3rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.output-details {
  display: grid;
  gap: 0.75rem;
}

.metric-row,
.feature-grid article,
.steps article,
.price-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 245, 0.82);
}

.metric-row {
  min-height: 5.7rem;
  padding: 1rem;
}

.metric-row span,
.price-card p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-row strong {
  text-align: right;
}

.style-grid,
.feature-grid,
.steps,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.style-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cloud);
}

.style-card img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.style-card-forest img {
  filter: saturate(1.1) hue-rotate(-8deg);
}

.style-card-desert img {
  filter: sepia(0.34) saturate(1.15) hue-rotate(-18deg);
}

.style-card-garden img {
  filter: saturate(1.35) contrast(0.96) hue-rotate(16deg);
}

.style-card-game img {
  filter: contrast(1.08) saturate(1.28) hue-rotate(168deg);
}

.style-card h3,
.style-card p {
  padding: 0 1rem;
}

.style-card h3 {
  margin-top: 1rem;
}

.style-card p {
  margin: 0.42rem 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.feature-band {
  width: 100%;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(37, 77, 56, 0.96), rgba(52, 123, 143, 0.9)),
    var(--moss);
  color: #fff;
}

.feature-band .section-heading {
  margin-left: 0;
}

.feature-band .eyebrow {
  color: #f1c563;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  padding: 1.2rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.8rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-grid p,
.steps p {
  margin-top: 0.5rem;
  line-height: 1.62;
}

.feature-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps article {
  padding: 1.2rem;
}

.steps span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-weight: 900;
}

.steps p {
  color: var(--muted);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  display: flex;
  min-height: 23rem;
  flex-direction: column;
  padding: 1.2rem;
}

.price-card.featured {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(150deg, rgba(20, 33, 29, 0.92), rgba(37, 77, 56, 0.9)),
    var(--moss);
  box-shadow: var(--shadow);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.price-card h3 {
  margin-top: 0.6rem;
  font-size: 3.2rem;
}

.price-card h3 span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card ul {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--muted);
}

.price-card a {
  display: flex;
  margin-top: auto;
  color: #fff;
  background: var(--moss);
}

.price-card.featured a {
  color: var(--ink);
  background: var(--sun);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

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

.faq-list p {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
  color: var(--muted);
}

@keyframes slowPan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .hero-content,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-content: center;
    gap: 2rem;
    padding-top: 6rem;
  }

  .generator-panel {
    max-width: 38rem;
  }

  .style-grid,
  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 20, 17, 0.86), rgba(7, 20, 17, 0.38) 58%, rgba(244, 240, 231, 1) 100%),
      linear-gradient(90deg, rgba(7, 20, 17, 0.72), rgba(7, 20, 17, 0.12));
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-actions,
  .main-output figcaption {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .control-row,
  .settings-grid,
  .style-grid,
  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .main-output,
  .main-output img {
    min-height: 22rem;
  }

  #downloadButton {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}
