/* ============================================
   PUREFFECT — DESIGN SYSTEM
   Shared across all pages
   ============================================ */

:root {
  /* Desert Rose × Botanical Garden hybrid */
  --bg: #f5f1ea;
  --bg-warm: #ede4d6;
  --bg-deep: #e1d5c2;
  --paper: #faf6ee;
  --ink: #1a1410;
  --ink-soft: #4a3f36;
  --muted: #968a7c;
  --line: #d4c8b6;
  --rose: #c89b8c;
  --clay: #a96b54;
  --burgundy: #5d2e3c;
  --fern: #3d5a47;
  --gold: #c89545;
  --shadow: 0 30px 80px -20px rgba(93, 46, 60, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: auto;
}

body::before {
  content: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.display {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.italic { font-style: italic; }
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  display: none;
}
.cursor.hover {
  display: none;
}
@media (max-width: 1024px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ============ NAVIGATION ============ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(245, 241, 234, 0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}
nav.top.scrolled {
  border-bottom-color: var(--line);
  padding: 16px 56px;
}

.logo {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-img {
  width: 180px;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.logo:hover .logo-img { opacity: 0.72; }
nav.top.scrolled .logo-img { width: 160px; }

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  justify-self: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  overflow: hidden;
  display: inline-block;
}
.nav-links a span {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(.7,0,.3,1);
}
.nav-links a::after {
  content: attr(data-text);
  position: absolute;
  top: 100%; left: 0;
  transition: transform 0.5s cubic-bezier(.7,0,.3,1);
  color: var(--clay);
}
.nav-links a:hover span { transform: translateY(-100%); }
.nav-links a:hover::after { transform: translateY(-100%); }
.nav-links a.active { color: var(--clay); }

.nav-utils {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  justify-self: end;
}
.nav-utils button, .nav-utils a {
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.3s;
  text-decoration: none;
  padding: 0;
}
.nav-utils button:hover, .nav-utils a:hover { color: var(--clay); }
.cart-pill {
  padding: 9px 18px !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  font-size: 13px !important;
  font-weight: 600;
}
.cart-count {
  background: var(--clay);
  color: var(--paper);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.lang-switch button {
  font-size: 10px;
  padding: 0 4px;
  cursor: pointer;
}
.lang-switch button.active { color: var(--clay); font-weight: 600; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: all 0.4s cubic-bezier(.6,0,.2,1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: var(--ink);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--burgundy);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(.6,0,.2,1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--paper); border-color: var(--burgundy); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.6,0,.2,1);
}
.btn:hover .arrow { transform: translateX(6px); }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 56px 32px;
  position: relative;
}
.footer-mark {
  margin-bottom: 80px;
  display: block;
}
.footer-mark img {
  display: block;
  width: min(760px, 100%);
  height: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 80px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
  margin-bottom: 32px;
}
.footer-brand .address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 14px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-left: 24px;
}
.footer-bottom a:hover { color: var(--paper); }

/* ============ MARKETING POPUP ============ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.6);
  backdrop-filter: none;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s;
  padding: 24px;
}
.popup-overlay.show { display: flex; opacity: 1; }
.popup {
  background: var(--paper);
  max-width: 560px;
  width: 100%;
  padding: 60px 48px;
  position: relative;
  border-radius: 4px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(.6,0,.2,1) 0.1s;
  box-shadow: var(--shadow);
}
.popup-overlay.show .popup { transform: translateY(0); }
.popup-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.popup-close:hover { background: var(--bg); color: var(--ink); }
.popup .chapter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 24px;
}
.popup h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.popup h2 em { font-style: italic; color: var(--burgundy); }
.popup p {
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.6;
}
.popup-form {
  display: flex;
  background: var(--bg);
  border-radius: 100px;
  padding: 6px;
  margin-bottom: 16px;
}
.popup-form input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.popup-form button {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}
.popup-success {
  display: none;
}
.popup-success.show { display: block; }
.popup-form-wrap.hide { display: none; }
.code-display {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  letter-spacing: 0.3em;
  border-radius: 4px;
  margin: 24px 0;
  display: inline-block;
}
.popup-fineprint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ CART DRAWER ============ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: var(--paper);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.6,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.5);
  backdrop-filter: none;
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-header {
  padding: 32px 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.cart-header h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.cart-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item img {
  width: 80px; height: 100px;
  object-fit: cover;
  background: var(--bg);
  border-radius: 2px;
}
.cart-item-info h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 4px;
}
.cart-item-info .vol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.cart-item-info .price {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--burgundy);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.cart-item-remove:hover { color: var(--burgundy); }
.cart-empty {
  text-align: center;
  padding: 80px 32px;
  color: var(--muted);
}
.cart-empty p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  margin-bottom: 24px;
}
.cart-footer {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.cart-subtotal .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-subtotal .amount {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 300;
}
.cart-platform-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.platform-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.platform-btn {
  padding: 14px 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.platform-btn:hover { background: var(--burgundy); border-color: var(--burgundy); }

/* ============ PAGE HERO (for sub-pages) ============ */
.page-hero {
  padding: 180px 56px 100px;
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.page-hero .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero .breadcrumb span { color: var(--ink); }
.page-hero h1 {
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 200;
  margin-bottom: 32px;
  max-width: 1100px;
}
.page-hero h1 em { font-style: italic; color: var(--burgundy); font-weight: 300; }
.page-hero .lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  nav.top { grid-template-columns: 1fr auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cart-drawer { width: 100vw; }
}
@media (max-width: 720px) {
  nav.top, footer { padding-left: 24px; padding-right: 24px; }
  .logo-img { width: 145px; }
  nav.top.scrolled .logo-img { width: 132px; }
  .nav-utils { gap: 12px; }
  .nav-utils button, .nav-utils a { font-size: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 120px 24px 60px; }
  .popup { padding: 40px 28px; }
  .popup h2 { font-size: 36px; }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
