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

:root {
  /* Light Mode Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-border: #E2E8F0;
  --color-primary: #22C55E;
  --color-primary-hover: #16A34A;
  --color-primary-light: #DCFCE7;
  --color-secondary: #0EA5E9;
  --color-accent: #F59E0B;
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 4px 20px rgba(34, 197, 94, 0.25);
  --shadow-primary-lg: 0 10px 40px rgba(34, 197, 94, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

.dark-mode {
  /* Dark Mode Colors */
  --color-bg: #0F172A;
  --color-bg-alt: #1E293B;
  --color-bg-card: #1E293B;
  --color-text: #F1F5F9;
  --color-text-secondary: #94A3B8;
  --color-border: #334155;
  --color-primary: #4ADE80;
  --color-primary-hover: #22C55E;
  --color-primary-light: rgba(74, 222, 128, 0.15);
  --color-secondary: #38BDF8;
  --color-accent: #FBBF24;
  --color-success: #4ADE80;
  --color-error: #F87171;
  --color-warning: #FBBF24;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 4px 20px rgba(74, 222, 128, 0.3);
  --shadow-primary-lg: 0 10px 40px rgba(74, 222, 128, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* Animated background for dark mode */
.dark-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo i {
  color: var(--color-primary);
  font-size: 1.8rem;
}

.dark-mode .logo i {
  color: var(--color-success);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: rotate(15deg);
}

.dark-mode .theme-toggle:hover {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

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

.dark-mode .btn-primary {
  background: var(--color-success);
}

.dark-mode .btn-primary:hover {
  background: #22C55E;
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-card);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.dark-mode .hero-badge {
  background: rgba(74, 222, 128, 0.15);
  color: var(--color-success);
}

.hero-badge i {
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .hero-title .highlight {
  background: linear-gradient(135deg, #4ADE80 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== INTERACTIVE DEMO ==================== */
.demo-section {
  margin-top: 80px;
}

.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.dark-mode .demo-container {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.demo-header {
  background: var(--color-bg-alt);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.demo-window-controls {
  display: flex;
  gap: 8px;
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot.red { background: #FF5F57; }
.demo-dot.yellow { background: #FEBC2E; }
.demo-dot.green { background: #28C840; }

.demo-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.demo-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 500px;
}

.demo-sidebar {
  background: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
  padding: 24px;
}

.demo-sidebar-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
}

.demo-sidebar-item:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.demo-sidebar-item.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.dark-mode .demo-sidebar-item.active {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

.demo-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==================== UNIFIED DEMO CARD ==================== */
.demo-unified-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.dark-mode .demo-unified-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

/* AI Analysis Banner */
.demo-ai-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dark-mode .demo-ai-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  border-bottom-color: rgba(239, 68, 68, 0.4);
}

.demo-ai-banner.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-bottom-color: rgba(34, 197, 94, 0.3);
}

.dark-mode .demo-ai-banner.success {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
  border-bottom-color: rgba(74, 222, 128, 0.4);
}

.demo-ai-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-error);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.demo-ai-banner.success .demo-ai-banner-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-primary);
}

.dark-mode .demo-ai-banner.success .demo-ai-banner-icon {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

.demo-ai-banner-content {
  flex: 1;
}

.demo-ai-banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.demo-ai-banner-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.demo-ai-banner-badge {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-ai-banner.success .demo-ai-banner-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-primary);
}

.dark-mode .demo-ai-banner.success .demo-ai-banner-badge {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

/* Email Section */
.demo-email {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.demo-email-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.demo-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.demo-email-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.demo-email-info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.demo-email-subject {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.demo-email-body {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* AI Response Section */
.demo-response {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(14, 165, 233, 0.08) 100%);
  border-top: 1px solid var(--color-primary);
  padding: 24px;
}

.dark-mode .demo-response {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-top-color: rgba(74, 222, 128, 0.3);
}

.demo-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.dark-mode .demo-response-header {
  border-bottom-color: rgba(74, 222, 128, 0.2);
}

.demo-response-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-mode .demo-response-label {
  background: var(--color-success);
}

.demo-response-meta {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.demo-response-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-response-content {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.demo-response-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.dark-mode .demo-response-footer {
  border-top-color: rgba(74, 222, 128, 0.2);
}

.demo-response-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-response-tag {
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

.dark-mode .demo-response-tag {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

/* Response Badge */
.demo-response-badge {
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-response-badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-primary);
}

.dark-mode .demo-response-badge.success {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

/* Demo Tag */
.demo-tag {
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

.dark-mode .demo-tag {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

.demo-response-content {
  color: var(--color-text);
  line-height: 1.7;
}

.demo-response-price {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-primary);
}

.dark-mode .demo-response-price {
  background: rgba(74, 222, 128, 0.2);
  color: var(--color-success);
}

.demo-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.demo-btn-approve {
  background: var(--color-primary);
  color: white;
}

.dark-mode .demo-btn-approve {
  background: var(--color-success);
}

.demo-btn-approve:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-primary);
}

.demo-btn-edit {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.demo-btn-edit:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
}

/* ==================== COLLAPSIBLE EMAIL CARD ==================== */
.demo-collapsed .demo-collapsible-content {
  display: none;
}

.demo-email-header-clickable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-email-header-clickable:hover {
  background: var(--color-bg-alt);
}

.dark-mode .demo-email-header-clickable:hover {
  background: rgba(255, 255, 255, 0.05);
}

.demo-expand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dark-mode .demo-expand-icon {
  background: rgba(255, 255, 255, 0.1);
}

.demo-email-header-clickable:hover .demo-expand-icon {
  background: var(--color-primary);
  color: white;
}

.dark-mode .demo-email-header-clickable:hover .demo-expand-icon {
  background: var(--color-success);
}

.demo-expand-icon i {
  transition: transform 0.3s ease;
}

.demo-collapsed .demo-expand-icon i {
  transform: rotate(180deg);
}

.demo-unified-card:not(.demo-collapsed) .demo-expand-icon i {
  transform: rotate(0deg);
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.3s ease;
}

.dark-mode .feature-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.dark-mode .feature-icon {
  background: rgba(74, 222, 128, 0.15);
  color: var(--color-success);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.dark-mode .pricing-section {
  background: linear-gradient(180deg, transparent 0%, rgba(74, 222, 128, 0.05) 50%, transparent 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
}

.dark-mode .pricing-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.popular {
  border: 2px solid var(--color-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.dark-mode .pricing-card.popular {
  border-color: var(--color-success);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-mode .pricing-badge {
  background: var(--color-success);
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text);
}

.pricing-price .period {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.dark-mode .pricing-features li i {
  color: var(--color-success);
}

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

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-bg-alt);
  padding: 60px 0 24px;
  border-top: 1px solid var(--color-border);
}

.dark-mode .footer {
  background: rgba(15, 23, 42, 0.8);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-column ul a:hover {
  color: var(--color-primary);
}

.dark-mode .footer-column ul a:hover {
  color: var(--color-success);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .demo-main {
    padding: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.dark-mode::-webkit-scrollbar-thumb:hover {
  background: var(--color-success);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-cta {
  animation-delay: 0.3s;
}

.demo-container {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.dark-mode .modal-content {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-error);
  color: white;
  transform: rotate(90deg);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--color-bg-alt);
  padding: 6px;
  border-radius: var(--radius-lg);
}

.auth-tab {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--color-bg-card);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.dark-mode .auth-tab.active {
  color: var(--color-success);
}

.auth-form {
  display: block;
}

.auth-form.hidden {
  display: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.dark-mode .form-group input:focus {
  border-color: var(--color-success);
}

.auth-error {
  margin-top: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ==================== DEMO CONTENT SECTIONS ==================== */
.demo-content-panel {
  display: none;
}

.demo-content-panel.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.demo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.demo-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.demo-price-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 16px 0;
  border-left: 4px solid;
}

.demo-price-info-card.error {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.05);
}

.demo-price-info-card.success {
  border-color: var(--color-primary);
  background: rgba(34, 197, 94, 0.05);
}

.dark-mode .demo-price-info-card.success {
  background: rgba(74, 222, 128, 0.08);
}

.demo-price-info-card .label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.demo-price-info-card .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.demo-price-info-card.error .value {
  color: var(--color-error);
}

.demo-price-info-card.success .value {
  color: var(--color-primary);
}

.dark-mode .demo-price-info-card.success .value {
  color: var(--color-success);
}

.demo-list-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.demo-list-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.dark-mode .demo-list-item:hover {
  border-color: var(--color-success);
}

.demo-list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.demo-list-item-title {
  font-weight: 600;
  color: var(--color-text);
}

.demo-list-item-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.demo-list-item-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.demo-list-item-status.sent {
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-secondary);
}

.demo-list-item-status.approved {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-primary);
}

.demo-list-item-status.flagged {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.demo-settings-group {
  margin-bottom: 24px;
}

.demo-settings-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.demo-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.demo-settings-item-label {
  color: var(--color-text);
}

.demo-settings-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.demo-toggle {
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-toggle.active {
  background: var(--color-primary);
}

.dark-mode .demo-toggle.active {
  background: var(--color-success);
}

.demo-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--radius-full);
  transition: transform 0.2s ease;
}

.demo-toggle.active::after {
  transform: translateX(22px);
}
