:root {
  --ink: #123727;
  --leaf: #23704b;
  --gold: #d99735;
  --cream: #f8f2e7;
  --paper: #fffaf0;
  --muted: #667167;
  --line: #e5dcc9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.links {
  display: flex;
  gap: 26px;
  color: #3f4b42;
  font-size: 14px;
}

.links a {
  position: relative;
  padding: 8px 0;
}

.links a.active {
  color: var(--ink);
  font-weight: 800;
}

.links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border: 0;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border: 1px solid rgba(18, 55, 39, 0.18);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(9, 41, 29, .16);
  border-radius: 999px;
  background: rgba(255, 250, 240, .74);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.language-switcher button {
  min-width: 42px;
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f463a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  background: var(--ink);
  color: #fff;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.peanut-model {
  --progress: 0;
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1300px;
  overflow: visible;
  isolation: isolate;
}

.peanut-model .orbit {
  position: relative;
  width: min(100%, 660px);
  height: min(70vh, 650px);
  min-height: 480px;
  transform-style: preserve-3d;
  transform:
    rotateX(4deg)
    rotateY(-8deg);
  transition: transform 320ms ease-out;
}

.peanut-model .halo {
  display: none;
}

.peanut-model .floor-shadow {
  display: none;
}

.peanut-model .product-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(0, 28px, 0) rotateY(-16deg) rotateZ(-2deg) scale(0.88);
  transition: opacity 520ms ease, transform 820ms cubic-bezier(.2,.8,.2,1), filter 520ms ease;
  filter: saturate(0.9) contrast(0.98);
  pointer-events: none;
}

.peanut-model .product-layer::before,
.peanut-model .product-layer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34vw, 340px);
  height: min(44vh, 420px);
  border-radius: 48%;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg);
  transition: opacity 520ms ease, transform 820ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.peanut-model .product-layer::before {
  display: none;
}

.peanut-model .product-layer::after {
  display: none;
}

.peanut-model .product-layer.active {
  opacity: 1;
  transform:
    translate3d(0, 0, 96px)
    rotateY(-9deg)
    rotateX(3deg)
    rotateZ(-1deg)
    scale(1);
  filter:
    saturate(1.1)
    contrast(1.07);
  animation: floatProduct 5s ease-in-out infinite;
}

.peanut-model .product-layer.active::before {
  opacity: 0;
}

.peanut-model .product-layer.active::after {
  opacity: 0;
}

.peanut-model .product-layer img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(54vw, 520px);
  max-height: min(58vh, 560px);
  object-fit: contain;
  grid-area: 1 / 1;
  transform-origin: center;
}

.peanut-model .product-layer .depth-img {
  display: none;
}

.peanut-model .product-layer .depth-1 { transform: translate3d(7px, 5px, -14px) scale(1.008); opacity: .17; }
.peanut-model .product-layer .depth-2 { transform: translate3d(13px, 10px, -28px) scale(1.014); opacity: .13; }
.peanut-model .product-layer .depth-3 { transform: translate3d(19px, 15px, -42px) scale(1.02); opacity: .09; }
.peanut-model .product-layer .depth-4 { transform: translate3d(25px, 20px, -56px) scale(1.026); opacity: .06; }

.peanut-model .product-layer .main-img {
  position: relative;
  z-index: 2;
}

.peanut-model .product-layer[data-stage="0"] img {
  max-width: min(44vw, 420px);
}

.peanut-model .product-layer[data-stage="4"] img {
  max-width: min(58vw, 560px);
}

.peanut-model .product-layer[data-stage="4"].active {
  filter:
    saturate(1.08)
    contrast(1.06);
}

.peanut-model .product-layer[data-stage="4"].active::after {
  opacity: 0;
}

.peanut-model .particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d99a3c;
  opacity: 0;
  transform: translate3d(0, 0, 120px);
  box-shadow: 0 0 14px rgba(217, 154, 60, 0.3);
  transition: opacity 400ms ease, transform 700ms ease;
}

.peanut-model.crumb-mode .particle {
  opacity: 0;
}

.peanut-model.crumb-mode .p1 { transform: translate3d(-250px, -90px, 160px); }
.peanut-model.crumb-mode .p2 { transform: translate3d(250px, -34px, 130px); }
.peanut-model.crumb-mode .p3 { transform: translate3d(-170px, 180px, 120px); }
.peanut-model.crumb-mode .p4 { transform: translate3d(210px, 180px, 170px); }
.peanut-model.crumb-mode .p5 { transform: translate3d(60px, -220px, 150px); }

.model-ui {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  width: min(540px, calc(100% - 20px));
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
}

.model-name {
  justify-self: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 55, 39, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(58, 40, 18, 0.08);
}

.model-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(18, 55, 39, 0.12);
  overflow: hidden;
}

.model-progress i {
  display: block;
  height: 100%;
  width: calc(var(--progress) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--ink));
  transition: width 180ms ease;
}

.model-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.model-steps button {
  border: 1px solid rgba(18, 55, 39, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.model-steps button.active {
  background: var(--ink);
  color: white;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.06;
}

.section-head p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  padding: 46px 0 28px;
  background: #071f16;
  color: #dce7df;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-brand {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 25px;
}

.footer p,
.footer a {
  display: block;
  margin: 0 0 8px;
  color: #dce7df;
  line-height: 1.65;
}

.footer b {
  display: block;
  margin-bottom: 12px;
  color: #f4c36d;
  text-transform: uppercase;
  font-size: 12px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(220,231,223,.75);
  font-size: 13px;
}

@keyframes floatProduct {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -20px; }
}

@media (max-width: 900px) {
  .nav-inner {
    min-height: 92px;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px 18px;
    padding: 10px 0;
  }

  .links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 16px;
    overflow: visible;
    padding: 2px 0 4px;
    scrollbar-width: none;
    white-space: normal;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .peanut-model {
    min-height: 360px;
  }

  .peanut-model .orbit {
    height: 380px;
    min-height: 320px;
  }

  .center-model .peanut-model .product-layer img {
    max-width: min(68vw, 460px);
    max-height: min(42vh, 440px);
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

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

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    backdrop-filter: none;
    background: rgba(255, 250, 240, .96);
  }

  .nav-inner {
    min-height: 82px;
    gap: 8px 12px;
  }

  .links {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    white-space: nowrap;
    font-size: 12px;
  }

  .brand {
    font-size: 23px;
  }

  .language-switcher {
    transform: scale(.92);
    transform-origin: right center;
  }

  .nav .btn {
    display: none;
  }

  .peanut-model .product-layer img {
    max-width: 88vw;
  }

  .center-model .peanut-model .product-layer img {
    max-width: 74vw;
    max-height: 31svh;
  }

  .peanut-model,
  .peanut-model .orbit,
  .peanut-model .product-layer,
  .peanut-model .product-layer.active {
    transform-style: flat;
  }

  .peanut-model .orbit {
    transform: none;
  }

  .peanut-model .halo,
  .peanut-model .floor-shadow,
  .peanut-model .particle,
  .peanut-model .product-layer::before,
  .peanut-model .product-layer::after,
  .peanut-model .depth-img {
    display: none;
  }

  .peanut-model .product-layer {
    transform: translateY(10px) scale(.94);
    transition: opacity 260ms ease, transform 320ms ease;
    filter: none;
  }

  .peanut-model .product-layer.active {
    transform: translateY(0) scale(1);
    filter: none;
    animation: none;
  }

  .peanut-model .product-layer img {
    transform: none;
  }
}

@media (max-width: 560px), (prefers-reduced-motion: reduce) {
  .peanut-model .product-layer.active {
    animation: none;
  }
}
