:root {
  --bg: #f6ede7;
  --bg-deep: #201617;
  --panel: rgba(255, 248, 242, 0.76);
  --line: rgba(68, 35, 28, 0.12);
  --ink: #231718;
  --ink-soft: rgba(35, 23, 24, 0.68);
  --accent: #b44b35;
  --shadow: 0 28px 80px rgba(76, 35, 28, 0.12);
  --content-width: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "Noto Serif SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(255, 218, 188, 0.8), transparent 24%),
    linear-gradient(180deg, #fbf4ee 0%, #f4e7dc 100%);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.page-shell::before {
  top: 80px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(255, 208, 170, 0.28);
}

.page-shell::after {
  right: -80px;
  bottom: 120px;
  width: 280px;
  height: 280px;
  background: rgba(180, 75, 53, 0.12);
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(34, 20, 22, 0.16) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  mix-blend-mode: soft-light;
}

.hero-section,
.scan-section {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.hero-section {
  padding: 28px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fffaf6;
  background: linear-gradient(135deg, #8d301f 0%, #db7b59 100%);
  box-shadow: 0 16px 40px rgba(141, 48, 31, 0.22);
}

.brand-name,
.brand-subline,
.eyebrow,
.lead {
  margin: 0;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-subline {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ghost-link,
.primary-action {
  text-decoration: none;
}

.ghost-link {
  padding: 12px 18px;
  border: 1px solid rgba(60, 31, 24, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 246, 0.62);
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(3.4rem, 7.2vw, 6rem);
  line-height: 0.92;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.lead {
  margin-top: 20px;
  max-width: 28ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  color: #fff8f2;
  font-weight: 700;
  background: linear-gradient(135deg, #8d301f 0%, #d67554 100%);
  box-shadow: 0 18px 40px rgba(141, 48, 31, 0.24);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 22px;
  border: 1px solid rgba(68, 35, 28, 0.08);
  background: rgba(255, 251, 247, 0.92);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(76, 35, 28, 0.08);
}

.hero-tags span:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 244, 236, 0.98), rgba(255, 225, 208, 0.92));
}

.hero-tags span:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 249, 243, 0.98), rgba(243, 228, 220, 0.95));
}

.hero-tags span:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 246, 240, 0.98), rgba(255, 235, 223, 0.94));
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  min-height: 660px;
}

.hero-main-frame,
.hero-side-card,
.scan-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-main-frame,
.hero-side-card {
  position: absolute;
  overflow: hidden;
}

.hero-main-frame {
  top: 0;
  left: 0;
  width: 76%;
  aspect-ratio: 4 / 5.4;
  border-radius: 34px;
}

.hero-main-image,
.hero-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-card {
  width: 38%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}

.hero-side-top {
  right: 0;
  top: 56px;
}

.hero-side-bottom {
  right: 42px;
  bottom: 42px;
}

@media (max-width: 1280px) and (min-width: 1041px) {
  .hero-grid {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  }

  h1 {
    font-size: clamp(3.1rem, 6.2vw, 5.2rem);
  }

  .hero-visual {
    width: min(100%, 460px);
    min-height: 590px;
  }

  .hero-side-bottom {
    right: 26px;
    bottom: 28px;
  }
}

.scan-section {
  padding: 4px 0 60px;
}

.scan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.qr-frame {
  width: 100%;
  max-width: 260px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
}

.qr-signature {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .scan-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero-main-frame,
  .hero-side-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .hero-main-frame {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .hero-section,
  .scan-section {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .hero-section {
    padding: 20px 0 26px;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
  }

  .brand-lockup {
    width: 100%;
  }

  .ghost-link {
    width: auto;
    align-self: flex-start;
    padding: 10px 16px;
  }

  .hero-copy {
    padding: 8px 0 0;
    text-align: left;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
    line-height: 0.96;
    max-width: none;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  h1 span:last-child {
    margin-top: 8px;
  }

  .lead {
    max-width: none;
    margin-top: 16px;
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
  }

  .primary-action {
    width: auto;
    min-width: 168px;
  }

  .hero-tags {
    justify-content: flex-start;
    margin-top: 20px;
    gap: 12px;
  }

  .hero-tags span {
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.98rem;
    border-radius: 18px;
  }

  .hero-visual {
    display: none;
  }

  .scan-section {
    padding: 8px 0 54px;
  }

  .scan-card {
    padding: 22px;
    border-radius: 26px;
    gap: 18px;
    text-align: left;
    background:
      linear-gradient(180deg, rgba(255, 250, 246, 0.88), rgba(250, 240, 232, 0.92)),
      rgba(255, 248, 242, 0.76);
  }

  .qr-panel {
    justify-items: flex-start;
    gap: 10px;
  }

  .qr-frame {
    max-width: 240px;
    padding: 14px;
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(76, 35, 28, 0.12);
  }

  .qr-signature {
    padding-left: 6px;
    border-left: 2px solid rgba(180, 75, 53, 0.28);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
  }
}
