/* ============================================
   PagePulse — Microsoft Fluent Design Theme
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #0078D4;
  --primary-dark: #005a9e;
  --accent-purple: #7B2FBE;
  --accent-cyan: #00BCF2;
  --gradient-hero: linear-gradient(135deg, #0078D4 0%, #7B2FBE 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,120,212,0.08) 0%, rgba(123,47,190,0.08) 100%);

  /* Light mode */
  --bg: #f8f9fa;
  --bg-secondary: #eef2f7;
  --card-bg: #ffffff;
  --card-border: rgba(0, 120, 212, 0.12);
  --text-primary: #1a1a2e;
  --text-secondary: #5a6270;
  --text-muted: #8a929e;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 120, 212, 0.2);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #1a1a2e;
  --bg-secondary: #16213e;
  --card-bg: #16213e;
  --card-border: rgba(0, 188, 242, 0.15);
  --text-primary: #f0f4f8;
  --text-secondary: #a8b4c0;
  --text-muted: #6b7a8a;
  --nav-bg: rgba(26, 26, 46, 0.97);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 188, 242, 0.2);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
}

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

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-purple); }

img { max-width: 100%; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), border-color var(--transition);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

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

.nav-links a:hover {
  color: var(--primary);
  background: rgba(0, 120, 212, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#themeToggle {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

#themeToggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-cta {
  background: var(--gradient-hero);
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 188, 242, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 47, 190, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    background:
      radial-gradient(circle at 20% 80%, rgba(0, 188, 242, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(123, 47, 190, 0.3) 0%, transparent 50%);
  }
  to {
    background:
      radial-gradient(circle at 70% 30%, rgba(0, 188, 242, 0.25) 0%, transparent 50%),
      radial-gradient(circle at 30% 70%, rgba(123, 47, 190, 0.35) 0%, transparent 50%);
  }
}

/* Floating particles */
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge span { opacity: 0.85; }

.hero-logo {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInDown 0.9s ease 0.1s both;
}

.hero-logo .bolt { display: inline-block; animation: wiggle 3s linear infinite; }

@keyframes wiggle {
  0%, 90%, 100% { transform: rotate(0deg); }
  95% { transform: rotate(20deg); }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 0.75rem;
  animation: fadeInDown 1s ease 0.2s both;
}

.hero-subtitle {
  font-size: clamp(0.875rem, 2vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInDown 1.1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInDown 1.2s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero-author {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  animation: fadeInDown 1.3s ease 0.5s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.6);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Shared Section Styles
   ============================================ */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-label {
  display: inline-block;
  background: rgba(0, 120, 212, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

[data-theme="dark"] .section-label {
  background: rgba(0, 188, 242, 0.15);
  color: var(--accent-cyan);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Card base */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* ============================================
   Section 1: Stats Bar
   ============================================ */
.stats-section {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
}

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

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

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

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  position: relative;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  display: block;
  margin-bottom: 0.375rem;
  position: relative;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  position: relative;
}

/* ============================================
   Section 2: Problem Cards
   ============================================ */
.problem-section {
  background: var(--bg);
}

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

.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.problem-card:hover::after { transform: scaleX(1); }

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.problem-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 1rem;
}

.problem-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}

.problem-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   Section 3: AI Agents (Tabs)
   ============================================ */
.agents-section {
  background: var(--bg-secondary);
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 120, 212, 0.06);
}

.tab-btn.active {
  background: var(--gradient-hero);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.35);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: pointer;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.agent-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.agent-name {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}

.agent-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.agent-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background: rgba(0, 120, 212, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .tech-badge {
  background: rgba(0, 188, 242, 0.12);
  color: var(--accent-cyan);
}

.agent-impact {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
}

/* ============================================
   Section 4: Architecture
   ============================================ */
.architecture-section {
  background: var(--bg);
}

.arch-diagram {
  max-width: 900px;
  margin: 0 auto;
}

.arch-layer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 0;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.arch-layer:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.arch-layer-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.arch-layer-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-layer-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.arch-layer-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.arch-pill {
  padding: 0.4375rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid;
}

.arch-pill-1 {
  background: rgba(0, 120, 212, 0.1);
  color: var(--primary);
  border-color: rgba(0, 120, 212, 0.3);
}

.arch-pill-2 {
  background: rgba(123, 47, 190, 0.1);
  color: var(--accent-purple);
  border-color: rgba(123, 47, 190, 0.3);
}

.arch-pill-3 {
  background: rgba(0, 188, 242, 0.1);
  color: #0099cc;
  border-color: rgba(0, 188, 242, 0.3);
}

[data-theme="dark"] .arch-pill-3 { color: var(--accent-cyan); }

.arch-pill-4 {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .arch-pill-4 { color: #4ade80; }

.arch-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  position: relative;
}

.arch-arrow::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent-purple));
  opacity: 0.4;
}

.arch-arrow svg {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 50%;
  padding: 2px;
}

/* ============================================
   Section 1B: Data Sources
   ============================================ */
.sources-section {
  background: var(--bg-secondary);
}

.sources-category {
  margin-bottom: 2.5rem;
}

.sources-category-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
}

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

.source-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.source-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 120, 212, 0.18);
  border-color: var(--primary);
}

.source-card-icon {
  font-size: 1.625rem;
  line-height: 1;
}

.source-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.source-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Source card left-border accent colors */
.source-card-community { border-left: 4px solid #0078D4; }
.source-card-ideas      { border-left: 4px solid #7B2FBE; }
.source-card-linkedin   { border-left: 4px solid #0A66C2; }
.source-card-twitter    { border-left: 4px solid #1DA1F2; }
.source-card-reddit     { border-left: 4px solid #FF4500; }
.source-card-stackoverflow { border-left: 4px solid #F48024; }
.source-card-techcomm   { border-left: 4px solid #008575; }
.source-card-github     { border-left: 4px solid #333; }
.source-card-docs       { border-left: 4px solid #00BCF2; }

[data-theme="dark"] .source-card-github { border-left-color: #aaa; }

/* ============================================
   Section 5B: Community Feedback Feed
   ============================================ */
.feedback-feed-section {
  background: var(--bg);
}

/* Summary Stats */
.feed-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feed-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
}

.feed-stat-pain   { border-color: rgba(239,68,68,0.35); }
.feed-stat-feature { border-color: rgba(234,179,8,0.35); }
.feed-stat-positive { border-color: rgba(34,197,94,0.35); }

/* Filter Bar */
.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Feed container */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.feed-container::-webkit-scrollbar {
  width: 6px;
}
.feed-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}
.feed-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
.feed-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Feedback card */
.feed-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  border-left: 4px solid var(--card-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feed-card:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-hover);
}

/* Left border accent per source */
.feed-card-community    { border-left-color: #0078D4; }
.feed-card-ideas        { border-left-color: #7B2FBE; }
.feed-card-reddit       { border-left-color: #FF4500; }
.feed-card-stackoverflow { border-left-color: #F48024; }
.feed-card-linkedin     { border-left-color: #0A66C2; }
.feed-card-techcommunity { border-left-color: #008575; }

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.625rem;
}

/* Source badges */
.source-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}

.badge-community    { background: rgba(0,120,212,0.12);   color: #0078D4; }
.badge-ideas        { background: rgba(123,47,190,0.12);  color: #7B2FBE; }
.badge-reddit       { background: rgba(255,69,0,0.12);    color: #cc3700; }
.badge-stackoverflow { background: rgba(244,128,36,0.12); color: #c06000; }
.badge-linkedin     { background: rgba(10,102,194,0.12);  color: #0A66C2; }
.badge-techcommunity { background: rgba(0,133,117,0.12);  color: #008575; }

[data-theme="dark"] .badge-reddit        { color: #ff6a33; }
[data-theme="dark"] .badge-stackoverflow { color: #f48024; }

/* Sentiment badges */
.sentiment-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  margin-left: auto;
}

.badge-pain     { background: rgba(239,68,68,0.12);  color: #dc2626; }
.badge-feature  { background: rgba(234,179,8,0.12);  color: #a16207; }
.badge-positive { background: rgba(34,197,94,0.12);  color: #16a34a; }

[data-theme="dark"] .badge-pain     { color: #f87171; }
[data-theme="dark"] .badge-feature  { color: #fde047; }
[data-theme="dark"] .badge-positive { color: #4ade80; }

.feed-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition);
}

.feed-card-title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

.feed-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.feed-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.feed-card-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.feed-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.feed-card.feed-hidden {
  display: none;
}

/* ============================================
   Section 5: GTM Dashboard
   ============================================ */
.dashboard-section {
  background: var(--bg-secondary);
}

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

.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

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

/* Bar Chart */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
}

.bar-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: right;
}

.bar-track {
  background: var(--bg-secondary);
  border-radius: 100px;
  height: 28px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.bar-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Launch Readiness Table */
.readiness-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.readiness-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0 0.5rem 0.75rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.readiness-table td {
  padding: 0.875rem 0.5rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.readiness-table tr:last-child td { border-bottom: none; }

.feature-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.625rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  min-width: 52px;
}

.score-green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.score-yellow {
  background: rgba(234, 179, 8, 0.12);
  color: #a16207;
}

.score-red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

[data-theme="dark"] .score-green { color: #4ade80; }
[data-theme="dark"] .score-yellow { color: #fde047; }
[data-theme="dark"] .score-red { color: #f87171; }

.check { color: #22c55e; font-size: 1rem; }
.cross { color: #ef4444; font-size: 1rem; }

/* ============================================
   Section 6: Roadmap Timeline
   ============================================ */
.roadmap-section {
  background: var(--bg);
}

.timeline {
  display: flex;
  gap: 0;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #22c55e, #0078D4, #7B2FBE, #f59e0b);
  border-radius: 3px;
}

.timeline-item {
  flex: 1;
  padding: 0 0.75rem;
  position: relative;
  padding-top: 72px;
}

.timeline-dot {
  position: absolute;
  top: 33px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  z-index: 1;
  box-shadow: 0 0 0 3px currentColor;
}

.timeline-dot-1 { background: #22c55e; color: #22c55e; }
.timeline-dot-2 { background: #0078D4; color: #0078D4; }
.timeline-dot-3 { background: #7B2FBE; color: #7B2FBE; }
.timeline-dot-4 { background: #f59e0b; color: #f59e0b; }

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.timeline-phase {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.375rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.status-start { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.status-quick { background: rgba(0, 120, 212, 0.12); color: var(--primary); }
.status-recurring { background: rgba(123, 47, 190, 0.12); color: var(--accent-purple); }
.status-flagship { background: rgba(245, 158, 11, 0.12); color: #d97706; }

[data-theme="dark"] .status-start { color: #4ade80; }
[data-theme="dark"] .status-flagship { color: #fbbf24; }

/* ============================================
   Section 7: Why This Matters
   ============================================ */
.impact-section {
  background: var(--bg-secondary);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.impact-card:hover::before { transform: scaleX(1); }

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.impact-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 1rem;
}

.impact-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}

.impact-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   Section 8: Tech Stack
   ============================================ */
.techstack-section {
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.tech-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: default;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.tech-item-icon {
  font-size: 1.875rem;
  display: block;
  margin-bottom: 0.625rem;
}

.tech-item-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0a0a1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-link:hover { color: var(--accent-cyan); }

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 1rem;
}

.footer-notice {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Keyframes */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem;
    gap: 0.25rem;
    backdrop-filter: blur(16px);
  }

  .nav-links.open a { padding: 0.75rem 1rem; }

  .hamburger { display: flex; }

  .nav-cta { display: none; }

  section { padding: 3.5rem 1.25rem; }

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

  .timeline {
    flex-direction: column;
    gap: 1.5rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 11px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(to bottom, #22c55e, #0078D4, #7B2FBE, #f59e0b);
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 3.5rem;
    padding-right: 0;
  }

  .timeline-dot {
    top: 12px;
    left: 0;
    transform: none;
  }

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

  .bar-item { grid-template-columns: 100px 1fr 36px; }

  .readiness-table { font-size: 0.8125rem; }
  .readiness-table th,
  .readiness-table td { padding: 0.625rem 0.375rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .sources-grid { grid-template-columns: 1fr; }
  .feed-stats { gap: 0.5rem; }
  .feed-filters { gap: 0.375rem; }
}
