:root {
  --ink: #3b2d27;
  --muted: #7c665d;
  --line: #dfcdb8;
  --paper: #fffdf7;
  --cream: #fff7d6;
  --mint: #dff7ec;
  --aqua: #dff6f4;
  --pink: #f9d8e1;
  --peach: #ffe1c9;
  --orange: #f97316;
  --orange-dark: #c8520d;
  --green: #21b573;
  --shadow: 0 4px 0 rgba(92, 68, 52, 0.26);
  --soft-shadow: 0 16px 40px rgba(96, 63, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Nunito,
    ui-rounded,
    "Avenir Next",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand span {
  font-size: 1.05rem;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  padding-right: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--orange-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-button,
.menu-toggle,
.icon-button,
.button,
.primary-link,
.tab,
.option-button,
.swatch,
.faq-item button {
  border: 0;
  cursor: pointer;
}

.language-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.primary-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.primary-link,
.button.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 0 var(--orange-dark);
}

.button.secondary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 0 #128354;
}

.button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(92, 68, 52, 0.16);
}

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

.primary-link:active,
.button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.mobile-menu {
  display: none;
}

.generator-band {
  padding: 46px 24px 52px;
  background:
    radial-gradient(circle at 12% 16%, rgba(249, 115, 22, 0.12), transparent 24%),
    linear-gradient(180deg, var(--mint), #d9f3e8);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h1,
.section-heading h2,
.hero-inner h2,
.seo-card h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.08;
  font-weight: 950;
}

.section-heading h1 {
  font-size: 3rem;
}

.section-heading p,
.hero-inner p,
.seo-card p,
.feature-card p,
.use-card p,
.step-card p {
  color: var(--muted);
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generator-panel {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(320px, 560px);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.preview-card,
.editor-card,
.feature-card,
.step-card,
.use-card,
.seo-card,
.faq-list,
.submit-card,
.sponsor-card {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.preview-card {
  padding: 22px;
}

#avatar-canvas {
  width: min(100%, 356px);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  border: 2px solid #c9e9da;
  border-radius: 8px;
  background: white;
  image-rendering: auto;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.preview-meta span:first-child {
  color: var(--ink);
}

.generator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.status-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.editor-card {
  padding: 18px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.tab.is-active {
  border-color: #f8bc72;
  background: var(--cream);
  color: var(--ink);
}

.option-panel {
  display: grid;
  gap: 18px;
}

.option-group h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

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

.option-button {
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.option-button.is-selected {
  border-color: var(--orange);
  background: #fff2df;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 3px 0 rgba(92, 68, 52, 0.18);
}

.swatch.is-selected {
  box-shadow: 0 0 0 3px var(--orange), 0 4px 0 rgba(92, 68, 52, 0.2);
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-weight: 900;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(92, 68, 52, 0.18);
}

.submission-band {
  padding: 32px 24px 48px;
  background: var(--paper);
}

.submit-card,
.sponsor-card {
  max-width: 980px;
  margin: 0 auto 18px;
}

.submit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: linear-gradient(100deg, #fff4df, #eefaf5);
}

.submit-card h2 {
  margin: 0 0 2px;
  font-size: 1.25rem;
}

.submit-card p {
  margin: 0;
  color: var(--muted);
}

.submit-icon,
.card-icon,
.step-card span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.submit-icon {
  background:
    linear-gradient(#fff, #fff) center / 20px 20px no-repeat,
    var(--orange);
}

.sponsor-card {
  min-height: 132px;
  padding: 14px 18px;
  background: #fff;
}

.sponsor-label {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff6e7;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-section {
  padding: 80px 24px 88px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent),
    var(--cream);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-inner h2 {
  font-size: 3.1rem;
}

.avatar-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}

.mini-avatar {
  width: 64px;
  height: 64px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(92, 68, 52, 0.16);
  position: relative;
}

.mini-avatar::before,
.mini-avatar::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.mini-avatar::before {
  left: 12px;
  right: 12px;
  top: 20px;
  height: 8px;
  background: var(--ink);
  box-shadow: 0 18px 0 -2px var(--ink);
}

.mini-avatar::after {
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 5px;
  border-bottom: 3px solid var(--orange);
}

.mini-avatar.one {
  background: #fff1c7;
}

.mini-avatar.two {
  background: #ffd9e4;
}

.mini-avatar.three {
  background: #dbf5ff;
}

.mini-avatar.four {
  background: #e7f6df;
}

.mini-avatar.five {
  background: #fff;
}

.hero-cta {
  min-width: 180px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.content-band,
.steps-band,
.seo-section,
.faq-band {
  padding: 82px 24px;
}

.steps-band {
  background: var(--aqua);
}

.use-cases {
  background: #fffaf0;
}

.card-grid {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

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

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

.feature-card,
.use-card {
  padding: 28px;
}

.feature-card h3,
.use-card h3,
.step-card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
}

.feature-card p,
.use-card p,
.step-card p {
  margin: 0;
}

.card-icon.peach {
  background: var(--peach);
}

.card-icon.mint {
  background: var(--mint);
}

.card-icon.aqua {
  background: var(--aqua);
}

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

.step-card {
  position: relative;
  padding: 32px 26px 28px;
  text-align: center;
}

.step-card span {
  position: absolute;
  top: -18px;
  left: 50%;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.seo-section {
  background: var(--paper);
}

.seo-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px;
}

.seo-card h2 {
  margin-bottom: 18px;
}

.seo-card h3 {
  margin: 32px 0 14px;
  font-size: 1.35rem;
}

.seo-card h4 {
  margin: 0 0 6px;
  color: var(--orange-dark);
}

.seo-card p {
  margin: 0 0 16px;
}

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

.seo-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.tip-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.tip-list li::marker {
  color: var(--orange);
}

.faq-band {
  background: var(--pink);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 26px;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item button {
  position: relative;
  width: 100%;
  padding: 20px 28px 20px 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 20px;
  font-weight: 900;
}

.faq-item.is-open button::after {
  content: "-";
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 24px 18px 0;
  color: var(--muted);
}

.faq-item.is-open p {
  display: block;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding: 56px 12vw 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 16px;
  }

  .desktop-nav,
  .language-button,
  .header-actions .primary-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    grid-column: 1 / -1;
    padding: 14px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
  }

  body.menu-open .mobile-menu {
    display: grid;
    gap: 8px;
  }

  .mobile-menu a {
    padding: 12px;
    border-radius: 8px;
    background: #fff9ec;
    font-weight: 900;
  }

  .generator-panel,
  .card-grid.three,
  .card-grid.two,
  .steps,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .submit-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .submit-icon {
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .mobile-menu {
    inset: 62px 10px auto;
  }

  .generator-band,
  .submission-band,
  .hero-section,
  .content-band,
  .steps-band,
  .seo-section,
  .faq-band {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-heading h1 {
    font-size: 2.15rem;
  }

  .section-heading h2,
  .hero-inner h2,
  .seo-card h2 {
    font-size: 1.75rem;
  }

  .hero-inner h2 {
    font-size: 2rem;
  }

  .generator-panel {
    gap: 16px;
  }

  .preview-card,
  .editor-card,
  .feature-card,
  .step-card,
  .use-card,
  .seo-card,
  .faq-list {
    padding: 18px;
  }

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

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

  .preview-meta,
  .share-row,
  .trust-row {
    flex-direction: column;
    align-items: center;
  }

  .avatar-strip {
    gap: 8px;
  }

  .mini-avatar {
    width: 52px;
    height: 52px;
  }

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

  .site-footer {
    padding: 42px 24px 24px;
  }
}
