:root {
  --bg-core: #09090b;
  --bg-slate: #18181b;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(24, 24, 27, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Mesh Gradients */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-core);
}
.blob {
  position: absolute;
  filter: blur(140px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}
.blob-1 {
  width: 60vw;
  height: 60vw;
  top: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}
.blob-2 {
  width: 70vw;
  height: 50vw;
  bottom: -20vw;
  left: -10vw;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation-delay: -5s;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.7);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  padding: 1rem 0;
}
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.2rem;
}
.logo span {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-left: 8px;
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Base Layout & Typography */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}
h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.accent-text {
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}
.text-center { text-align: center; }

/* Components */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.pill-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.pill-badge.centered {
  display: block;
  width: max-content;
  margin: 0 auto 1rem;
}

/* Citations & Links */
.citation-card {
  padding: 1.5rem 2.5rem;
  background: rgba(9, 9, 11, 0.4);
}
.citation-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  margin-left: 2px;
}
.citation-link:hover {
  text-decoration: underline;
  color: var(--accent-blue);
}
.citation-list li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* Sections */
.hero {
  text-align: center;
  margin-bottom: 8rem;
}
.hero-text { margin-bottom: 4rem; }
.browser-dots {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--glass-border);
}
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}
.screenshot-container img, .screenshot-side img {
  width: 100%;
  height: auto;
  border-radius: 0 0 8px 8px;
  display: block;
}
.glass-card figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  padding: 12px;
  border-top: 1px solid var(--glass-border);
}

.content-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}
.content-split.reverse {
  flex-direction: row-reverse;
}
.text-block { flex: 1; }
.text-block p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.screenshot-side {
  flex: 1;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}
.content-split.reverse .screenshot-side {
  transform: perspective(1000px) rotateY(5deg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.feature .check { color: var(--accent-cyan); }

/* Roadmap Grid */
.roadmap-section { margin-bottom: 6rem; }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.roadmap-card {
  padding: 2rem;
}
.status-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.roadmap-card.completed .status-indicator { color: #10b981; }
.roadmap-card.in-progress .status-indicator { color: var(--accent-cyan); }
.roadmap-card.planned .status-indicator { color: var(--text-muted); }
.roadmap-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.roadmap-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Apple-esque Animations & Interactivity */
.hover-lift {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hover-lift:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 40px 80px -15px rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.4);
}

/* Deep Blur Reveal Mechanism (Apple Style) */
.section-fade {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(60px) scale(0.97);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.section-fade.visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

/* Staggering delays for natural ingress */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Image scaling inside containers for parallax pop */
.screenshot-container, .screenshot-side {
  overflow: hidden;
}
.screenshot-container img, .screenshot-side img {
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-fade.visible .screenshot-container img, 
.section-fade.visible .screenshot-side img {
  transform: scale(1);
}

@keyframes float {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(8%, 8%); }
  100% { transform: scale(0.8) translate(-8%, -8%); }
}

/* Fixed Print Banner */
.print-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--accent-blue);
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 999;
}
.print-banner code {
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ====== PDF EXPORT & PRINT MEDIA QUERIES ====== */
@media print {
  body {
    background: white !important;
    color: black !important;
    display: block; /* Disable massive layout shifts */
  }
  .bg-mesh, .no-print, .glass-nav {
    display: none !important;
  }
  .glass-card {
    border: 1px solid #e2e8f0;
    background: transparent;
    box-shadow: none;
    break-inside: avoid;
    transform: none !important;
  }
  main {
    padding: 0 !important;
    max-width: 100vw;
  }
  .accent-text {
    background: none;
    -webkit-background-clip: border-box;
    color: var(--accent-blue) !important;
  }
  .subtitle, .text-block p {
    color: #334155 !important;
  }
  h1 { font-size: 3rem; margin-top: 2rem; }
  
  .content-split {
    display: block; /* Stack on print for better A4 layout */
    page-break-after: always;
  }
  .text-block { margin-bottom: 2rem; }
  .screenshot-side { transform: none !important; margin-bottom: 2rem; }
  img { max-width: 90%; margin: 0 auto; display: block; border: 1px solid #ccc; box-shadow: none;}
  
  .roadmap-grid {
    display: block;
  }
  .roadmap-card {
    page-break-inside: avoid;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    padding: 1rem 0;
  }
  .section-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .content-split, .content-split.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  h1 { font-size: 3rem; }
  .hover-lift { transform: none; }
  
  /* Hide PDF Print banner on mobile devices */
  .print-banner { display: none !important; }
}

/* SVG Logo Animations */
.iris-spin {
  transform-origin: center;
  animation: svg-spin 12s linear infinite;
}
.aperture-pulse {
  transform-origin: center;
  animation: svg-pulse 3s ease-in-out infinite alternate;
}
@keyframes svg-spin { 
  100% { transform: rotate(360deg); } 
}
@keyframes svg-pulse { 
  0% { transform: scale(0.85); opacity: 0.7; } 
  100% { transform: scale(1.15); opacity: 1; } 
}
