:root {
  --red: #c8161d;
  --red-deep: #8a0d12;
  --brown: #3a1a0e;
  --brown-deep: #1d0d07;
  --ember: #f39021;
  --ember-bright: #ffb347;
  --char: #0f0a08;
  --cream: #f5e6c8;
  --ink: #1a0d09;
  --muted: rgba(245, 230, 200, 0.72);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--char);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 10, 8, 0.95), rgba(15, 10, 8, 0.6));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(243, 144, 33, 0.15);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  padding: 3px;
  filter: drop-shadow(0 4px 10px rgba(243, 144, 33, 0.35));
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-stack { display: flex; flex-direction: column; line-height: 1; }
.brand-pre {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  margin-top: 3px;
}
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ---------- Buy buttons ---------- */
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid rgba(243, 144, 33, 0.3);
  box-shadow: 0 6px 24px -8px rgba(200, 22, 29, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px -6px rgba(200, 22, 29, 0.8),
              0 0 24px rgba(243, 144, 33, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  filter: brightness(1.08);
}
.btn-buy--top { padding: 10px 18px; font-size: 14px; }
.btn-buy--big { padding: 18px 32px; font-size: 20px; }
.btn-buy--pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px -8px rgba(200, 22, 29, 0.6),
                         0 0 0 0 rgba(243, 144, 33, 0.45); }
  50% { box-shadow: 0 6px 24px -8px rgba(200, 22, 29, 0.6),
                    0 0 0 14px rgba(243, 144, 33, 0); }
}

.flame-dot {
  width: 8px; height: 8px;
  background: var(--ember-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ember), 0 0 20px var(--ember);
  animation: flicker 1.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.btn-ghost {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--ember-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 60px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 22, 29, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(243, 144, 33, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #1a0807 0%, var(--char) 100%);
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
  font-weight: 600;
}
.eyebrow--center { text-align: center; }
.eyebrow--ember { color: var(--ember-bright); }

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ember-bright);
  background: linear-gradient(180deg, var(--ember-bright) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  margin-top: 22px;
  max-width: 480px;
  color: var(--muted);
}
.hero-sub strong { color: var(--cream); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  list-style: none;
  flex-wrap: wrap;
}
.hero-tags li {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(243, 144, 33, 0.3);
  border-radius: 99px;
  color: var(--muted);
}

.hero-product {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-product .glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(243, 144, 33, 0.45) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.product-img {
  position: relative;
  z-index: 1;
  max-height: 80vh;
  width: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub, .hero-actions { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-product { order: -1; }
  .product-img { max-height: 55vh; }
}

/* ---------- Embers ---------- */
.ember-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ember {
  position: absolute;
  bottom: -20px;
  width: 4px; height: 4px;
  background: var(--ember-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ember), 0 0 16px var(--ember-bright);
  opacity: 0;
  animation: rise linear infinite;
}
.ember:nth-child(1)  { left: 5%;  animation-duration: 7s;  animation-delay: 0s;   }
.ember:nth-child(2)  { left: 12%; animation-duration: 9s;  animation-delay: 1.2s; width: 3px; height: 3px; }
.ember:nth-child(3)  { left: 20%; animation-duration: 6s;  animation-delay: 2.5s; }
.ember:nth-child(4)  { left: 28%; animation-duration: 11s; animation-delay: 0.8s; width: 2px; height: 2px; }
.ember:nth-child(5)  { left: 35%; animation-duration: 8s;  animation-delay: 3s;   }
.ember:nth-child(6)  { left: 43%; animation-duration: 10s; animation-delay: 1.8s; }
.ember:nth-child(7)  { left: 50%; animation-duration: 7.5s;animation-delay: 4s;   width: 5px; height: 5px; }
.ember:nth-child(8)  { left: 58%; animation-duration: 9.5s;animation-delay: 0.5s; }
.ember:nth-child(9)  { left: 65%; animation-duration: 6.5s;animation-delay: 2.2s; }
.ember:nth-child(10) { left: 72%; animation-duration: 8.5s;animation-delay: 3.5s; width: 3px; height: 3px; }
.ember:nth-child(11) { left: 78%; animation-duration: 7s;  animation-delay: 1s;   }
.ember:nth-child(12) { left: 84%; animation-duration: 10s; animation-delay: 4.2s; }
.ember:nth-child(13) { left: 90%; animation-duration: 8s;  animation-delay: 0.3s; width: 2px; height: 2px; }
.ember:nth-child(14) { left: 95%; animation-duration: 9s;  animation-delay: 2.8s; }
.ember:nth-child(15) { left: 15%; animation-duration: 11s; animation-delay: 5s;   }
.ember:nth-child(16) { left: 40%; animation-duration: 7s;  animation-delay: 5.5s; width: 4px; height: 4px; }
.ember:nth-child(17) { left: 68%; animation-duration: 8s;  animation-delay: 6s;   }
.ember:nth-child(18) { left: 88%; animation-duration: 9s;  animation-delay: 6.5s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateY(-50vh) translateX(20px) scale(0.9); opacity: 0.9; }
  100% { transform: translateY(-110vh) translateX(-15px) scale(0.4); opacity: 0; }
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid rgba(243, 144, 33, 0.5);
  border-radius: 14px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  margin-left: -2px;
  width: 4px; height: 6px;
  background: var(--ember-bright);
  border-radius: 2px;
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 24px;
  position: relative;
}
.section--dark {
  background: linear-gradient(180deg, var(--char) 0%, #1a0d08 50%, var(--char) 100%);
}
.section--ember {
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 22, 29, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(243, 144, 33, 0.12) 0%, transparent 50%),
    var(--brown-deep);
}
.section--black {
  background: var(--char);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  color: var(--cream);
  letter-spacing: -0.005em;
}
h2.big {
  font-size: clamp(48px, 7vw, 96px);
}
h2 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}
h2 .hl {
  color: var(--ember-bright);
}

.section p { font-size: 17px; margin-top: 16px; color: var(--muted); }
.section p strong { color: var(--cream); font-weight: 600; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse .col-img { order: 2; }
.col-img img {
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s ease;
}
.col-img:hover img { transform: scale(1.02); }
.col-text { max-width: 520px; }

@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-img { order: 0; }
  .section { padding: 80px 24px; }
}

/* ---------- Flavor grid ---------- */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 70px;
}
.flavor-card {
  background: linear-gradient(180deg, rgba(58, 26, 14, 0.7) 0%, rgba(15, 10, 8, 0.9) 100%);
  border: 1px solid rgba(243, 144, 33, 0.18);
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.flavor-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 144, 33, 0.5);
  box-shadow: 0 16px 40px -10px rgba(200, 22, 29, 0.3);
}
.flavor-icon {
  font-size: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(243, 144, 33, 0.4));
}
.flavor-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ember-bright);
  margin-bottom: 10px;
}
.flavor-card p { font-size: 15px; margin-top: 0; color: var(--muted); }

@media (max-width: 880px) {
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .flavor-grid { grid-template-columns: 1fr; }
}

/* ---------- Pairing list ---------- */
.pairing-list {
  list-style: none;
  margin: 28px 0 36px;
  padding: 0;
}
.pairing-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 144, 33, 0.12);
  font-size: 16px;
  color: var(--muted);
  position: relative;
  padding-left: 24px;
}
.pairing-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 8px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ember);
}
.pairing-list li strong { color: var(--cream); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 3/5;
  background: var(--brown-deep);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.9);
}
.gallery figure:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA Final ---------- */
.cta-final {
  position: relative;
  padding: 140px 24px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(200, 22, 29, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--char) 0%, #2a0c0a 50%, var(--char) 100%);
  overflow: hidden;
  text-align: center;
}
.ember-layer--cta { z-index: 1; }
.cta-final .wrap { position: relative; z-index: 2; }
.cta-sub { font-size: 18px; margin: 24px 0 40px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot {
  background: var(--char);
  padding: 32px 24px;
  border-top: 1px solid rgba(243, 144, 33, 0.12);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.foot a { color: var(--ember); text-decoration: none; }
.foot a:hover { color: var(--ember-bright); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Editable inline ---------- */
[data-tpl="brandPre"], [data-tpl="brandName"] {
  border-radius: 3px;
  padding: 0 4px;
  margin: 0 -4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
[data-tpl="brandPre"]:hover, [data-tpl="brandName"]:hover {
  background: rgba(243, 144, 33, 0.1);
  box-shadow: inset 0 -1px 0 rgba(243, 144, 33, 0.4);
}
[data-tpl="brandPre"].editing, [data-tpl="brandName"].editing {
  background: rgba(243, 144, 33, 0.18);
  box-shadow: 0 0 0 2px var(--ember);
  cursor: text;
}

.edit-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  background: rgba(15, 10, 8, 0.92);
  color: var(--ember-bright);
  border: 1px solid rgba(243, 144, 33, 0.4);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}
.edit-banner button {
  background: none;
  border: 1px solid var(--ember);
  color: var(--ember-bright);
  padding: 3px 10px;
  margin-left: 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.edit-banner button:hover { background: var(--ember); color: var(--char); }

/* ---------- Footer brand ---------- */
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  padding: 3px;
  flex-shrink: 0;
}
.foot-name { display: block; color: var(--muted); font-size: 13px; }
.foot-name span { color: var(--cream); font-weight: 600; }
.foot-tag {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ember);
  margin-top: 2px;
}
