/* ═══════════════════════════════════════════════
   SENTIMENT PULSE — Design System & Global Styles
   Deep Space Theme | 2026 Design Trends
   ═══════════════════════════════════════════════ */

/* — Google Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* — CSS Custom Properties — */
:root {
  /* Core Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.4);
  --bg-glass-hover: rgba(255, 255, 255, 1);

  /* Accent Colors */
  --violet: #5B21B6;
  --violet-glow: rgba(91, 33, 182, 0.15);
  --cyan: #0284C7;
  --cyan-glow: rgba(2, 132, 199, 0.15);
  --pink: #BE185D;
  --pink-glow: rgba(190, 24, 93, 0.15);
  --green: #059669;
  --green-glow: rgba(5, 150, 105, 0.15);
  --red: #DC2626;
  --red-glow: rgba(220, 38, 38, 0.15);
  --amber: #D97706;
  --amber-glow: rgba(217, 119, 6, 0.15);
  --blue: #2563EB;
  --blue-glow: rgba(37, 99, 235, 0.15);

  /* Text Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-accent: var(--blue);

  /* Borders */
  --border-glass: rgba(15, 23, 42, 0.08); /* slightly visible borders */
  --border-glow: rgba(91, 33, 182, 0.15);

  /* Shadows */
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.05); /* very soft ambient drop shadow */
  --shadow-glow-violet: 0 0 30px var(--violet-glow);
  --shadow-glow-cyan: 0 0 30px var(--cyan-glow);
  --shadow-glow-pink: 0 0 30px var(--pink-glow);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s 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;
  scrollbar-width: thin;
  scrollbar-color: var(--violet) var(--bg-secondary);
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }

/* — Animated Gradient Mesh Background — */
.gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(91, 33, 182, 0.05), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(2, 132, 199, 0.04), transparent),
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(190, 24, 93, 0.03), transparent);
  background-color: var(--bg-secondary);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.1) rotate(2deg); opacity: 0.8; }
  100% { transform: scale(1) rotate(-1deg); opacity: 1; }
}

/* — Cursor Glow — */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

/* — Container — */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* — Glassmorphism Card — */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* added soft shadow to base */
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-normal);
  backdrop-filter: blur(0);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85); /* Light glass for navbar */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.nav-logo .logo-icon {
  width: 36px;
  background: linear-gradient(135deg, var(--amber), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow-violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ═══════════════ HERO SECTION ═══════════════ */
#particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--violet), var(--cyan), var(--pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1 .typewriter {
  display: inline;
  border-right: 3px solid var(--violet);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { border-color: var(--violet); }
  50% { border-color: transparent; }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  animation: fadeInUp 0.8s ease-out 0.6s both;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

.hero-cta .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* Sentiment Orbs */
.sentiment-orbs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.orb:nth-child(2) { animation-delay: -2s; }
.orb:nth-child(3) { animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(10deg) rotateY(0deg); }
  25% { transform: translateY(-15px) rotateX(15deg) rotateY(10deg); }
  50% { transform: translateY(-5px) rotateX(5deg) rotateY(-5deg); }
  75% { transform: translateY(-20px) rotateX(10deg) rotateY(-10deg); }
}

.orb.positive {
  background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.2));
  box-shadow: 0 0 40px var(--green-glow), inset 0 0 20px rgba(16, 185, 129, 0.3);
}

.orb.negative {
  background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.8), rgba(239, 68, 68, 0.2));
  box-shadow: 0 0 40px var(--red-glow), inset 0 0 20px rgba(239, 68, 68, 0.3);
}

.orb.neutral {
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.2));
  box-shadow: 0 0 40px var(--blue-glow), inset 0 0 20px rgba(59, 130, 246, 0.3);
}

.orb-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

/* ═══════════════ ANALYZER SECTION ═══════════════ */
.analyzer-section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.analyzer-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.analyzer-textarea {
  width: 100%;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 20px;
  resize: vertical;
  transition: var(--transition-normal);
  outline: none;
  line-height: 1.6;
  /* Neumorphic inset */
  box-shadow: inset 2px 2px 6px rgba(15, 23, 42, 0.05), inset -2px -2px 6px rgba(255, 255, 255, 0.5);
}

.analyzer-textarea::placeholder {
  color: var(--text-muted);
}

.analyzer-textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-glow), inset 2px 2px 6px rgba(15, 23, 42, 0.05);
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.analyze-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px;
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  /* Premium drop shadow */
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.analyze-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.analyze-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.analyze-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* — Result Card — */
.result-card {
  margin-top: 32px;
  padding: 32px;
  animation: slideUp 0.5s ease-out;
  display: none;
}

.result-card.visible {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.sentiment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sentiment-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentiment-badge.negative {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sentiment-badge.neutral {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Confidence Ring */
.confidence-ring-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confidence-ring {
  position: relative;
  width: 70px;
  height: 70px;
}

.confidence-ring svg {
  transform: rotate(-90deg);
}

.confidence-ring .bg-ring {
  fill: none;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 6;
}

.confidence-ring .progress-ring {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.confidence-ring .ring-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 0.9rem;
}

.confidence-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Emotion Bars */
.emotions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.emotion-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emotion-bar .emotion-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
}

.emotion-bar .emotion-label span:last-child {
  color: var(--text-secondary);
}

.emotion-bar .bar-track {
  height: 8px;
  background: rgba(15, 23, 42, 0.08); /* Dark tracking bar */
  border-radius: 4px;
  overflow: hidden;
}

.emotion-bar .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.emotion-bar.joy .bar-fill { background: linear-gradient(90deg, var(--green), #34D399); }
.emotion-bar.anger .bar-fill { background: linear-gradient(90deg, var(--red), #F87171); }
.emotion-bar.fear .bar-fill { background: linear-gradient(90deg, var(--amber), #FBBF24); }
.emotion-bar.surprise .bar-fill { background: linear-gradient(90deg, var(--violet), #A78BFA); }
.emotion-bar.sadness .bar-fill { background: linear-gradient(90deg, var(--blue), #60A5FA); }

/* Sentiment Gauge */
.gauge-container {
  margin-bottom: 28px;
}

.gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.gauge-track {
  height: 12px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--blue), var(--green));
  border-radius: 6px;
  position: relative;
  overflow: visible;
}

.gauge-thumb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-value {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

/* Highlighted Text */
.highlighted-text {
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  line-height: 2;
  font-size: 0.95rem;
}

.highlighted-text .word-positive {
  color: var(--green);
  font-weight: 600;
  border-bottom: 2px solid var(--green);
  padding-bottom: 1px;
}

.highlighted-text .word-negative {
  color: var(--red);
  font-weight: 600;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}

.keywords-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.keyword-tag {
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--violet);
  font-weight: 500;
}

/* ═══════════════ DASHBOARD SECTION ═══════════════ */
.dashboard-section {
  padding: var(--section-padding);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

/* Stat Cards */
.stat-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Chart Cards */
.chart-card {
  padding: 24px;
}

.chart-card.span-2 { grid-column: span 2; }
.chart-card.span-3 { grid-column: span 3; }
.chart-card.span-4 { grid-column: span 4; }

.chart-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-wrapper {
  position: relative;
  width: 100%;
}

/* Live Feed */
.live-feed-card {
  grid-column: span 2;
  grid-row: span 2;
  padding: 24px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-badge .live-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.feed-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
}

.feed-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  animation: slideInLeft 0.4s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.feed-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feed-platform {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
}

.feed-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.feed-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.feed-sentiment-mini {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* Filters */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-select {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  outline: none;
  box-shadow: inset 2px 2px 4px rgba(15, 23, 42, 0.05), inset -1px -1px 3px rgba(255, 255, 255, 0.5);
}

.filter-select:focus {
  border-color: var(--violet);
}

.filter-select option {
  background: var(--bg-secondary);
}

/* Word Cloud */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  min-height: 180px;
}

.word-cloud-item {
  cursor: default;
  transition: var(--transition-fast);
  font-weight: 600;
  opacity: 0.85;
}

.word-cloud-item:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* ═══════════════ HOW IT WORKS SECTION ═══════════════ */
.how-it-works-section {
  padding: var(--section-padding);
  overflow: hidden;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink), var(--green));
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  position: relative;
}

.step-card:nth-child(1) .step-number { background: linear-gradient(135deg, var(--violet), #9333EA); box-shadow: var(--shadow-glow-violet); }
.step-card:nth-child(2) .step-number { background: linear-gradient(135deg, var(--cyan), #0891B2); box-shadow: var(--shadow-glow-cyan); }
.step-card:nth-child(3) .step-number { background: linear-gradient(135deg, var(--pink), #DB2777); box-shadow: var(--shadow-glow-pink); }
.step-card:nth-child(4) .step-number { background: linear-gradient(135deg, var(--green), #059669); box-shadow: 0 0 30px var(--green-glow); }

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════ FEATURES SECTION ═══════════════ */
.features-section {
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px 28px;
  text-align: left;
  perspective: 1000px;
  cursor: default;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--shadow-glow-violet);
  border-color: rgba(124, 58, 237, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:nth-child(1) .feature-icon { background: rgba(124, 58, 237, 0.15); color: var(--violet); }
.feature-card:nth-child(2) .feature-icon { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.feature-card:nth-child(3) .feature-icon { background: rgba(236, 72, 153, 0.15); color: var(--pink); }
.feature-card:nth-child(4) .feature-icon { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.feature-card:nth-child(5) .feature-icon { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.feature-card:nth-child(6) .feature-icon { background: rgba(59, 130, 246, 0.15); color: var(--blue); }

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-glow-violet);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 15px var(--violet-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--violet);
  font-weight: 500;
}

/* ═══════════════ FLOATING CTA ═══════════════ */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

/* ═══════════════ TOAST NOTIFICATIONS ═══════════════ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  animation: toastIn 0.4s ease-out;
  backdrop-filter: blur(20px);
}

.toast.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.toast.out {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(50px); }
}

/* ═══════════════ SHIMMER / SKELETON ═══════════════ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-card.span-3 { grid-column: span 2; }
  .chart-card.span-4 { grid-column: span 2; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container::before { display: none; }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .chart-card.span-2,
  .chart-card.span-3,
  .chart-card.span-4,
  .live-feed-card { grid-column: span 1; }

  .live-feed-card { grid-row: span 1; }

  .emotions-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }

  .steps-container { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 20px;
    font-size: 0.8rem;
  }

  .analyzer-card {
    padding: 24px;
  }

  .sentiment-orbs {
    gap: 24px;
  }

  .orb {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-bar {
    flex-direction: column;
  }
}
