:root {
  --paper: #f2ede1;
  --ink: #16130e;
  --orange: #ff4d00;
  --sky: #2f7ef0;
  --sky-deep: #1c4fd6;
  --cream: #f7f1e4;
  --moss: #7a8450;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem 1.4rem;
  color: #fff;
  mix-blend-mode: normal;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.15rem; letter-spacing: 0.04em;
  text-decoration: none; color: #fff;
  text-shadow: 0 1px 12px rgba(10, 40, 90, 0.35);
}
.nav__logo span { color: var(--orange); }
.nav__links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 10px rgba(10, 40, 90, 0.4);
  padding: 0.3rem 0.15rem; border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a:focus-visible { border-bottom-color: var(--orange); }
.nav__cart {
  font: 700 0.82rem var(--font-body); letter-spacing: 0.09em;
  background: var(--orange); color: #fff; border: 0;
  padding: 0.55rem 0.95rem; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s ease;
}
.nav__cart:hover { transform: scale(1.06); }
body.scrolled .nav {
  background: rgba(22, 19, 14, 0.92);
  backdrop-filter: blur(8px);
}

/* ---------- altimeter ---------- */
.altimeter {
  position: fixed; right: 1.2rem; top: 50%; transform: translateY(-50%);
  z-index: 35; text-align: right; pointer-events: none;
  color: var(--ink);
  mix-blend-mode: multiply;
}
.altimeter__label, .altimeter__unit {
  font: 700 0.65rem var(--font-body); letter-spacing: 0.28em;
}
.altimeter__value {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.altimeter__status {
  margin-top: 0.4rem; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--orange); max-width: 7rem;
}
@media (max-width: 860px) { .altimeter { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  background: linear-gradient(180deg, #2a6fe8 0%, #5da4f5 45%, #b9dcfb 80%, #e8f4ff 100%);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
#scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: pan-y; cursor: grab;
}
#scene.dragging { cursor: grabbing; }
.hero__overlay {
  position: relative; z-index: 5; pointer-events: none;
  padding: 7rem 1.4rem 3.5rem; max-width: 60rem;
}
.hero__overlay .btn, .hero__overlay a { pointer-events: auto; }
.hero__eyebrow {
  color: #fff; font-weight: 700; letter-spacing: 0.3em;
  font-size: 0.72rem; margin: 0 0 1rem;
  text-shadow: 0 1px 10px rgba(20, 60, 130, 0.45);
}
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.01em;
  margin: 0 0 1.2rem; color: #fff;
  text-shadow: 0 4px 34px rgba(15, 55, 130, 0.45);
}
.hero__sub {
  max-width: 34rem; margin: 0 0 1.6rem;
  color: #f2f8ff; font-size: 1.02rem; font-weight: 500;
  text-shadow: 0 1px 12px rgba(15, 55, 130, 0.5);
}
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__hint {
  margin: 1.4rem 0 0; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: #eaf4ff;
  opacity: 0.85;
}

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 700 0.88rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn--solid { background: var(--orange); color: #fff; }
.btn--solid:hover { background: #e64500; }
.btn--ghost { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn--ghost:hover { background: rgba(255,255,255,0.22); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  border-block: 3px solid var(--orange);
}
.ticker__track {
  display: inline-block; padding: 0.7rem 0;
  font: 700 0.85rem var(--font-body); letter-spacing: 0.22em;
  animation: ticker 26s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
section { padding: 6rem clamp(1.4rem, 6vw, 5rem); }

.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.02;
  margin: 0 0 1.6rem; letter-spacing: -0.01em;
}
.section-title--light { color: var(--paper); }

.jump__lede {
  max-width: 44rem; font-size: 1.15rem; font-weight: 500; margin: 0 0 3rem;
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.step {
  border: 2px solid var(--ink); border-radius: 18px;
  padding: 1.4rem 1.3rem 1.6rem; background: var(--cream);
  position: relative; overflow: hidden;
}
.step__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.2rem; color: var(--orange); display: block; margin-bottom: 0.4rem;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.12rem; }
.step p { margin: 0; font-size: 0.94rem; }

/* ---------- shop ---------- */
.shop { background: var(--cream); border-top: 3px solid var(--ink); }
.shop__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem; margin-bottom: 2.6rem;
}
.shop__note { max-width: 26rem; margin: 0; font-size: 0.95rem; }

.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.product {
  background: #fff; border: 2px solid var(--ink); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 14px 0 rgba(22,19,14,0.12); }
.product__art { width: 100%; aspect-ratio: 4 / 3; display: block; }
.product__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.product__alt {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
}
.product__name { margin: 0; font-size: 1.1rem; font-weight: 700; }
.product__desc { margin: 0; font-size: 0.88rem; color: #4b463d; flex: 1; }
.product__row {
  display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem;
}
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.product__add {
  font: 700 0.75rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 0.6rem 1.1rem; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.product__add:hover, .product__add:focus-visible { background: var(--orange); transform: scale(1.05); }

/* ---------- drop log ---------- */
.droplog { background: var(--ink); color: var(--paper); }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem; margin: 0 0 3rem;
}
.stat {
  border: 2px solid rgba(242, 237, 225, 0.25); border-radius: 16px;
  padding: 1.2rem 1.2rem 1.4rem;
}
.stat dt {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #b9b2a3; margin-bottom: 0.5rem;
}
.stat dd {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: 2.1rem; color: var(--orange); line-height: 1;
}
.stat__unit { font-size: 1rem; color: var(--paper); }
.stat__foot { display: block; font: 500 0.72rem var(--font-body); color: #b9b2a3; margin-top: 0.35rem; }
.droplog__quote {
  margin: 0; max-width: 40rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem); line-height: 1.35;
}
.droplog__quote cite {
  display: block; margin-top: 0.9rem;
  font: 500 0.85rem var(--font-body); font-style: normal; color: #b9b2a3;
}

/* ---------- join ---------- */
.join { text-align: center; }
.join p { max-width: 32rem; margin: 0 auto 1.8rem; }
.join__form {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
}
.join__form input {
  font: 500 1rem var(--font-body);
  padding: 0.85rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; min-width: 17rem;
}
.join__form input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.join__msg { min-height: 1.4rem; font-weight: 700; margin-top: 1rem; color: var(--moss); }
.join__msg.error { color: #c22b00; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink); color: #b9b2a3; text-align: center;
  padding: 2.5rem 1.4rem 3rem; font-size: 0.85rem;
}
.footer__logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
  color: var(--paper); margin: 0 0 0.6rem; letter-spacing: 0.04em;
}
.footer__logo span { color: var(--orange); }
.footer p { margin: 0.3rem 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 140%);
  z-index: 60; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 0.9rem; padding: 0.8rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--orange);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .product:hover { transform: none; }
  .btn:hover { transform: none; }
}