/* AmberDetect Website - Design System */

:root {
  /* Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.8);
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: rgba(245, 158, 11, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --success: #22c55e;
  --danger: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-4px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo svg,
.nav-logo-img {
  width: auto;
  height: 32px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    border-bottom: 1px solid var(--border);
    animation: slideDown var(--transition-normal) ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-md);
    text-align: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
  }

  .nav-links a:hover {
    background: var(--bg-secondary);
  }

  .nav-cta {
    margin-top: var(--space-sm);
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  /* Hamburger to X animation */
  .nav-toggle svg {
    transition: transform var(--transition-normal);
  }

  .nav-toggle.active svg {
    transform: rotate(90deg);
  }

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  background:
    radial-gradient(ellipse at top, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    var(--bg-primary);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--space-lg);
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.hero-feature svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

.hero-visual {
  position: relative;
}

.hero-dashboard {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.dashboard-title {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dashboard-controls {
  display: flex;
  gap: var(--space-sm);
}

.dashboard-select {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.dashboard-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.stat-bar {
  flex: 1;
  height: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: var(--radius-md);
  transition: width 1s ease;
  width: 0;
}

.stat-fill.appreciation {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.stat-fill.appreciation.visible {
  width: 52%;
}

.stat-fill.questions {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-fill.questions.visible {
  width: 18%;
}

.stat-fill.feedback {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.stat-fill.feedback.visible {
  width: 12%;
}

.stat-fill.political {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stat-fill.political.visible {
  width: 8%;
}

.stat-fill.spam {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-fill.spam.visible {
  width: 5%;
}

.stat-fill.scam {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.stat-fill.scam.visible {
  width: 3%;
}

.stat-fill.other {
  background: linear-gradient(90deg, #64748b, #475569);
}

.stat-fill.other.visible {
  width: 2%;
}

.stat-label {
  min-width: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.stat-action {
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stat-action:hover {
  background: rgba(239, 68, 68, 0.2);
}

.stat-action.deleted {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}


/* ============================================
   HERO TABS & PERSONA SWITCHER
   ============================================ */
.hero-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  grid-column: 1 / -1;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-tab svg {
  width: 20px;
  height: 20px;
}

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

.hero-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.hero-tab.active svg {
  color: var(--bg-primary);
}

/* Persona Content */
.hero-persona {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.hero-persona.active {
  visibility: visible;
  height: auto;
  overflow: visible;
  opacity: 1;
}

@media (max-width: 968px) {
  .hero-persona {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-persona .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-persona .hero-ctas {
    justify-content: center;
  }

  .hero-persona .hero-features {
    align-items: center;
  }
}

/* ============================================
   VIEWER COMMENT DEMO
   ============================================ */
.hero-comment-demo {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.demo-comment {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  position: relative;
}

.demo-comment.scam {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.05);
}

.demo-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.demo-avatar.scam-avatar {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  font-size: 1.25rem;
}

.demo-content {
  flex: 1;
  min-width: 0;
}

.demo-author {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.scam-badge {
  font-size: 0.6875rem;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-radius: var(--radius-full);
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.demo-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-warning {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
  grid-column: 1 / -1;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.problem-card {
  text-align: center;
  padding: var(--space-xl);
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--danger);
}

.problem-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution {
  padding: var(--space-3xl) 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.solution-card {
  text-align: center;
}

.solution-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  padding: var(--space-md);
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  color: var(--accent);
}

.solution-card h3 {
  margin-bottom: var(--space-sm);
}

@media (max-width: 968px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 568px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.category-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.category-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.category-icon.harmful {
  background: rgba(239, 68, 68, 0.15);
}

.category-icon.neutral {
  background: rgba(59, 130, 246, 0.15);
}

.category-icon.positive {
  background: rgba(34, 197, 94, 0.15);
}

.category-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.category-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.category-tier {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.category-tier.free {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.category-tier.pro {
  background: var(--accent-light);
  color: var(--accent);
}

@media (max-width: 968px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 568px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  padding: var(--space-3xl) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: var(--space-xl);
}

.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.pricing-name {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

.pricing-card .btn {
  width: 100%;
}

@media (max-width: 668px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: var(--space-3xl) 0;
  background:
    radial-gradient(ellipse at bottom, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    var(--bg-secondary);
  text-align: center;
}

.cta h2 {
  margin-bottom: var(--space-md);
}

.cta p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

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

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

@media (max-width: 668px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: var(--space-lg);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  width: 100%;
  max-width: 900px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.btn-demo {
  cursor: pointer;
}