/* ==========================================================================
   Chronicle Presentation Website — Design System & Stylesheet
   Modern, sleek, dark aesthetic with luminous accents and glassmorphism
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette */
  --bg-body: #0a0c10;
  --bg-surface: #11141c;
  --bg-surface-elevated: #161b26;
  --bg-surface-hover: #1e2433;
  --bg-glass: rgba(17, 20, 28, 0.75);
  --bg-glass-card: rgba(22, 27, 38, 0.6);

  /* Accents */
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.3);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(139, 92, 246, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  --shadow-cyan-glow: 0 0 30px rgba(6, 182, 212, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs Background */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: floatOrb 20s infinite ease-in-out alternate;
}

.glow-orb-1 {
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-orb-2 {
  top: 40%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

.glow-orb-3 {
  bottom: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.08); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* Subtle Grid Background Pattern */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 16px rgba(168, 85, 247, 0.3));
}

.brand-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9a72f8 0%, #7579f3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 70%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.highlight-item svg {
  color: var(--accent-emerald);
}

/* Hero Showcase Mockup */
.hero-mockup-wrapper {
  margin-top: 3.5rem;
  position: relative;
}

.mockup-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.28) 0%, rgba(59, 130, 246, 0.15) 45%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.mockup-window {
  background: #141721;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mockup-window-header {
  height: 42px;
  background: #0f121a;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mockup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating Feature Badges */
.floating-badge {
  position: absolute;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(20, 24, 35, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatBadge 6s ease-in-out infinite alternate;
  z-index: 2;
}

.badge-top-left {
  top: 8%;
  left: -2%;
}

.badge-top-right {
  top: 14%;
  right: -2%;
  animation-delay: -1.5s;
}

.badge-bottom-left {
  bottom: 14%;
  left: -2%;
  animation-delay: -4.5s;
}

.badge-bottom-right {
  bottom: 10%;
  right: -2%;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Section Common */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Interactive Tabs Showcase */
.showcase-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.tab-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.showcase-content-panel {
  display: none;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.showcase-content-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.showcase-text {
  padding: 3rem;
}

.showcase-text h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.showcase-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.showcase-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.showcase-feature-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.showcase-image-wrap {
  padding: 1.5rem;
  background: #0a0c13;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Interactive Showcase Window Container */
.interactive-screenshot-container {
  width: 100%;
  background: #131620;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.1);
  overflow: visible;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  cursor: zoom-in;
}

.interactive-screenshot-container:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(139, 92, 246, 0.2);
}

.screenshot-window-header {
  height: 38px;
  background: #0f121a;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  user-select: none;
}

.window-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.window-filename {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.expand-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expand-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-color: var(--accent-purple);
}

.screenshot-screen-wrap {
  position: relative;
  overflow: visible;
  background: #000;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.interactive-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: transform 0.4s ease;
}

.interactive-screenshot-container:hover .interactive-screenshot-img {
  transform: scale(1.01);
}

/* Dynamic Glare Reflection */
.screenshot-glare {
  position: absolute;
  inset: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.interactive-screenshot-container:hover .screenshot-glare {
  opacity: 1;
}

/* Feature Hotspots */
.hotspot {
  position: absolute;
  z-index: 25;
  transform: translate(-50%, -50%);
}

.hotspot:hover,
.hotspot.active {
  z-index: 40;
}

.hotspot-pin {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-core {
  width: 12px;
  height: 12px;
  background: var(--accent-purple);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-purple);
  z-index: 2;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pin-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.55);
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hotspot:hover .pin-core,
.hotspot.active .pin-core {
  transform: scale(1.35);
  background: #a855f7;
  box-shadow: 0 0 16px #a855f7;
}

/* Hotspot Tooltip Popup */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 235px;
  max-width: min(250px, 80vw);
  padding: 0.9rem 1.05rem;
  background: #101420;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(139, 92, 246, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 35;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #101420 transparent transparent transparent;
}

/* Tooltip Direction Modifiers */
.hotspot.tooltip-right .hotspot-tooltip {
  left: -8px;
  right: auto;
  transform: translateX(0) translateY(6px);
}

.hotspot.tooltip-right .hotspot-tooltip::after {
  left: 20px;
  right: auto;
  transform: none;
}

.hotspot.tooltip-left .hotspot-tooltip {
  left: auto;
  right: -8px;
  transform: translateX(0) translateY(6px);
}

.hotspot.tooltip-left .hotspot-tooltip::after {
  left: auto;
  right: 20px;
  transform: none;
}

.hotspot.tooltip-bottom .hotspot-tooltip {
  bottom: auto;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-6px);
}

.hotspot.tooltip-bottom .hotspot-tooltip::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #101420 transparent;
}

.hotspot.tooltip-bottom.tooltip-right .hotspot-tooltip {
  bottom: auto;
  top: calc(100% + 12px);
  left: -8px;
  right: auto;
  transform: translateX(0) translateY(-6px);
}

.hotspot.tooltip-bottom.tooltip-right .hotspot-tooltip::after {
  top: auto;
  bottom: 100%;
  left: 20px;
  right: auto;
  transform: none;
  border-color: transparent transparent #101420 transparent;
}

.hotspot.tooltip-bottom.tooltip-left .hotspot-tooltip {
  bottom: auto;
  top: calc(100% + 12px);
  left: auto;
  right: -8px;
  transform: translateX(0) translateY(-6px);
}

.hotspot.tooltip-bottom.tooltip-left .hotspot-tooltip::after {
  top: auto;
  bottom: 100%;
  left: auto;
  right: 20px;
  transform: none;
  border-color: transparent transparent #101420 transparent;
}

/* Hover & Active states */
.hotspot:hover .hotspot-tooltip,
.hotspot.active .hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hotspot.tooltip-right:hover .hotspot-tooltip,
.hotspot.tooltip-right.active .hotspot-tooltip {
  transform: translateX(0) translateY(0);
}

.hotspot.tooltip-left:hover .hotspot-tooltip,
.hotspot.tooltip-left.active .hotspot-tooltip {
  transform: translateX(0) translateY(0);
}

.hotspot.tooltip-bottom:hover .hotspot-tooltip,
.hotspot.tooltip-bottom.active .hotspot-tooltip {
  transform: translateX(-50%) translateY(0);
}

.hotspot.tooltip-bottom.tooltip-right:hover .hotspot-tooltip,
.hotspot.tooltip-bottom.tooltip-right.active .hotspot-tooltip {
  transform: translateX(0) translateY(0);
}

.hotspot.tooltip-bottom.tooltip-left:hover .hotspot-tooltip,
.hotspot.tooltip-bottom.tooltip-left.active .hotspot-tooltip {
  transform: translateX(0) translateY(0);
}

.tooltip-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 0.25rem;
}

.hotspot-tooltip h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.hotspot-tooltip p {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #11141e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-topbar {
  padding: 0.9rem 1.5rem;
  background: #0e1119;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  display: block;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.15rem 0 0 0;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  min-height: 300px;
}

.lightbox-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 70vh;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 21, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

.lightbox-nav-btn.prev {
  left: 1.5rem;
}

.lightbox-nav-btn.next {
  right: 1.5rem;
}

.lightbox-footer {
  padding: 0.75rem 1.5rem;
  background: #0e1119;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.15);
}

.bento-card-span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  margin-bottom: 1.25rem;
}

.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }
.icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.icon-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.bento-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Live Studio Launcher Banner */
.launcher-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.2);
}

.launcher-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.launcher-banner-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* Download Section (Dual Platform Cards) */
.download-cta-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
}

.download-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

@media (max-width: 768px) {
  .download-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.download-platform-card {
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 34, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: var(--text-primary);
  text-align: left;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.download-platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(139, 92, 246, 0.35);
  background: rgba(26, 32, 50, 0.95);
}

.download-platform-card.recommended-platform {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.09);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.download-card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.download-platform-card.recommended-platform .platform-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(56, 189, 248, 0.25));
  border-color: rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
  font-weight: 700;
}

.download-card-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.platform-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.windows-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.mac-icon {
  background: rgba(243, 244, 246, 0.1);
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-platform-card:hover .platform-icon-box {
  transform: scale(1.08);
}

.platform-info {
  flex: 1;
  min-width: 0;
}

.platform-btn-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.platform-btn-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.platform-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.download-platform-card:hover .platform-action-icon {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(2px);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}

.download-guarantees {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.guarantee-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #080a0e;
  padding: 4.5rem 0 2.5rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-pill-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.footer-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Metrics / Stats Strip
   ========================================================================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3rem 0 1rem;
}

.metric-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Comparison Section (Chronicle vs Scrivener vs Vellum vs World Anvil)
   ========================================================================== */
.comparison-wrap {
  margin-top: 3rem;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(139, 92, 246, 0.12);
}

.comparison-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  vertical-align: middle;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(17, 20, 28, 0.9);
  letter-spacing: -0.01em;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .col-chronicle {
  background: rgba(139, 92, 246, 0.08);
  border-left: 1px solid rgba(139, 92, 246, 0.28);
  border-right: 1px solid rgba(139, 92, 246, 0.28);
}

.comparison-table th.col-chronicle {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.12) 100%);
  color: #ffffff;
}


.comp-feature-name {
  font-weight: 600;
  color: var(--text-primary);
}

.comp-feature-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.comp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.comp-cross {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comp-partial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-amber);
  font-size: 0.85rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 2.5rem auto 0;
}

.faq-item {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(139, 92, 246, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 380px;
  padding: 0 1.75rem 1.4rem;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card-span-2,
  .bento-card-tablet-span-2 {
    grid-column: span 2;
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .badge-top-left {
    left: 0%;
    top: 4%;
  }
  .badge-top-right {
    right: 0%;
    top: 10%;
  }
  .badge-bottom-left {
    left: 0%;
    bottom: 10%;
  }
  .badge-bottom-right {
    right: 0%;
    bottom: 4%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-span-2,
  .bento-card-tablet-span-2 {
    grid-column: span 1;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .showcase-text {
    padding: 2rem 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .floating-badge {
    display: none;
  }
  .hotspot-tooltip {
    width: 200px;
    padding: 0.75rem 0.85rem;
  }
  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 1.25rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
  }
}
