:root {
  --bg: #d9dee6;
  --bg-deep: #c8d0db;
  --ink: #141820;
  --muted: #5a6573;
  --porcelain: #f4f6f8;
  --porcelain-2: #e7ebf1;
  --copper: #b86b2a;
  --copper-deep: #8f4f1c;
  --fill: #c9a36a;
  --line: rgba(20, 24, 32, 0.12);
  --shadow: 0 24px 60px rgba(20, 24, 32, 0.14);
  --head: "Instrument Serif", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(980px 520px at 12% -8%, rgba(224, 150, 72, 0.28), transparent 58%),
    radial-gradient(820px 480px at 92% 8%, rgba(255, 255, 255, 0.72), transparent 52%),
    radial-gradient(700px 420px at 70% 78%, rgba(154, 180, 210, 0.35), transparent 60%),
    radial-gradient(520px 320px at 18% 88%, rgba(184, 107, 42, 0.14), transparent 55%),
    linear-gradient(165deg, #e4e8ef 0%, var(--bg) 42%, var(--bg-deep) 100%);
  line-height: 1.5;
}

.glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  will-change: transform, opacity;
  mix-blend-mode: soft-light;
}
.glow .g1 {
  width: 520px; height: 520px;
  left: -100px; top: -90px;
  opacity: 0.9;
  background: radial-gradient(circle, rgba(236, 164, 86, 0.95) 0%, rgba(236, 164, 86, 0) 68%);
  animation: glowDrift 14s ease-in-out infinite;
  mix-blend-mode: multiply;
}
.glow .g2 {
  width: 460px; height: 460px;
  right: -70px; top: 6%;
  opacity: 0.85;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  animation: glowDrift 18s ease-in-out infinite reverse;
  mix-blend-mode: screen;
}
.glow .g3 {
  width: 540px; height: 540px;
  left: 28%; bottom: -160px;
  opacity: 0.7;
  background: radial-gradient(circle, rgba(120, 168, 220, 0.75) 0%, rgba(120, 168, 220, 0) 70%);
  animation: glowDrift 16s ease-in-out 1s infinite;
  mix-blend-mode: multiply;
}
.glow .g4 {
  width: 320px; height: 320px;
  right: 14%; bottom: 18%;
  opacity: 0.65;
  background: radial-gradient(circle, rgba(210, 140, 78, 0.7) 0%, rgba(210, 140, 78, 0) 70%);
  animation: glowDrift 12s ease-in-out 0.5s infinite reverse;
  mix-blend-mode: multiply;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, .foot { position: relative; z-index: 1; }

.top {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  margin: 0;
  font-family: var(--head);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.tag {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  min-height: min(78vh, 720px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 8px 24px 0;
  animation: rise 0.9s var(--ease) both;
}
h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.lead {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  background: var(--ink);
  color: #f5f7fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--ink);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.2s;
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.18);
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(20, 24, 32, 0.22);
}
.cta.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.cta.soft {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff8f1;
}

.stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.08)),
    var(--porcelain-2);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  animation: rise 1s var(--ease) 0.08s both;
}
.shelf {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(rgba(20,24,32,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,32,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}

.cup {
  width: 168px;
  transform: translateY(8px);
  filter: drop-shadow(0 18px 24px rgba(20, 24, 32, 0.18));
  animation: floaty 5.5s ease-in-out infinite;
}
.cup-rim {
  height: 14px;
  margin: 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #d7dde6);
  border: 1px solid rgba(20,24,32,0.12);
}
.cup-body {
  position: relative;
  height: 168px;
  margin-top: -4px;
  border-radius: 10px 10px 28px 28px / 8px 8px 40px 40px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), transparent 30% 70%, rgba(20,24,32,0.06)),
    linear-gradient(180deg, #f7f9fb, #dfe5ee);
  border: 1px solid rgba(20,24,32,0.14);
  border-top: 0;
  overflow: hidden;
}
.fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(180deg, #d9b57a, #b88945);
  transition: height 0.55s var(--ease), background 0.4s ease;
}
.cup-shine {
  position: absolute;
  inset: 12px auto 24px 16px;
  width: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
}
.cup-base {
  width: 92px;
  height: 10px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(20,24,32,0.14);
  filter: blur(1px);
}

.scale-card {
  position: absolute;
  right: 8%;
  bottom: 12%;
  min-width: 132px;
  padding: 14px 16px 12px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(20,24,32,0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  animation: rise 1.1s var(--ease) 0.2s both;
}
.scale-label {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scale-card strong {
  font-family: var(--head);
  font-size: 44px;
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--copper-deep);
}
.scale-unit {
  align-self: end;
  padding-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
}

.board {
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto 0;
  padding: 28px;
  background: var(--porcelain);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.board-head h2 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.board-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 48ch;
}

.converter {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}
.products {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.products button {
  appearance: none;
  text-align: left;
  border: 1px solid transparent;
  background: var(--porcelain-2);
  color: var(--ink);
  padding: 12px 14px;
  font: 500 14px var(--body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.products button:hover { transform: translateX(2px); }
.products button.on {
  background: #fff;
  border-color: rgba(184, 107, 42, 0.45);
  box-shadow: inset 3px 0 0 var(--copper);
}

.panel {
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, #fff, var(--porcelain-2));
  border: 1px solid var(--line);
  border-radius: 18px;
}
.measure-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: end;
}
.field { display: grid; gap: 6px; }
.field span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  height: 56px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 32px var(--body);
  outline: none;
}
.units {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.units button, .quick button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  min-height: 42px;
  padding: 0 14px;
  font: 600 14px var(--body);
  cursor: pointer;
  transition: 0.2s ease;
}
.units button.on {
  color: #fff8f1;
  background: var(--copper);
  border-color: var(--copper);
}

.result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(20,24,32,0.16);
}
.result-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.result-num {
  margin: 4px 0 0;
  font-family: var(--head);
  font-size: clamp(72px, 12vw, 108px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.result-num small {
  margin-left: 8px;
  font-family: var(--body);
  font-size: 28px;
  color: var(--muted);
  font-weight: 600;
}
.result-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.quick {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick button:hover {
  border-color: var(--copper);
  color: var(--copper-deep);
}

.strip {
  width: min(1120px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.strip article {
  padding: 20px 18px;
  background: rgba(244, 246, 248, 0.72);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.strip article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20,24,32,0.1);
}
.strip h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.faq {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto 0;
}
.faq h2 {
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: 36px;
  font-weight: 400;
}
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 58ch;
}

.foot {
  width: min(1120px, calc(100% - 32px));
  margin: 48px auto 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.foot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(0); }
}
@keyframes glowDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(24px, -18px, 0) scale(1.08); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .stage { min-height: 340px; }
  .scale-card {
    right: 5%;
    bottom: 8%;
    min-width: 118px;
  }
  .scale-card strong { font-size: 36px; }
  .converter { grid-template-columns: 1fr; }
  .products {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 4px;
  }
  .products button { white-space: nowrap; }
  .strip { grid-template-columns: 1fr; }
  .measure-row { grid-template-columns: 1fr; }
  h1 { max-width: 12ch; }
  .cta-row { width: 100%; }
  .cta { flex: 1; }
}
