/* Sleep Paralysis Companion - Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #060913;
  --bg-deep: #0b1125;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary-glow: rgba(139, 92, 246, 0.15);
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-glass: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(13, 20, 44, 0.45);
  --bg-glass-hover: rgba(20, 30, 60, 0.6);
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Typography headers */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Premium Background System */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

/* Animated Ambient Glows */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.8;
  animation: pulse-glow 20s infinite alternate ease-in-out;
  pointer-events: none;
}

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

.glow-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.glow-blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
  animation-duration: 30s;
}

@keyframes pulse-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Starry Sky Overlay */
.starry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.stars-1, .stars-2, .stars-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stars-1 {
  background-image: 
    radial-gradient(1px 1px at 10px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 80px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 290px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 120px, rgba(255,255,255,0.85), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 600px 400px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 750px 180px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 900px 320px, #fff, rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 1100px 80px, rgba(255,255,255,0.95), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1250px 220px, rgba(255,255,255,0.4), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 1400px 480px, #fff, rgba(0,0,0,0));
  background-size: 550px 550px;
  animation: stars-twinkle 6s infinite alternate ease-in-out;
}

.stars-2 {
  background-image: 
    radial-gradient(1px 1px at 50px 150px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 250px 350px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 400px 50px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 550px 280px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 700px 120px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 850px 450px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1000px 200px, rgba(255,255,255,0.5), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1200px 380px, #fff, rgba(0,0,0,0));
  background-size: 700px 700px;
  animation: stars-twinkle 9s infinite alternate-reverse ease-in-out;
}

@keyframes stars-twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* Glassmorphism Standard */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
}

/* Navigation */
header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.logo span {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.45));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  flex-shrink: 0;
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(4deg);
  filter: drop-shadow(0 6px 18px rgba(139, 92, 246, 0.65));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

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



/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem 0;
  min-height: calc(85vh - 80px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.65;
}

/* Social Proof (Avatar group) */
.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid var(--bg-dark);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-a { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.avatar-m { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.avatar-j { background: linear-gradient(135deg, #2dd4bf, #0d9488); }

.social-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.social-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Waitlist Form Card */
.waitlist-card {
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.waitlist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-violet));
}

.waitlist-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.waitlist-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-container {
  display: flex;
  position: relative;
  align-items: center;
}

.input-container i {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.waitlist-input {
  width: 100%;
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.waitlist-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit i {
  transition: var(--transition-smooth);
}

.btn-submit:hover i {
  transform: translateX(3px);
}

.privacy-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Success Card Overlay */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d142d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 2;
  border-radius: 24px;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50%;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  animation: scale-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.success-overlay p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mouse-scroll {
  width: 20px;
  height: 35px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.mouse-scroll::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--accent-indigo);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* Feature Section Layout */
.features-container {
  padding: 8rem 0;
  display: flex;
  flex-direction: column;
  gap: 12rem;
  position: relative;
}

.features-container::before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.03) 20%, rgba(255,255,255,0.03) 80%, transparent);
  z-index: -1;
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.feature-section:nth-child(even) {
  direction: rtl;
}

.feature-section:nth-child(even) .feature-text {
  direction: ltr;
}

.feature-text {
  max-width: 500px;
}

.feature-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-num::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent-indigo);
}

.feature-section h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-highlight {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.highlight-item i {
  color: var(--accent-blue);
  margin-top: 0.25rem;
}

/* Premium Device Frame Mockup */
.device-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 295px;
  height: 600px;
  background: #141724;
  border-radius: 44px;
  padding: 10px;
  position: relative;
  transition: var(--transition-smooth);
  animation: float-device 7s infinite ease-in-out;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-frame::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.feature-section:nth-child(even) .device-frame {
  animation-delay: -3.5s;
}

@keyframes float-device {
  0% { 
    transform: translateY(0) rotateY(-8deg) rotateX(6deg) rotateZ(-1deg); 
    box-shadow: 
      0px 20px 45px -10px rgba(0, 0, 0, 0.75),
      0px 0px 0px 4px rgba(255, 255, 255, 0.04),
      inset 0 0 15px rgba(255, 255, 255, 0.06);
  }
  50% { 
    transform: translateY(-16px) rotateY(6deg) rotateX(3deg) rotateZ(1deg); 
    box-shadow: 
      0px 35px 75px -15px rgba(0, 0, 0, 0.9),
      0px 0px 0px 4px rgba(255, 255, 255, 0.06),
      inset 0 0 15px rgba(255, 255, 255, 0.1);
  }
  100% { 
    transform: translateY(0) rotateY(-8deg) rotateX(6deg) rotateZ(-1deg); 
    box-shadow: 
      0px 20px 45px -10px rgba(0, 0, 0, 0.75),
      0px 0px 0px 4px rgba(255, 255, 255, 0.04),
      inset 0 0 15px rgba(255, 255, 255, 0.06);
  }
}

.device-frame:hover {
  transform: scale(1.04) translateY(-10px) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  box-shadow: 
    0px 45px 85px -15px rgba(0, 0, 0, 0.95),
    0px 0px 0px 4px rgba(255, 255, 255, 0.12),
    0px 0px 40px rgba(99, 102, 241, 0.35);
}

.device-frame:hover::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 65%);
}

/* Notch / Dynamic Island */
.device-notch {
  width: 90px;
  height: 25px;
  background: #09090b;
  border-radius: 15px;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-screen {
  width: 100%;
  height: 100%;
  background: #060913;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Screen glare gloss overlay */
.device-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.0) 45%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 4;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom CTA Banner */
.bottom-cta {
  padding: 8rem 0;
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.bottom-cta h2 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bottom-cta p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
}

.btn-cta-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  transition: var(--transition-smooth);
}

.btn-cta-anchor:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.btn-cta-anchor i {
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-cta-anchor:hover i {
  transform: translateY(-2px);
}



/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-success i {
  color: #10b981;
}

.toast-info i {
  color: var(--accent-blue);
}

/* Platform Availability Tag */
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
}

.platform-tag i {
  color: var(--accent-indigo);
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Science & Educational Section */
.science-section {
  padding: 6rem 0;
  position: relative;
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.science-card {
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.science-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.science-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-indigo);
  margin-bottom: 1.5rem;
}

.science-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.science-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* About / Lived Experience Section */
.about-section {
  padding: 6rem 0;
}

.about-card {
  padding: 4rem 3.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.about-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 1.75rem;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 2rem auto;
  font-weight: 300;
}

.about-tagline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 6rem 0;
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: #c7d2fe;
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--accent-indigo);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 300;
}

/* Medical Disclaimer Banner */
.medical-disclaimer-section {
  padding: 2rem 0;
}

.medical-disclaimer-box {
  padding: 2rem 2.5rem;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.medical-disclaimer-box i {
  color: #94a3b8;
  font-size: 1.6rem;
  margin-top: 0.2rem;
}

.disclaimer-text h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.disclaimer-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legal Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-card {
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  background: #0d142d;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.4rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.modal-body h4 {
  font-size: 1.05rem;
  color: #fff;
  margin: 1.2rem 0 0.5rem 0;
}

.modal-body a {
  color: var(--accent-indigo);
  text-decoration: underline;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 3rem 0;
  margin-top: 4rem;
  background: rgba(4, 6, 15, 0.6);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info {
  max-width: 380px;
}

.footer-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-nav-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.footer-nav-col a,
.footer-nav-col button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: var(--transition-smooth);
}

.footer-nav-col a:hover,
.footer-nav-col button:hover {
  color: #fff;
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .badge {
    margin-bottom: 1.25rem;
  }

  .social-proof {
    justify-content: center;
  }

  .platform-tag {
    justify-content: center;
  }

  .waitlist-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .features-container {
    gap: 8rem;
  }

  .feature-section {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .feature-section:nth-child(even) {
    direction: ltr;
  }

  .feature-text {
    max-width: 100%;
    margin: 0 auto;
  }

  .feature-num {
    justify-content: center;
  }

  .feature-num::after {
    display: none;
  }
  
  .device-wrapper {
    order: 2;
  }

  .features-container::before {
    display: none;
  }

  .science-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    padding: 3rem 2rem;
  }
  
  .bottom-cta h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  header {
    padding: 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-container {
    gap: 6rem;
  }

  .feature-section h2 {
    font-size: 1.85rem;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Science Guide Callout Banner on Homepage */
.science-guide-banner {
  margin-top: 2.5rem;
  padding: 2.25rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(13, 20, 44, 0.8), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.science-guide-banner .banner-content {
  flex: 1;
  min-width: 280px;
}

.science-guide-banner h3 {
  font-size: 1.45rem;
  color: #fff;
  margin: 0.5rem 0 0.5rem 0;
}

.science-guide-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.science-guide-banner .btn {
  flex-shrink: 0;
}

/* ==========================================================================
   Cozy Bear Mascot Illustrations & Character Design
   ========================================================================== */
.card-bear-illustration {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.science-card:hover .card-bear-illustration,
.feature-card:hover .card-bear-illustration {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 12px 24px rgba(167, 139, 250, 0.45));
}

.banner-bear-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 25px rgba(99, 102, 241, 0.4));
  animation: float-slow 4s ease-in-out infinite alternate;
}

.about-mascot-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

.about-mascot-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.3);
}

.about-mascot-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-mascot-frame:hover .about-mascot-img {
  transform: scale(1.04);
}

.step-bear-badge {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.35));
  margin-bottom: 0.75rem;
}

.guide-mascot-callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: rgba(13, 20, 44, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  margin: 2rem 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.guide-mascot-callout img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.35));
}

.guide-mascot-callout p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sidebar-mascot-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 1rem auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.4));
  animation: float-slow 3.5s ease-in-out infinite alternate;
}

@keyframes float-slow {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .about-mascot-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .about-mascot-frame {
    max-width: 200px;
    margin: 0 auto;
  }
  .banner-bear-img {
    margin: 0 auto;
  }
  .guide-mascot-callout {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Educational Guide & Blog Styles (/what-is-sleep-paralysis)
   ========================================================================== */

.nav-link-active {
  color: var(--accent-indigo) !important;
  font-weight: 600;
}

.btn-nav {
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 999px;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Extra Large Prominent CTA Button */
.btn-cta-prominent {
  font-size: 1.15rem !important;
  padding: 1.1rem 2.4rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5), 0 0 20px rgba(168, 85, 247, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
}

.btn-cta-prominent:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.7), 0 0 30px rgba(168, 85, 247, 0.5) !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%) !important;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
  color: var(--accent-indigo);
}

.bc-sep {
  color: rgba(255, 255, 255, 0.2);
}

.bc-current {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

/* Guide Article Header */
.guide-article {
  padding-bottom: 4rem;
}

.guide-header {
  margin-bottom: 3.5rem;
}

.guide-tag-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.guide-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  color: #c7d2fe;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.guide-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 80%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 1000px;
}

.guide-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 900px;
  margin-bottom: 1.75rem;
}

/* Editorial Trust Card (E-E-A-T) */
.editorial-trust-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  background: rgba(13, 20, 44, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #4ade80;
  font-size: 0.88rem;
}

.trust-badge i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.trust-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Guide Grid Layout */
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: stretch;
}

.guide-main-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
}

.guide-section h2 {
  font-size: 1.95rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  position: relative;
}

.guide-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  color: #e2e8f0;
}

.guide-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Snippet Definition Box */
.snippet-definition-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left: 4px solid var(--accent-indigo);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.snippet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a5b4fc;
  margin-bottom: 0.65rem;
}

.snippet-definition-box p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #f1f5f9;
  margin-bottom: 0;
}

/* Stat Callout Grid */
.stat-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(13, 20, 44, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Guide Checklist */
.guide-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.guide-checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.guide-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-indigo);
  font-weight: 800;
  font-size: 1.1rem;
}

.guide-checklist li strong {
  color: #f8fafc;
}

/* Card Feature Grid */
.card-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.guide-info-card {
  background: rgba(13, 20, 44, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.guide-info-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.guide-info-card h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.guide-info-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Hallucinations Breakdown */
.hallucination-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.hallucination-card {
  background: rgba(13, 20, 44, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
}

.h-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.h-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.hallucination-card h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #fff;
}

.neuro-note {
  background: rgba(6, 9, 19, 0.6);
  border-left: 3px solid var(--accent-violet);
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Step Guide Protocol */
.step-guide-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.step-guide-item {
  display: flex;
  gap: 1.5rem;
  background: rgba(13, 20, 44, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem;
  align-items: flex-start;
}

.step-guide-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.step-guide-body h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step-guide-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.mini-list {
  margin: 0.5rem 0 0.85rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.mini-list li {
  margin-bottom: 0.35rem;
}

/* Prevention Grid */
.prevention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.prevention-card {
  background: rgba(13, 20, 44, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.5rem;
}

.prevention-card h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prevention-card h4 i {
  color: var(--accent-indigo);
}

.prevention-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* App In-Article CTA Box */
.app-feature-cta-box {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85), rgba(99, 102, 241, 0.25));
  border: 2px solid rgba(139, 92, 246, 0.45);
  border-radius: 28px;
  padding: 3.25rem 2.5rem;
  margin: 3.5rem 0;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.25);
}

.cta-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a5b4fc;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.app-feature-cta-box h3 {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.app-feature-cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Medical Warning Box */
.medical-warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #f87171;
  margin-bottom: 0.75rem;
}

.warning-header i {
  font-size: 1.2rem;
}

.warning-header h4 {
  font-size: 1.1rem;
  margin: 0;
  color: #fca5a5;
}

.medical-warning-box ul {
  margin-left: 1.25rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.medical-warning-box li {
  margin-bottom: 0.4rem;
}

/* Guide Footer Disclaimer */
.guide-footer-disclaimer {
  background: rgba(13, 20, 44, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 3rem;
}

.disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.disclaimer-inner i {
  color: var(--accent-indigo);
  font-size: 1.3rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.disclaimer-inner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Sticky Sidebar (Table of Contents + Widget) */
.guide-sidebar {
  position: relative;
}

.sticky-sidebar-container {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.toc-card {
  padding: 1.75rem;
  border-radius: 20px;
}

.toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-title i {
  color: var(--accent-indigo);
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toc-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(99, 102, 241, 0.5);
  padding-left: 0.75rem;
}

.toc-link.active {
  color: #c7d2fe;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  border-left-color: var(--accent-indigo);
  padding-left: 0.75rem;
}

/* Sidebar App Widget */
.sidebar-app-widget {
  padding: 1.75rem;
  border-radius: 20px;
  text-align: center;
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(180deg, rgba(13, 20, 44, 0.7), rgba(99, 102, 241, 0.1));
}

.widget-logo {
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
}

.sidebar-app-widget h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sidebar-app-widget p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

/* Responsive Rules for Guide */
@media (max-width: 1024px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .guide-sidebar {
    order: -1;
  }

  .sticky-sidebar-container {
    position: static;
  }

  .guide-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .guide-title {
    font-size: 1.95rem;
  }

  .guide-lead {
    font-size: 1.05rem;
  }

  .step-guide-item {
    flex-direction: column;
    gap: 1rem;
  }

  .app-feature-cta-box {
    padding: 2rem 1.25rem;
  }
}

