/* =========================================
   CardCartOS — Retail Intelligence Platform
   ========================================= */

/* --- Variables --- */
:root {
  --wine: #5c1a33;
  --wine-light: #7a2d4a;
  --wine-dark: #3e0f23;
  --cream: #faf5ef;
  --cream-dark: #f0e8dd;
  --gold: #c4922a;
  --gold-light: #d9a93a;
  --gold-pale: #f5e8c8;
  --text: #1a0f16;
  --text-muted: #6b4a5a;
  --text-light: #9c7a8e;
  --surface: #ffffff;
  --shadow: rgba(92, 26, 51, 0.08);
  --shadow-md: rgba(92, 26, 51, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 50%, #3a1a28 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-left { position: relative; z-index: 2; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-lede {
  font-size: 1.05rem;
  color: rgba(250, 245, 239, 0.7);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(250, 245, 239, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(196, 146, 42, 0.3);
}

/* Hero Right - Gift Stack */
.hero-right {
  position: relative;
  height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.gift-stack {
  position: relative;
  width: 320px;
  height: 420px;
}
.gift-card {
  position: absolute;
  width: 180px;
  height: 130px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.4s ease;
}
.gift-card:hover { transform: translateY(-4px) rotate(1deg) !important; }
.gift-card-1 {
  background: linear-gradient(145deg, #f5e8d0, #e8d5b0);
  top: 0;
  left: 20px;
  transform: rotate(-3deg);
  border: 1px solid rgba(196,146,42,0.3);
}
.gift-card-2 {
  background: linear-gradient(145deg, var(--gold), #a87d20);
  top: 40px;
  right: 10px;
  transform: rotate(5deg);
}
.gift-card-3 {
  background: linear-gradient(145deg, var(--wine-light), var(--wine));
  top: 100px;
  left: 60px;
  transform: rotate(-8deg);
}
.card-inner {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-inner.gold { color: var(--cream); }
.card-inner.wine { color: var(--cream); }
.card-occasion {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.card-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.card-line {
  height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
  width: 100%;
}
.card-line.short { width: 60%; }
.card-pattern {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.pattern-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250,245,239,0.2);
}
.card-ornament, .card-ribbon { align-self: flex-end; }

.shelf-surface {
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 16px;
}
.shelf-board {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #8a6040, #6a4830);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero-badge {
  position: absolute;
  bottom: 40px;
  right: 0;
  background: var(--gold);
  color: var(--wine-dark);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(196,146,42,0.4);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(250,245,239,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease infinite;
}

/* --- Categories --- */
.categories {
  padding: 120px 0;
  background: var(--cream);
}
.categories-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-header { margin-bottom: 64px; }
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  max-width: 540px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: var(--surface);
  transition: all 0.25s ease;
  cursor: default;
}
.cat-item:hover {
  background: var(--wine);
  color: var(--cream);
}
.cat-item:hover .cat-desc { color: rgba(250,245,239,0.6); }
.cat-item:hover .cat-icon { color: var(--gold-light); }
.cat-icon { flex-shrink: 0; color: var(--wine); opacity: 0.7; }
.cat-info { display: flex; flex-direction: column; gap: 4px; }
.cat-name { font-weight: 600; font-size: 0.95rem; }
.cat-desc { font-size: 0.78rem; color: var(--text-muted); }
.categories-footer {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--cream-dark);
}
.plus-brands {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Philosophy --- */
.philosophy {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}
.philosophy-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.philosophy-card-stack {
  position: relative;
  width: 280px;
  height: 340px;
  margin-bottom: 24px;
}
.p-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px var(--shadow-md);
}
.p-card-back {
  inset: 0;
  background: var(--cream-dark);
  transform: rotate(6deg);
}
.p-card-mid {
  inset: 4px;
  background: #e8d5b8;
  transform: rotate(3deg);
}
.p-card-front {
  inset: 8px;
  background: linear-gradient(145deg, var(--wine), var(--wine-light));
  transform: rotate(-1deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-card-content { padding: 32px; text-align: center; color: var(--cream); }
.p-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 0.8;
  margin-bottom: 16px;
}
.p-quote-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
}
.p-attribution { display: flex; align-items: center; gap: 12px; justify-content: center; }
.p-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}
.p-name { font-weight: 600; font-size: 0.85rem; display: block; }
.p-role { font-size: 0.72rem; color: rgba(250,245,239,0.5); }
.philosophy-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
}
.philosophy-text { position: relative; z-index: 2; }
.philosophy-headline {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: var(--text);
  margin-bottom: 28px;
  margin-top: 16px;
}
.philosophy-body { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.philosophy-body p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }
.philosophy-pillars { display: flex; flex-direction: column; gap: 24px; }
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  transition: all 0.25s ease;
}
.pillar:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--shadow);
}
.pillar-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--wine);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.pillar-title { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 4px; }
.pillar-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* --- Seasonal --- */
.seasonal {
  padding: 120px 0;
  background: var(--cream);
}
.seasonal-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.seasonal-header { margin-bottom: 56px; }
.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.season-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.season-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-md);
}
.season-card-gold {
  background: linear-gradient(145deg, var(--wine-dark), var(--wine));
  color: var(--cream);
  border-color: var(--wine);
}
.season-card-gold .season-name,
.season-card-gold .season-desc { color: var(--cream); }
.season-card-gold .season-month { background: var(--gold); color: var(--wine-dark); }
.season-month {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.season-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.season-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.season-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric-val { font-size: 0.8rem; font-weight: 600; color: var(--gold); }
.metric-label { font-size: 0.68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.season-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--fill) * 100%);
  background: linear-gradient(180deg, transparent, rgba(92,26,51,0.06));
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.season-bar-gold {
  background: linear-gradient(180deg, transparent, rgba(196,146,42,0.15));
}
.seasonal-callout {
  background: var(--surface);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
}
.callout-inner { display: flex; gap: 20px; align-items: flex-start; }
.callout-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.callout-text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* --- Closing --- */
.closing {
  padding: 120px 0;
  background: var(--wine);
  position: relative;
  overflow: hidden;
}
.closing-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196,146,42,0.12);
}
.bg-arc {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}
.bg-arc-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
}
.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.closing-eyebrow {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 28px;
  opacity: 0.7;
}
.closing-headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 32px;
}
.closing-headline em {
  font-style: italic;
  color: var(--gold-light);
}
.closing-body {
  font-size: 1rem;
  color: rgba(250,245,239,0.6);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 56px;
}
.closing-stamp { display: flex; justify-content: center; }
.stamp-mark { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stamp-ring { opacity: 0.4; }
.stamp-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.stamp-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  opacity: 0.6;
}

/* --- Footer --- */
.footer {
  background: var(--wine-dark);
  padding: 28px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
}
.footer-since { font-size: 0.72rem; color: rgba(250,245,239,0.3); }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(250,245,239,0.3);
}
.footer-sep { opacity: 0.4; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 60px; }
  .philosophy-visual { display: none; }
  .seasonal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .categories-inner, .philosophy-inner, .seasonal-inner, .closing-inner, .footer-inner { padding: 0 24px; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 0 24px; }
  .hero { padding: 100px 0 60px; }
  .hero-headline { font-size: 2.4rem; }
  .seasonal-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .section-title, .philosophy-headline, .closing-headline { font-size: 1.8rem; }
}