:root {
  --stone: #867a5f;
  --rice: #d7d0bb;
  --tea: #3f7a7f;
  --pine: #19393e;
  --gold: #ebd44f;
  --mist: #e4e1dd;
  --white: #ffffff;
  --shadow: 0 24px 80px rgb(25 57 62 / 20%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pine);
  background: var(--mist);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--pine);
  transform: translateY(-140%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }
a { color: inherit; text-decoration: none; }
a:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
h1, h2, h3 { font-family: "Noto Serif TC", serif; margin: 0; line-height: 1.08; }
p { line-height: 1.9; }

.site-header {
  position: fixed; inset: 18px 18px auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; color: var(--white);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px; backdrop-filter: blur(18px);
  background: rgb(25 57 62 / 62%);
}
.brand-mark { font-family: "Noto Serif TC", serif; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; }
.nav-cta, .button-primary { background: var(--gold); color: var(--pine); }
.nav-cta { padding: 9px 16px; border-radius: 999px; font-weight: 700; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.4rem; }

section { min-height: 84vh; padding: 110px 7vw; position: relative; overflow: hidden; }
.hero { min-height: 100vh; display: grid; place-items: center; color: var(--white); background: radial-gradient(circle at 70% 35%, #3f7a7f 0%, #19393e 42%, #10282c 100%); }
.hero-grid { width: min(1180px, 100%); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow, .section-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.76rem; font-weight: 700; }
.product-story .section-kicker { color: #19393e; }
.ingredients .section-kicker { color: #19393e; }
.order .section-kicker { color: #19393e; }
.brand .section-kicker { color: #19393e; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 8.6rem); margin: 18px 0; line-height: 1.2; }
.hero .title-sep { display: block; font-size: 0.5em; color: var(--gold); opacity: 0.6; line-height: 0.6; }
.hero .product-name { font-size: 0.7em; display: block; }
.hero-subtitle { max-width: 540px; color: var(--mist); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 22px; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgb(235 212 79 / 26%); }
.button-ghost { border: 1px solid rgb(255 255 255 / 22%); color: var(--white); }
.button-secondary { background: transparent; color: var(--pine); border: 1px solid rgb(25 57 62 / 18%); }

.bottle-stage { display: grid; place-items: center; gap: 18px; min-height: 560px; position: relative; }
.stone-orbit { position: absolute; width: 390px; height: 390px; border: 1px solid rgb(235 212 79 / 22%); border-radius: 50%; animation: slowSpin 28s linear infinite; }
.bottle { width: 172px; height: 430px; border-radius: 82px 82px 34px 34px; background: linear-gradient(140deg, rgb(228 225 221 / 92%), rgb(215 208 187 / 54)); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--pine); position: relative; transform: rotate(-2deg); }
.bottle::before { content: ""; position: absolute; top: -38px; width: 72px; height: 58px; border-radius: 18px 18px 6px 6px; background: var(--mist); }
.bottle-label { font-family: "Noto Serif TC", serif; font-size: 1.4rem; text-align: center; }
.bottle-price { margin-top: 18px; color: var(--stone); font-weight: 700; }
.bottle-note { color: var(--rice); font-size: 0.92rem; }
.mist { position: absolute; width: 36vw; height: 36vw; border-radius: 50%; background: rgb(228 225 221 / 8%); filter: blur(34px); animation: drift 9s var(--ease) infinite alternate; }
.mist-one { left: -8vw; top: 20vh; }
.mist-two { right: -10vw; bottom: 10vh; animation-delay: 1.4s; }

.product-story { background: var(--rice); display: grid; place-items: center; text-align: center; }
.product-story h2, .section-heading h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); max-width: 900px; margin: 14px auto 24px; }
.product-story p { max-width: 760px; color: #2c271e; font-size: 1.08rem; }
.ingredients { background: var(--mist); }
.ingredient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 42px; }
.ingredient-card { min-height: 420px; padding: 42px; border-radius: 36px; box-shadow: var(--shadow); }
.ingredient-card h3 { font-size: clamp(2rem, 4vw, 4rem); margin: 32px 0; }
.ingredient-card li { margin: 14px 0; font-size: 1.08rem; }
.buckwheat { background: var(--stone); color: var(--white); }
.rice { background: var(--white); color: var(--pine); }
.card-number { color: inherit; font-weight: 700; }

.flavor { background: var(--pine); color: var(--white); display: grid; place-items: center; text-align: center; }
.centered p { color: var(--mist); max-width: 640px; margin-inline: auto; }
.flavor-notes { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 16px; width: min(820px, 100%); padding: 0; margin: 0; list-style: none; }
.flavor-notes li { padding: 28px 18px; border-radius: 999px; background: rgb(63 122 127 / 46%); border: 1px solid rgb(235 212 79 / 24%); font-family: "Noto Serif TC", serif; font-size: 1.35rem; }

.order { background: linear-gradient(180deg, var(--mist), var(--white)); }
.order-card { display: grid; grid-template-columns: 1fr 0.9fr; gap: 36px; padding: 48px; border-radius: 40px; background: var(--rice); box-shadow: var(--shadow); }
.price { font-family: "Noto Serif TC", serif; font-size: clamp(2.4rem, 6vw, 5.2rem); margin: 22px 0; }
.price span { font-family: "Noto Sans TC"; font-size: 1rem; color: #2c271e; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-weight: 700; }
input, select { width: 100%; min-height: 50px; border: 1px solid rgb(25 57 62 / 14%); border-radius: 18px; padding: 0 16px; background: var(--white); color: var(--pine); font: inherit; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
input:focus, select:focus { outline: 0; transform: scale(1.01); box-shadow: 0 0 0 4px rgb(235 212 79 / 28%); }
.quick-links { display: flex; gap: 18px; flex-wrap: wrap; color: #2a5256; font-weight: 700; }
.quick-links a { display: inline-flex; align-items: center; min-height: 44px; }
.order-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.order-actions .button { flex: 1 1 220px; }
.consent-field { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 0.9rem; font-weight: 500; line-height: 1.6; }
.consent-field input { width: 18px; min-height: 18px; margin-top: 3px; accent-color: var(--tea); }
.consent-field.light { color: var(--mist); }
.form-message { min-height: 24px; margin: 0; color: #1f4346; font-weight: 700; }

.success-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
  padding: 48px 24px;
  animation: fadeInUp 500ms var(--ease) both;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--tea);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  animation: popIn 400ms var(--ease) 150ms both;
}
.success-state h3 {
  font-size: 1.6rem;
  margin: 0;
}
.success-state p {
  max-width: 340px;
  margin: 0;
  line-height: 1.7;
}
.success-state[hidden] { display: none; }
.lead .success-state { color: var(--white); }
.lead .success-icon { background: var(--gold); color: var(--pine); }
.lead .success-state .button { background: var(--gold); color: var(--pine); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.lead { background: var(--tea); color: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lead h2, .brand h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); margin: 16px 0; }
.lead-form input, .lead-form select { background: var(--mist); }
.lead .form-message { color: var(--gold); }
.brand { background: var(--rice); display: grid; place-items: center; }
.brand-panel { max-width: 860px; padding: 54px; border-radius: 44px; background: rgb(255 255 255 / 48%); box-shadow: var(--shadow); }
.instagram-link { display: inline-flex; margin-top: 18px; color: var(--tea); font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; padding: 32px 7vw; background: var(--pine); color: var(--mist); }

/* Photo placeholder slots */
.photo-slot {
  width: 100%;
  min-height: 200px;
  margin: 32px 0 0;
  border-radius: 24px;
  border: 2px dashed rgb(134 122 95 / 30%);
  background: rgb(134 122 95 / 6%);
}
.photo-slot--sm {
  min-height: 160px;
  margin: 20px 0;
}
.product-story .photo-slot {
  max-width: 500px;
  margin: 36px auto 0;
}

.section-reveal { opacity: 0; transform: translateY(42px) scale(0.985); filter: blur(8px); transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease); }
.section-reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(32px, -22px, 0) scale(1.08); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 62px; right: 0; flex-direction: column; align-items: flex-start; min-width: 220px; padding: 18px; border-radius: 24px; background: rgb(25 57 62 / 94%); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: 250ms var(--ease); }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  section { padding: 92px 22px; min-height: auto; }
  .hero-grid, .order-card, .lead { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.4rem); }
  .bottle-stage { min-height: 420px; }
  .bottle { width: 132px; height: 330px; }
  .ingredient-grid, .flavor-notes { grid-template-columns: 1fr; }
  .ingredient-card, .order-card, .brand-panel { padding: 30px; border-radius: 28px; }
  .site-footer { flex-direction: column; gap: 10px; }
}

@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; }
  .section-reveal { opacity: 1; transform: none; filter: none; }
}
