:root {
  --ink: #1f1c20;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --cream: #eef3ef;
  --wine: #9a4961;
  --rose: #d8a1aa;
  --gold: #b99662;
  --sage: #71877b;
  --plum: #44313c;
  --line: rgba(31, 28, 32, 0.1);
  --shadow: 0 24px 70px rgba(63, 53, 58, 0.13);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(232, 238, 233, 0.95) 0%, rgba(251, 250, 247, 0.5) 34%, transparent 58%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f7f3 46%, #fbfaf7 100%);
}

button,
a {
  font: inherit;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tipPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid rgba(31, 28, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(31, 28, 32, 0.62);
  font-size: 14px;
}

.main-nav a,
.header-cta {
  transition: color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}

.main-nav a:hover {
  color: var(--wine);
  transform: translateY(-1px);
}

.header-cta,
.icon-button {
  border: 0;
  cursor: pointer;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--wine);
  background: rgba(154, 73, 97, 0.07);
  border: 1px solid rgba(154, 73, 97, 0.18);
  border-radius: 999px;
}

.hero {
  min-height: calc(92vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: 36px;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 56px) 42px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 620px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-subtitle {
  max-width: 580px;
  color: rgba(31, 28, 32, 0.66);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(63, 53, 58, 0.13);
}

.btn:active,
.small-button:active,
.filter:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  color: #fff;
  background: var(--wine);
}

.btn.light,
.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(31, 28, 32, 0.1);
}

.hero-media {
  width: min(100%, 620px);
  min-height: 440px;
  aspect-ratio: 4 / 3;
  justify-self: end;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  opacity: 0;
  transform: scale(var(--hero-image-zoom, 1));
  display: block;
  transition: opacity 0.32s var(--ease);
}

.hero-media.has-image img {
  opacity: 1;
}

.hero-media img:not([src]) {
  visibility: hidden;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 clamp(18px, 4vw, 56px) 72px;
}

.trust-strip div {
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 28, 32, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  transition: transform 0.26s var(--ease), background 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.trust-strip div:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(154, 73, 97, 0.14);
  box-shadow: 0 22px 52px rgba(63, 53, 58, 0.11);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 8px;
  color: rgba(31, 28, 32, 0.58);
  font-size: 14px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 72px clamp(18px, 4vw, 56px) 24px;
  color: var(--ink);
  background: var(--paper);
  scroll-margin-top: 0;
}

.section-head#shop {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  padding-top: 42px;
  padding-bottom: 16px;
  text-align: center;
}

.section-head#shop .eyebrow {
  margin-bottom: 4px;
}

.section-head#shop h2 {
  margin-bottom: 0;
}

.section-head#shop .filters {
  justify-content: center;
}

.section-head .eyebrow,
.feature-band .eyebrow,
.journal .eyebrow,
.privacy .eyebrow {
  color: var(--wine);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter {
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(31, 28, 32, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.filter:hover {
  border-color: rgba(154, 73, 97, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(63, 53, 58, 0.08);
}

.filter.active {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px) 80px;
  color: var(--ink);
  background: var(--paper);
}

.product-grid.is-updating .product-card {
  animation: fadeUp 0.38s var(--ease) both;
}

.product-grid.is-updating .product-card:nth-child(2) {
  animation-delay: 0.04s;
}

.product-grid.is-updating .product-card:nth-child(3) {
  animation-delay: 0.08s;
}

.product-grid.is-updating .product-card:nth-child(4) {
  animation-delay: 0.12s;
}

.product-grid.is-updating .product-card:nth-child(n + 5) {
  animation-delay: 0.16s;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  color: rgba(31, 28, 32, 0.66);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(31, 28, 32, 0.08);
  border-radius: 18px;
  animation: fadeUp 0.38s var(--ease) both;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 73, 97, 0.14);
  box-shadow: 0 18px 42px rgba(63, 53, 58, 0.1);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 35%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(135deg, rgba(232, 238, 233, 0.9), rgba(248, 235, 238, 0.9));
}

.product-visual.has-image {
  background: #f2f5f1;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(var(--image-zoom, 1));
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(calc(var(--image-zoom, 1) * 1.025));
}

.product-shape {
  width: 44%;
  height: 68%;
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18)), var(--shape);
  box-shadow: inset -18px -26px 42px rgba(31, 28, 32, 0.12), 0 24px 42px rgba(63, 53, 58, 0.14);
  transform: rotate(var(--rotate));
  transition: transform 0.35s var(--ease);
}

.product-card:hover .product-shape {
  transform: rotate(var(--rotate)) scale(1.04);
}

.product-shape.slim {
  width: 24%;
  border-radius: 999px;
}

.product-shape.box {
  width: 58%;
  height: 48%;
  border-radius: 18px;
}

.product-info {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-info p {
  min-height: 54px;
  color: rgba(31, 28, 32, 0.64);
  line-height: 1.55;
}

.product-meta,
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 9px;
  color: var(--wine);
  background: rgba(154, 73, 97, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 20px;
  font-weight: 800;
}

.quick-actions {
  display: flex;
  gap: 8px;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.small-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(63, 53, 58, 0.1);
}

.small-button.dark {
  color: #fff;
  background: var(--plum);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 clamp(18px, 4vw, 56px) 80px;
  padding: clamp(28px, 5vw, 56px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(216, 161, 170, 0.22), transparent 42%),
    linear-gradient(120deg, #f8f1f3, #eef3ef);
  border-radius: 28px;
  scroll-margin-top: 0;
}

.feature-copy p {
  max-width: 560px;
  color: rgba(31, 28, 32, 0.66);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-list article,
.journal-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 28, 32, 0.08);
  border-radius: 22px;
}

.video-card {
  display: grid;
  align-content: start;
  gap: 12px;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 73, 97, 0.14);
  box-shadow: 0 18px 38px rgba(63, 53, 58, 0.09);
}

.video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  margin-top: 6px;
  padding: 0 14px;
  color: #fff;
  background: var(--plum);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.feature-list span,
.journal-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--wine);
  font-weight: 800;
}

.journal,
.privacy {
  color: var(--ink);
  padding: 0 clamp(18px, 4vw, 56px) 80px;
  scroll-margin-top: 0;
}

.section-head.compact {
  display: block;
  padding: 0 0 24px;
}

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

.journal-grid p {
  color: rgba(31, 28, 32, 0.62);
  line-height: 1.6;
}

.privacy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 56px) 80px;
  padding: 34px;
  background: linear-gradient(135deg, #f0f5f1, #ffffff);
  color: var(--ink);
  border: 1px solid rgba(31, 28, 32, 0.08);
  border-radius: 26px;
}

.privacy .eyebrow {
  color: var(--sage);
}

.privacy p:last-child {
  margin: 0;
  color: rgba(31, 28, 32, 0.64);
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(31, 28, 32, 0.58);
  background: #eef3ef;
  border-top: 1px solid rgba(31, 28, 32, 0.08);
}

.modal,
.mobile-tip {
  position: fixed;
  z-index: 100;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.mobile-tip {
  inset: auto 18px 18px auto;
  width: min(420px, calc(100vw - 28px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.mobile-tip.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-tip-panel {
  position: relative;
  padding: 22px 52px 22px 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 28, 32, 0.1);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(63, 53, 58, 0.18);
  backdrop-filter: blur(18px);
  animation: tipPanelIn 0.48s var(--ease) both;
}

.mobile-tip-panel h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.mobile-tip-panel p:last-child {
  margin-bottom: 0;
  color: rgba(31, 28, 32, 0.62);
  line-height: 1.65;
}

.mobile-tip-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(238, 243, 239, 0.92);
}

.modal {
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(31, 28, 32, 0.46);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

.modal.open {
  display: grid;
  opacity: 1;
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  width: min(920px, 100%);
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: modalIn 0.28s var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-visual {
  min-height: 460px;
  display: grid;
  place-items: center;
  background: #eef3ef;
}

.modal-visual .product-visual {
  width: 100%;
  height: 100%;
  min-height: 460px;
  aspect-ratio: auto;
}

.modal-visual .product-image {
  transform: scale(var(--image-zoom, 1));
}

.modal-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 56px);
}

.modal-copy p {
  color: rgba(31, 28, 32, 0.66);
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .product-grid,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    width: min(100%, 720px);
    justify-self: start;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 112px;
  }

  body {
    background:
      linear-gradient(135deg, rgba(232, 238, 233, 0.95) 0%, rgba(251, 250, 247, 0.56) 44%, transparent 70%),
      linear-gradient(180deg, #fbfaf7 0%, #f5f7f3 42%, #fbfaf7 100%);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    min-height: 36px;
    padding: 0 13px;
    font-size: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 28, 32, 0.08);
    border-radius: 999px;
    font-size: 13px;
  }

  .hero {
    gap: 22px;
    padding: 24px 16px 34px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(30px, 8.5vw, 42px);
  }

  h3 {
    font-size: 19px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.72;
  }

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

  .btn {
    min-height: 44px;
    padding: 0 18px;
  }

  .hero-media,
  .hero-media img {
    min-height: 0;
  }

  .hero-media {
    width: 100%;
    border-radius: 24px;
  }

  .trust-strip {
    gap: 10px;
    padding: 0 16px 48px;
  }

  .trust-strip div {
    padding: 18px;
    border-radius: 22px;
  }

  .trust-strip,
  .product-grid,
  .journal-grid,
  .feature-list,
  .privacy,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .section-head,
  .section-head#shop {
    padding: 44px 16px 16px;
  }

  .section-head {
    display: block;
  }

  .filters {
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .filter {
    min-height: 36px;
    padding: 0 13px;
    font-size: 14px;
  }

  .product-grid {
    gap: 14px;
    padding: 0 16px 56px;
  }

  .product-info {
    gap: 12px;
    padding: 16px;
  }

  .product-info p {
    min-height: 0;
  }

  .product-bottom {
    align-items: stretch;
  }

  .quick-actions {
    flex: 0 0 auto;
  }

  .feature-band {
    gap: 20px;
    margin: 0 16px 58px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .feature-list {
    gap: 12px;
  }

  .feature-list article,
  .journal-grid article {
    padding: 18px;
  }

  .feature-list span,
  .journal-grid span {
    margin-bottom: 14px;
  }

  .journal {
    padding: 0 16px 58px;
  }

  .privacy {
    gap: 16px;
    margin: 0 16px 58px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .modal-visual {
    min-height: 260px;
  }

  .modal-visual .product-visual {
    min-height: 260px;
  }

  .modal-copy {
    padding: 22px;
  }

  .mobile-tip {
    inset: auto 12px 12px 12px;
    width: auto;
  }

  .mobile-tip-panel {
    padding: 20px 50px 20px 20px;
    border-radius: 22px;
  }

  .mobile-tip-panel h2 {
    font-size: 20px;
  }

  footer {
    display: grid;
    padding: 24px 16px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero-media,
  .hero-media img {
    min-height: 0;
  }

  .product-bottom {
    display: grid;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .small-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
