:root {
  /* Color Palette */
  --void: #020208;
  --abyss: #05050f;
  --deep: #08081a;
  --cosmos: #0d0d2e;
  --nebula: #1a0a2e;
  --ink: #12082a;
  --gold: #c9a84c;
  --gold2: #f0c060;
  --gold3: #ffe08a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.1);
  --violet: #7c3aed;
  --rose: #f43f5e;
  --page: #f7f2e8;
  --page2: #ede5d0;
  --page3: #e0d5b8;
  --star: #e8d5a3;
  --mist: rgba(232, 213, 163, 0.06);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-30: 120px;
  --space-40: 160px;
}

/* =========================================
   RESET & BASE
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important; /* Managed by custom cursor */
}

/* Fallback for devices without fine pointer */
@media (pointer: coarse) {
  * { cursor: auto !important; }
  #cursorOuter, #cursorInner, #cursorTrail { display: none !important; }
}

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--void);
  color: var(--page);
  font-family: 'Crimson Pro', serif;
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* Allow scrolling on main container for smooth scroll logic */
.smooth-scroll-container {
  overflow-y: auto;
  scroll-behavior: auto; /* Custom smooth scroll handles behavior */
}

/* Typography Utility Classes */
.cinzel-dec { font-family: 'Cinzel Decorative', cursive; }
.cinzel { font-family: 'Cinzel', serif; }
.cormorant { font-family: 'Cormorant Garamond', serif; }
.crimson { font-family: 'Crimson Pro', serif; }
.mono { font-family: 'Space Mono', monospace; }
.mono-num { font-family: 'Space Mono', monospace; font-variant-numeric: tabular-nums; }
.italic { font-style: italic; }

/* Custom Text Selections */
::selection {
  background: var(--gold-dim);
  color: var(--gold3);
}

/* =========================================
   CUSTOM CURSOR
========================================= */
#cursorOuter {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  will-change: transform, width, height;
}

#cursorInner {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  transition: opacity 0.2s ease, transform 0.1s ease;
  will-change: transform;
}

#cursorOuter.hover {
  width: 80px; height: 80px;
  background: var(--gold-dim);
  border-color: transparent;
  mix-blend-mode: normal;
}
#cursorInner.hover { opacity: 0; }
#cursorOuter.click { transform: translate(-50%, -50%) scaleX(1.4) scaleY(0.6); }

/* Upload drag state */
#cursorOuter.drag-upload {
  width: 60px; height: 60px;
  background: var(--violet); opacity: 0.2;
}
#cursorInner.drag-upload {
  background: transparent;
  width: 24px; height: 24px;
}
#cursorInner.drag-upload::after {
  content: '📚';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

#cursorTrail {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}
.trail-dot {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
}

/* =========================================
   BACKGROUND LAYERS
========================================= */
canvas { display: block; }

#starfieldCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
#dustCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: screen;
}
#bgBooksCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none;
}
#nebulaOrbs {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: hidden;
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform;
}
.orb-1 { width: 500px; height: 500px; background: var(--violet); opacity: 0.06; top: -10%; left: -10%; animation: orb-drift 30s infinite ease-in-out alternate; }
.orb-2 { width: 600px; height: 600px; background: var(--gold); opacity: 0.04; top: 40%; right: -20%; animation: orb-drift 40s infinite ease-in-out alternate-reverse; }
.orb-3 { width: 400px; height: 400px; background: var(--cyan); opacity: 0.03; bottom: -10%; left: 20%; animation: orb-drift 25s infinite ease-in-out alternate; }
.orb-4 { width: 450px; height: 450px; background: var(--violet); opacity: 0.05; top: 30%; left: 40%; animation: orb-drift 35s infinite ease-in-out alternate-reverse; }
.orb-5 { width: 550px; height: 550px; background: var(--gold); opacity: 0.03; bottom: 20%; right: 10%; animation: orb-drift 38s infinite ease-in-out alternate; }

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 80px) scale(0.9); }
}

/* =========================================
   SCROLL CONTENT CONTAINER
========================================= */
#scrollContent {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
}

/* Section Reveal Animations */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.section-reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* =========================================
   NAVIGATION
========================================= */
#mainNav {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--space-12);
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(2,2,8,0.9) 0%, rgba(2,2,8,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.nav-left .logo h1 {
  font-family: 'Cinzel Decorative', cursive; font-size: 24px; font-weight: 700;
  background: linear-gradient(90deg, var(--gold2), var(--gold), var(--star));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; letter-spacing: 1px;
}
.nav-left .tagline {
  font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.5);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; display: block;
}

.nav-center { display: flex; align-items: center; gap: var(--space-6); }
.nav-link {
  font-family: 'Cinzel', serif; font-size: 14px; color: var(--page2);
  text-decoration: none; text-transform: uppercase; letter-spacing: 2px;
  position: relative; transition: color 0.3s ease; opacity: 0.8;
}
.nav-link:hover { opacity: 1; color: var(--gold3); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.dot-separator {
  width: 4px; height: 4px; border-radius: 50%; background: var(--mist);
  box-shadow: 0 0 8px var(--cyan-dim);
}

.nav-right { display: flex; align-items: center; gap: var(--space-6); }

.icon-btn {
  background: none; border: none; color: var(--page); padding: var(--space-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.icon-btn:hover { transform: translateY(-3px) scale(1.05); color: var(--gold); }
.icon-btn svg { width: 24px; height: 24px; }
.mute-x { transform-origin: center; transition: opacity 0.3s, transform 0.3s; }
.sound-active .mute-x { opacity: 0; transform: scale(0); }

.theme-badge {
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 1px;
  padding: 4px 8px; border: 1px solid var(--mist); color: rgba(255,255,255,0.5);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* BUTTONS */
.cta-btn, .primary-btn {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--void); border: none; padding: 12px 24px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}
.cta-btn:hover, .primary-btn:hover {
  transform: translateY(-3px); filter: brightness(1.1);
  box-shadow: 0 10px 20px rgba(201,168,76,0.3);
}

.ghost-btn {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
  background: transparent; border: 1px solid var(--gold);
  padding: 11px 23px; /* account for border */
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: all 0.3s ease; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.ghost-btn:hover {
  background: var(--gold-dim); transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201,168,76,0.1);
}

.scroll-progress-bar {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.05);
}
.scroll-progress {
  height: 100%; background: var(--gold); width: 0%; box-shadow: 0 0 10px var(--gold);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-30) var(--space-12) var(--space-12); position: relative;
}

.hero-content { width: 55%; padding-right: var(--space-12); z-index: 10; }
.hero-canvas-container { width: 45%; height: 80vh; position: relative; z-index: 5; }
#heroBookCanvas { width: 100%; height: 100%; }

.hero-badge {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 3px;
  color: var(--gold2); display: inline-block; margin-bottom: var(--space-6);
  padding: 8px 16px; border: 1px solid var(--gold-dim); border-radius: 20px;
  background: rgba(201,168,76,0.05);
}

.orbit-anim { position: relative; overflow: hidden; }
.orbit-anim::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(201,168,76,0.4) 100%);
  animation: rotate 4s linear infinite; z-index: -1; border-radius: 50%;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem); line-height: 1.1; margin-bottom: var(--space-6);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-title .word { display: block; }
.word.shifted { margin-left: 10%; color: var(--page2); }
.word.largest { font-size: 1.2em; font-family: 'Cinzel Decorative', cursive; }
.gold-gradient {
  background: linear-gradient(180deg, var(--gold3), var(--gold), #8a6a24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.shadow-glow { filter: drop-shadow(0 0 40px rgba(201,168,76,0.3)); }

/* Word split animation styles applied via JS */
.word-split { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.char { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease; }
.char.visible { transform: translateY(0); opacity: 1; }

.hero-subtitle {
  font-family: 'Crimson Pro', serif; font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8; color: rgba(247,242,232,0.8); max-width: 500px;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-8);
  font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 1px;
}
.gold-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; opacity: 0.5; }

.hero-actions { display: flex; gap: var(--space-4); margin-bottom: var(--space-16); }

.scroll-indicator {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}
.mouse-icon {
  width: 20px; height: 32px; border: 1px solid rgba(255,255,255,0.4); border-radius: 10px;
  position: relative;
}
.mouse-icon::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 6px; background: var(--gold); border-radius: 2px;
  animation: mouse-scroll 1.5s infinite;
}
@keyframes mouse-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* =========================================
   UPLOAD SECTION
========================================= */
.upload-section {
  padding: var(--space-20) var(--space-12); position: relative; z-index: 10;
}
.upload-container {
  max-width: 1000px; margin: 0 auto; min-height: 400px;
  background: rgba(13,13,46,0.4); border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  position: relative; transition: all 0.4s ease;
  clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
}
.upload-container:hover { background: rgba(13,13,46,0.6); border-color: rgba(201,168,76,0.2); }

.corner-accent { position: absolute; width: 20px; height: 20px; border: 2px solid var(--gold); opacity: 0.5; transition: opacity 0.3s; }
.corner-accent.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-accent.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-accent.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner-accent.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }
.upload-container:hover .corner-accent { opacity: 1; }

.upload-border {
  position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px dashed rgba(255,255,255,0.1); transition: all 0.4s ease;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

.upload-content { text-align: center; z-index: 2; pointer-events: none; }
.upload-icon { font-size: 64px; display: inline-block; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.upload-heading {
  font-family: 'Cinzel', serif; font-size: 32px; margin: var(--space-6) 0 var(--space-2);
  color: var(--page);
}
.upload-sub { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: var(--space-4); }
.supported-formats { font-size: 12px; color: rgba(255,255,255,0.4); }

.upload-container.drag-over {
  background: rgba(26,10,46,0.6); border-color: var(--gold);
}
.upload-container.drag-over .upload-border {
  border-color: var(--gold); border-width: 2px;
  animation: dash-flow 20s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -1000; } }

.upload-progress-container {
  width: 100%; max-width: 300px; height: 4px; background: rgba(255,255,255,0.1);
  margin: var(--space-4) auto 0; border-radius: 2px; overflow: hidden;
}
.upload-progress-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.3s linear; }

/* =========================================
   LIBRARY SECTION
========================================= */
.library-section {
  padding: var(--space-20) 0; position: relative; min-height: 800px; z-index: 10;
}
#constellationCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
.section-container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-12); position: relative; z-index: 1; }

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--space-4);
}
.section-header h2 { font-family: 'Cinzel', serif; font-size: 36px; font-weight: 400; color: var(--page); }
.section-header h2 .mono-num { font-size: 20px; color: var(--gold); margin-left: var(--space-2); }
.section-header.center { flex-direction: column; align-items: center; text-align: center; border-bottom: none; }
.section-header .subtitle { font-family: 'Crimson Pro', serif; font-size: 18px; color: rgba(255,255,255,0.6); margin-top: var(--space-2); }

.filter-row { display: flex; gap: var(--space-4); }
.filter-btn {
  background: none; border: none; font-family: 'Space Mono', monospace;
  font-size: 12px; text-transform: uppercase; color: rgba(255,255,255,0.5);
  padding: 4px 0; position: relative; transition: color 0.3s;
}
.filter-btn:hover { color: var(--page); }
.filter-btn.active { color: var(--gold); }
.filter-btn.active::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 1px; background: var(--gold);
}

.library-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-8);
}

/* Book Cards */
.book-card {
  perspective: 800px; position: relative; display: flex; flex-direction: column;
  transition: transform 0.3s ease, z-index 0s; z-index: 1;
}
.book-card:hover { z-index: 10; transform: translateY(-12px); }
.card-content {
  background: var(--abyss); border: 1px solid rgba(255,255,255,0.05);
  height: 380px; display: flex; flex-direction: column;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.book-card:hover .card-content {
  box-shadow: 0 30px 50px rgba(0,0,0,0.8), -10px 10px 20px var(--gold-dim);
  border-color: rgba(201,168,76,0.3);
}

.card-cover {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cover-gradient { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.8; }
.card-cover .book-title-bg {
  position: absolute; font-family: 'Cinzel', serif; font-size: 60px; line-height: 0.8;
  opacity: 0.05; transform: rotate(-15deg) scale(1.5); white-space: nowrap; font-weight: 900;
}
.card-cover .book-icon { font-size: 48px; position: relative; z-index: 2; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }

.card-info { padding: var(--space-4); display: flex; flex-direction: column; background: var(--void); }
.card-title { font-family: 'Cinzel', serif; font-size: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: var(--space-3); }

.card-progress-bar { width: 100%; height: 2px; background: rgba(255,255,255,0.1); margin-bottom: var(--space-3); position: relative; }
.card-progress-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--gold); }

.card-actions { display: flex; justify-content: space-between; align-items: center; }
.card-badge {
  font-family: 'Space Mono', monospace; font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: rgba(201,168,76,0.1); color: var(--gold2); border: 1px solid rgba(201,168,76,0.2);
}
.card-btn {
  background: none; border: none; color: rgba(255,255,255,0.4); cursor: none;
  transition: color 0.3s; padding: 4px; border-radius: 50%;
}
.card-btn:hover { color: var(--rose); background: rgba(244,63,94,0.1); }

/* Empty State */
.empty-state {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-20) 0; text-align: center;
}
.empty-state p { font-family: 'Cinzel', serif; font-size: 24px; color: rgba(255,255,255,0.8); margin: var(--space-6) 0; }
.empty-svg { margin-bottom: var(--space-4); animation: float 6s ease-in-out infinite; }


/* =========================================
   FEATURED SECTION
========================================= */
.featured-section {
  padding: var(--space-20) 0; background: linear-gradient(180deg, var(--void) 0%, var(--abyss) 100%);
  position: relative; z-index: 10;
}
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-8);
  margin-top: var(--space-12);
}
.featured-card {
  display: flex; height: 180px; background: var(--deep); border: 1px solid rgba(255,255,255,0.05);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.featured-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); border-color: rgba(201,168,76,0.2); }
.f-cover { width: 100px; position: relative; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(255,255,255,0.05); }
.f-cover .book-icon { font-size: 32px; z-index: 2; }

.f-info { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.f-genre { font-family: 'Space Mono', monospace; font-size: 9px; color: var(--cyan); text-transform: uppercase; margin-bottom: 4px; }
.f-title { font-family: 'Cinzel', serif; font-size: 16px; margin-bottom: 2px; }
.f-author { font-family: 'Crimson Pro', serif; font-style: italic; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.f-desc { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   FEATURES SECTION
========================================= */
.features-section {
  padding: var(--space-20) 0; position: relative; z-index: 10;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100px 100px;
}
.features-grid {
  display: flex; flex-direction: column; gap: var(--space-20);
}
.feature-row { display: flex; align-items: center; gap: var(--space-12); }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feat-icon-col { flex: 1; display: flex; justify-content: center; }
.feat-icon-wrap {
  width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center; position: relative;
  box-shadow: inset 0 0 50px rgba(0,229,255,0.05);
}
.feat-icon-wrap::before {
  content: ''; position: absolute; width: 100%; height: 100%; border: 1px dashed rgba(201,168,76,0.3); border-radius: 50%; animation: rotate 20s linear infinite;
}
.feat-icon { font-size: 64px; filter: drop-shadow(0 0 20px rgba(201,168,76,0.4)); }
.feat-text-col { flex: 1; }
.feat-num { font-family: 'Space Mono', monospace; font-size: 48px; color: rgba(255,255,255,0.05); line-height: 1; margin-bottom: -20px; font-weight: 700; }
.feat-title { font-family: 'Cinzel', serif; font-size: 32px; color: var(--gold); margin-bottom: var(--space-4); }
.feat-desc { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.7); }

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testimonial-section { padding: var(--space-20) 0; z-index: 10; position: relative; }
.testimonial-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.testimonial-card {
  padding: var(--space-8); background: rgba(13,13,46,0.5); border: 1px solid rgba(255,255,255,0.05);
  position: relative; transition: transform 0.3s, border-color 0.3s;
}
.testimonial-card:hover { transform: translateY(-10px); border-color: rgba(201,168,76,0.3); }
.quote-mark {
  font-family: 'Cormorant Garamond', serif; font-size: 80px; color: var(--gold-dim);
  line-height: 0; position: absolute; top: 40px; left: 20px;
}
.quote-text { font-style: italic; font-size: 16px; line-height: 1.8; color: var(--page); margin-bottom: var(--space-6); position: relative; z-index: 1; }
.reader-info { display: flex; align-items: center; gap: var(--space-3); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--nebula); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; color: var(--gold); }
.name { font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }


/* =========================================
   FOOTER
========================================= */
#footer {
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: var(--space-12); position: relative; z-index: 10;
  background: var(--void);
}
.footer-top {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--space-12) var(--space-12);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo h2 { font-family: 'Cinzel Decorative', cursive; font-size: 20px; color: var(--gold); }
.footer-logo .tagline { font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.footer-nav { display: flex; gap: var(--space-6); }
.footer-nav a { color: var(--page2); text-decoration: none; font-family: 'Cinzel', serif; font-size: 12px; text-transform: uppercase; transition: color 0.3s; opacity: 0.7; }
.footer-nav a:hover { opacity: 1; color: var(--gold); }
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.social-icons .icon { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--page); text-decoration: none; padding: 8px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.social-icons .icon:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.social-icons .social-link { border-radius: 0; white-space: nowrap; flex-shrink: 0; }
.star-divider {
  height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent); position: relative;
}
.star-divider::after { content: '✦'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 12px; background: var(--void); padding: 0 10px; }
.footer-bottom { text-align: center; padding: var(--space-6) 0; font-family: 'Space Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.3); }

/* =========================================
   TOAST NOTIFICATIONS
========================================= */
#toastContainer { position: fixed; bottom: var(--space-8); right: var(--space-8); z-index: 10000; display: flex; flex-direction: column; gap: var(--space-3); pointer-events: none; }
.toast {
  background: rgba(8,8,26,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold-dim); padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--page);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); pointer-events: auto;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transform: translateY(20px); opacity: 0; animation: toast-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.toast.hiding { animation: toast-out 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes toast-in { to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-20px); opacity: 0; } }
.toast.success { border-color: rgba(201,168,76,0.5); }
.toast.success .t-icon { color: var(--gold); }
.toast.error { border-color: rgba(244,63,94,0.5); }
.toast.error .t-icon { color: var(--rose); }
.toast.info { border-color: rgba(0,229,255,0.5); }
.toast.info .t-icon { color: var(--cyan); }

/* =========================================
   READER MODAL
========================================= */
.reader-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999;
  visibility: visible;
}
.reader-modal.hidden { visibility: hidden; pointer-events: none; }
.reader-overlay-wipe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--void);
  clip-path: circle(0% at 50% 50%); transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.reader-modal.open .reader-overlay-wipe { clip-path: circle(150% at 50% 50%); }

.reader-content {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; opacity: 0; transition: opacity 0.4s 0.2s;
  background-image: radial-gradient(circle at center, rgba(20,20,40,0.6) 0%, var(--void) 100%);
}
.reader-modal.open .reader-content { opacity: 1; }

.reader-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(180deg, rgba(2,2,8,0.9), transparent);
  z-index: 100;
}
.book-info h2 { font-family: 'Cinzel', serif; font-size: 20px; color: var(--gold); margin-bottom: 2px; }
.chapter-indicator { font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.reader-controls { display: flex; align-items: center; gap: var(--space-4); }
.page-count { font-size: 12px; color: rgba(255,255,255,0.5); margin-right: var(--space-4); }

.reader-progress-bar-container { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.05); z-index: 101; }
.reader-progress-bar { height: 100%; background: var(--gold); width: 0%; box-shadow: 0 0 10px var(--gold); transition: width 0.3s linear; }

/* The Spread Stage */
.reader-stage {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  perspective: 2000px;
}
.book-wrap {
  display: flex; position: relative; width: 85vw; max-width: 1400px; height: 80vh; max-height: 900px;
  transform-style: preserve-3d;
}

.page-container {
  flex: 1; position: relative; background: var(--page);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
  overflow: hidden;
  /* Paper texture via CSS */
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
}
.page-left { border-radius: 4px 0 0 4px; border-left: 2px solid #dcd4c2; transform-origin: right center; box-shadow: -10px 20px 40px rgba(0,0,0,0.7); }
.page-right { border-radius: 0 4px 4px 0; border-right: 2px solid #dcd4c2; transform-origin: left center; box-shadow: 10px 20px 40px rgba(0,0,0,0.7); }

.spine-texture {
  position: absolute; left: 50%; top: 0; width: 40px; height: 100%; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 80%, transparent 100%);
  z-index: 10; pointer-events: none;
}
.page-lighting { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.page-lighting.left { background: linear-gradient(90deg, transparent 0%, transparent 90%, rgba(0,0,0,0.1) 100%); }
.page-lighting.right { background: linear-gradient(270deg, transparent 0%, transparent 90%, rgba(0,0,0,0.1) 100%); }

canvas { display: block; margin: 0 auto; width: 100%; height: 100%; object-fit: contain; }

.page-number {
  position: absolute; bottom: 20px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: rgba(0,0,0,0.6); z-index: 2;
}
.page-number.left { left: 50%; transform: translateX(-50%); }
.page-number.right { right: 50%; transform: translateX(50%); }

/* 3D Flip System */
#flip3DContainer {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none;
}
/* Fallback CSS flip if canvas fails */
.css-flip-page {
  position: absolute; top: 0; width: 50%; height: 100%; background: var(--page); backface-visibility: hidden; z-index: 21; display: none;
}

.dog-ear {
  position: absolute; width: 0; height: 0; background: #e0d5b8; z-index: 10;
  transition: all 0.2s ease; box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.dog-ear.left { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); border-bottom-right-radius: 4px; }
.dog-ear.right { top: 0; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); border-bottom-left-radius: 4px; }
.book-wrap:hover .dog-ear { width: 40px; height: 40px; }
.page-container.curl-anim .dog-ear { width: 60px; height: 60px; animation: corner-curl 0.3s alternate 2; }
@keyframes corner-curl { to { width: 80px; height: 80px; filter: brightness(0.9); } }

/* Nav arrows */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(13,13,46,0.8);
  border: 1px solid rgba(201,168,76,0.3); color: var(--gold); padding: 20px;
  cursor: none; z-index: 30; transition: all 0.3s;
  clip-path: polygon(20px 0, 100% 50%, 20px 100%, 0 100%, 0 0);
}
.nav-arrow.prev { left: var(--space-4); clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.nav-arrow.next { right: var(--space-4); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.nav-arrow:hover { background: var(--gold); color: var(--void); box-shadow: 0 0 20px rgba(201,168,76,0.4); scale: 1.1; }

/* Thumbnail Strip */
.thumbnail-strip {
  height: 100px; background: rgba(2,2,8,0.9); border-top: 1px solid rgba(255,255,255,0.05);
  position: relative; transition: transform 0.3s, opacity 0.3s;
}
.thumbnail-strip.hidden { transform: translateY(100%); opacity: 0; position: absolute; bottom: 0; width: 100%; }
.thumbnail-scroll {
  display: flex; gap: var(--space-4); padding: var(--space-3) var(--space-8); height: 100%;
  overflow-x: auto; scrollbar-width: none; align-items: center;
}
.thumbnail-scroll::-webkit-scrollbar { display: none; }
.thumb-item {
  height: 70px; aspect-ratio: 1/1.4; background: var(--page); border: 1px solid transparent; cursor: none; transition: border-color 0.2s, transform 0.2s; flex-shrink: 0;
}
.thumb-item:hover { transform: translateY(-4px); }
.thumb-item.active { border-color: var(--gold); box-shadow: 0 0 10px rgba(201,168,76,0.4); }
.fade-edge { position: absolute; top: 0; height: 100%; width: 40px; pointer-events: none; }
.fade-edge.left { left: 0; background: linear-gradient(90deg, rgba(2,2,8,1), transparent); }
.fade-edge.right { right: 0; background: linear-gradient(270deg, rgba(2,2,8,1), transparent); }


/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .book-wrap { width: 95vw; }
}
@media (max-width: 768px) {
  .nav-center, .theme-badge { display: none; }
  .hero-section { flex-direction: column-reverse; justify-content: center; text-align: center; padding-top: 120px; }
  .hero-content { width: 100%; padding: 0; }
  .hero-canvas-container { width: 100%; height: 40vh; margin-bottom: var(--space-8); }
  .hero-title { align-items: center; font-size: 3rem; }
  .word.shifted { margin-left: 0; }
  .hero-stats, .hero-actions { justify-content: center; }
  
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; text-align: center; }
  .testimonial-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; text-align: center; gap: var(--space-8); }
  
  /* Reader adjust for mobile */
  .book-wrap { width: 100vw; height: 100vh; max-height: none; }
  .page-left { display: none; /* Show single page on mobile */ }
  .page-right { border-radius: 0; border: none; }
  .spine-texture { display: none; }
  .nav-arrow { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================
   GLOBAL STATS SECTION
========================================= */
.global-stats-section { padding: var(--space-12) 0; border-top: 1px solid rgba(255,255,255,0.05); }
.stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: var(--space-8); text-align: center; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 48px; color: var(--gold); margin-bottom: var(--space-2); text-shadow: 0 0 20px rgba(201,168,76,0.3); }
.stat-label { font-family: 'Cinzel', serif; font-size: 14px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 2px; }

/* =========================================
   JOURNEY SECTION
========================================= */
.journey-section { padding: var(--space-20) 0; position: relative; z-index: 10; background: linear-gradient(0deg, var(--void) 0%, var(--abyss) 100%); }
.timeline { max-width: 800px; margin: var(--space-12) auto 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: rgba(201,168,76,0.2); }
.timeline-step { display: flex; gap: var(--space-8); margin-bottom: var(--space-12); position: relative; }
.timeline-step:last-child { margin-bottom: 0; }
.step-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--void); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Cinzel Decorative', cursive; font-size: 20px; color: var(--gold); z-index: 2; flex-shrink: 0; box-shadow: 0 0 20px rgba(201,168,76,0.2); }
.step-content h3 { font-family: 'Cinzel', serif; font-size: 24px; color: var(--page); margin-bottom: var(--space-3); }
.step-content p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.7); }

/* =========================================
   AUDIO DEMO SECTION
========================================= */
.audio-demo-section { padding: var(--space-20) 0; }
.audio-demo-card { background: var(--deep); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; max-width: 1000px; margin: 0 auto; padding: var(--space-12); display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); position: relative; overflow: hidden; }
.audio-demo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold)); }
.audio-demo-content { flex: 1; }
.audio-demo-content h2 { font-family: 'Cinzel', serif; font-size: 32px; color: var(--gold); margin-bottom: var(--space-4); }
.audio-demo-content p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: var(--space-6); }
.audio-buttons { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.audio-visualizer { display: flex; gap: 6px; align-items: center; justify-content: center; height: 100px; padding: 0 var(--space-8); }
.bar { width: 8px; height: 20px; background: var(--cyan); border-radius: 4px; animation: eq 1s ease-in-out infinite alternate; box-shadow: 0 0 10px var(--cyan); }
.bar:nth-child(1) { animation-delay: 0.1s; height: 40px; }
.bar:nth-child(2) { animation-delay: 0.3s; height: 80px; }
.bar:nth-child(3) { animation-delay: 0.5s; height: 60px; }
.bar:nth-child(4) { animation-delay: 0.2s; height: 90px; }
.bar:nth-child(5) { animation-delay: 0.4s; height: 50px; }

@keyframes eq { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(1.5); } }

@media (max-width: 768px) {
  .audio-demo-card { flex-direction: column; text-align: center; }
  .audio-visualizer { margin-top: var(--space-6); }
}

/* =========================================
   BOOK CARD EXTRAS
========================================= */
.read-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(201,168,76,0.15); border: 1px solid var(--gold);
  color: var(--gold); font-family: 'Space Mono', monospace; font-size: 9px;
  text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.card-pct-label {
  font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.card-badge.resuming { background: rgba(201,168,76,0.2); color: var(--gold2); border-color: rgba(201,168,76,0.4); }

/* upload uploading state */
.upload-container.uploading .upload-icon { animation: spin-float 2s linear infinite; }
@keyframes spin-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
.upload-container.uploading .corner-accent { animation: corner-glow 1s ease-in-out infinite alternate; opacity: 1; }
@keyframes corner-glow { from { box-shadow: 0 0 4px var(--gold); } to { box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(201,168,76,0.4); } }

/* =========================================
   RICHER HOMEPAGE SECTIONS
========================================= */

/* How It Works */
.how-section { padding: var(--space-20) 0; z-index: 10; position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-top: var(--space-12); }
.step-card {
  background: var(--deep); border: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-8); position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-6px); }
.step-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.step-num { font-family: 'Cinzel Decorative', cursive; font-size: 60px; color: rgba(201,168,76,0.08); line-height: 1; margin-bottom: var(--space-4); font-weight: 900; }
.step-title { font-family: 'Cinzel', serif; font-size: 20px; color: var(--gold); margin-bottom: var(--space-3); }
.step-desc { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.step-icon-sm { font-size: 32px; margin-bottom: var(--space-3); display: block; }

/* CTA / Call-to-action band */
.cta-band {
  padding: var(--space-20) 0; position: relative; z-index: 10; text-align: center;
  background: linear-gradient(135deg, rgba(26,10,46,0.8), rgba(5,5,15,0.9));
  border-top: 1px solid rgba(201,168,76,0.1); border-bottom: 1px solid rgba(201,168,76,0.1);
}
.cta-band h2 { font-family: 'Cinzel', serif; font-size: clamp(28px, 4vw, 52px); color: var(--page); margin-bottom: var(--space-4); }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.6); margin-bottom: var(--space-8); }
.cta-band-btns { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* Genre Explorer */
.genre-section { padding: var(--space-20) 0; z-index: 10; position: relative; }
.genre-grid { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); justify-content: center; }
.genre-pill {
  padding: 10px 24px; border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Cinzel', serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.7); cursor: none; transition: all 0.3s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: flex; align-items: center; gap: var(--space-2);
}
.genre-pill:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.05); transform: translateY(-3px); }
.genre-pill span { font-size: 18px; }

/* Reading Tips */
.tips-section { padding: var(--space-20) 0; z-index: 10; position: relative; }
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); margin-top: var(--space-12); }
.tip-card {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-6); border: 1px solid rgba(255,255,255,0.05);
  background: rgba(13,13,46,0.3); transition: border-color 0.3s;
}
.tip-card:hover { border-color: rgba(0,229,255,0.2); }
.tip-card .t-icon { font-size: 28px; flex-shrink: 0; margin-top: 4px; }
.tip-card h4 { font-family: 'Cinzel', serif; font-size: 16px; color: var(--cyan); margin-bottom: var(--space-2); }
.tip-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
}

/* =========================================
   FOOTER SOCIAL LINKS & CREDITS
========================================= */
.social-link {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 1px;
  text-decoration: none; text-transform: uppercase;
  color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px; transition: all 0.3s;
}
.social-link:hover {
  color: var(--gold); border-color: var(--gold);
  background: rgba(201,168,76,0.07); transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.15);
}
.footer-link {
  color: var(--gold); text-decoration: none;
  font-family: 'Cinzel', serif; font-weight: 600;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold2); text-decoration: underline; }
.footer-motto {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 16px; color: rgba(255,255,255,0.35); margin-top: 6px;
}
