/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Jaro&family=Geist:wght@400;700&family=Inter:wght@400;700&family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+TC:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* ===== LOCALIZED FONT STACKS (driven by <html lang>) ===== */
:root {
  font-family: 'Geist', system-ui, sans-serif;
}

html[lang="zh-CN"],
:root[lang="zh-CN"] {
  font-family: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

html[lang="zh-TW"],
:root[lang="zh-TW"] {
  font-family: "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}

html[lang="ja"],
:root[lang="ja"] {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

html[lang="de"],
:root[lang="de"] {
  font-family: 'Geist', "Inter", system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F4F3EF;
  color: #0A050F;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

/* ===== I18N FADE GUARD（语言切换前隐藏，防止英文闪烁） ===== */
html.i18n-loading body {
  opacity: 0;
}

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

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
}

/* ===== SECTION SPACING ===== */
section {
  margin-bottom: 10px;
}

/* ===== CHECKERBOARD DIVIDER ===== */
.checkerboard {
  width: 100%;
  height: 22px;
  background-image: repeating-conic-gradient(#0A050F 0% 25%, transparent 0% 50%);
  background-size: 22px 22px;
  background-position: 0 0;
  margin-bottom: 10px;
}

/* ===== NAV ===== */
nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
  border-bottom: 1.5px solid #0A050F;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #D2D2D2;
  z-index: 100;
}

nav .nav-logo {
  margin-left: 10px;
}

nav .nav-logo img {
  height: 36px;
  width: auto;
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .nav-links a {
  font-family: 'Jaro', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #0A050F;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav .nav-links a:hover {
  opacity: 0.6;
}

nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.custom-select {
  position: relative;
}

.custom-select-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  height: 34px;
  background: transparent;
  border: 1.5px solid #0A050F;
  border-radius: 10px;
  padding: 0 10px;
  color: #0A050F;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.custom-select-toggle:hover {
  background: #0A050F;
  color: #F4F3EF;
}

.custom-select-globe {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.custom-select-value {
  line-height: 1;
}

.custom-select-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.custom-select-toggle[aria-expanded="true"] .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: #F4F3EF;
  border: 1.5px solid #0A050F;
  border-radius: 10px;
  box-shadow: 4px 4px 0px #0A050F;
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 200;
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #0A050F;
  cursor: pointer;
  border-radius: 6px;
}

.custom-select-menu button:hover {
  background: #D2D2D2;
}

.custom-select-check {
  flex: 0 0 auto;
  width: 16px;
  text-align: center;
  visibility: hidden;
}

.custom-select-menu button.is-active .custom-select-check {
  visibility: visible;
}

.custom-select-label {
  flex: 1 1 auto;
  white-space: nowrap;
}

/* ===== HERO ===== */
#hero {
  padding: 140px 0 90px;
}

#hero h1 {
  font-family: 'Staatliches', sans-serif;
  font-size: 100px;
  line-height: 1.03;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  display: block;
  padding: 0;
}

html[lang="zh-CN"] #hero h1,
html[lang="zh-TW"] #hero h1 {
  line-height: 1.15;
}

#hero .hero-content {
  margin-left: 7px;
}

#hero .hero-body {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.27;
  margin: 0 0 27px 0;
}

#hero .hero-body strong {
  font-weight: 700;
}

#hero .hero-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 35px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 590px;
  align-items: center;
  gap: 60px;
}

html[lang="de"] .hero-left {
  min-width: 0;
}

html[lang="de"] #hero .hero-buttons {
  flex-wrap: wrap;
}
#hero-demo {
  position: relative;
  overflow: hidden;
  background: #F4F3EF;
  min-height: 460px;
}
.hero-scene {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transition: opacity 0.45s ease;
}
#hero-scene-cut {
  opacity: 1;
}
#hero-scene-scrapbook {
  opacity: 0;
  pointer-events: none;
  background: #F4F3EF;
}
#hero-sticker-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
#hero-sticker-float {
  position: absolute;
  display: none;
  z-index: 50;
}
#hero-cut-again {
  position: absolute;
  top: 4px; right: -11px;
  z-index: 60;
  background: transparent;
  color: #888888;
  border: none;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ===== BUTTONS ===== */
.btn {
  width: 284px;
  height: 56px;
  padding: 15px;
  font-family: 'Jaro', sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  border: 1.5px solid #0A050F;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px #0A050F;
  transition: box-shadow 0.1s, transform 0.1s;
}

@media (min-width: 769px) {
  html[lang="de"] .btn {
    width: fit-content;
    padding: 15px 28px;
    white-space: nowrap;
  }
}

.btn:hover {
  box-shadow: 2px 2px 0px #0A050F;
  transform: translate(2px, 2px);
}

.btn-primary {
  background-color: #0A050F;
  color: #F4F3EF;
}

.btn-secondary {
  background-color: #F4F3EF;
  color: #0A050F;
}

/* ===== SECTION LABEL (HOW IT WORKS / MADE WITH etc.) ===== */
.section-label {
  font-family: 'Jaro', sans-serif;
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  padding: 10px 0;
  margin-bottom: 30px;
}

/* ===== HOW IT WORKS ===== */
#how-it-works {
  padding-bottom: 100px;
  margin-bottom: 0;
}

.how-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-bottom: 27px;
}

.how-item.reverse {
  flex-direction: row-reverse;
}

.how-text {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.how-text h2 {
  font-family: 'Staatliches', sans-serif;
  font-size: 100px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.how-text p {
  font-family: inherit;
  font-size: 20px;
  line-height: 1.27;
  margin: 0;
}

.how-text .how-note {
  font-weight: 700;
  margin-top: 12px;
}

.how-image {
  width: 589px;
  height: 329px;
  background-color: #D9D9D9;
  border: 1.5px solid #0A050F;
  flex-shrink: 0;
}

/* ===== CUT ANIMATION STAGE ===== */
.cut-stage {
  position: relative;
  overflow: hidden;
  width: 472px;
  height: 357px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  transform: translateX(-60px);
}

.cut-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cut-sticker-wrap {
  position: absolute;
  left: 290px;
  top: 111px;
  width: 137px;
  height: 144px;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}

.cut-sticker {
  display: block;
  width: 100%;
  height: 100%;
}

.cut-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 472px;
  height: 357px;
  pointer-events: none;
}

.cut-dash-path {
  stroke: #FFFFFF;
}

.cut-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transform-origin: 0 0;
}

/* 贴纸激活态：极简弹起 + 微倾斜（无投影）。
   过渡放在 base 类上，使添加/移除 .is-cutout 都能平滑往返（无缝循环）；
   悬浮循环由 GSAP 作用在 .cut-sticker 上，互不冲突 */
.cut-sticker-wrap.is-cutout {
  transform: scale(1.02) rotate(-3deg);
}

/* ===== COLLECT ANIMATION STAGE ===== */
.collect-stage {
  position: relative;
  z-index: 0;
  overflow: hidden;
  width: 472px;
  height: 357px;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.collect-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.collect-grid {
  position: absolute;
  top: 98px;
  left: 46px;
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(2, 80px);
  column-gap: 56px;
  row-gap: 32px;
  pointer-events: none;
  z-index: 10;
}

.collect-item {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* 花朵：略大，基座在第 1 格，由 GSAP 移出窗口外再飞入；最高层级，不被边框/图形遮挡 */
.collect-item.item-flower {
  position: absolute;
  width: 92px;
  height: 92px;
  left: 40px;
  top: 92px;
  opacity: 0;
  z-index: 100;
}

/* 像素光标：置于花朵之上 */
.collect-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transform-origin: 0 0;
}

/* ===== CREATE ANIMATION STAGE ===== */
.create-stage {
  position: relative;
  overflow: hidden;
  width: 472px;
  height: 357px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  transform: translateX(-60px);
}

.create-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* 右侧画布容器：覆盖整个舞台，散落元素相对舞台绝对定位 */
.create-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.create-item {
  position: absolute;
  pointer-events: none;
}

/* 黄色大花：画布左上方 */
.item-yellow-1 {
  left: 148px;
  top: 86px;
  width: 58px;
  height: 56px;
}

/* 紫色花：画布右上方 */
.item-purple {
  left: 306px;
  top: 96px;
  width: 54px;
  height: 53px;
}

/* 红色小花：画布左下方 */
.item-red {
  left: 178px;
  top: 201px;
  width: 38px;
  height: 37px;
}

/* 蓝色花瓶：画布右下方 */
.item-vase {
  left: 320px;
  top: 181px;
  width: 90px;
  height: 123px;
}

/* 复制生成的第二朵黄花：初始隐藏，基座与黄花组装后位置一致（偏移由 JS 控制） */
.item-yellow-2 {
  left: 204px;
  top: 138px;
  width: 58px;
  height: 56px;
  opacity: 0;
}

/* 选中框（Bounding Box）：默认隐藏，细黑边框 + 四角手柄 + 顶部旋转手柄 */
.bounding-box {
  position: absolute;
  left: 204px;
  top: 138px;
  width: 58px;
  height: 56px;
  border: 1px solid #000;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}

.bounding-box .handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1px solid #000;
}

.bounding-box .handle.top-left {
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}

.bounding-box .handle.top-right {
  left: 100%;
  top: 0;
  transform: translate(-50%, -50%);
}

.bounding-box .handle.bottom-left {
  left: 0;
  top: 100%;
  transform: translate(-50%, -50%);
}

.bounding-box .handle.bottom-right {
  left: 100%;
  top: 100%;
  transform: translate(-50%, -50%);
}

/* 顶部旋转手柄：圆形 + 延伸线 */
.bounding-box .handle.rotate-handle {
  left: 50%;
  top: -18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.bounding-box .handle.rotate-handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 12px;
  background: #000;
  transform: translateX(-50%);
}

/* 图层调整后（点击 Layer 触发）：花瓶下沉至最底层，花朵自然覆盖瓶口 */
.create-canvas.is-layered .item-vase      { z-index: 2; }
.create-canvas.is-layered .item-yellow-1  { z-index: 3; }
.create-canvas.is-layered .item-yellow-2  { z-index: 4; }
.create-canvas.is-layered .item-purple    { z-index: 5; }
.create-canvas.is-layered .item-red       { z-index: 6; }



/* 左侧工具栏高亮覆盖层 */
.create-toolbar {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.create-toolbar .btn-tool {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: transparent;
}

.create-toolbar .btn-copy {
  left: 22px;
  top: 61px;
  width: 26px;
  height: 26px;
}

.create-toolbar .btn-layer {
  left: 53px;
  top: 61px;
  width: 26px;
  height: 26px;
}

.create-toolbar .btn-save {
  left: 22px;
  top: 200px;
  width: 58px;
  height: 20px;
  font-size: 11px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* 高亮/反色：黑色背景 + 白色图标/文字 */
.create-toolbar .btn-tool.is-active {
  background-color: #0A050F;
  color: #F4F3EF;
}

/* 像素光标：初始置于画布右下角之外（隐藏） */
.create-cursor {
  position: absolute;
  top: 326px;
  left: 442px;
  width: 22px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transform-origin: 0 0;
}

/* ===== MADE WITH WHIMCUT ===== */
#made-with-whimcut {
  padding: 0 100px 110px;
  margin-bottom: 0;
}

.showcase-title {
  font-family: 'Jaro', sans-serif;
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  padding: 10px 0;
  margin-bottom: 70px;
}

.showcase-carousel-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
  padding: 0 20px 0 20px;
}

.showcase-carousel {
  position: relative;
  width: 100%;
  height: 480px;
}

.showcase-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 294px;
  height: 436px;
  border: 1.5px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: #D2D2D2;
}

.card-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #D2D2D2;
  overflow: hidden;
}

.card-canvas img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.showcase-card[data-index="1"] .card-canvas img {
  max-width: 92%;
  max-height: 92%;
}

.showcase-card[data-index="0"] .card-canvas img,
.showcase-card[data-index="2"] .card-canvas img {
  max-width: 93%;
  max-height: 93%;
}

.card-label {
  height: 39px;
  border-top: 1.5px solid #000000;
  background-color: #FFFFFF;
  font-family: 'Staatliches', sans-serif;
  font-size: 16px;
  color: #000000;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  white-space: nowrap;
}

/* ===== PRICING ===== */
#pricing .pricing-headline {
  font-family: 'Staatliches', sans-serif;
  font-size: 100px;
  line-height: 1.03;
  text-transform: uppercase;
  margin: 50px 0 20px 0;
}

html[lang="zh-CN"] #pricing .pricing-headline,
html[lang="zh-TW"] #pricing .pricing-headline {
  line-height: 1.15;
}

#pricing .pricing-subtext {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.27;
  margin: 0 0 30px 0;
}

.pricing-cards-wrap {
  padding: 0 100px;
  display: flex;
  justify-content: center;
}

.pricing-cards {
  display: flex;
  gap: 100px;
  width: 1000px;
}

.pricing-card {
  flex: 1;
  border: 1.5px solid #0A050F;
  padding: 30px 40px;
  box-shadow: 4px 4px 0px #0A050F;
}

.pricing-card.free {
  background-color: #F4F3EF;
  color: #0A050F;
}

.pricing-card.full {
  background-color: #0A050F;
  color: #F4F3EF;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 141px;
  height: 34px;
  border: 1.5px solid currentColor;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 50px;
}

.pricing-price {
  font-family: 'Staatliches', sans-serif;
  font-size: 72px;
  line-height: 1;
  margin: 0 0 15px 0;
}

.pricing-desc {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.27;
  margin: 0 0 55px 0;
}

.pricing-features {
  list-style: none;
  margin: 0 0 40px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #C4C4C4;
}

.pricing-features li {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #C4C4C4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-features li .check {
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-weight: 400;
}

.pricing-card-btn {
  width: 100%;
  height: 48px;
  font-family: 'Jaro', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1.5px solid currentColor;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px #0A050F;
  transition: box-shadow 0.1s, transform 0.1s;
}

.pricing-card.free .pricing-card-btn {
  background-color: #F4F3EF;
  color: #0A050F;
  border-color: #0A050F;
  box-shadow: 4px 4px 0px #0A050F;
}

.pricing-card.full .pricing-card-btn {
  background-color: #F4F3EF;
  color: #0A050F;
  border: 1.5px solid #F4F3EF;
  box-shadow: none;
}

.pricing-card-btn:hover {
  box-shadow: 2px 2px 0px currentColor;
  transform: translate(2px, 2px);
}

/* ===== DOWNLOAD STRIP ===== */
#download {
  padding: 60px 0 30px;
  text-align: center;
}

#download p {
  font-family: 'Staatliches', sans-serif;
  font-size: 64px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

/* ===== FOOTER ===== */
footer {
  padding: 30px 100px 80px;
}

.footer-links {
  display: flex;
  gap: 270px;
  margin-bottom: 80px;
}

.footer-col h4 {
  font-family: 'Jaro', sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-family: inherit;
  font-size: 20px;
}

.footer-col ul li a:hover {
  opacity: 0.6;
}

.footer-logo {
  display: flex;
  justify-content: flex-start;
  margin-top: 130px;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 940px;
  width: 100%;
  height: auto;
}

.footer-copy {
  text-align: left;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* ===== ANCHOR OFFSET FOR FIXED NAV ===== */
#how-it-works,
#made-with-whimcut,
#pricing,
#download {
  scroll-margin-top: 70px;
}

.collect-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding-left: 145px;
}

.how-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: -5px;
}

html[lang="ja"] .how-text-wrap,
html[lang="de"] .how-text-wrap {
  padding-right: 48px;
}

.create-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.how-note {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.27;
}

.how-item:last-child {
  margin-bottom: 0;
}

#how-it-works .how-item {
  margin-top: 0;
  margin-bottom: 27px;
}

#how-it-works .how-item:first-of-type {
  margin-top: 80px;
}

#how-it-works .how-item:last-child {
  margin-bottom: 0;
}

.pricing-card-note {
  font-family: inherit;
  font-size: 12px;
  color: #595959;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

body {
  display: flex;
  flex-direction: column;
}

body > .checkerboard:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

@keyframes hero-hint {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1;    }
}
@keyframes hero-hint-snip {
  0%, 70%, 100% { transform: translateX(0) rotate(0deg);   }
  40%            { transform: translateX(3px) rotate(-20deg); }
}
#hero-instruction {
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  color: #888888;
  margin-top: 12px;
  transition: opacity 0.4s ease;
  animation: hero-hint 3s ease-in-out infinite;
}
#hero-instruction::before {
  content: '✂';
  margin-right: 6px;
  display: inline-block;
  animation: hero-hint-snip 3s ease-in-out infinite;
}

#hero-lasso-canvas {
  cursor: url('images/cursor-arrow.png') 0 0, auto;
}

/* ===== RESPONSIVE: NAV HAMBURGER（桌面端默认隐藏） ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0A050F;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 48px;
  }
  nav {
    padding: 0 48px;
  }
  #hero h1,
  .how-text h2,
  #pricing .pricing-headline,
  .changelog-hero h1,
  .faq-hero h1,
  .privacy-hero h1,
  .legal-hero h1 {
    font-size: 72px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #hero-demo {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
  }
  .pricing-cards-wrap {
    padding: 0 48px;
  }
  .pricing-cards {
    flex-direction: column;
    width: 100%;
    gap: 40px;
  }
  .footer-links {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
  }
  .footer-logo {
    margin-top: 40px;
  }
  #made-with-whimcut {
    padding: 0 48px 60px;
  }
  .showcase-title {
    margin-bottom: 32px;
  }
  .showcase-carousel {
    position: static;
    height: auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 0 16px;
    -webkit-overflow-scrolling: touch;
  }
  .showcase-card {
    position: static;
    flex: 0 0 auto;
    width: 260px;
    height: 390px;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  nav {
    padding: 0 24px;
  }
  .nav-hamburger {
    display: flex;
  }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: #D2D2D2;
    border-bottom: 1.5px solid #0A050F;
    padding: 16px 24px 24px;
  }
  nav .nav-links.is-open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    padding: 12px 0;
  }
  #hero h1,
  .how-text h2,
  #pricing .pricing-headline,
  .changelog-hero h1,
  .faq-hero h1,
  .privacy-hero h1,
  .legal-hero h1 {
    font-size: 52px;
  }
  #hero {
    padding: 60px 0 40px;
  }
  .hero-left {
    width: 100%;
  }
  .hero-right {
    width: 100%;
  }
  #hero .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }
  .btn {
    width: 100%;
  }
  .pricing-cards-wrap {
    padding: 0 24px;
  }
  #made-with-whimcut {
    padding: 0 24px 50px;
  }
}

.how-image-frame {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .how-item,
  .how-item.reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  #how-it-works .how-item:first-of-type {
    margin-top: 40px;
  }
  .how-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .how-text h2 {
    font-size: 56px;
  }
  .collect-text {
    padding-left: 0;
  }
  .how-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 472 / 357;
    overflow: hidden;
  }
  .how-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
  }
}

