:root {
  color-scheme: light;
  --ink: #251c13;
  --muted: #74685d;
  --coffee: #3e2e19;
  --coffee-soft: #6f5638;
  --cream: #fff8f0;
  --paper: #fffdf9;
  --line: rgba(62, 46, 25, 0.14);
  --sage: #9baf88;
  --terracotta: #c98f65;
  --blue: #8fb9d4;
  --shadow: 0 24px 70px rgba(58, 41, 22, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(201, 143, 101, 0.18), transparent 27rem),
    radial-gradient(circle at 94% 20%, rgba(155, 175, 136, 0.17), transparent 25rem),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.language-zh,
.language-en {
  display: none;
}

html[data-language="en"] .language-en,
html[data-language="zh"] .language-zh {
  display: revert;
}

html[data-language="en"] .language-zh,
html[data-language="zh"] .language-en {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(62, 46, 25, 0.09);
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bean-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--coffee);
  box-shadow: 0 7px 18px rgba(62, 46, 25, 0.2);
}

.bean-mark img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  filter: invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 590;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--coffee);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.language-switch button {
  min-width: 38px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: white;
  background: var(--coffee);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 72px;
  padding: 80px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 12px;
  border: 1px solid rgba(62, 46, 25, 0.12);
  border-radius: 999px;
  color: var(--coffee-soft);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--coffee);
  border-radius: 14px;
  color: white;
  background: var(--coffee);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(62, 46, 25, 0.15);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.secondary {
  border-color: var(--line);
  color: var(--coffee);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(62, 46, 25, 0.2);
}

.hero-art {
  position: relative;
  min-height: 505px;
}

.card-stack {
  position: absolute;
  inset: 42px 25px 20px 35px;
  perspective: 1100px;
}

.bean-card {
  position: absolute;
  width: min(390px, 86%);
  min-height: 440px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid rgba(55, 43, 31, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.bean-card.back-two {
  left: 75px;
  top: -17px;
  background: var(--blue);
  transform: rotate(9deg);
}

.bean-card.back-one {
  left: 38px;
  top: -8px;
  background: var(--sage);
  transform: rotate(3deg);
}

.bean-card.front {
  left: 0;
  top: 0;
  background: #fff19b;
  transform: rotate(-4deg);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(37, 28, 19, 0.68);
  font-size: 0.75rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-origin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(37, 28, 19, 0.18);
  border-radius: 50%;
  font-size: 1rem;
}

.bean-card h2 {
  max-width: 260px;
  margin: 95px 0 8px;
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: 2.6rem;
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.bean-card p {
  margin: 0;
  color: rgba(37, 28, 19, 0.65);
}

.taste-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0 54px;
}

.taste-notes span {
  padding: 6px 10px;
  border: 1px solid rgba(37, 28, 19, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading h2,
.page-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-intro > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature,
.info-card,
.legal-section,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 12px 40px rgba(62, 46, 25, 0.05);
}

.feature {
  min-height: 255px;
  padding: 26px;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 43px;
  border-radius: 14px;
  background: var(--cream);
  font-size: 1.3rem;
}

.feature h3,
.info-card h2,
.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.feature p,
.info-card p,
.legal-section p,
.legal-section li,
.faq-answer {
  color: var(--muted);
}

.privacy-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin: 10px 0 90px;
  padding: 36px;
  border-radius: 28px;
  color: white;
  background: var(--coffee);
  box-shadow: 0 25px 60px rgba(62, 46, 25, 0.22);
}

.privacy-banner h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.privacy-banner p {
  max-width: 750px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.privacy-banner .button {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--coffee);
  background: white;
  box-shadow: none;
}

.page-main {
  padding: 72px 0 100px;
}

.page-intro {
  max-width: 780px;
  margin-bottom: 48px;
}

.page-intro .updated {
  margin-top: 18px;
  color: var(--coffee-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.info-card,
.legal-section {
  padding: 28px;
}

.info-card.full,
.legal-section.full {
  grid-column: 1 / -1;
}

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a,
.info-card a,
.footer a {
  color: var(--coffee-soft);
  font-weight: 680;
  text-underline-offset: 3px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  padding: 22px 25px;
  list-style: none;
  font-weight: 730;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--coffee-soft);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 25px 24px;
}

.faq-answer p {
  margin: 0;
}

.contact-panel {
  margin-top: 28px;
  padding: 36px;
  border-radius: 26px;
  color: white;
  background: var(--coffee);
}

.contact-panel h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.contact-panel p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel .button {
  border-color: white;
  color: var(--coffee);
  background: white;
  box-shadow: none;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 58px;
  }

  .hero-art {
    min-height: 500px;
  }

  .card-stack {
    inset: 35px 0 0 5%;
  }

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

  .feature {
    min-height: 0;
  }

  .feature-icon {
    margin-bottom: 24px;
  }

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

  .info-card.full,
  .legal-section.full {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .nav,
  .page-shell,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 64px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .hero {
    min-height: 0;
    padding: 48px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.4rem);
  }

  .hero-art {
    min-height: 420px;
  }

  .card-stack {
    inset: 30px 0 0 2%;
  }

  .bean-card {
    min-height: 360px;
    padding: 23px;
    border-radius: 24px;
  }

  .bean-card.back-two {
    left: 42px;
  }

  .bean-card.back-one {
    left: 21px;
  }

  .bean-card h2 {
    margin-top: 65px;
    font-size: 2.1rem;
  }

  .taste-notes {
    margin-bottom: 32px;
  }

  .section,
  .page-main {
    padding: 62px 0;
  }

  .privacy-banner {
    grid-template-columns: 1fr;
    margin-bottom: 62px;
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
