/* === JCUBES THEME === */

:root {
  --cream: #FFF9F0;
  --amber: #F47B20;
  --sage: #4A7C59;
  --brown: #5C3D2E;
  --sand: #D4C4A8;
  --dark: #1A1208;
  --light-sand: #F5F0E8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ——— NAV ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,249,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,196,168,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--sand);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ——— HERO ——— */
.hero {
  padding: 80px 40px 100px;
  background: var(--cream);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Cube Display */
.cube-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cube-stack {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  perspective: 800px;
}
.cube {
  width: 88px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-float 3s ease-in-out infinite;
}
.cube:nth-child(2) { animation-delay: -1s; transform: translateY(-12px); }
.cube:nth-child(3) { animation-delay: -2s; transform: translateY(-24px); }

@keyframes cube-float {
  0%, 100% { transform: translateY(0px) rotateY(-15deg) rotateX(5deg); }
  50% { transform: translateY(-8px) rotateY(-15deg) rotateX(5deg); }
}

.cube-face {
  width: 88px;
  height: 88px;
  border-radius: 14px;
}
.cube-top {
  position: absolute;
  top: -44px;
  left: 0;
  transform: rotateX(-60deg) translateZ(44px);
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cube-front {
  position: relative;
  border-radius: 14px;
}
.cube-right {
  position: absolute;
  top: 0;
  right: -30px;
  transform: rotateY(60deg);
  width: 30px;
  height: 88px;
  border-radius: 0 14px 14px 0;
}

/* Strawberry cube */
.cube-strawberry .cube-top { background: linear-gradient(135deg, #FF6B6B, #EE5A5A); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15); }
.cube-strawberry .cube-front { background: linear-gradient(145deg, #FF6B6B, #C0392B); box-shadow: 0 12px 32px rgba(255,107,107,0.35), inset 0 -6px 0 rgba(0,0,0,0.12); }
.cube-strawberry .cube-right { background: linear-gradient(to right, #C0392B, #A93226); }
.cube-strawberry .cube-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; }

/* Ginger cube */
.cube-ginger .cube-top { background: linear-gradient(135deg, #F5C518, #D4A017); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15); }
.cube-ginger .cube-front { background: linear-gradient(145deg, #F5C518, #B8860B); box-shadow: 0 12px 32px rgba(245,197,24,0.35), inset 0 -6px 0 rgba(0,0,0,0.12); }
.cube-ginger .cube-right { background: linear-gradient(to right, #B8860B, #8B6914); }
.cube-ginger .cube-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; }

/* Chamomile cube */
.cube-chamomile .cube-top { background: linear-gradient(135deg, #F0E68C, #D4C85A); box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15); }
.cube-chamomile .cube-front { background: linear-gradient(145deg, #F0E68C, #C9B84B); box-shadow: 0 12px 32px rgba(240,230,140,0.35), inset 0 -6px 0 rgba(0,0,0,0.1); }
.cube-chamomile .cube-right { background: linear-gradient(to right, #C9B84B, #A89830); }
.cube-chamomile .cube-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; }

.cube-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

/* Pouch art */
.pouch-art {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pouch-body {
  width: 80px;
  height: 100px;
  background: rgba(255,255,255,0.85);
  border-radius: 12px 12px 24px 24px;
  border: 2px solid var(--sand);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(92,61,46,0.15);
}
.pouch-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(212,196,168,0.3) 4px,
    rgba(212,196,168,0.3) 8px
  );
}
.pouch-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  border-radius: 0 0 22px 22px;
}
.pouch-strawberry { background: linear-gradient(to top, #FF6B6B, #FFB3B3); }
.pouch-string {
  width: 2px;
  height: 28px;
  background: var(--sand);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
}
.pouch-string::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 18px;
  height: 10px;
  border: 2px solid var(--sand);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

/* Hero copy */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-body {
  font-size: 17px;
  color: rgba(26,18,8,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  background: var(--light-sand);
  border: 1px solid var(--sand);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.5px;
}

/* ——— SECTIONS ——— */
section { padding: 80px 40px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

/* ——— HOW IT WORKS ——— */
.how {
  background: var(--light-sand);
  border-top: 1px solid rgba(212,196,168,0.4);
  border-bottom: 1px solid rgba(212,196,168,0.4);
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 8px;
}
.step {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 15px;
  color: rgba(26,18,8,0.7);
  line-height: 1.6;
}
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 20px;
  flex-shrink: 0;
}

/* ——— FLAVORS ——— */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.flavor-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(92,61,46,0.08);
}
.flavor-swatch {
  height: 120px;
}
.swatch-strawberry { background: linear-gradient(135deg, #FF6B6B, #EE5A5A); }
.swatch-ginger { background: linear-gradient(135deg, #F5C518, #D4A017); }
.swatch-chamomile { background: linear-gradient(135deg, #F0E68C, #D4C85A); }
.flavor-info { padding: 28px; }
.flavor-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 10px;
}
.flavor-desc {
  font-size: 14px;
  color: rgba(26,18,8,0.7);
  line-height: 1.65;
  margin-bottom: 16px;
}
.flavor-tags {
  display: flex;
  gap: 8px;
}
.flavor-tags span {
  background: var(--light-sand);
  border: 1px solid var(--sand);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brown);
}

/* ——— WHY ——— */
.why { background: var(--brown); }
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why .section-title { color: var(--cream); }
.why-copy p {
  font-size: 15px;
  color: rgba(255,249,240,0.75);
  line-height: 1.75;
  margin-bottom: 20px;
}
.why .section-title { margin-bottom: 32px; }
.comparison { display: flex; flex-direction: column; gap: 0; }
.comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,249,240,0.1);
  font-size: 14px;
}
.comp-row:first-child {
  border-radius: 12px 12px 0 0;
  border-top: 1px solid rgba(255,249,240,0.1);
}
.comp-name { color: rgba(255,249,240,0.6); font-weight: 400; }
.comp-score { color: rgba(255,249,240,0.4); font-size: 13px; }
.comp-winner { background: rgba(244,123,32,0.15); border-radius: 0 0 12px 12px; }
.comp-winner .comp-name { color: var(--amber); font-weight: 600; }
.comp-winner .comp-score { color: rgba(244,123,32,0.8); font-weight: 600; }

/* ——— MANIFESTO ——— */
.manifesto { background: var(--cream); }
.manifesto-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  color: var(--brown);
  line-height: 1.6;
  margin-bottom: 40px;
  quotes: none;
}
.manifesto-divider {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 32px;
}
.manifesto-closing {
  font-size: 15px;
  color: rgba(26,18,8,0.6);
  line-height: 1.7;
}

/* ——— FOOTER ——— */
.footer { background: var(--dark); padding: 48px 40px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
}
.footer p { font-size: 14px; color: rgba(255,249,240,0.5); line-height: 1.6; }
.footer-links span {
  font-size: 13px;
  color: rgba(255,249,240,0.4);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,249,240,0.08);
}
.footer-bottom p { font-size: 12px; color: rgba(255,249,240,0.3); }
.footer-bottom a { color: rgba(244,123,32,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .cube-stack { justify-content: center; }
  .hero-headline { font-size: 36px; }
  .flavor-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
  section { padding: 60px 24px; }
  .hero { padding: 48px 24px 60px; }
  .nav-inner { padding: 16px 24px; }
}
@media (max-width: 480px) {
  .cube { width: 64px; }
  .cube-face { width: 64px; height: 64px; }
  .cube-top { width: 64px; height: 64px; top: -32px; transform: rotateX(-60deg) translateZ(32px); }
  .cube-right { width: 22px; height: 64px; right: -22px; }
  .cube-label { font-size: 7px; }
  .hero-pills { gap: 8px; }
}
