:root {
  --bg: #0a0b0c;
  --bg-2: #121314;
  --paper: #e7e2d8;
  --olive: #a3b57a;
  --line: rgba(231, 226, 216, 0.12);
  --text: #efeae2;
  --muted: #9b968b;
  --font: "Manrope", sans-serif;
  --display: "Syne", sans-serif;
  --serif: "Newsreader", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html:not(.ready) body { opacity: 0; }
html.ready body { opacity: 1; transition: opacity 0.35s ease; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: max(0.85rem, env(safe-area-inset-top)) max(5vw, env(safe-area-inset-right)) 0.85rem max(5vw, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.82), transparent);
}

.nav.scrolled {
  background: rgba(10, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--paper); }

.lang select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  min-width: 4.6rem;
  min-height: 44px;
  padding: 0.45rem 1.8rem 0.45rem 0.75rem;
  border: 1px solid #c9c3b6;
  border-radius: 0;
  background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111111' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang select:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.lang select option {
  background: #ffffff;
  color: #111111;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #c9c3b6;
  background: #111214;
  padding: 12px 10px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-solid {
  background: var(--paper);
  color: #111;
}

.btn-line {
  background: transparent;
  border-color: rgba(231, 226, 216, 0.35);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 12, 0.88) 0%, rgba(10, 11, 12, 0.35) 48%, rgba(10, 11, 12, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 11, 12, 0.45) 0%, transparent 28%, rgba(10, 11, 12, 0.78) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 8rem 5vw 5rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero-copy h1,
.section-head h2,
.split-copy h2,
.footer-cta h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-lead,
.lede {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 36rem;
}

.dose {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
}

.dose em {
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.9;
  color: var(--olive);
}

.dose span {
  max-width: 12rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.dose-inline {
  margin: 1.6rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.specs article {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line);
}

.specs article:last-child { border-right: 0; }

.spec-k {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.spec-v {
  color: var(--muted);
  font-size: 0.88rem;
}

.section { padding: 7rem 5vw; }

.tone { background: var(--bg-2); }

.section-head { max-width: 40rem; margin-bottom: 3rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
}

.split-media img,
.formula-visual img {
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
}

.formula-visual {
  margin: 0;
}

.formula-visual img {
  object-fit: cover;
  object-position: center 40%;
}

.ingredient-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ingredient-legend span {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--olive);
}

.steps strong { display: block; margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); }

.perf-grid,
.shop-grid,
.protocol,
.chem-grid {
  display: grid;
  gap: 1.2rem;
}

.perf-grid,
.chem-grid { grid-template-columns: repeat(3, 1fr); }
.protocol { grid-template-columns: repeat(3, 1fr); }
.shop-grid { grid-template-columns: repeat(2, 1fr); max-width: 920px; }

.perf-grid article,
.chem-grid article,
.protocol article,
.product,
details {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 0.4rem;
  background: transparent;
}

.perf-grid b,
.chem-grid b,
.protocol span {
  font-family: var(--display);
  color: var(--olive);
  font-size: 0.85rem;
}

.perf-grid h3,
.chem-grid h3,
.protocol h3,
.product h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0.45rem 0;
}

.perf-grid p,
.chem-grid p,
.protocol p,
.product p,
details p {
  color: var(--muted);
  margin: 0;
}

.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.compare-table h3 {
  font-family: var(--display);
  margin: 0 0 1rem;
}

.compare-table ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.compare-table li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.compare-hot h3 { color: var(--olive); }

.product {
  padding: 0 0 1rem;
  border: 0;
}

.product img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 1.1rem;
  background: #111214;
  padding: 1rem;
}

.product.featured { outline: 1px solid var(--line); outline-offset: 12px; }

.mark {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}

.mark-blue { color: #7ec8ff; }

.price {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--paper);
  margin: 0.8rem 0 1rem !important;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.qty input {
  width: 56px;
  min-height: 44px;
  text-align: center;
  background: #111214;
  color: var(--paper);
  border: 1px solid #c9c3b6;
  padding: 0.4rem;
  font-size: 16px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #c9c3b6;
  background: #1a1b1c;
  color: var(--paper);
  cursor: pointer;
}

.add-btn { width: 100%; }

.faq-list {
  display: grid;
  gap: 0;
  max-width: 760px;
}

details { padding: 0; }

details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--paper);
}

details summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--olive);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details summary::-webkit-details-marker { display: none; }

details p { margin-top: 0.7rem; }

.footer { padding: 2rem 5vw 1.4rem; }

.footer-cta {
  padding: 5rem 0 4rem;
  max-width: 40rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  background: var(--paper);
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.1rem;
  transform: translateY(130%);
  opacity: 0;
  transition: 0.28s ease;
  z-index: 40;
}

.toast.show {
  transform: none;
  opacity: 1;
}

@media (max-width: 1100px) {
  .nav,
  .nav.scrolled {
    background: #0a0b0c;
    border-bottom: 1px solid #3a3934;
  }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 64px);
    overflow: auto;
    padding: 0.4rem max(6vw, env(safe-area-inset-right)) 1.4rem max(6vw, env(safe-area-inset-left));
    background: #0a0b0c;
    border-bottom: 1px solid #3a3934;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    color: #efeae2;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2a2926;
    font-size: 1rem;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.9rem;
    color: #111;
  }
}

@media (max-width: 980px) {
  .specs,
  .split,
  .perf-grid,
  .chem-grid,
  .protocol,
  .compare-table {
    grid-template-columns: 1fr;
  }

  .shop-grid { grid-template-columns: 1fr 1fr; }

  .specs article { border-right: 0; border-bottom: 1px solid var(--line); }

  .hero { min-height: auto; }

  .hero-copy {
    padding: 7rem 6vw 2.4rem;
    max-width: none;
  }

  .hero-copy h1,
  .section-head h2,
  .split-copy h2,
  .footer-cta h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .hero-lead,
  .lede { font-size: 1.05rem; }

  .hero-photo { object-position: 68% center; }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(10, 11, 12, 0.72) 0%, rgba(10, 11, 12, 0.28) 36%, rgba(10, 11, 12, 0.88) 100%);
  }

  .section { padding: 4.2rem 6vw; }

  .split-media img { height: auto; max-height: 70vh; }

  .product.featured { outline-offset: 6px; }

  .footer-cta { padding: 3rem 0 2.4rem; }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }

  .product img { height: 300px; }

  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html.ready body { transition: none; }
}
