:root {
  --ink: #17252d;
  --muted: #536871;
  --sky: #d9edff;
  --paper: #f5f8f6;
  --accent: #f28b42;
  --line: rgba(23, 37, 45, 0.16);
  --radius: 28px;
  --nav-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

#liquid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; touch-action: pan-y; opacity: .72; z-index: 0; }
.site-header, main, footer { position: relative; z-index: 1; }

.site-header {
  position: fixed; top: 14px; left: 3vw; right: 3vw; height: var(--nav-height);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 14px 0 20px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px;
  background: rgba(240, 248, 251, .66); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 14px 50px rgba(38,75,91,.1); z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.03em; width: max-content; }
.brand-mark { width: 34px; height: 40px; border-radius: 50% 50% 44% 44%; background: var(--ink); display: grid; place-items: end center; overflow: hidden; position: relative; }
.brand-mark::before { content: ""; width: 23px; height: 25px; border-radius: 50%; background: #eef6f6; position: absolute; bottom: 1px; }
.brand-mark span { width: 9px; height: 6px; border-radius: 80% 30% 80% 30%; background: var(--accent); position: absolute; top: 17px; z-index: 1; }
nav { display: flex; gap: 34px; font-size: 14px; }
nav a { transition: opacity .25s ease; }
nav a:hover { opacity: .55; }
.order-button { justify-self: end; color: #f8fbfa; background: var(--ink); border-radius: 999px; padding: 14px 20px; font-size: 14px; white-space: nowrap; transition: transform .25s ease, background .25s ease; }
.order-button:hover { transform: translateY(-2px); background: #243a45; }
.order-button:active { transform: translateY(1px) scale(.98); }

.hero { min-height: 1180px; padding: calc(var(--nav-height) + 76px) 4vw 0; overflow: hidden; position: relative; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; width: min(820px, 90vw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .18em; margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(64px, 7.2vw, 116px); line-height: .92; letter-spacing: -.078em; font-weight: 620; margin-bottom: 34px; }
.hero-title-small { display: inline-block; font-size: 79%; line-height: 1.22; letter-spacing: -.065em; }
.gradient-title {
  color: var(--ink);
  background-image: linear-gradient(90deg, #17252d 0%, #426f82 28%, #f28b42 52%, #426f82 76%, #17252d 100%);
  background-size: 300% 100%;
  background-position: 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-gradient-flow 8s linear infinite;
}
@keyframes title-gradient-flow {
  0% { background-position: 0 50%; }
  100% { background-position: 150% 50%; }
}
.hero-note { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.order-input { width: min(340px, 88vw); }
.order-input label { display: block; font-size: 13px; font-weight: 650; margin: 0 0 10px 4px; }
.input-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(240,248,251,.66);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 14px 50px rgba(38,75,91,.1);
}
.input-row::before {
  content: none;
}
.input-row::after {
  content: none;
}
.input-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 14px; color: var(--ink); }
.input-row input::placeholder { color: #5f737c; }
.input-row button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, rgba(255,170,104,.94), rgba(236,112,42,.9));
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -1px 0 rgba(159,72,28,.2), 0 5px 14px rgba(184,90,39,.2);
  cursor: pointer;
  font-size: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.input-row button:active { transform: scale(.92); }
.form-message { min-height: 20px; margin: 8px 0 0 4px; font-size: 13px; color: var(--muted); }

.hero-stage { height: 760px; width: min(1440px, 100%); margin: 48px auto 0; position: relative; isolation: isolate; pointer-events: none; }
.hero-stage::before { content: ""; position: absolute; left: 50%; bottom: -18%; width: min(86vw, 1120px); aspect-ratio: 1.8; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.72) 0 12%, rgba(151,207,236,.52) 38%, rgba(217,237,255,0) 72%); z-index: -2; }
.sun-disc { position: absolute; width: min(47vw, 620px); aspect-ratio: 1; border-radius: 50%; left: 50%; bottom: 2%; transform: translateX(-50%); background: rgba(255,242,216,.9); box-shadow: 0 0 100px rgba(255,243,207,.48); z-index: -1; }
.penguin-frame { position: absolute; left: 50%; bottom: -2%; width: min(62vw, 780px); height: 720px; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; }
.penguin-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 32px 28px rgba(39,83,105,.2)); transition: opacity .32s ease, transform .58s cubic-bezier(.2,.8,.2,1); }
.penguin-frame img.is-changing { opacity: 0; transform: translateY(22px) rotate(-2deg) scale(.96); }
.flavor-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flavor-copy span, .flavor-copy small { font-size: 12px; color: var(--muted); }
.flavor-copy strong { font-size: clamp(24px, 2vw, 34px); letter-spacing: -.04em; }
.flavor-dots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.flavor-dot { position: absolute; width: 190px; border: 0; border-top: 1px solid rgba(23,37,45,.3); background: transparent; border-radius: 0; padding: 12px 0 0; display: grid; grid-template-columns: 32px 1fr; text-align: left; color: var(--ink); cursor: pointer; pointer-events: auto; transition: transform .25s ease, opacity .25s ease; }
.flavor-dot:nth-child(1) { left: 5%; top: 27%; }
.flavor-dot:nth-child(2) { right: 4%; top: 18%; }
.flavor-dot:nth-child(3) { left: 2%; top: 66%; }
.flavor-dot:nth-child(4) { right: 2%; top: 62%; }
.flavor-dot::after { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.flavor-dot:nth-child(odd)::after { right: -4px; }
.flavor-dot:nth-child(even)::after { left: -4px; }
.flavor-dot span { grid-row: 1 / 3; font-size: 10px; opacity: .55; padding-top: 3px; }
.flavor-dot b { font-size: 15px; font-weight: 650; white-space: nowrap; }
.flavor-dot em { font-size: 12px; color: var(--muted); font-style: normal; margin-top: 4px; }
.flavor-dot.is-active { transform: translateY(-4px); }
.flavor-dot:not(.is-active) { opacity: .58; }
.flavor-dot:hover { opacity: 1; transform: translateY(-4px); }

.story { background: var(--paper); padding: 140px 8vw 160px; display: grid; grid-template-columns: .6fr 2fr; gap: 4vw; }
.story > p { font-size: 13px; letter-spacing: .15em; }
.story h2 { grid-column: 2; font-size: clamp(48px, 6.8vw, 104px); line-height: .98; letter-spacing: -.068em; font-weight: 600; max-width: 1100px; }
.story-copy { grid-column: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; max-width: 920px; margin-top: 40px; }
.story-copy p { font-size: 22px; line-height: 1.55; letter-spacing: -.02em; }
.story-copy span { color: var(--muted); align-self: end; font-size: 15px; line-height: 1.7; }

.signature { background: var(--paper); padding: 40px 4vw 160px; perspective: 1400px; }
.section-heading { padding: 0 4vw 80px; }
.section-heading h2 { font-size: clamp(46px, 6vw, 92px); line-height: 1; letter-spacing: -.06em; font-weight: 620; max-width: 950px; margin-bottom: 22px; }
.section-heading p { color: var(--muted); font-size: 18px; }
.product {
  max-width: 1400px;
  min-height: 650px;
  margin: 0 auto 42px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  overflow: visible;
  transform-style: preserve-3d;
  transform: rotateX(var(--card-rotate-x, 0deg)) rotateY(var(--card-rotate-y, 0deg));
  transition: transform .18s ease-out, filter .3s ease;
  will-change: transform;
}
.product.is-tilting { filter: drop-shadow(0 30px 36px rgba(47,79,91,.14)); }
.product:nth-of-type(even) { grid-template-columns: .75fr 1.25fr; }
.product:nth-of-type(even) .product-visual { order: 2; }
.product-visual { position: relative; min-height: 600px; display: grid; place-items: end center; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius); transform-style: preserve-3d; }
.product:nth-of-type(even) .product-visual { border-radius: 0 var(--radius) var(--radius) 0; }
.product-visual img { width: 74%; height: 88%; object-fit: contain; object-position: center bottom; z-index: 1; filter: drop-shadow(0 24px 20px rgba(20,40,48,.15)); transform: translateZ(58px); transition: transform .55s cubic-bezier(.16,1,.3,1); }
.product:hover .product-visual img { transform: translate3d(0,-10px,72px) rotate(1.5deg); }
.product-info { padding: 70px 60px; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(250,252,250,.84); border-radius: 0 var(--radius) var(--radius) 0; transform-style: preserve-3d; }
.product:nth-of-type(even) .product-info { border-radius: var(--radius) 0 0 var(--radius); }
.product-info > * { transform: translateZ(28px); }
.product-info h3 { transform: translateZ(52px); }
.product-info .product-action { transform: translateZ(40px); }
.product .orbit { transform: translateZ(18px); }
.rating { font-size: 14px; letter-spacing: .12em; color: var(--accent); margin-bottom: 22px; }
.rating span { color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.product h3 { font-size: clamp(42px, 4.5vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 620; margin-bottom: 28px; }
.product-info > p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 42ch; }
.product-action { display: flex; align-items: center; justify-content: space-between; margin-top: 58px; }
.product-action strong { font-size: 30px; }
.product-action button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 12px 14px 12px 20px; display: flex; align-items: center; gap: 18px; cursor: pointer; transition: background .25s ease, color .25s ease, transform .2s ease; }
.product-action button span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.product-action button:hover { background: var(--ink); color: white; }
.product-action button:hover span { background: var(--accent); }
.product-action button:active { transform: scale(.98); }
.product-salt .product-visual { background: #bfdff5; }
.product-shell .product-visual { background: #f3c586; }
.product-hazelnut .product-visual { background: #b8d4ba; }
.orbit { position: absolute; width: 440px; aspect-ratio: 1; border-radius: 50%; border: 42px solid rgba(255,255,255,.42); top: 12%; }
.orbit-two { width: 500px; border-width: 1px; box-shadow: 0 0 0 70px rgba(255,255,255,.2), 0 0 0 140px rgba(255,255,255,.12); }
.orbit-three { border-color: rgba(242,139,66,.4); transform: translateZ(18px) rotate(-10deg) scaleY(.75); }

.closing { min-height: 70vh; padding: 8vw; background: var(--ink); color: #f4f7f5; display: grid; grid-template-columns: .8fr 2fr auto; gap: 4vw; align-items: center; overflow: hidden; }
.closing img { width: min(30vw, 400px); align-self: end; margin-bottom: -8vw; filter: drop-shadow(0 20px 28px rgba(0,0,0,.22)); }
.closing p { color: #aebcc1; }
.closing h2 { font-size: clamp(52px, 7vw, 112px); line-height: .95; letter-spacing: -.065em; font-weight: 600; margin: 0; }
.closing a { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 16px 22px; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.closing a:hover { background: #f4f7f5; color: var(--ink); }
footer { background: var(--ink); color: #f4f7f5; padding: 34px 4vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
footer p { margin: 0; text-align: center; color: #aebcc1; }
footer > span { text-align: right; color: #aebcc1; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 20; color: white; background: var(--ink); padding: 14px 20px; border-radius: 999px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s ease; box-shadow: 0 12px 30px rgba(20,40,48,.2); }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; left: 14px; right: 14px; top: 10px; height: 62px; }
  .site-header nav { display: none; }
  .brand { font-size: 14px; }
  .brand-mark { width: 29px; height: 34px; }
  .order-button { padding: 12px 15px; }
  .hero { min-height: 940px; padding: 112px 16px 0; }
  .hero-copy { padding: 12px 0 0; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(48px, 14vw, 68px); margin-bottom: 26px; }
  .hero-note { margin-bottom: 22px; }
  .hero-stage { height: 570px; width: 100%; margin-top: 30px; }
  .sun-disc { width: 92vw; bottom: 2%; }
  .penguin-frame { width: 105vw; height: 520px; bottom: 0; }
  .flavor-dots { inset: auto 0 12px; display: flex; justify-content: center; gap: 7px; }
  .flavor-dot { position: relative; inset: auto !important; width: auto; min-width: 0; border: 1px solid rgba(23,37,45,.2); border-radius: 999px; padding: 9px 12px; display: block; background: rgba(245,250,249,.7); text-align: center; }
  .flavor-dot::after, .flavor-dot span, .flavor-dot em { display: none; }
  .flavor-dot b { font-size: 12px; }
  .flavor-dot.is-active { color: white; background: var(--ink); transform: none; opacity: 1; }
  .story { padding: 90px 20px 110px; display: block; }
  .story > p { margin-bottom: 34px; }
  .story h2 { font-size: clamp(44px, 12vw, 68px); }
  .story-copy { display: block; margin-top: 36px; }
  .story-copy p { font-size: 18px; }
  .story-copy span { display: block; margin-top: 28px; }
  .signature { padding: 20px 14px 100px; }
  .section-heading { padding: 0 6px 54px; }
  .section-heading h2 { font-size: clamp(43px, 12vw, 66px); }
  .product, .product:nth-of-type(even) { min-height: 0; grid-template-columns: 1fr; margin-bottom: 18px; transform: none; filter: none; will-change: auto; }
  .product:nth-of-type(even) .product-visual { order: 0; }
  .product-visual, .product:nth-of-type(even) .product-visual { min-height: 430px; border-radius: var(--radius) var(--radius) 0 0; }
  .product-visual img { height: 92%; width: 84%; transform: none; }
  .product:hover .product-visual img { transform: translateY(-6px); }
  .product-info, .product:nth-of-type(even) .product-info { padding: 42px 26px 30px; border-radius: 0 0 var(--radius) var(--radius); }
  .product-info > *, .product-info h3, .product-info .product-action { transform: none; }
  .product h3 { font-size: 45px; }
  .product-action { margin-top: 34px; }
  .closing { min-height: 68vh; padding: 70px 22px 0; grid-template-columns: 1fr; text-align: center; }
  .closing div { order: 1; }
  .closing a { order: 2; justify-self: center; }
  .closing img { order: 3; width: 74vw; justify-self: center; margin: 10px 0 -2px; }
  footer { grid-template-columns: 1fr; gap: 18px; text-align: center; padding: 30px 20px; }
  footer .brand { justify-self: center; }
  footer > span { text-align: center; }
  .toast { left: 18px; right: 18px; bottom: 18px; text-align: center; }
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #e9f0ed; --muted: #a8babf; --sky: #18303d; --paper: #15282f; --line: rgba(233,240,237,.18); }
  .site-header { background: rgba(19,40,49,.75); border-color: rgba(255,255,255,.12); }
  .brand-mark { background: #08171d; }
  .brand-mark::before { background: #eaf0ee; }
  .order-button, .toast { background: #e9f0ed; color: #15282f; }
  .hero-stage { background: rgba(52,107,135,.5); }
  .input-row {
    border-color: rgba(255,255,255,.12);
    background: rgba(19,40,49,.75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 14px 50px rgba(0,0,0,.18);
  }
  .flavor-dot { background: rgba(21,40,47,.72); }
  .flavor-dot.is-active { background: #e9f0ed; color: #15282f; }
  .product-info { background: rgba(21,40,47,.94); }
  .product-action button span { background: #e9f0ed; color: #15282f; }
  .closing, footer { background: #0c1c22; }
  .gradient-title { background-image: linear-gradient(90deg, #e9f0ed 0%, #9ccfe3 28%, #f3a36b 52%, #9ccfe3 76%, #e9f0ed 100%); }
}

@media (prefers-reduced-transparency: reduce) {
  .input-row { background: #edf5f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #liquid-canvas { display: none; }
  .gradient-title { animation: none; background-position: 50% 50%; }
  .product, .product-visual img, .product-info > * { transform: none !important; }
}
