:root {
  --navy: #071642;
  --navy-2: #123b73;
  --coral: #ff456d;
  --coral-dark: #e63158;
  --sky: #dff5ff;
  --sky-2: #a9defb;
  --cream: #fffaf0;
  --paper: #ffffff;
  --line: #d8e8f5;
  --muted: #61718e;
  --green: #77bd57;
  --orange: #f5a53b;
  --shadow: 0 18px 40px rgba(19, 57, 99, 0.14);
  --soft-shadow: 0 10px 24px rgba(19, 57, 99, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 8% 12%, rgba(100, 198, 250, 0.34), transparent 30%),
    linear-gradient(180deg, #aee9ff 0%, #effaff 26%, #fffaf0 100%);
}

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

button,
input {
  font: inherit;
}

.page-shell {
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px) 0 0 / 26px 26px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(96%, 1500px);
  margin: 10px auto 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 24px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(180, 216, 240, 0.85);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 220px;
  max-height: 54px;
  height: auto;
}

.nav-links,
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 42px);
  color: var(--navy);
  font-weight: 800;
}

.nav-links a,
.site-footer nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.site-footer nav a:hover {
  color: var(--coral);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(180deg, #ff5981, var(--coral));
  box-shadow: 0 10px 0 var(--coral-dark), 0 18px 28px rgba(255, 69, 109, 0.24);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.btn-small {
  min-width: 174px;
  min-height: 54px;
  padding-inline: 24px;
  justify-self: end;
  white-space: nowrap;
}

.upload-icon,
.grid-icon,
.palette-icon,
.brush-icon,
.portrait-icon,
.number-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: 28px;
  height: 28px;
}

.upload-icon::before {
  content: "";
  position: absolute;
  inset: 7px 2px 4px;
  background: currentColor;
  border-radius: 12px;
  box-shadow: 8px -8px 0 -3px currentColor, 15px -2px 0 -4px currentColor;
}

.upload-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 5px;
  width: 5px;
  height: 15px;
  background: currentColor;
  border-radius: 5px;
  box-shadow: 0 -2px 0 3px transparent;
}

.grid-icon {
  background:
    linear-gradient(#2d8ce9 0 0) 0 0 / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 10px 0 / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 20px 0 / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 0 10px / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 10px 10px / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 20px 10px / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 0 20px / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 10px 20px / 8px 8px,
    linear-gradient(#2d8ce9 0 0) 20px 20px / 8px 8px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 0 #0b559a);
}

.palette-icon {
  border-radius: 50%;
  background: #ffc067;
  box-shadow: inset 0 0 0 3px #c77520;
}

.palette-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 36%, #ff4f6e 0 4px, transparent 5px),
    radial-gradient(circle at 66% 30%, #2f8ee8 0 4px, transparent 5px),
    radial-gradient(circle at 60% 68%, #67b84b 0 4px, transparent 5px);
}

.brush-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 28px;
  left: 12px;
  top: 0;
  border-radius: 8px;
  background: linear-gradient(#1f7fda 0 55%, #c26c29 56% 100%);
  transform: rotate(38deg);
}

.portrait-icon,
.number-icon {
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd88f, #f77878);
  box-shadow: inset 0 0 0 3px rgba(7, 22, 66, 0.15);
}

.number-icon::after {
  content: "12";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 1000;
}

.ui-icon {
  --icon-size: 28px;
  display: inline-block;
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  vertical-align: middle;
  background: var(--icon-url) center / contain no-repeat;
}

.icon-upload-large {
  --icon-size: 96px;
  --icon-url: url("public/assets/generated/icons/upload-cloud.webp");
  filter: drop-shadow(0 10px 18px rgba(45, 140, 233, 0.22));
}

.icon-grid {
  --icon-url: url("public/assets/generated/icons/grid-size.webp");
}

.icon-colors {
  --icon-url: url("public/assets/generated/icons/colors-palette.webp");
}

.icon-preview {
  --icon-url: url("public/assets/generated/icons/preview-eye.webp");
}

.icon-folder {
  --icon-url: url("public/assets/generated/icons/choose-folder.webp");
}

.icon-generate {
  --icon-url: url("public/assets/generated/icons/generate-cloud.webp");
}

.section-band,
.section-pad {
  width: min(92%, 1460px);
  margin: 0 auto;
}

.section-pad {
  padding: 86px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(620px, 1.25fr);
  gap: 48px;
  min-height: 820px;
  align-items: center;
  padding: 84px 0 52px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(112vw, 1660px);
  height: clamp(260px, 31vw, 430px);
  transform: translateX(-50%);
  background: url("public/assets/generated/hero-island-background.webp") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0 50%, rgba(0, 0, 0, 0.35) 64%, #000 78%);
  mask-image: linear-gradient(180deg, transparent 0 50%, rgba(0, 0, 0, 0.35) 64%, #000 78%);
  pointer-events: none;
  z-index: 0;
}

.pixel-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pixel-sky span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(89, 190, 241, 0.25);
  box-shadow: 18px 18px 0 rgba(89, 190, 241, 0.18), -18px 36px 0 rgba(89, 190, 241, 0.14);
}

.pixel-sky span:nth-child(1) { left: 3%; top: 22%; }
.pixel-sky span:nth-child(2) { left: 52%; top: 10%; }
.pixel-sky span:nth-child(3) { right: 8%; top: 18%; }
.pixel-sky span:nth-child(4) { right: 3%; bottom: 24%; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(58px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 1000;
  color: var(--navy);
}

h1 span {
  display: block;
  color: var(--coral);
}

h2 {
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 1000;
  color: var(--navy);
}

h3 {
  font-size: 22px;
  line-height: 1.16;
  font-weight: 1000;
  color: var(--navy);
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.45;
}

.hero-support {
  max-width: 610px;
  font-size: 18px;
}

.hero-copy,
.hero-preview {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 34px 0 28px;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 640px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(230, 214, 187, 0.8);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.mini-features div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 5px 12px;
  padding: 8px 14px;
}

.mini-features div + div {
  border-left: 1px solid #e9d8be;
}

.mini-features strong,
.mini-features small {
  display: block;
}

.mini-features strong {
  font-weight: 1000;
}

.mini-features small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 750;
}

.hero-preview {
  position: relative;
  z-index: 1;
}

.preview-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.preview-card {
  min-width: 0;
}

.preview-card h2 {
  width: auto;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 9px 12px;
  color: white;
  background: linear-gradient(180deg, #2d79ca, #215fa6);
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 6px 0 rgba(10, 56, 118, 0.25);
}

.art-card {
  aspect-ratio: 0.78;
  min-height: 320px;
  border: 12px solid white;
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.original-art {
  position: relative;
  display: grid;
  place-items: center;
  background:
    url("public/assets/generated/hero-original-pet.webp") center / cover no-repeat,
    linear-gradient(#61c5f6 0 48%, #7ac86c 49% 74%, #efbc62 75%);
}

.original-art .pet-art {
  display: none;
}

.pet-art {
  position: relative;
  width: 175px;
  height: 215px;
}

.pet-art .face {
  position: absolute;
  left: 22px;
  top: 26px;
  width: 132px;
  height: 144px;
  border-radius: 44% 44% 48% 48%;
  background: linear-gradient(145deg, #ef9a32, #f7c775 72%);
  box-shadow: inset 0 -18px 0 rgba(112, 66, 24, 0.12);
}

.pet-art .ear {
  position: absolute;
  top: 0;
  width: 54px;
  height: 70px;
  background: #d98224;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pet-art .ear.left { left: 18px; transform: rotate(-18deg); }
.pet-art .ear.right { right: 18px; transform: rotate(18deg); }

.pet-art .eye {
  position: absolute;
  top: 78px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a130d;
  box-shadow: inset 4px 4px 0 white;
}

.pet-art .eye.left { left: 57px; }
.pet-art .eye.right { right: 57px; }

.pet-art .muzzle {
  position: absolute;
  left: 56px;
  top: 98px;
  width: 64px;
  height: 48px;
  border-radius: 50%;
  background: #fff7e8;
  box-shadow: inset 0 -4px 0 rgba(90, 57, 30, 0.12);
}

.pet-art .muzzle::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  width: 20px;
  height: 15px;
  border-radius: 50%;
  background: #3d2415;
}

.pet-art .tongue {
  position: absolute;
  left: 80px;
  top: 133px;
  width: 24px;
  height: 32px;
  border-radius: 0 0 18px 18px;
  background: #f26f59;
}

.grid-art,
.number-art,
.tiny-grid,
.card-visual,
.case-art,
.sample-thumb,
.example-flow span {
  background-color: #8fd6ff;
  background-image:
    linear-gradient(rgba(7, 22, 66, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 22, 66, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.grid-art {
  background:
    url("public/assets/generated/hero-pixel-grid-pet.webp") center / cover no-repeat,
    #8fd6ff;
}

.number-art {
  position: relative;
  background:
    url("public/assets/generated/hero-number-guide-pixel-dog.webp") center / cover no-repeat,
    #8fd6ff;
}

.pixel-dog {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 0 25%, #c46b22 25% 34%, transparent 34% 66%, #c46b22 66% 75%, transparent 75%),
    linear-gradient(90deg, transparent 0 20%, #ef9a32 20% 80%, transparent 80%) 0 16% / 100% 22%,
    linear-gradient(90deg, transparent 0 22%, #ef9a32 22% 78%, transparent 78%) 0 38% / 100% 26%,
    linear-gradient(90deg, transparent 0 28%, #fff7e8 28% 72%, transparent 72%) 0 54% / 100% 18%,
    linear-gradient(90deg, transparent 0 30%, #ef9a32 30% 43%, transparent 43% 57%, #ef9a32 57% 70%, transparent 70%) 0 74% / 100% 20%,
    linear-gradient(#69c7f4 0 48%, #7ac86c 49% 76%, #efbc62 77%);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.grid-art .pixel-dog {
  display: none;
}

.number-art {
  display: block;
}

.number-art::before {
  content: none;
}

.number-art::after {
  content: none;
}

.step-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: linear-gradient(180deg, #2d79ca, #215fa6);
  border-radius: 14px;
  font-size: 26px;
  font-weight: 1000;
  box-shadow: 0 7px 0 rgba(10, 56, 118, 0.28);
}

.palette-card {
  margin: 26px auto 0;
  padding: 20px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.swatches span {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--c);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 3px 8px rgba(7, 22, 66, 0.12);
}

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

.converter-panel,
.difference-panel,
.import-card,
.palette-tool {
  display: grid;
  gap: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.converter-panel {
  grid-template-columns: 0.9fr 1.1fr;
}

.drop-zone {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border: 3px dashed #9bd6f4;
  border-radius: 24px;
  background:
    linear-gradient(rgba(45, 140, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 140, 233, 0.06) 1px, transparent 1px),
    #f5fcff;
  background-size: 22px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.drop-zone:focus-visible {
  outline: 4px solid rgba(255, 69, 109, 0.28);
  outline-offset: 4px;
}

.drop-zone.is-dragging,
.drop-zone.has-file {
  border-color: var(--coral);
  background-color: #fff5f7;
  transform: translateY(-2px);
}

.upload-cloud {
  width: 96px;
  height: 70px;
  color: var(--coral);
  position: relative;
}

.upload-cloud::before {
  content: "";
  position: absolute;
  inset: 18px 4px 0;
  background: currentColor;
  border-radius: 32px;
  box-shadow: 24px -18px 0 -4px currentColor, 48px -10px 0 -7px currentColor;
}

.tool-settings {
  display: grid;
  gap: 22px;
}

.usecase-artwork {
  min-height: 300px;
  border: 10px solid white;
  border-radius: 24px;
  background:
    url("public/assets/generated/upload-converter-panel.webp") center / contain no-repeat,
    #f5fcff;
  box-shadow: var(--soft-shadow);
}

.usecase-artwork {
  width: min(880px, 100%);
  min-height: 360px;
  margin: 0 auto 28px;
  background:
    url("public/assets/generated/usecase-collage-art.webp") center / contain no-repeat,
    #f5fcff;
}

.setting-group,
.output-preview,
.feature-card,
.steps article,
.difference-cards article,
.usecase-grid article,
.example-card,
.faq-list details,
.palette-options article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.setting-group,
.output-preview {
  padding: 22px;
}

.setting-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 1000;
}

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

.segmented button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: #f6fbff;
  font-weight: 900;
}

.segmented button.active {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.preview-label strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-label span {
  color: var(--muted);
  font-weight: 750;
}

.tiny-grid {
  height: 170px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid #98cfe9;
  background-size: 15px 15px;
  background:
    url("public/assets/generated/section-paint-mode.webp") center / cover no-repeat,
    #def5ff;
}

.preview-viewport {
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid #98cfe9;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(45, 140, 233, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 140, 233, 0.07) 1px, transparent 1px),
    #f5fcff;
  background-size: 16px 16px;
  box-shadow: var(--soft-shadow);
}

.converter-preview {
  display: block;
  width: 100%;
}

.converter-preview::before {
  content: "Your pixel grid preview will appear here.";
  min-height: 280px;
  display: none;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.converter-preview[data-preview-empty="true"]::before {
  display: grid;
}

.converter-preview[data-preview-empty="true"] canvas {
  display: none;
}

.preview-viewport canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  image-rendering: pixelated;
}

.guide-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

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

.converter-preview-guide::before {
  content: "Your paint-by-number guide will appear here.";
  min-height: 180px;
}

.converter-preview-guide[data-guide-empty="true"]::before {
  display: grid;
}

.converter-preview-guide[data-guide-empty="true"] canvas {
  display: none;
}

.converter-preview-guide {
  border: 1px dashed #98cfe9;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(45, 140, 233, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 140, 233, 0.07) 1px, transparent 1px),
    #f5fcff;
  background-size: 16px 16px;
}

.converter-preview-guide canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  image-rendering: pixelated;
}

.result-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 16px;
}

.result-palette span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 1000;
  text-shadow: 0 1px 3px rgba(7, 22, 66, 0.5);
  border-radius: 9px;
  background: var(--c);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.13), 0 3px 8px rgba(7, 22, 66, 0.12);
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

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

.feature-card,
.usecase-grid article,
.example-card {
  padding: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}

.feature-card .grid-icon,
.feature-card .portrait-icon,
.feature-card .number-icon,
.feature-card .palette-icon {
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  filter: none;
}

.feature-card .grid-icon {
  background-image: url("public/assets/generated/feature-icon-grid.webp");
}

.feature-card .portrait-icon {
  background-image: url("public/assets/generated/feature-icon-photo.webp");
}

.feature-card .number-icon {
  background-image: url("public/assets/generated/feature-icon-number.webp");
}

.feature-card .palette-icon {
  background-image: url("public/assets/generated/feature-icon-palette.webp");
}

.feature-card .number-icon::after,
.feature-card .palette-icon::before {
  content: none;
}

.card-visual {
  height: 128px;
  margin-top: 20px;
  border-radius: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.grid-strip {
  background-image: url("public/assets/generated/feature-strip-grid.webp");
}

.portrait-strip {
  background-image: url("public/assets/generated/feature-strip-photo.webp");
  background-position: center 44%;
}

.number-strip {
  background-image: url("public/assets/generated/feature-strip-number.webp");
}

.swatch-strip {
  background-image: url("public/assets/generated/feature-strip-palette.webp");
}

.number-strip::after,
.grid-strip::after,
.swatch-strip::before {
  content: none;
}

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

.steps article {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 22px;
}

.step-card h3 {
  min-height: 48px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: white;
  background: var(--coral);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 1000;
}

.step-visual {
  position: relative;
  min-height: 154px;
  margin: 4px 0 18px;
  border: 8px solid #f7fbff;
  border-radius: 18px;
  background: #f5fcff center / contain no-repeat;
  box-shadow: inset 0 0 0 1px rgba(136, 200, 237, 0.42), var(--soft-shadow);
}

.step-upload .step-visual {
  background-image: url("public/assets/generated/hero-original-pet.webp");
  background-size: cover;
}

.step-grid .step-visual {
  background-image: url("public/assets/generated/icons/grid-size.webp");
  background-size: 84px 84px;
}

.step-grid .step-visual::before {
  content: "32x32";
  position: absolute;
  right: 14px;
  top: 18px;
  color: var(--navy);
  font-weight: 1000;
}

.step-colors .step-visual {
  background-image: url("public/assets/generated/icons/colors-palette.webp");
  background-size: 88px 88px;
}

.step-colors .step-visual::after,
.step-recreate .step-visual::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(90deg, #a66a2a 0 10%, #f5c983 10% 20%, #ff596d 20% 30%, #e85b35 30% 40%, #8abc35 40% 50%, #6bd0cf 50% 60%, #6652a8 60% 70%, #47433d 70% 80%, #d9d0c5 80%);
  box-shadow: 0 4px 10px rgba(7, 22, 66, 0.1);
}

.step-guide .step-visual {
  background-image: url("public/assets/generated/hero-number-guide-pixel-dog.webp");
  background-size: cover;
  image-rendering: auto;
}

.step-recreate .step-visual {
  background-image: url("public/assets/generated/section-paint-mode.webp");
  background-size: cover;
  background-position: center;
}

.difference-panel,
.import-card,
.palette-tool {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
}

.import-logo-badge {
  display: block;
  width: min(280px, 52%);
  height: auto;
  margin: -4px 0 22px;
  filter: drop-shadow(0 8px 18px rgba(19, 57, 99, 0.08));
}

.difference-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.difference-cards article {
  padding: 22px;
}

.usecase-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-art {
  display: block;
  height: 300px;
  margin-bottom: 18px;
  border-radius: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(7, 22, 66, 0.08);
}

.album {
  background-color: #f7fbff;
  background-image: url("public/assets/generated/usecases/album-cover.webp");
}

.face {
  background-color: #f7fbff;
  background-image: url("public/assets/generated/usecases/portrait-icon.webp");
}

.shirt {
  background-color: #f7fbff;
  background-image: url("public/assets/generated/usecases/shirt-pattern.webp");
}

.food {
  background-color: #f7fbff;
  background-image: url("public/assets/generated/usecases/food-icon.webp");
}

.poster {
  background-color: #f7fbff;
  background-image: url("public/assets/generated/usecases/room-poster.webp");
}

.item {
  background-color: #f7fbff;
  background-image: url("public/assets/generated/usecases/custom-item.webp");
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.compare-table div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-table div:first-child {
  color: white;
  background: #2771bd;
}

.compare-table strong,
.compare-table span {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.compare-table span:nth-child(2),
.compare-table strong:nth-child(2) {
  border-left: 1px solid var(--line);
}

.palette-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.sample-thumb {
  width: min(100%, 520px);
  aspect-ratio: 1.62;
  border: 10px solid white;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  background:
    url("public/assets/generated/palette-tool-art.webp") center / cover no-repeat,
    #9bd6ff;
}

.palette-options {
  display: grid;
  gap: 16px;
}

.palette-options article {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.palette-options article.active {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 69, 109, 0.14), var(--soft-shadow);
}

.palette-options strong {
  font-size: 22px;
}

.palette-options span {
  color: var(--muted);
  font-weight: 800;
}

.example-flow {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.example-flow span {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 6px solid white;
  box-shadow: var(--soft-shadow);
  background-size: cover;
  background-position: center;
}

.example-card:nth-child(1) .example-flow span:nth-of-type(1) {
  background-image: url("public/assets/generated/hero-original-pet.webp");
}

.example-card:nth-child(1) .example-flow span:nth-of-type(2) {
  background-image: url("public/assets/generated/hero-pixel-grid-pet.webp");
}

.example-card:nth-child(1) .example-flow span:nth-of-type(3) {
  background-image: url("public/assets/generated/hero-number-guide-pet.webp");
}

.example-card:nth-child(2) .example-flow span:nth-of-type(1),
.example-card:nth-child(2) .example-flow span:nth-of-type(2),
.example-card:nth-child(2) .example-flow span:nth-of-type(3) {
  background-image: url("public/assets/generated/feature-grid-art.webp");
}

.example-card:nth-child(2) .example-flow span:nth-of-type(1) {
  background-position: 20% 18%;
}

.example-card:nth-child(2) .example-flow span:nth-of-type(2) {
  background-position: 77% 18%;
}

.example-card:nth-child(2) .example-flow span:nth-of-type(3) {
  background-position: 80% 74%;
}

.example-card:nth-child(3) .example-flow span:nth-of-type(1),
.example-card:nth-child(3) .example-flow span:nth-of-type(2),
.example-card:nth-child(3) .example-flow span:nth-of-type(3) {
  background-image: url("public/assets/generated/palette-tool-art.webp");
}

.example-card:nth-child(3) .example-flow span:nth-of-type(1) {
  background-position: 17% 45%;
}

.example-card:nth-child(3) .example-flow span:nth-of-type(2) {
  background-position: 73% 34%;
}

.example-card:nth-child(3) .example-flow span:nth-of-type(3) {
  background-position: 73% 72%;
}

.example-flow i {
  height: 12px;
  border-radius: 99px;
  background: #2771bd;
}

.poster-flow span {
  background-color: #ffc7cf;
}

.icon-flow span {
  background-color: #c4f0e8;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

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

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 20px;
  font-weight: 1000;
}

.faq-list p {
  margin: 14px 0 0;
}

.site-footer {
  width: min(92%, 1460px);
  margin: 28px auto 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,255,255,0.72)),
    url("public/assets/generated/island-footer-scene.webp") center / cover no-repeat,
    radial-gradient(circle at 18% 70%, rgba(122, 200, 108, 0.3), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(223,245,255,0.9));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.site-footer img {
  width: 210px;
  height: auto;
}

.site-footer p {
  margin: 10px 0 6px;
}

.site-footer small {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .converter-panel,
  .difference-panel,
  .import-card,
  .palette-tool {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 820px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .brand img {
    width: 170px;
  }

  .site-header .btn {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-lede {
    font-size: 20px;
  }

  .mini-features,
  .preview-steps,
  .feature-grid,
  .steps,
  .difference-cards,
  .usecase-grid,
  .example-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .mini-features div + div {
    border-left: 0;
    border-top: 1px solid #e9d8be;
  }

  .step-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .art-card {
    aspect-ratio: 1;
    min-height: 260px;
  }

  .converter-preview,
  .download-actions {
    grid-template-columns: 1fr;
  }

  .palette-preview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .section-pad {
    padding: 62px 0;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .btn {
    width: 100%;
  }

  .converter-panel,
  .difference-panel,
  .import-card,
  .palette-tool {
    padding: 18px;
  }

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