/* RootVita — Design Tokens */
:root {
  --gold: #C8952E;
  --gold-light: #E8B84D;
  --cream: #FFF8ED;
  --dark: #1A1208;
  --bark: #3D2B0F;
  --leaf: #2D5A27;
  --leaf-light: #4A8F42;
  --coconut: #F5E6CC;
  --warm-white: #FFFBF5;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(26,18,8,0.95), rgba(26,18,8,0));
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(175deg, #1A1208 0%, #2A1F0A 40%, #1E2A12 70%, #1A1208 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(200,149,46,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 60%, rgba(45,90,39,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(200,149,46,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--cream);
  max-width: 800px;
}

.hero-title span {
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.7;
  max-width: 540px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(200,149,46,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(200,149,46,0.4);
}

.btn-secondary:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Products Grid */
.products-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: rgba(255,248,237,0.03);
  border: 1px solid rgba(200,149,46,0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: rgba(200,149,46,0.4);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, #2A1F0A, #1E2A12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-icon {
  font-size: 4rem;
  opacity: 0.6;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.product-body {
  padding: 1.75rem;
}

.product-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.product-tagline {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.product-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200,149,46,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gold-light);
  transition: background 0.2s;
}

.product-card:hover .product-arrow {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* Product Detail Page */
.product-page {
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  opacity: 0.6;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  transition: opacity 0.2s;
}

.product-back:hover { opacity: 1; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

@media (max-width: 700px) {
  .product-hero { grid-template-columns: 1fr; gap: 2rem; }
}

.product-visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: linear-gradient(135deg, #2A1F0A, #1E2A12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.5;
  border: 1px solid rgba(200,149,46,0.15);
}

.product-info { padding-top: 0.5rem; }

.product-badge-detail {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.product-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-tagline-detail {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.65;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.product-price-detail {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.btn-preorder {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  justify-content: center;
}

/* Sections */
.product-section {
  margin-bottom: 3.5rem;
}

.product-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.product-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.75;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ingredient-item {
  display: grid;
  grid-template-columns: 160px 80px 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,248,237,0.03);
  border-radius: 10px;
  font-size: 0.9rem;
  align-items: start;
}

@media (max-width: 600px) {
  .ingredient-item { grid-template-columns: 1fr 1fr; }
  .ingredient-item span:first-child { font-weight: 700; color: var(--gold-light); }
}

.ingredient-name { color: var(--cream); font-weight: 500; }
.ingredient-amount { color: var(--gold); font-size: 0.85rem; }
.ingredient-benefit { color: var(--cream); opacity: 0.6; }

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.benefit-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(74,143,66,0.2);
  color: var(--leaf-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.story-block {
  padding: 2rem;
  border-left: 3px solid var(--gold);
  background: rgba(200,149,46,0.05);
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.85;
}

/* Pre-order form */
.preorder-form { margin-top: 1.5rem; }

.preorder-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-top: 0.75rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(200,149,46,0.3);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.preorder-error {
  display: none;
  color: #e07070;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(200,149,46,0.1);
  color: var(--cream);
  opacity: 0.4;
  font-size: 0.85rem;
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(200,149,46,0.1);
  }
  .products-grid { grid-template-columns: 1fr; }
}

/* Pre-order success */
.preorder-success {
  display: none;
  padding: 1.5rem;
  background: rgba(74,143,66,0.1);
  border: 1px solid rgba(74,143,66,0.3);
  border-radius: 12px;
  margin-top: 1.5rem;
  text-align: center;
}

.preorder-success a {
  color: var(--leaf-light);
  font-weight: 600;
}