/* ========================================
   PAGE-SPECIFIC VARIABLES
   (All core tokens come from ai-natives-tokens.css)
   ======================================== */
:root {
  --nav-glass: rgba(237, 237, 237, 0.75);
  --nav-glass-border: rgba(255, 255, 255, 0.4);
  --nav-glass-shadow: 0 2px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5);
  --nav-glass-scrolled: rgba(237, 237, 237, 0.97);
  --nav-glass-scrolled-border: rgba(0, 0, 0, 0.1);
  --nav-glass-scrolled-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.5);
  --shimmer: rgba(0, 0, 0, 0.03);
  --img-placeholder-bg: rgba(0, 0, 0, 0.04);
  --img-placeholder-border: rgba(0, 0, 0, 0.08);
  --topic-strategy: #3B82F6;
  --topic-building: #10B981;
  --topic-gtm: #8B5CF6;
  --topic-tools: #F59E0B;
  --topic-community: #F43F5E;
  --accent-glow: var(--accent-glow-rgb);
  --max-width: 1200px;
  --content-width: 900px;
}

[data-theme="dark"] {
  --nav-glass: rgba(7, 15, 10, 0.65);
  --nav-glass-border: rgba(200, 245, 58, 0.08);
  --nav-glass-shadow: 0 2px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  --nav-glass-scrolled: rgba(7, 15, 10, 0.95);
  --nav-glass-scrolled-border: rgba(255, 255, 255, 0.1);
  --nav-glass-scrolled-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  --shimmer: rgba(255, 255, 255, 0.03);
  --img-placeholder-bg: rgba(255, 255, 255, 0.05);
  --img-placeholder-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  transition: left 0.4s var(--ease-out), right 0.4s var(--ease-out);
}

.nav.scrolled {
  left: 12%;
  right: 12%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--nav-glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--nav-glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--nav-glass-shadow);
  transition: background var(--duration-emphasis) ease, border-color var(--duration-emphasis) ease, box-shadow var(--duration-emphasis) ease;
}

.nav.scrolled .nav-inner {
  background: var(--nav-glass-scrolled);
  border-color: var(--nav-glass-scrolled-border);
  box-shadow: var(--nav-glass-scrolled-shadow);
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--duration-default);
}

.nav-links a:hover { color: var(--forest-1); }

[data-theme="dark"] .nav-links a { color: rgba(229, 232, 226, 0.6); }
[data-theme="dark"] .nav-links a:hover { color: #E5E8E2; }

/* Nav CTA — pill shape, outline default → filled on hover */
.nav-cta {
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(7, 15, 10, 0.2);
  color: var(--forest-1);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all var(--duration-default) ease;
}

.nav-cta:hover {
  background: var(--forest-1);
  color: var(--white);
  border-color: var(--forest-1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-cta {
  color: var(--accent);
  border-color: rgba(200, 245, 58, 0.3);
}

[data-theme="dark"] .nav-cta:hover {
  background: var(--accent);
  color: var(--forest-1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(200, 245, 58, 0.15);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12rem 2rem 2rem;
  position: relative;
  overflow: visible;
}

.hero-content {
  flex: 1;
  min-height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-glow), 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 2rem;
}

.hero-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 2rem;
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: italic;
  color: var(--text-accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-sub-highlight {
  color: var(--text-accent);
}


/* Hero CTA inherits from .btn .btn-accent .btn-lg — only add SVG gap */
.hero-cta {
  gap: 0.6rem;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-default);
}

.hero-cta:hover svg { transform: translateX(3px); }

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

.hero-proof {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.proof-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.proof-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-stat + .proof-stat {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.hero-secondary-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--duration-default), border-color var(--duration-default);
}

.hero-secondary-link:hover {
  color: var(--text-accent);
  border-color: var(--text-accent);
}

/* ========================================
   SCATTERED DESK
   ======================================== */
.desk-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
  margin-top: 3rem;
}

.desk {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  margin: 0 auto;
}

.desk-card {
  position: absolute;
  width: 280px;
  cursor: pointer;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) ease;
  text-decoration: none;
  display: block;
}

.desk-card:hover {
  z-index: 10;
}

.desk-card:hover .card-img {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(var(--accent-glow-rgb), 0.1);
}

.desk-card:hover .card-label {
  opacity: 1;
  transform: translateY(0);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: box-shadow var(--duration-normal) ease;
  position: relative;
}

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

/* Torn paper edge (top) */
.card-img::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(250, 245, 235, 0.15) 10%,
    transparent 20%,
    rgba(250, 245, 235, 0.1) 35%,
    transparent 50%,
    rgba(250, 245, 235, 0.12) 65%,
    transparent 80%,
    rgba(250, 245, 235, 0.08) 90%,
    transparent 100%
  );
}

/* Label — overlay pill on card image */
.card-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--duration-normal) ease,
    transform var(--duration-normal) var(--ease-out-expo);
  z-index: 2;
}

.card-label span {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card-label span {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

/* Card positions & rotations */
.desk-card:nth-child(1) {
  --card-rotate: 2.5deg;
  left: 4%;
  top: 0;
  transform: rotate(2.5deg);
  z-index: 3;
  opacity: 0;
  animation: deskEntrance 0.9s var(--ease-out-expo) 0.15s forwards, cardAttention 0.5s var(--ease-out-expo) 2.0s;
}
.desk-card:nth-child(1):hover {
  transform: rotate(2.5deg) translateY(-8px) scale(1.03);
  z-index: 10;
}

.desk-card:nth-child(2) {
  --card-rotate: -1.8deg;
  right: 4%;
  top: 10px;
  transform: rotate(-1.8deg);
  z-index: 2;
  opacity: 0;
  animation: deskEntrance 0.9s var(--ease-out-expo) 0.3s forwards, cardAttention 0.5s var(--ease-out-expo) 2.3s;
}
.desk-card:nth-child(2):hover {
  transform: rotate(-1.8deg) translateY(-8px) scale(1.03);
  z-index: 10;
}

.desk-card:nth-child(3) {
  --card-rotate: -3deg;
  left: 24%;
  top: 120px;
  transform: rotate(-3deg);
  z-index: 4;
  opacity: 0;
  animation: deskEntrance 0.9s var(--ease-out-expo) 0.45s forwards, cardAttention 0.5s var(--ease-out-expo) 2.6s;
}
.desk-card:nth-child(3):hover {
  transform: rotate(-3deg) translateY(-8px) scale(1.03);
  z-index: 10;
}

.desk-card:nth-child(4) {
  --card-rotate: 1.5deg;
  right: 18%;
  top: 140px;
  transform: rotate(1.5deg);
  z-index: 5;
  opacity: 0;
  animation: deskEntrance 0.9s var(--ease-out-expo) 0.6s forwards, cardAttention 0.5s var(--ease-out-expo) 2.9s;
}
.desk-card:nth-child(4):hover {
  transform: rotate(1.5deg) translateY(-8px) scale(1.03);
  z-index: 10;
}

@keyframes cardAttention {
  0%, 100% {
    transform: rotate(var(--card-rotate, 0deg)) translateY(0) scale(1);
  }
  50% {
    transform: rotate(var(--card-rotate, 0deg)) translateY(-8px) scale(1.04);
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: scrollFadeIn 0.8s var(--ease-out-expo) 0.9s forwards;
}

.scroll-hint span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section {
  padding: 5rem 2rem;
  position: relative;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--duration-default);
}

.section-link:hover { color: var(--text-accent); }

/* ========================================
   INSIGHTS SECTION
   ======================================== */
.insights { background: var(--bg-hero); padding-top: 180px; position: relative; }

.insights::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.insights > * { position: relative; z-index: 1; }

.insights-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.filter-pill {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-default);
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.filter-pill.active {
  background: var(--accent);
  color: var(--bg-page);
  border-color: var(--accent);
  font-weight: 600;
}

/* Insights grid container */
.insights-grid {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Featured article — horizontal layout on desktop */
.insights-featured {
  margin-bottom: 2.5rem;
}

.insights-featured .featured-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.insights-featured .featured-card .article-card-img {
  aspect-ratio: 16/9;
  border-radius: 0;
}

.insights-featured .featured-card .article-card-body {
  padding: 2rem 2rem 2rem 0;
}

/* Regular articles grid */
.insights-regular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Article cards */
.article-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-emphasis) ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.03);
}

/* Placeholder images */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder.strategy { background: linear-gradient(135deg, var(--forest-3), var(--forest-4), var(--forest-3)); }
.img-placeholder.building { background: linear-gradient(135deg, var(--forest-2), var(--forest-3), var(--forest-2)); }
.img-placeholder.gtm { background: linear-gradient(135deg, var(--forest-3), var(--forest-5), var(--forest-3)); }
.img-placeholder.tools { background: linear-gradient(135deg, var(--forest-2), var(--forest-3), var(--forest-2)); }
.img-placeholder.community { background: linear-gradient(135deg, var(--forest-2), var(--forest-4), var(--forest-3)); }

.img-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--img-placeholder-bg);
  border: 1px solid var(--img-placeholder-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.article-card-body { padding: 1rem 0; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.article-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topic-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.topic-tag.strategy { color: var(--topic-strategy); background: rgba(59, 130, 246, 0.12); }
.topic-tag.building { color: var(--topic-building); background: rgba(16, 185, 129, 0.12); }
.topic-tag.gtm { color: var(--topic-gtm); background: rgba(139, 92, 246, 0.12); }
.topic-tag.tools { color: var(--topic-tools); background: rgba(245, 158, 11, 0.12); }
.topic-tag.community { color: var(--topic-community); background: rgba(244, 63, 94, 0.12); }

.article-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--duration-default);
}

.article-card:hover .article-title { color: var(--text-accent); }

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-wash), var(--bg-card));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-accent);
}

.author-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Featured card title & excerpt */
.featured-card .article-title {
  font-size: 2.2rem;
  line-height: 1.25;
}

.featured-card .article-excerpt {
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
}

/* Compact list (right sidebar) */
.recent-header {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compact-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-default);
}

.compact-card:hover { background: var(--bg-card); margin: 0 -0.5rem; padding: 0.75rem 0.5rem; border-radius: var(--radius-sm); }
.compact-card:last-child { border-bottom: none; }

.compact-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.compact-thumb .img-placeholder {
  width: 64px;
  height: 64px;
}

.compact-thumb .img-placeholder-icon {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.compact-body { flex: 1; min-width: 0; }

.compact-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  transition: color var(--duration-default);
}

.compact-card:hover .compact-title { color: var(--text-accent); }

.compact-author {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Loading skeletons */
.skeleton {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-img { aspect-ratio: 16/10; }
.skeleton-title { height: 20px; width: 80%; margin: 12px 0 8px; }
.skeleton-text { height: 14px; width: 60%; }
.skeleton-featured-img { aspect-ratio: 16/9; }
.skeleton-featured-title { height: 28px; width: 90%; margin: 16px 0 8px; }
.skeleton-compact { height: 64px; margin-bottom: 12px; }

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Empty state */
.insights-empty {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}

.insights-empty p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.insights-empty .newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

/* ========================================
   SHARED EYEBROW STYLE
   ======================================== */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-accent);
  display: block;
  margin-bottom: 1rem;
}

/* ========================================
   PROBLEM + BRIDGE SECTION
   ======================================== */
.problem-bridge {
  padding: 0;
}

/* Zone A: The Problem — dark forest background */
.problem-zone {
  background: var(--bg-hero);
  position: relative;
  padding: 5rem 2rem;
}

.problem-zone::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.problem-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.problem-zone h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.problem-zone h2 em {
  font-style: italic;
  color: var(--text-accent);
}

.problem-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.problem-statements {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.problem-statement {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.problem-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-statement p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Zone B: The Bridge — lighter background */
.bridge-zone {
  background: var(--bg-page);
  padding: 5rem 2rem;
}

.bridge-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.bridge-zone h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.bridge-zone h2 em {
  font-style: italic;
  color: var(--text-accent);
}

.bridge-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Shift card: from → to transformation */
.shift-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.shift-row {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.shift-row:last-child {
  border-bottom: none;
}

.shift-from {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}

.shift-arrow {
  flex-shrink: 0;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.shift-to {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-accent);
  flex: 1;
  text-align: center;
}

/* ========================================
   WHO IT'S FOR SECTION
   ======================================== */
.who-section {
  background: var(--bg-page);
}

.who-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.who-header {
  text-align: center;
  margin-bottom: 3rem;
}

.who-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.who-header h2 em {
  font-style: italic;
  color: var(--text-accent);
}

/* Check list items */
.check-list {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.check-item:first-child {
  border-top: 1px solid var(--border);
}

.check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  margin-top: 2px;
}

.check-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cross-icon {
  background: rgba(220, 60, 60, 0.12);
  color: #e03030;
}

.who-cta-wrap {
  text-align: center;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--bg-hero);
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-glow-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Hide grain/glow overlays in light mode — they only make sense on dark backgrounds */
.problem-zone::after,
.insights::after,
.cta-section::after,
.cta-section::before {
  opacity: 0;
}

[data-theme="dark"] .problem-zone::after,
[data-theme="dark"] .insights::after,
[data-theme="dark"] .cta-section::after {
  opacity: 0.25;
}

[data-theme="dark"] .cta-section::before {
  opacity: 1;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
}

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

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

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.cta-section h2 em {
  font-style: italic;
  color: var(--text-accent);
}

.cta-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cta-scarcity {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.cta-btn {
  gap: 0.5rem;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter {
  background: var(--bg-page);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0.6rem;
}

.newsletter-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--duration-default);
}

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

/* Newsletter btn inherits from .btn .btn-primary */
.newsletter-btn {
  white-space: nowrap;
}

.newsletter-success {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-accent);
  font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--duration-default);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   THEME TOGGLE (homepage nav)
   ======================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--duration-default), border-color var(--duration-default), background var(--duration-default);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Light mode (default): show moon icon, hide sun */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

/* Dark mode: show sun icon, hide moon */
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* Page-specific reveal variants (base .reveal is in tokens.css) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.reveal-fade.visible {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Interactive Glow — inherits .glow-ambient, adds mouse tracking */
.hero-glow {
  transform: translate(calc(-50% + var(--glow-x, 0px)), calc(-55% + var(--glow-y, 0px)));
  z-index: 0;
}

/* Hero content z-index above glow */
.hero > *:not(.hero-glow) {
  position: relative;
  z-index: 1;
}

/* Hero text above desk cards — pointer-events passthrough for card hover */
.hero-content {
  z-index: 3;
  pointer-events: none;
}

.hero-content * {
  pointer-events: auto;
}

@keyframes scrollFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ========================================
   MOBILE MENU
   ======================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
  z-index: 1001;
}

.hamburger svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hamburger .hamburger-close {
  display: none;
}

.hamburger.active .hamburger-open {
  display: none;
}

.hamburger.active .hamburger-close {
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 10px;
  left: auto;
  bottom: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 1000;
  padding: 0.75rem 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--duration-default) ease, transform var(--duration-default) ease;
  pointer-events: none;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  transition: background 0.15s;
}

.mobile-menu a:hover {
  background: var(--accent-wash);
}

.mobile-menu .mobile-menu-cta {
  margin: 0.5rem 1rem 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  background: rgba(var(--accent-glow), 0.12);
  color: var(--text-accent);
  border: 1px solid rgba(var(--accent-glow), 0.25);
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: all var(--duration-default);
}

.mobile-menu .mobile-menu-cta:hover {
  background: rgba(var(--accent-glow), 0.2);
}

[data-theme="dark"] .mobile-menu {
  box-shadow: var(--shadow-lg);
}

@keyframes mobileCardPop {
  from {
    opacity: 0;
    transform: rotate(var(--card-rotate, 0deg)) scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--card-rotate, 0deg)) scale(1) translateY(0);
  }
}

@keyframes mobileCardBounce {
  0%, 8%, 100% {
    transform: rotate(var(--card-rotate, 0deg)) translateY(0) scale(1);
  }
  4% {
    transform: rotate(var(--card-rotate, 0deg)) translateY(-8px) scale(1.04);
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .nav.scrolled { left: 5%; right: 5%; }

  .insights-featured .featured-card {
    grid-template-columns: 1fr;
  }

  .insights-featured .featured-card .article-card-body {
    padding: 1.5rem;
  }

  .insights-regular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .article-title {
    font-size: 1.4rem;
  }

  .featured-card .article-title {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .desk {
    height: 600px;
    max-width: 100%;
    padding: 0 16px;
  }

  .desk-card { width: 220px; }

  .desk-card:nth-child(1) { left: 2%; top: 0; }
  .desk-card:nth-child(2) { right: 2%; top: 20px; }
  .desk-card:nth-child(3) { left: 12%; top: 160px; }
  .desk-card:nth-child(4) { right: 8%; top: 180px; }

  .insights { padding-top: 240px; }

  .shift-card { max-width: 100%; }

}

@media (max-width: 600px) {
  .nav { top: 10px; left: 10px; right: 10px; }
  .nav.scrolled { left: 10px; right: 10px; }
  .nav-inner { padding: 10px 16px; }
  .nav-links { display: none; }

  .hamburger {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero { min-height: 100svh; padding: 3.5rem 1.5rem 1rem; }

  .hero h1 {
    font-size: clamp(2.25rem, 8vw, 2.8rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-sub {
    font-size: 1.1rem;
  }

  .hero-content {
    padding-bottom: 0.5rem;
  }

  .hero-proof {
    gap: 1rem;
  }

  .proof-stat + .proof-stat {
    border-left: none;
    padding-left: 0;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero-proof .proof-stat:last-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .insights-regular-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 1.3rem;
  }

  .featured-card .article-title {
    font-size: 1.6rem;
  }

  .article-excerpt {
    font-size: 0.95rem;
  }

  .newsletter-input {
    font-size: 1rem;
  }

  .newsletter-form { flex-direction: column; }

  .problem-zone,
  .bridge-zone {
    padding: 3.5rem 1.5rem;
  }

  .shift-row {
    padding: 1rem 1.25rem;
  }

  .shift-from,
  .shift-to {
    font-size: 0.85rem;
  }

  .who-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .cta-section {
    padding: 4rem 1.5rem;
  }

  .desk {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: -120px;
  }

  .desk-card {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    opacity: 0;
  }

  .desk-card:nth-child(1) { --card-rotate: 0deg; z-index: 7;
    animation: mobileCardPop 0.7s var(--ease-out-expo) 0.1s both,
               mobileCardBounce 8s var(--ease-out-expo) 2s infinite !important; }
  .desk-card:nth-child(2) { --card-rotate: 0deg; margin-top: 0; z-index: 6;
    animation: mobileCardPop 0.7s var(--ease-out-expo) 0.2s both,
               mobileCardBounce 8s var(--ease-out-expo) 4s infinite !important; }
  .desk-card:nth-child(3) { --card-rotate: 0deg; margin-top: 0; z-index: 4;
    animation: mobileCardPop 0.7s var(--ease-out-expo) 0.3s both,
               mobileCardBounce 8s var(--ease-out-expo) 6s infinite !important; }
  .desk-card:nth-child(4) { --card-rotate: 0deg; margin-top: 0; z-index: 5;
    animation: mobileCardPop 0.7s var(--ease-out-expo) 0.4s both,
               mobileCardBounce 8s var(--ease-out-expo) 8s infinite !important; }

  .card-label { opacity: 1; transform: translateY(0); }
  .scroll-hint { display: none; }
  .insights { padding-top: 180px; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .desk-card { opacity: 1 !important; animation: none !important; }
  .scroll-hint { opacity: 1 !important; animation: none !important; }
}
