/* ==========================================================================
   FameWeaver 2026 Editorial Platform Stylesheet
   Canvas: Warm Literary Parchment (#F8F6F1) & Obsidian Purple (#161120)
   Accents: Royal Brand Purple (#4D2C6D), Burnished Gold (#C8A962), Fine Slate (#2B2735)
   Fonts: 'Cinzel Decorative', 'Playfair Display', 'Plus Jakarta Sans'
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --canvas-parchment: #F8F6F1;
  --canvas-white: #FFFFFF;
  --canvas-obsidian: #161120;
  --canvas-obsidian-card: #20192E;
  --canvas-obsidian-border: #2D2340;
  --purple-royal: #4D2C6D;
  --purple-deep: #2A163D;
  --purple-light: #6A3E96;
  --gold-burnished: #C8A962;
  --gold-light: #DEBE7B;
  --gold-dark: #A3843F;
  --slate-charcoal: #2B2735;
  --slate-muted: #6B6476;
  --slate-subtle: #9B93A8;
  --border-parchment: #E8E2D5;
  --transition-fluid: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html {
  background-color: var(--canvas-parchment);
  color: var(--slate-charcoal);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: #F8F6F1;
  color: #2B2735;
}

.font-cinzel {
  font-family: 'Cinzel Decorative', Georgia, serif;
}

.font-serif-header {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Multi-View SPA System */
.app-view {
  display: none;
  opacity: 0;
  will-change: opacity, transform;
}

.app-view.active {
  display: block;
  opacity: 1;
}

/* Fluid transition helper */
.fluid-transition {
  transition: var(--transition-fluid);
}

/* Kinetic Card Lift */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(77, 44, 109, 0.12);
}

/* Gold button with glowing hover */
.btn-gold {
  background: linear-gradient(135deg, #DEBE7B 0%, #C8A962 60%, #B8964B 100%);
  color: #1A0D26;
  font-weight: 700;
  transition: var(--transition-fluid);
  box-shadow: 0 4px 14px rgba(200, 169, 98, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #EAD196 0%, #DEBE7B 60%, #C8A962 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(200, 169, 98, 0.5);
}

.btn-purple {
  background: #4D2C6D;
  color: #F8F6F1;
  font-weight: 700;
  transition: var(--transition-fluid);
  box-shadow: 0 4px 14px rgba(77, 44, 109, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-purple:hover {
  background: #371E4F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 44, 109, 0.4);
}

/* Obsidian Glass Surface */
.obsidian-card {
  background: rgba(32, 25, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 169, 98, 0.3);
  box-shadow: 0 25px 50px -12px rgba(10, 6, 18, 0.6), 0 0 35px -5px rgba(200, 169, 98, 0.15);
}

/* Metric Progress Rows */
.metric-row {
  cursor: pointer;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  transition: var(--transition-fluid);
}

.metric-row:hover {
  background: rgba(200, 169, 98, 0.12);
  border-color: rgba(200, 169, 98, 0.3);
}

.metric-row.active {
  background: rgba(200, 169, 98, 0.2);
  border-color: rgba(200, 169, 98, 0.65);
  box-shadow: 0 0 16px -2px rgba(200, 169, 98, 0.35);
}

.progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #A3843F 0%, #C8A962 60%, #EAD196 100%);
  box-shadow: 0 0 8px rgba(200, 169, 98, 0.6);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Accordion Component */
.faq-accordion-item {
  border: 1px solid #E8E2D5;
  background: #FFFFFF;
  border-radius: 1rem;
  transition: var(--transition-fluid);
  overflow: hidden;
}

.faq-accordion-item:hover {
  border-color: #C8A962;
  box-shadow: 0 4px 18px rgba(77, 44, 109, 0.06);
}

.faq-accordion-item.open {
  border-color: #C8A962;
  box-shadow: 0 8px 24px rgba(77, 44, 109, 0.1);
}

.faq-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
}

.faq-accordion-item.open .faq-content {
  max-height: 500px;
  opacity: 1;
}

.faq-accordion-item .chevron-icon {
  transition: transform 0.3s ease;
}

.faq-accordion-item.open .chevron-icon {
  transform: rotate(180deg);
}

/* Three Paths Tab System (Mobile) */
.tab-btn {
  transition: var(--transition-fluid);
}

.tab-btn.active {
  background: #4D2C6D;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(77, 44, 109, 0.25);
}

/* Comparison VS Badge */
.vs-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #E8E2D5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #4D2C6D;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

/* Video Demo Poster & Interactive Badges */
.video-demo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  background: #161120;
}

.video-demo-card .play-btn-pulse {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.video-demo-card:hover .play-btn-pulse {
  transform: scale(1.12);
  background-color: #DEBE7B;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F8F6F1;
}

::-webkit-scrollbar-thumb {
  background: #C8A962;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A3843F;
}

/* Subtle parchment paper grid texture */
.parchment-pattern {
  background-color: #F8F6F1;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.012) 3px, rgba(0,0,0,0.012) 4px), 
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.012) 3px, rgba(0,0,0,0.012) 4px);
}
