/* ============================================
   AI BLOG - Design System & Styles
   ============================================ */

/* ---------- Self-Hosted Fonts (WOFF2) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-v24-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 
   Hover Stability Fix:
   Prevents jitter when elements move up on hover.
   Expands hit area downwards to catch cursor.
*/
.card,
.follow-cta__link,
.footer__social,
.carousel__arrow,
.btn {
  position: relative;
  /* Ensure pseudo-element positions relative to this */
}

.card::after,
.follow-cta__link::after,
.footer__social::after,
.carousel__arrow::after,
.btn::after {
  content: '';
  position: absolute;
  inset: -10px;
  /* Expand hit area slightly in all directions */
  z-index: -1;
  /* Keep behind content */
  pointer-events: auto;
  /* Ensure it captures mouse events */
}

/* Smooth theme transitions */
body,
.header,
.header::before,
.header::after,
.logo,
.nav__link,
.footer,
.card,
.hero,
.hero__bg,
.hero::before,
.hero::after,
.hero__content,
.hero__title,
.hero__subtitle,
.article__hero,
.article__hero::before,
.article__hero::after,
.article-hero,
.article-content,
.about-hero,
.about-hero__bg {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Category Colors (same in both themes) */
  --cat-paper: #6366f1;
  --cat-deepdive: #f59e0b;
  --cat-test: #ec4899;
  --cat-newsletter: #22c55e;

  --accent: #22c55e;
  --accent-hover: #16a34a;
}

/* ---------- Dark Theme (Default + Manual) ---------- */
:root,
[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --border-subtle: #222222;
  --border-card: #2a2a2a;

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --header-bg: rgba(10, 10, 10, 0.9);
  --hero-gradient: linear-gradient(135deg,
      rgba(34, 197, 94, 0.08) 0%,
      rgba(99, 102, 241, 0.05) 50%,
      transparent 100%);
  --grid-line: rgba(255, 255, 255, 0.02);
  --hero-particle-color: var(--accent);
}

/* ---------- Light Theme (Manual) ---------- */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --border-subtle: #e5e7eb;
  --border-card: #d1d5db;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --header-bg: rgba(255, 255, 255, 0.9);
  --hero-gradient: linear-gradient(135deg,
      rgba(34, 197, 94, 0.1) 0%,
      rgba(99, 102, 241, 0.08) 50%,
      transparent 100%);
  --grid-line: rgba(0, 0, 0, 0.03);
  --hero-particle-color: #000000;
}

[data-theme="light"] .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dark mode subtle glow shadows */
:root .card,
[data-theme="dark"] .card {
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.03),
    0 1px 2px rgba(255, 255, 255, 0.02);
}

:root .card:hover,
[data-theme="dark"] .card:hover {
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05),
    0 2px 8px rgba(255, 255, 255, 0.03);
}

/* OS Preference Fallback (when no data-theme set) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --border-subtle: #e5e7eb;
    --border-card: #d1d5db;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --header-bg: rgba(255, 255, 255, 0.9);
    --hero-gradient: linear-gradient(135deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(99, 102, 241, 0.08) 50%,
        transparent 100%);
    --grid-line: rgba(0, 0, 0, 0.03);
  }

  :root:not([data-theme]) .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  :root:not([data-theme]) .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.theme-icon {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Default: show sun (we're in dark mode, click to go light) */
.theme-icon--moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* In light mode: show moon (click to go dark) */
[data-theme="light"] .theme-icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* OS light preference fallback */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-icon--sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
  }

  :root:not([data-theme]) .theme-icon--moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* ---------- Base Styles ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Prevent horizontal scroll from off-canvas menu */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth theme transitions */
  transition: background-color 0.5s ease, color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: background 0.3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  /* Monospace prevents width jitter */
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: inline-block;
  min-width: 140px;
  /* Preserve space */
  position: relative;
  z-index: 101;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link--active {
  color: var(--text-primary);
}

/* Header Actions (Search, Theme, Menu) */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header__search:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.header__search-icon {
  display: none;
  /* Hidden on desktop */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--text-secondary);
}

.btn--outline {
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 0;
  padding-top: 35vh;
  user-select: none;
}

/* Seamless bottom blend overlay */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  z-index: 2;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  pointer-events: none;
  /* Blend bottom into background */
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero__starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.hero__canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero__canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1.0;
}

.hero__grid {
  position: absolute;
  /* Fixed 50x50 grid for performance */
  left: 50%;
  top: 50%;
  width: 3000px;
  height: 3000px;
  margin-left: -1500px;
  margin-top: -1500px;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0.4;
  mask-image: radial-gradient(circle closest-side, black 0%, transparent 62.5%);
  -webkit-mask-image: radial-gradient(circle closest-side, black 0%, transparent 62.5%);
  animation: gridBreathe 4s ease-in-out infinite;
  transform: perspective(600px) rotateX(60deg);
}

@keyframes gridBreathe {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.5;
  }
}

/* Responsive Grid Mask */
@media (max-width: 1024px) {
  .hero__grid {
    mask-image: radial-gradient(circle closest-side, black 0%, transparent 50%);
    -webkit-mask-image: radial-gradient(circle closest-side, black 0%, transparent 50%);
  }
}

@media (max-width: 768px) {
  .hero__grid {
    mask-image: radial-gradient(circle closest-side, black 0%, transparent 40%);
    -webkit-mask-image: radial-gradient(circle closest-side, black 0%, transparent 40%);
  }
}

/* Dark mode: slightly brighter */
[data-theme="dark"] .hero__grid {
  opacity: 0.5;
  animation: gridBreatheDark 4s ease-in-out infinite;
}

@keyframes gridBreatheDark {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.6;
  }
}

/* Spotlight removed - using breathing grid instead */

.hero__content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
}

.hero__title {
  font-size: clamp(3.125rem, 7.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero__tagline {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.scroll-indicator__mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-secondary);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.scroll-indicator__wheel {
  width: 2px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* Scroll Indicator (Mouse Animation) */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator__mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator__wheel {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

.scroll-indicator__text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    top: 8px;
  }

  50% {
    opacity: 0.5;
    top: 20px;
  }

  100% {
    opacity: 0;
    top: 24px;
  }
}

/* Hide on smaller screens */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

/* Fade out when scrolled */
.scroll-indicator.faded {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ---------- Category Filters ---------- */
.filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-card);
}

.filter-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-card);
}

/* ---------- Articles Grid ---------- */
.articles {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.articles__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Articles Carousel (Horizontal Scroll) */
.articles__carousel {
  position: relative;
}

.articles__grid {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-md);
  /* Space for scrollbar */

  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.articles__grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.articles__grid>.card {
  flex: 0 0 340px;
  /* Fixed width cards */
  scroll-snap-align: start;
}

/* Carousel Navigation Arrows */
.carousel__nav {
  display: flex;
  gap: var(--space-sm);
}

.carousel__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.carousel__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- Article Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base), background-color 0.5s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-card);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  width: fit-content;
}

.card__tag--paper {
  color: var(--cat-paper);
  background: rgba(99, 102, 241, 0.1);
}

.card__tag--deepdive {
  color: var(--cat-deepdive);
  background: rgba(245, 158, 11, 0.1);
}

.card__tag--test {
  color: var(--cat-test);
  background: rgba(236, 72, 153, 0.1);
}

.card__tag--newsletter {
  color: var(--cat-newsletter);
  background: rgba(74, 222, 128, 0.1);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card__arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.card:hover .card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

/* ---------- Newsletter Section ---------- */
/* ---------- Newsletter Section ---------- */
.newsletter {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.5s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Magic Wand Cursor Glow */
.newsletter-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,
      rgba(34, 197, 94, 0.15) 0%,
      rgba(34, 197, 94, 0.05) 50%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* Light mode adjustment: Subtle green glow */
[data-theme="light"] .newsletter-glow {
  background: radial-gradient(circle,
      rgba(34, 197, 94, 0.25) 0%,
      rgba(34, 197, 94, 0.1) 50%,
      transparent 70%);
  mix-blend-mode: normal;
}

/* Physics Ball Animation */
.physics-ball {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* Below text content, above glow */
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Show glow on hover */
.newsletter:hover .newsletter-glow {
  opacity: 1;
}

.newsletter__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  /* Above the orb */
}

.newsletter__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.newsletter__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.newsletter__input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__input::placeholder {
  color: var(--text-muted);
  transition: opacity 0.3s ease;
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15),
    0 4px 20px rgba(34, 197, 94, 0.1);
  transform: translateY(-1px);
}

.newsletter__input:focus::placeholder {
  opacity: 0.5;
}

.newsletter__btn {
  padding: var(--space-md) var(--space-xl);
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.newsletter__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.newsletter__btn:hover::before {
  left: 100%;
}

.newsletter__btn:active {
  transform: translateY(0) scale(0.98);
}

/* Success State */
.newsletter__form.success .newsletter__input {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.05);
}

.newsletter__form.success .newsletter__btn {
  background: var(--accent);
  min-width: 100px;
}

.newsletter__btn .btn-text,
.newsletter__btn .btn-check {
  transition: all 0.3s ease;
}

.newsletter__btn .btn-check {
  position: absolute;
  opacity: 0;
  transform: scale(0);
}

.newsletter__form.success .newsletter__btn .btn-text {
  opacity: 0;
  transform: scale(0);
}

.newsletter__form.success .newsletter__btn .btn-check {
  position: static;
  opacity: 1;
  transform: scale(1);
}

/* Pulse animation on success */
@keyframes successPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.newsletter__form.success .newsletter__btn {
  animation: successPulse 1s ease-out;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__mission {
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.footer__mission-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer__mission-text {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.footer__mission-text span {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.footer__social:hover {
  background: var(--bg-secondary);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .articles__grid {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  /* .nav { display: none; } - Removed to allow mobile menu to work */
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.card {
  animation: fadeInUp 0.5s ease backwards;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.15s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}

.card:nth-child(4) {
  animation-delay: 0.25s;
}

.card:nth-child(5) {
  animation-delay: 0.3s;
}

.card:nth-child(6) {
  animation-delay: 0.35s;
}

/* Animation Utilities */
.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 2.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes radialReveal {
  0% {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    transform: scale(0.9);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: circle(150% at 50% 50%);
    transform: scale(1);
  }
}

@keyframes interestingPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    border-color: var(--accent);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.6), inset 0 0 15px rgba(34, 197, 94, 0.2);
    border-color: #ffffff;
    transform: scale(1.02);
  }
}

@keyframes textInteresting {

  0%,
  100% {
    letter-spacing: 0.5px;
    text-shadow: 0 0 0 transparent;
  }

  50% {
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
}

.hero-cta-reveal {
  opacity: 0;
  animation:
    radialReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 2.0s,
    interestingPulse 3s ease-in-out infinite 3.5s,
    textInteresting 3s ease-in-out infinite 3.5s;
  /* Sync with pulse */

  /* Ensure text animates smoothly without jitter if we use letter-spacing */
  /* If tracking increases width, button grows. Centered button growing is subtle "breathing". */
  display: inline-flex;
  justify-content: center;
  align-items: center;
}


.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-800 {
  animation-delay: 0.8s;
}

.delay-1000 {
  animation-delay: 1.0s;
}

.delay-1500 {
  animation-delay: 1.5s;
}

/* ============================================
   Article Page Styles - Premium Design
   ============================================ */

.article {
  padding: 0;
}

/* Article Hero Header */
.article__hero {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.article__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.5;
}

.article__hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.article__header {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.article__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.5s ease backwards;
}

.article__tag--paper {
  color: var(--cat-paper);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.article__tag--deepdive {
  color: var(--cat-deepdive);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.article__tag--experiment {
  color: var(--cat-test);
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.article__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.5s ease 0.1s backwards;
}

.article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.5s ease 0.2s backwards;
}

.article__divider {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* Article Body */
.article__body {
  padding: var(--space-3xl) 0;
}

/* Prose - Premium Typography */
.article__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.prose {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-primary);
}

/* Hide the first H1 since we show it in the hero */
.prose>h1:first-child {
  display: none;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose p {
  margin-bottom: var(--space-lg);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose strong {
  font-weight: 600;
  color: var(--text-primary);
}

.prose em {
  font-style: italic;
  color: var(--text-secondary);
}

/* Inline Code */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

/* Code Blocks */
.prose pre {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cat-paper));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.prose pre code {
  padding: 0;
  background: none;
  border: none;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* Lists */
.prose ul,
.prose ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.prose ol {
  counter-reset: list-counter;
  list-style: none;
}

.prose ol li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  counter-increment: list-counter;
}

.prose ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--accent);
}

/* Blockquotes */
.prose blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.prose table {
  width: 100%;
  margin: var(--space-xl) 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.prose td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover td {
  background: var(--bg-card);
}

/* Horizontal Rule */
.prose hr {
  margin: var(--space-3xl) 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-card), transparent);
}

/* Images */
.prose img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  border: 1px solid var(--border-subtle);
}

/* Article Footer */
.article__footer {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.article__share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* More Articles Section */
.more-articles {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  transition: background-color 0.5s ease;
}

.more-articles__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.more-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Enhanced Responsive Design
   ============================================ */

/* Tablet & Mobile (Unified Breakpoint for Nav) */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 3rem;
  }

  /* 2 Columns for Tablet */
  .articles__grid,
  .more-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile Nav (Enabled at 1024px now) */
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    /* height: auto - let items determine size */
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    visibility: hidden;
  }

  .nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    padding: var(--space-sm) 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Header actions positioning on mobile */
  .header__actions {
    margin-left: auto;
    gap: var(--space-xs);
  }

  /* Search: show icon, hide text on mobile */
  .header__search {
    padding: var(--space-sm);
    border: none;
    background: transparent;
  }

  .header__search-text {
    display: none;
  }

  .header__search-icon {
    display: block;
  }

  /* Position theme toggle next to mobile menu button */
  .theme-toggle {
    order: 1;
    /* Put after nav but before mobile-menu-btn in visual order */
    margin-left: auto;
    /* Push to right */
    margin-right: var(--space-sm);
  }

  .mobile-menu-btn {
    order: 2;
  }
}

/* Mobile Specific (Original 768px logic) */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Switch to 1 Column */
  .articles__grid {
    grid-template-columns: 1fr;
  }

  .more-articles__grid {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  /* Article Page Mobile */
  .article__title {
    font-size: 1.75rem;
  }

  .prose {
    font-size: 1rem;
  }

  .prose pre {
    padding: var(--space-md);
    font-size: 0.8rem;
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    border-radius: 0;
  }

  .article__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    padding: var(--space-md) 0;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }
}

/* =========================================
   Global Footer Sections (Newsletter & Social)
   ========================================= */

/* Reveal Animation for Sections */
.manifesto__title,
.manifesto__item,
.manifesto__divider,
.lab-cta__inner,
.follow-cta__inner {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.manifesto.is-visible .manifesto__title,
.manifesto.is-visible .manifesto__item,
.manifesto.is-visible .manifesto__divider,
.lab-cta.is-visible .lab-cta__inner,
.follow-cta.is-visible .follow-cta__inner {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Lab Access CTA */
.lab-cta {
  padding: var(--space-3xl) 0;
}

.lab-cta__inner {
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.1) 0%, rgba(0, 217, 245, 0.05) 100%);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: var(--space-2xl);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.lab-cta__badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 245, 160, 0);
  }
}

.lab-cta__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.lab-cta__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.lab-cta__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  margin: 0 auto;
}

.lab-cta__input {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}

.lab-cta__input::placeholder {
  color: var(--text-muted);
}

.lab-cta__btn {
  background: var(--accent);
  color: #000;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lab-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.3);
}

.lab-cta__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.lab-cta__input-wrap {
  flex: 1;
  position: relative;
}

.lab-cta__error {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 0.75rem;
  color: #ff6b6b;
}

.lab-cta__input.error {
  border-color: #ff6b6b;
}

/* Follow CTA - Social Links */
.follow-cta {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.follow-cta__inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-2xl);
  max-width: 500px;
  margin: 0 auto;
}

.follow-cta__icon {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.signal-core {
  fill: var(--accent);
  stroke: var(--accent);
}

.signal-wave {
  opacity: 0;
  animation: signal-pulse 2s ease-out infinite;
}

.signal-wave--1 {
  animation-delay: 0s;
}

.signal-wave--2 {
  animation-delay: 0.5s;
}

@keyframes signal-pulse {
  0% {
    opacity: 0;
    stroke-width: 1.5;
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    stroke-width: 0.5;
  }
}

.follow-cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.follow-cta__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.follow-cta__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.follow-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.follow-cta__link:hover {
  background: var(--bg-secondary);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}