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

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --bg-primary: #0e0e0e;
  --bg-secondary: #161616;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --accent-pink: #F2A2E8;
  --accent-green: #C8E64E;
  --accent-orange: #F5A623;
  --accent-cream: #F5F0E8;
  --accent-blue: #A8D8EA;
  --accent-purple: #D4A5FF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   NOISE OVERLAY
   ========================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 14, 14, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
  padding: 16px 48px;
  background: rgba(14, 14, 14, 0.95);
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav-logo span {
  color: var(--accent-green);
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

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



/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

/* Particle canvas */
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero>*:not(.particle-canvas) {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 230, 78, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: float-glow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 162, 232, 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: float-glow 10s ease-in-out infinite reverse;
}

@keyframes float-glow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(200, 230, 78, 0.08);
  border: 1px solid rgba(200, 230, 78, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
  margin-bottom: 40px;
  width: fit-content;
  animation: fadeInUp 0.8s var(--transition-smooth) both;
}

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

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 800px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.2s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 0.8s var(--transition-smooth) 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent-green);
  color: #0e0e0e;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 230, 78, 0.25);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--transition-smooth);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
  padding: 80px 48px 100px;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.about-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.about-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.stat-item {
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* =========================================
   MODULES SECTION
   ========================================= */
.modules-section {
  padding: 40px 48px 120px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* =========================================
   MODULE CARDS
   ========================================= */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.module-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s var(--transition-smooth);
  text-decoration: none;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.module-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  transition: transform 0.5s var(--transition-bounce);
}

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

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-number {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.5;
  margin-bottom: 8px;
  transition: all 0.4s var(--transition-smooth);
}

.card-content {
  margin-top: auto;
  transition: transform 0.5s var(--transition-smooth);
}

.module-card:hover .card-content {
  transform: translateY(-48px);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tagline {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.6);
  transition: all 0.4s var(--transition-smooth);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action {
  position: absolute;
  bottom: 32px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s var(--transition-smooth);
}

.module-card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 10px 20px;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: rgba(26, 26, 26, 0.18);
}

.card-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--transition-smooth);
}

.card-btn:hover svg {
  transform: translateX(3px);
}

.card-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.card-arrow:hover {
  background: rgba(26, 26, 26, 0.2);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
}

/* =========================================
   COMING SOON CARD
   ========================================= */
.module-card.coming-soon {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 2px dashed rgba(120, 200, 255, 0.25);
  cursor: default;
  pointer-events: none;
  justify-content: center;
  align-items: center;
}

.coming-soon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.coming-soon-text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 48px 48px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-logo span {
  color: var(--accent-green);
}

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

/* =========================================
   MODULE PAGE — HEADER
   ========================================= */
.module-header {
  padding: 140px 48px 48px;
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.module-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(26, 26, 26, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 16px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.module-tag::before {
  display: none;
}

@keyframes tagPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.module-number {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.module-title {
  font-family: var(--font-family);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  white-space: nowrap;
  color: #1a1a1a;
  position: relative;
  z-index: 1;
}

.module-title em {
  font-style: normal;
  color: var(--accent-green);
}

.module-subtitle {
  font-size: 17px;
  color: rgba(26, 26, 26, 0.6);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.module-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.6);
  position: relative;
  z-index: 1;
}

.meta-item svg {
  opacity: 0.5;
}

.meta-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.back-link {
  position: absolute;
  top: 100px;
  left: 48px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-link:hover {
  background: rgba(26, 26, 26, 0.18);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* =========================================
   MODULE PAGE — TABS
   ========================================= */
.tabs-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 61px;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  z-index: 90;
}

.tabs {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-family);
}

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

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-green);
}

.tab-icon,
.tab svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.tab.active .tab-icon {
  opacity: 1;
}

.tab-count {
  font-size: 11px;
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 400;
}

.tab.active .tab-count {
  background: rgba(200, 230, 78, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(200, 230, 78, 0.2);
}

/* =========================================
   MODULE PAGE — CONTENT AREA
   ========================================= */
.content-area {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.tab-panel {
  display: none;
  animation: tabFadeUp 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Tab panel default content styling — RICH CARDS */
.tab-panel h3 {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tab-panel p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 20px;
}

/* Allow full width for callout blocks */
.tab-panel p:has(> em:only-child),
.tab-panel p:has(> strong:only-child) {
  max-width: 100%;
}

/* Callout style for note/italics paragraphs */
.tab-panel p>em:only-child {
  display: block;
  background: rgba(245, 166, 35, 0.08);
  /* Orange accent */
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-left: 3px solid #F5A623;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  font-style: italic;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  /* Brighter text */
  line-height: 1.7;
}

/* Bold paragraph → highlight block */
.tab-panel p>strong:only-child {
  display: block;
  background: linear-gradient(135deg, rgba(200, 230, 78, 0.06) 0%, rgba(200, 230, 78, 0.02) 100%);
  border: 1px solid rgba(200, 230, 78, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ---- LIST → CARD GRID ---- */
.tab-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: card-counter;
}

.tab-panel li {
  counter-increment: card-counter;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  position: relative;
  transition: all 0.25s ease;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  overflow: hidden;
}

.tab-panel li::before {
  content: counter(card-counter, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-family);
}

.tab-panel li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-green);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tab-panel li:hover {
  border-color: rgba(200, 230, 78, 0.15);
  background: rgba(200, 230, 78, 0.03);
  transform: translateX(4px);
}

.tab-panel li:hover::after {
  opacity: 1;
}

.tab-panel li strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

/* ---- TABLE → MODERN DARK GLASS ---- */
.tab-panel table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0 28px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}

.tab-panel thead th {
  background: rgba(200, 230, 78, 0.06);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-green);
  border-bottom: 1px solid rgba(200, 230, 78, 0.1);
}

.tab-panel thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.tab-panel thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.tab-panel tbody td {
  padding: 13px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.tab-panel tbody tr:last-child td {
  border-bottom: none;
}

.tab-panel tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tab-panel tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* =========================================
   MODULE PAGE — OVERVIEW
   ========================================= */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.overview-intro {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  border-left: 2px solid var(--accent-green);
  padding-left: 20px;
}

.overview-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.callout {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.callout-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.callout p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Sidebar */
.module-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-card-title {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.what-youll-learn {
  list-style: none;
}

.what-youll-learn li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.what-youll-learn li:last-child {
  border-bottom: none;
}

.what-youll-learn li::before {
  display: none;
}

.check {
  width: 16px;
  height: 16px;
  background: rgba(200, 230, 78, 0.08);
  border: 1px solid rgba(200, 230, 78, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-green);
  font-size: 10px;
}

/* =========================================
   MODULE PAGE — TECHNIQUES
   ========================================= */
.techniques-grid {
  display: grid;
  gap: 16px;
}

.technique-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.technique-card:hover {
  border-color: rgba(200, 230, 78, 0.2);
}

.technique-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.technique-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.technique-num {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  width: 28px;
}

.technique-name {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.technique-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.technique-toggle {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform 0.3s, background 0.2s;
  flex-shrink: 0;
}

.technique-card.open .technique-toggle {
  transform: rotate(45deg);
  background: rgba(200, 230, 78, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(200, 230, 78, 0.2);
}

.technique-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.technique-card.open .technique-body {
  display: block;
  animation: tabFadeUp 0.25s ease;
}

.technique-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: 20px;
  margin-bottom: 20px;
}

/* =========================================
   MODULE PAGE — PROMPTS
   ========================================= */
.prompts-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.prompt-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  margin-bottom: 12px;
}

.prompt-card:hover {
  border-color: rgba(200, 230, 78, 0.25);
  transform: translateX(3px);
}

.prompt-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 50%;
}

.prompt-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'DM Mono', 'Courier New', monospace;
}

.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(200, 230, 78, 0.08);
  color: var(--accent-green);
  border-color: rgba(200, 230, 78, 0.2);
}

.copy-btn.copied {
  background: rgba(200, 230, 78, 0.08);
  color: var(--accent-green);
  border-color: rgba(200, 230, 78, 0.2);
}

/* =========================================
   MODULE PAGE — TOOLS
   ========================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.15s;
}

.tool-card:hover {
  border-color: rgba(200, 230, 78, 0.2);
  transform: translateY(-2px);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tool-name {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
}

.tool-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-free {
  background: rgba(168, 216, 234, 0.08);
  border: 1px solid rgba(168, 216, 234, 0.2);
  color: var(--accent-blue);
}

.badge-paid {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.badge-freemium {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.2);
  color: var(--accent-orange);
}

.tool-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tool-use-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.use-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* =========================================
   MODULE PAGE — EXAMPLES (expandable)
   ========================================= */
.example-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.example-card:hover {
  border-color: rgba(200, 230, 78, 0.15);
}

.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
}

.example-title {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
}

.example-body {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px;
  animation: tabFadeUp 0.25s ease;
}

.example-card.open .example-body {
  display: block;
}

.example-card.open .technique-toggle {
  transform: rotate(45deg);
  background: rgba(200, 230, 78, 0.08);
  color: var(--accent-green);
}

/* =========================================
   MODULE PAGE — FOOTER NAV
   ========================================= */
.module-footer-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--font-family);
}

.footer-nav-btn:hover {
  border-color: rgba(200, 230, 78, 0.2);
  color: var(--accent-green);
}

.footer-nav-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.footer-nav-title {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
}

.footer-nav-btn.next {
  background: rgba(200, 230, 78, 0.06);
  border-color: rgba(200, 230, 78, 0.15);
  text-align: right;
}

/* =========================================
   MODULE PAGE — RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .module-header {
    padding: 40px 20px 32px;
  }

  .tabs {
    padding: 0 20px;
  }

  .content-area {
    padding: 32px 20px 60px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .module-footer-nav {
    padding: 24px 20px 40px;
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav-btn {
    width: 100%;
  }

  .footer-nav-btn.next {
    text-align: left;
  }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animations */
.module-card.reveal:nth-child(1) {
  transition-delay: 0s;
}

.module-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.module-card.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.module-card.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.module-card.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.module-card.reveal:nth-child(6) {
  transition-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* =========================================
   CUSTOM CURSOR DOT (subtle)
   ========================================= */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

body:hover .cursor-dot {
  opacity: 1;
}

.cursor-dot.active {
  transform: scale(3);
  opacity: 0.5;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .about-section {
    padding: 60px 24px 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .modules-section {
    padding: 40px 24px 80px;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .module-card {
    min-height: 320px;
    padding: 28px 24px 28px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .module-banner {
    padding: 24px;
    padding-top: 120px;
    min-height: 280px;
  }

  .banner-back {
    left: 24px;
    top: 88px;
  }

  .module-tabs-wrapper {
    padding: 0 24px;
  }

  .module-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-content-area {
    padding: 32px 24px;
  }

  .footer {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .module-card {
    min-height: 280px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* =========================================
   SMOOTH PAGE TRANSITION
   ========================================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9998;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--transition-smooth);
}

.page-transition.active {
  transform: scaleY(1);
  transform-origin: top;
}

/* =========================================
   LOADING STATE
   ========================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-text span {
  color: var(--accent-green);
}

@keyframes loaderPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================
   INTRO HEADER CARDS
   ========================================= */
.intro-header-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.intro-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
}

.intro-card h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-card ul {
  margin: 0 !important;
  gap: 10px !important;
}

.intro-card li {
  font-size: 14.5px !important;
  padding: 0 0 0 16px !important;
  border: none !important;
  background: none !important;
  line-height: 1.5 !important;
}

.intro-card li::before {
  top: 9px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--text-muted) !important;
  left: 0 !important;
}

.intro-card li::after {
  display: none !important;
}

.intro-card li:hover {
  transform: none !important;
  background: none !important;
  border: none !important;
}

/* Variant: Learn */
.intro-card.learn {
  background: linear-gradient(135deg, rgba(200, 230, 78, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(200, 230, 78, 0.15);
}

.intro-card.learn h4 {
  color: var(--accent-green);
}

.intro-card.learn li::before {
  background: var(--accent-green) !important;
}

/* Variant: Who */
.intro-card.who {
  background: linear-gradient(135deg, rgba(242, 162, 232, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(242, 162, 232, 0.15);
}

.intro-card.who h4 {
  color: #F2A2E8;
}

.intro-card.who li::before {
  background: #F2A2E8 !important;
}

@media (max-width: 768px) {
  .intro-header-cards {
    flex-direction: column;
  }
}

/* =========================================
   TOOLS SECTION
   ========================================= */
.tools-section {
  padding: 96px 48px;
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.new-badge {
  background: var(--accent-pink);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  width: 100%;
}

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tool-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tool-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tool-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 99px;
  white-space: nowrap;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tool-card:hover .tool-action {
  color: var(--text-primary);
}

.tool-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-action svg {
  transform: translateX(4px);
}

.tools-search-container {
  max-width: 600px;
  margin: 0 auto 32px auto;
  padding: 0 24px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.tools-search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tools-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

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

/* =========================================
   FIELDNOTES & NAVBAR BADGE STYLES — WOW EDITION
   ========================================= */

/* Navbar with badge */
.nav-link-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.nav-new-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #C8E64E, #9bc926);
  color: #0c0c0c;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 0 14px rgba(200, 230, 78, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Fieldnotes Section on Homepage */
.fieldnotes-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.fieldnotes-section.modules-section {
  padding: 40px 48px 120px;
}

.fieldnotes-section.modules-section .fieldnotes-container {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.fieldnotes-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

/* Ambient glow background */
.fieldnotes-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 230, 78, 0.07) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.fieldnotes-section::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(242, 162, 232, 0.05) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Ensure foreground content floats over background generative canvas */
.fieldnotes-section>*:not(.particle-canvas),
.fieldnotes-hero>*:not(.particle-canvas),
.reader-hero-header>*:not(.particle-canvas),
.reader-wrapper>*:not(.particle-canvas) {
  position: relative;
  z-index: 1;
}

/* Generative overlay directly on the Spotlight card */
.spotlight-gen-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* Generative circuit badge on glass cards */
.glass-card-gen-circuit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.4s var(--transition-bounce);
}

.fieldnote-glass-card:hover .glass-card-gen-circuit {
  opacity: 1;
  transform: rotate(6deg) scale(1.12);
}

/* Section Header Badge */
.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* 1 + 3 Layout Container */
.fieldnotes-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 52px;
  position: relative;
  z-index: 1;
}

/* Spotlight Hero Card (1 Wide Card) */
.fieldnote-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
  .fieldnote-spotlight {
    grid-template-columns: 1.15fr 1fr;
    min-height: 440px;
  }
}

.fieldnote-spotlight:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 230, 78, 0.45);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.7), 0 0 45px -10px rgba(200, 230, 78, 0.25);
}

.spotlight-media {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 280px;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.fieldnote-spotlight:hover .spotlight-img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(14, 14, 14, 0.65) 100%);
  pointer-events: none;
}

.spotlight-floating-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  z-index: 2;
}

.spotlight-floating-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag-color, #C8E64E);
  box-shadow: 0 0 8px var(--tag-color, #C8E64E);
}

.spotlight-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.spotlight-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.spotlight-title {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.fieldnote-spotlight:hover .spotlight-title {
  color: var(--accent-green);
}

.spotlight-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spotlight-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.spotlight-author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spotlight-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent-green);
  color: #0c0c0c;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(200, 230, 78, 0.35);
}

.spotlight-cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.fieldnote-spotlight:hover .spotlight-cta-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(200, 230, 78, 0.55);
}

.fieldnote-spotlight:hover .spotlight-cta-btn svg {
  transform: translate(3px, -3px);
}

/* Companion Cards (Row of 3) */
.fieldnotes-companion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .fieldnotes-companion-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .fieldnotes-companion-grid {
    grid-template-columns: 1fr;
  }
}

.fieldnote-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.fieldnote-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #C8E64E), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fieldnote-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px -10px var(--card-glow, rgba(200, 230, 78, 0.2));
}

.fieldnote-glass-card:hover::before {
  opacity: 1;
}

.glass-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #161616;
}

.glass-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fieldnote-glass-card:hover .glass-card-img {
  transform: scale(1.08);
}

.glass-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  z-index: 2;
}

.glass-card-tag .tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tag-color, #C8E64E);
  box-shadow: 0 0 8px var(--tag-color, #C8E64E);
}

.glass-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.glass-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.glass-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.fieldnote-glass-card:hover .glass-card-title {
  color: var(--card-accent, var(--accent-green));
}

.glass-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glass-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--card-accent, var(--accent-green));
  transition: gap 0.3s ease;
}

.glass-card-read-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.fieldnote-glass-card:hover .glass-card-read-btn {
  gap: 10px;
}

.fieldnote-glass-card:hover .glass-card-read-btn svg {
  transform: translate(3px, -3px);
}

/* =========================================
   FIELDNOTES ARCHIVE PAGE — WOW EDITION
   ========================================= */
.fieldnotes-hero {
  width: 100%;
  padding: 170px 48px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fieldnotes-hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 92vw);
  height: 420px;
  background: radial-gradient(ellipse, rgba(200, 230, 78, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.fieldnotes-hero-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.fieldnotes-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.fieldnotes-hero-title span {
  color: var(--accent-green);
  text-shadow: 0 0 35px rgba(200, 230, 78, 0.3);
}

.fieldnotes-hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 12px;
}

/* Search & Filter Controls */
.fieldnotes-filter-container {
  max-width: 1320px;
  margin: 0 auto 52px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .fieldnotes-filter-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  backdrop-filter: blur(12px);
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.category-pill.active {
  background: var(--accent-green);
  color: #0c0c0c;
  font-weight: 700;
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(200, 230, 78, 0.45);
}

.fieldnotes-search-wrapper {
  position: relative;
  min-width: 300px;
}

/* Archive Grid */
.fieldnotes-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.fieldnotes-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 90px 24px;
}

.fieldnotes-empty-state .empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.fieldnotes-empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #fff;
}

.fieldnotes-empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================
   ARTICLE READER PAGE — WOW EDITION
   ========================================= */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-pink), var(--accent-orange));
  z-index: 10001;
  box-shadow: 0 0 12px var(--accent-green);
  transition: width 0.1s linear;
}

.reader-hero-header {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 150px 48px 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reader-hero-header::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 380px;
  background: radial-gradient(ellipse, rgba(200, 230, 78, 0.09) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.reader-header-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.reader-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 120px;
  position: relative;
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.reader-back-btn:hover {
  color: #0c0c0c;
  background: var(--accent-green);
  border-color: var(--accent-green);
  transform: translateX(-4px);
}

.reader-back-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.article-meta-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reader-category-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  color: #0c0c0c;
  box-shadow: 0 0 16px rgba(200, 230, 78, 0.4);
}

.reader-meta-item {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.reader-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.reader-article-title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.reader-article-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
}

.reader-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 52px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  backdrop-filter: blur(12px);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn:hover,
.share-btn.copied {
  background: var(--accent-green);
  color: #0c0c0c;
  border-color: var(--accent-green);
  box-shadow: 0 0 16px rgba(200, 230, 78, 0.4);
}

.reader-hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  margin-bottom: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7);
}

/* Article Editorial Typography */
.article-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}

.article-content p {
  margin-bottom: 28px;
}

.article-content .article-lead {
  font-size: 1.35rem;
  line-height: 1.7;
  color: #fff;
  font-weight: 400;
  margin-bottom: 36px;
}

.article-content .article-lead::first-letter {
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  font-weight: 900;
  color: var(--accent-green);
  font-family: 'Inter', sans-serif;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 60px 0 24px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 18px;
  letter-spacing: -0.01em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 32px 24px;
}

.article-content li {
  margin-bottom: 14px;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content strong {
  color: #fff;
  font-weight: 700;
}

.article-figure {
  margin: 52px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.article-figure figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

.article-callout {
  background: linear-gradient(135deg, rgba(200, 230, 78, 0.08) 0%, rgba(200, 230, 78, 0.02) 100%);
  border: 1px solid rgba(200, 230, 78, 0.25);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin: 44px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.article-callout .callout-icon {
  font-size: 1.5rem;
  color: var(--accent-green);
  line-height: 1;
}

.article-callout .callout-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.article-quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--accent-green);
  border-left: 4px solid var(--accent-green);
  padding: 12px 0 12px 28px;
  margin: 48px 0;
  text-shadow: 0 0 25px rgba(200, 230, 78, 0.2);
}

.prompt-box {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 38px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.prompt-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.prompt-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.prompt-copy-btn.copied {
  background: var(--accent-green);
  color: #0c0c0c;
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(200, 230, 78, 0.4);
}

.prompt-content {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

/* Footer Article Nav */
.article-footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 72px;
  padding-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .article-footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-note-link {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

.footer-note-link:hover {
  border-color: rgba(200, 230, 78, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(200, 230, 78, 0.15);
}

.direction-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.note-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}


/* Accessibility and small-screen resilience */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 3px;
}

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-links>a:not(:last-child) {
    display: none;
  }
}

@media (max-width: 600px) {
  .reader-hero-header {
    padding: 120px 20px 40px;
  }

  .reader-author-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .fieldnotes-search-wrapper {
    min-width: 0;
    width: 100%;
  }
}