:root {
  --bg: #fbfaf8;
  --ink: #17171c;
  --muted: #6b6b76;
  --line: #e7e5e1;
  --card: #ffffff;
  --tile: #f3f2ef;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --green: #0f8a5f;
  --green-soft: #e8f6ef;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, "Noto Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(251, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav a.on { color: var(--ink); }
.nav .new { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mini-search {
  display: flex; align-items: center; gap: 8px; width: 240px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #9a9aa3; font-size: 13px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.big { height: 50px; font-size: 15px; padding: 0 20px; border-radius: 12px; }
.btn svg { width: 17px; height: 17px; }

/* hero */
.hero { padding: 56px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 99px; }
h1 { font-size: 52px; line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 16px; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.search {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 23, 28, 0.06); max-width: 580px;
}
.search span { flex: 1; color: #9a9aa3; font-size: 15px; }
.search svg { width: 20px; height: 20px; color: #9a9aa3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 600px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: #3a3a44; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-art { position: relative; height: 440px; }
.hero-art .panel {
  position: absolute; border-radius: 20px; background: var(--tile); overflow: hidden;
  border: 1px solid var(--line);
}
.hero-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-art .p1 { left: 0; top: 10px; width: 52%; height: 420px; }
.hero-art .p1 img { object-fit: cover; }
.hero-art .p2 { right: 0; top: 0; width: 45%; height: 205px; }
.hero-art .p3 { right: 0; bottom: 0; width: 45%; height: 205px; background: #000; }
.tag-float {
  position: absolute; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 99px; box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.dots {
  background-color: #f6f5f2;
  background-image: radial-gradient(#dedcd6 1px, transparent 1px);
  background-size: 14px 14px;
}

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.trust b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* sections */
.section { padding: 34px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.sec-head a { font-size: 14px; font-weight: 600; color: var(--accent); }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat .im { height: 150px; }
.cat .im img { width: 100%; height: 100%; object-fit: contain; }
.cat .t { padding: 10px 14px 12px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.cat .t span { color: var(--muted); font-weight: 500; font-size: 13px; }

/* generator */
.gen { display: grid; grid-template-columns: 380px 1fr; gap: 0; background: var(--ink); color: #fff; border-radius: 22px; overflow: hidden; }
.gen-l { padding: 30px; }
.gen-l h2 { font-size: 24px; margin: 6px 0 6px; letter-spacing: -0.02em; }
.gen-l p { color: #b9b9c4; margin: 0 0 20px; font-size: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: #a3a3ae; margin-bottom: 6px; font-weight: 500; }
.sel { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 14px; border-radius: 10px; background: #26262e; border: 1px solid #34343e; font-size: 14px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg div { text-align: center; height: 38px; line-height: 38px; border-radius: 9px; background: #26262e; border: 1px solid #34343e; font-size: 13px; }
.seg div.on { background: #fff; color: var(--ink); font-weight: 600; }
.gen-r { background: #1f1f26; padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.gen-card { background: #fff; border-radius: 14px; overflow: hidden; position: relative; }
.gen-card img { width: 100%; height: 280px; object-fit: contain; display: block; }
.gen-card .timer { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.gen-card .nm { padding: 8px 12px 11px; font-size: 13px; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }

/* pose grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.card .im { aspect-ratio: 1 / 1; position: relative; }
.card .im img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { font-size: 11px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: 99px; }
.badge.duo { background: #fff4e6; border-color: #ffd9a8; color: #a65b00; }
.card .dl {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.card .dl svg { width: 18px; height: 18px; }
.card .meta { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card .meta b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.card .meta span { font-size: 13px; color: var(--muted); }
.angles { display: flex; gap: 4px; margin-top: 8px; }
.angles i { font-style: normal; font-size: 11px; font-weight: 600; color: #55555f; background: var(--tile); padding: 2px 7px; border-radius: 6px; }

.foot { margin-top: 30px; border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 30px; }
.foot b { color: var(--ink); }

/* detail page */
.crumb { font-size: 13px; color: var(--muted); padding: 20px 0 14px; }
.crumb b { color: var(--ink); font-weight: 600; }
.detail { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.viewer { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; background: var(--tile); padding: 4px; border-radius: 11px; }
.tabs div { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; color: var(--muted); }
.tabs div.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tools { display: flex; gap: 6px; }
.tool { height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #3a3a44; border: 1px solid var(--line); border-radius: 9px; }
.tool svg { width: 15px; height: 15px; }
.stage { height: 640px; position: relative; }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.angle-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.angle { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.angle.on { border: 2px solid var(--accent); }
.angle img { width: 100%; height: 96px; object-fit: contain; display: block; }
.angle div { font-size: 12px; font-weight: 600; text-align: center; padding: 4px 0 6px; color: #3a3a44; }

.side h1 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.025em; }
.side .sub { color: var(--muted); margin: 0 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--tile); color: #3a3a44; }
.dl-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl-row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #3a3a44; }
.dl-row .tx { flex: 1; }
.dl-row .tx b { display: block; font-size: 14px; }
.dl-row .tx span { font-size: 12px; color: var(--muted); }
.dl-row .go { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; }
.dl-row .go svg { width: 16px; height: 16px; }
.license { margin-top: 14px; background: var(--green-soft); border: 1px solid #c9ead9; color: #0b5e41; border-radius: 14px; padding: 14px 16px; font-size: 13px; }
.license b { display: block; font-size: 14px; margin-bottom: 4px; color: #084a33; }
.license ul { margin: 6px 0 0; padding-left: 18px; }
.info { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.info b { display: block; color: var(--ink); font-size: 13px; }
.how { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.how div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.how b { display: block; margin-bottom: 4px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }
.how .n { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; font-size: 13px; }

/* mobile */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 56px; gap: 10px; }
  .nav, .mini-search, .top-right .btn { display: none; }
  .m-icons { display: flex !important; }
  .detail { grid-template-columns: 1fr; gap: 18px; }
  .stage { height: 400px; }
  .viewer-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .tabs div { flex: 1; text-align: center; padding: 7px 4px; }
  .tools { justify-content: space-between; }
  .angle img { height: 64px; }
  .angle-row { gap: 6px; padding: 10px; }
  .side h1 { font-size: 24px; }
  .crumb { padding: 12px 0 10px; font-size: 12px; }
  .info { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sticky-dl { display: flex !important; }
  .foot .wrap { flex-direction: column; }
  .hide-m { display: none; }
}
.m-icons { display: none; gap: 8px; margin-left: auto; }
.m-icons div { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; }
.m-icons svg { width: 18px; height: 18px; }
.sticky-dl {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px 16px;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); gap: 10px; z-index: 9;
}
.sticky-dl .btn { flex: 1; height: 48px; }
