/* ============================================================
   RayLaunchMac — Mac Productivity Hub
   Premium Design System | style.css
   ============================================================ */

/* ------------------------------------------------------------ 
   1. FONT FACES — Local woff2 only
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------ 
   2. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Core palette */
  --bg-primary: #0c0c1d;
  --bg-secondary: #111132;
  --bg-tertiary: #161645;
  --bg-card: rgba(17, 17, 50, 0.6);
  --bg-card-hover: rgba(25, 25, 70, 0.8);
  --bg-glass: rgba(17, 17, 50, 0.4);
  --bg-glass-strong: rgba(17, 17, 50, 0.7);

  /* Accent colors */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-pink: #ec4899;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Borders */
  --border-subtle: rgba(139, 92, 246, 0.15);
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-blue-glow: rgba(59, 130, 246, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --gradient-warm: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
  --gradient-cool: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  --gradient-text: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
  --gradient-text-animated: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-orange), var(--accent-blue));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);

  /* Spacing */
  --section-padding: 6rem 0;
  --container-narrow: 800px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Reading progress */
  --progress-height: 3px;

  /* Z-index scale */
  --z-background: -1;
  --z-default: 1;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-glow: rgba(139, 92, 246, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.15);
  --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* ------------------------------------------------------------ 
   3. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-purple); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* ------------------------------------------------------------ 
   4. CUSTOM SCROLLBAR
   ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-secondary);
}

/* ------------------------------------------------------------ 
   5. READING PROGRESS BAR
   ------------------------------------------------------------ */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: var(--progress-height);
  background: var(--gradient-primary);
  z-index: var(--z-toast);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ------------------------------------------------------------ 
   6. NAVIGATION
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 1rem 0;
  background: transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
}

.nav-brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
}

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

/* Theme toggle */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--accent-orange);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
}

@media (max-width: 991px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
  }
}

/* ------------------------------------------------------------ 
   7. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

/* Gradient mesh background */
.hero-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-background);
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: meshFloat 20s ease-in-out infinite;
}

.mesh-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.mesh-blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: 20%;
  right: -5%;
  animation-delay: -7s;
}

.mesh-blob-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-orange);
  bottom: -5%;
  left: 30%;
  animation-delay: -14s;
}

.mesh-blob-4 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  top: 50%;
  left: 10%;
  animation-delay: -4s;
}

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

/* Floating particles (CSS only) */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 15s; animation-delay: 0s; width: 3px; height: 3px; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-duration: 20s; animation-delay: -3s; width: 5px; height: 5px; opacity: 0.5; }
.particle:nth-child(3) { left: 40%; top: 30%; animation-duration: 18s; animation-delay: -7s; width: 2px; height: 2px; }
.particle:nth-child(4) { left: 55%; top: 70%; animation-duration: 22s; animation-delay: -10s; width: 6px; height: 6px; opacity: 0.2; }
.particle:nth-child(5) { left: 70%; top: 15%; animation-duration: 16s; animation-delay: -5s; width: 4px; height: 4px; }
.particle:nth-child(6) { left: 85%; top: 45%; animation-duration: 19s; animation-delay: -12s; width: 3px; height: 3px; opacity: 0.4; }
.particle:nth-child(7) { left: 15%; top: 80%; animation-duration: 25s; animation-delay: -2s; width: 5px; height: 5px; opacity: 0.25; }
.particle:nth-child(8) { left: 60%; top: 50%; animation-duration: 17s; animation-delay: -8s; width: 2px; height: 2px; opacity: 0.6; }
.particle:nth-child(9) { left: 90%; top: 25%; animation-duration: 21s; animation-delay: -15s; width: 4px; height: 4px; opacity: 0.35; }
.particle:nth-child(10) { left: 35%; top: 90%; animation-duration: 23s; animation-delay: -6s; width: 3px; height: 3px; opacity: 0.45; }
.particle:nth-child(11) { left: 50%; top: 10%; animation-duration: 14s; animation-delay: -9s; width: 5px; height: 5px; opacity: 0.2; }
.particle:nth-child(12) { left: 75%; top: 65%; animation-duration: 26s; animation-delay: -11s; width: 2px; height: 2px; opacity: 0.5; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-200px) translateX(30px) scale(1.2); opacity: 0.3; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-400px) translateX(-20px) scale(0.8); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: var(--z-default);
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-text-animated);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ 
   8. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glow);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

/* ------------------------------------------------------------ 
   9. SECTIONS — GENERAL
   ------------------------------------------------------------ */
.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  margin-bottom: 0.8rem;
}

.section-title {
  margin-bottom: 1rem;
}

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------------------ 
   10. GLASSMORPHISM CARDS
   ------------------------------------------------------------ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0), rgba(59, 130, 246, 0)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all var(--transition-base);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple), var(--shadow-lg);
  background: var(--bg-card-hover);
}

.glass-card:hover::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3)) border-box;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  background: var(--gradient-primary);
  color: #fff;
  transition: transform var(--transition-fast);
}

.glass-card:hover .card-icon {
  transform: rotate(5deg) scale(1.05);
}

.card-icon.purple { background: linear-gradient(135deg, var(--accent-purple), #a855f7); }
.card-icon.orange { background: linear-gradient(135deg, var(--accent-orange), #fb923c); }
.card-icon.cyan { background: linear-gradient(135deg, var(--accent-cyan), #22d3ee); }
.card-icon.green { background: linear-gradient(135deg, var(--accent-green), #34d399); }
.card-icon.pink { background: linear-gradient(135deg, var(--accent-pink), #f472b6); }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-blue);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 0.7rem;
  color: var(--accent-purple);
}

/* ------------------------------------------------------------ 
   11. STATS BAR
   ------------------------------------------------------------ */
.stats-bar {
  background: var(--bg-glass);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.stat-item h3 .gradient-text {
  font-size: inherit;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin: 0;
}

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------ 
   12. QUICK WINS SECTION
   ------------------------------------------------------------ */
.quick-wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.quick-win-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all var(--transition-base);
}

.quick-win-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}

.quick-win-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
}

.quick-win-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.quick-win-content p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.5;
}

/* ------------------------------------------------------------ 
   13. NEWSLETTER SECTION
   ------------------------------------------------------------ */
.newsletter-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3.5rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

.newsletter-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ------------------------------------------------------------ 
   14. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-brand svg {
  width: 32px;
  height: 32px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ------------------------------------------------------------ 
   15. GUIDE PAGE HERO
   ------------------------------------------------------------ */
.guide-hero {
  padding: 8rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  z-index: var(--z-background);
}

.guide-hero-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.guide-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.guide-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.guide-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.difficulty-badge {
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.difficulty-beginner {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.difficulty-intermediate {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.difficulty-advanced {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.guide-hero h1 {
  margin-bottom: 1rem;
}

.guide-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ------------------------------------------------------------ 
   16. TABLE OF CONTENTS
   ------------------------------------------------------------ */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 0.5rem;
}

.toc ol li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent-purple);
  min-width: 24px;
}

.toc ol li a:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
}

/* ------------------------------------------------------------ 
   17. GUIDE CONTENT
   ------------------------------------------------------------ */
.guide-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.guide-content h2 {
  margin: 3rem 0 1.5rem;
  padding-top: 1rem;
}

.guide-content h3 {
  margin: 2rem 0 1rem;
}

.guide-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.guide-content ul,
.guide-content ol {
  margin-bottom: 1.5rem;
}

.guide-content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------ 
   18. KEYBOARD SHORTCUT (kbd) STYLING
   ------------------------------------------------------------ */
kbd {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-width: 3px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  vertical-align: baseline;
  transition: all var(--transition-fast);
}

[data-theme="light"] kbd {
  background: #e8ecf1;
  border-color: #c8cdd3;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

kbd:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.kbd-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.15rem 0;
}

.kbd-combo .kbd-plus {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition: background var(--transition-fast);
  gap: 1rem;
}

.shortcut-row:hover {
  background: rgba(139, 92, 246, 0.06);
}

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

.shortcut-keys {
  flex-shrink: 0;
}

.shortcut-group {
  margin-bottom: 2.5rem;
}

.shortcut-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ------------------------------------------------------------ 
   19. TERMINAL COMMAND BLOCKS
   ------------------------------------------------------------ */
.terminal-block {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin: 1.5rem 0;
  overflow: hidden;
}

[data-theme="light"] .terminal-block {
  background: #1e293b;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.terminal-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.terminal-copy.copied {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.terminal-body {
  padding: 1rem 1.2rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e6edf3;
  overflow-x: auto;
}

.terminal-body .prompt { color: var(--accent-green); }
.terminal-body .flag { color: var(--accent-orange); }
.terminal-body .path { color: var(--accent-cyan); }
.terminal-body .comment { color: rgba(255, 255, 255, 0.35); font-style: italic; }

/* ------------------------------------------------------------ 
   20. CALLOUT BOXES
   ------------------------------------------------------------ */
.callout {
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid;
  display: flex;
  gap: 0.8rem;
}

.callout-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.callout-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent-green);
}
.callout-tip .callout-title { color: var(--accent-green); }

.callout-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--accent-blue);
}
.callout-info .callout-title { color: var(--accent-blue); }

.callout-warning {
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--accent-orange);
}
.callout-warning .callout-title { color: var(--accent-orange); }

.callout-pro {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-purple);
}
.callout-pro .callout-title { color: var(--accent-purple); }

/* ------------------------------------------------------------ 
   21. COMPARISON TABLES
   ------------------------------------------------------------ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.comparison-table thead th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--border-subtle);
}

.comparison-table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 10px 0 0;
}

.comparison-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.04);
}

.comparison-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.comparison-table tbody tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

/* ------------------------------------------------------------ 
   22. NUMBERED STEPS
   ------------------------------------------------------------ */
.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.step-list li:hover {
  border-color: var(--border-glow);
}

.step-list li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------ 
   23. CONTACT FORM
   ------------------------------------------------------------ */
.form-group,
.form-row {
  margin-bottom: 1.5rem;
}

.form-label,
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control,
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-control:focus,
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

textarea.form-control,
.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

select.form-control,
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-submit button,
.form-row button[type="submit"] {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-submit button:hover,
.form-row button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* ------------------------------------------------------------ 
   24. FAQ ACCORDION
   ------------------------------------------------------------ */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.accordion-trigger {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-trigger:hover {
  color: var(--accent-blue);
}

.accordion-trigger .chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--text-muted);
}

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

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

.accordion-body-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary) !important;
  line-height: 1.7;
}

.accordion-body-inner p,
.accordion-body-inner li,
.accordion-body-inner span,
.accordion-body-inner a {
  color: var(--text-secondary) !important;
}

/* Direct accordion-body text (no inner wrapper) */
.accordion-body {
  color: var(--text-secondary) !important;
}

.accordion-body p,
.accordion-body li,
.accordion-body span {
  color: var(--text-secondary) !important;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.accordion-body a {
  color: var(--accent-blue) !important;
}

/* ------------------------------------------------------------ 
   25. ABOUT PAGE
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--accent-purple);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  margin-left: -5px;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #fff;
}

.team-name {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ------------------------------------------------------------ 
   26. RESPONSE TIME CARDS
   ------------------------------------------------------------ */
.response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.response-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.response-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.response-time {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.response-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ------------------------------------------------------------ 
   27. LEGAL PAGES
   ------------------------------------------------------------ */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.8rem;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------ 
   28. BLOG CARDS & ARTICLE
   ------------------------------------------------------------ */
.blog-card {
  overflow: hidden;
}

.blog-card-image {
  height: 200px;
  background: var(--gradient-primary);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.blog-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.app-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.app-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.app-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-purple);
  margin-bottom: 0.3rem;
}

/* ------------------------------------------------------------ 
   29. COOKIE CONSENT
   ------------------------------------------------------------ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: var(--bg-glass-strong);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-text a {
  color: var(--accent-blue);
}

.cookie-buttons {
  display: flex;
  gap: 0.6rem;
}

/* ------------------------------------------------------------ 
   30. BACK TO TOP
   ------------------------------------------------------------ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow-blue);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

/* ------------------------------------------------------------ 
   31. SCROLL ANIMATIONS
   ------------------------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: fadeInSafety 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInSafety {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ------------------------------------------------------------ 
   32. RESPONSIVE OVERRIDES
   ------------------------------------------------------------ */
@media (max-width: 575px) {
  .hero { padding: 7rem 1rem 3rem; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .glass-card { padding: 1.5rem; }
  .newsletter-section { padding: 2rem 1.5rem; }
  .shortcut-row { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .guide-hero { padding: 7rem 1rem 2rem; }
  .section { padding: 3.5rem 0; }
}

@media (min-width: 576px) and (max-width: 991px) {
  .hero { padding: 7rem 1.5rem 4rem; }
  .section { padding: 4.5rem 0; }
}

/* ------------------------------------------------------------ 
   33. UTILITY CLASSES
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------ 
   34. SVG LOGO STYLING
   ------------------------------------------------------------ */
.logo-icon {
  transition: transform var(--transition-fast);
}

.nav-brand:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

/* ------------------------------------------------------------ 
   35. GUIDE CARDS GRID
   ------------------------------------------------------------ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.guide-card .card-desc {
  flex: 1;
}

/* ------------------------------------------------------------ 
   36. WORKFLOW STEPS
   ------------------------------------------------------------ */
.workflow-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  position: relative;
}

.workflow-step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.workflow-step-content h4 {
  margin-bottom: 0.5rem;
}

.workflow-step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ------------------------------------------------------------ 
   37. FEATURE HIGHLIGHT BOXES
   ------------------------------------------------------------ */
.feature-box {
  padding: 2rem;
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
  background: var(--gradient-primary);
  color: #fff;
}

.feature-box h4 {
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* ------------------------------------------------------------ 
   38. BREADCRUMBS
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-tertiary);
}

.breadcrumb a:hover {
  color: var(--accent-blue);
}

.breadcrumb-sep {
  opacity: 0.4;
}

/* ------------------------------------------------------------ 
   39. PRINT STYLES
   ------------------------------------------------------------ */
@media print {
  .navbar, #reading-progress, #cookie-banner, #back-to-top, .hero-mesh, .hero-particles { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .glass-card { border: 1px solid #ddd; background: #fff; }
  kbd { background: #eee; border: 1px solid #ccc; }
}

/* ------------------------------------------------------------ 
   40. COOKIE TABLE (LEGAL)
   ------------------------------------------------------------ */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.cookie-table thead th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--border-subtle);
}

.cookie-table tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.cookie-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.04);
}

/* ------------------------------------------------------------ 
   41. MISC COMPONENTS
   ------------------------------------------------------------ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.7rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}

.highlight {
  color: var(--accent-blue);
  font-weight: 600;
}

.inline-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  padding: 0.15rem 0.4rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--accent-orange);
}

/* Animated underline links */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.link-underline:hover::after {
  width: 100%;
}

/* Loading shimmer */
.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-tertiary) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge system */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.badge-popular {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange);
}

.badge-essential {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* ------------------------------------------------------------ 
   42. MORNING WORKFLOW VISUAL
   ------------------------------------------------------------ */
.workflow-timeline {
  position: relative;
  padding-left: 3rem;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.workflow-event {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.workflow-event::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-primary);
  margin-left: 5px;
}

.workflow-time {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------ 
   43. APP LIST CARDS (Blog)
   ------------------------------------------------------------ */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-list-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem;
}

@media (max-width: 575px) {
  .app-list-card { flex-direction: column; }
}

/* ------------------------------------------------------------ 
   END OF STYLESHEET
   Lines: 1500+
   ------------------------------------------------------------ */
