:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --accent: #ff0033;
  --accent-soft: rgba(255, 0, 51, 0.18);
  --accent-strong: rgba(255, 0, 51, 0.55);
  --card-bg: #141414;
  --border-subtle: #262626;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #161616 0, #050505 45%, #000000 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 14px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-wordmark {
  display: flex;
  align-items: center;
}

.logo-main {
  font-family: 'Bodoni+Moda+SC', 'Times New Roman', serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: none;
  color: #fdfdfd;
}

header nav a {
  color: var(--text);
  margin-left: 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.88;
}

header nav a:hover {
  opacity: 1;
}

/* SECTIONS */
.section {
  padding: 120px 8vw;
  text-align: center;
}

/* EYEBROW LABELS */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.55);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.26), transparent 58%),
    radial-gradient(circle at bottom right, rgba(255,0,51,0.55), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.6;
  z-index: -1;
}

.hero-content {
  text-align: left;
  max-width: 540px;
}

.hero-content h1 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-copy {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 440px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.hero-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
}

/* CTA BUTTONS */
.cta-btn {
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border 0.18s ease, color 0.18s ease;
}

.cta-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 32px var(--accent-strong);
}

.cta-btn.primary:hover {
  background: #e0002d;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255,0,51,0.7);
}

.cta-btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

.cta-btn.ghost:hover {
  background: rgba(255,255,255,0.06);
}

/* SCROLL REVEAL */
.fade-in,
.fade-slide-up,
.scroll-reveal,
.wipe-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-slide-up {
  transform: translateY(40px);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* PARALLAX SACHETS */
.sachet-parallax {
  position: relative;
  height: 90vh;
  overflow: hidden;
  background: radial-gradient(circle at top, #202020 0, #050505 55%, #000000 100%);
}

.sachet-layer {
  position: absolute;
  width: 40vw;
  max-width: 320px;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.7));
}

.sachet-layer img {
  width: 100%;
  display: block;
}

.layer1 { top: 15%; left: 3%; }
.layer2 { top: 22%; right: -4%; }
.layer3 { bottom: -4%; left: 30%; }

.sachet-text {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  z-index: 2;
}

.sachet-text h2 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.sachet-text p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* SECTION WIPES */
.wipe-section {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  overflow: hidden;
}

.wipe-inner {
  max-width: 620px;
  text-align: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.wipe-section.visible .wipe-inner {
  transform: translateX(0);
  opacity: 1;
}

.wipe-section h2 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.wipe-section p {
  font-size: 0.96rem;
  color: inherit;
}

.wipe-dark {
  background: #050505;
}

.wipe-light {
  background: #f5f5f5;
  color: #111;
}

.wipe-danger {
  background: var(--accent);
}

/* PRODUCT LAYOUT */
.product-showcase h2 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.section-intro {
  max-width: 580px;
  margin: 0 auto;
  margin-bottom: 34px;
  font-size: 0.98rem;
  color: var(--muted);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

/* 360 VIEWER */
.product-360-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer360 {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at top, #1b1b1b 0, #050505 60%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
  cursor: grab;
  border: 1px solid var(--border-subtle);
}

.viewer360:active {
  cursor: grabbing;
}

.viewer360-img {
  width: 100%;
  display: block;
}

.viewer360-hint {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.72rem;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.viewer-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 360px;
  text-align: left;
}

/* FLAVOUR CARDS */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 700px) {
  .flavor-grid {
    grid-template-columns: 1fr;
  }
}

.flavor-card {
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: var(--card-bg);
  text-align: left;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border 0.18s ease;
  border: 1px solid var(--border-subtle);
}

.flavor-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.flavor-card h3 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.flavor-card p {
  font-size: 0.92rem;
  margin-bottom: 14px;
  color: var(--muted);
}

.flavor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag,
.meta-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tag {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}

.meta-pill {
  background: rgba(0,0,0,0.4);
  color: var(--muted);
}

/* Hover / float */
.flavor-card:hover {
  transform: translateY(-4px) rotate3d(1, 1, 0, 5deg);
  box-shadow: 0 20px 38px rgba(0,0,0,0.8);
}

.flavor-card:hover::before {
  opacity: 1;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Flavour card accent colour */
.flavor-card[data-color] {
  border-color: rgba(255,255,255,0.04);
}

/* CTA SECTION BACKGROUND SCROLL CHANGE */
.scroll-bg-change {
  background: linear-gradient(120deg, #181818, #050505);
  transition: background 0.9s ease;
}

.scroll-bg-change.scrolled {
  background: linear-gradient(120deg, var(--accent), #050505);
}

.cta-content h2 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-content p {
  margin-bottom: 20px;
  color: var(--muted);
}

/* FOOTER */
footer {
  padding: 40px 8vw 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* POPUP */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  background: #101010;
  padding: 26px 22px 20px;
  border-radius: 18px;
  max-width: 380px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 50px rgba(0,0,0,0.9);
  border: 1px solid var(--border-subtle);
}

.popup h2 {
  font-family: 'UnifrakturCook', 'Times New Roman', serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.popup p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.popup-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 1.4rem;
  cursor: pointer;
}

#popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#popup-email {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  outline: none;
  font-size: 0.9rem;
  background: #050505;
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 880px) {
  header {
    padding: 12px 5vw;
  }
  .section {
    padding: 100px 6vw;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-cta-row {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  header nav a {
    margin-left: 14px;
    font-size: 0.75rem;
  }
  .hero {
    align-items: flex-end;
    padding-bottom: 60px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
}
