/* Modern TagDrop Website Styles - UX Refresh 2025 */
:root{
  --td-blue:#2563EB;
  --td-ink:#0F172A;
  --td-ink-2:#334155;
  --td-line:#E5E7EB;
  --td-surface:#FFFFFF;
  --td-surface-tint:#F8FAFF;
  --td-bg-start:#1E3A8A;
  --td-bg-mid:#2563EB;
  --td-bg-end:#9333EA;
  --td-gold-start:#FFD700;
  --td-gold-end:#FFB347;
}
/* Utilities */
.bg-brand{ background: linear-gradient(135deg,var(--td-bg-start) 0%,var(--td-bg-mid) 40%,var(--td-bg-end) 100%); }
.grad-gold{ background: linear-gradient(90deg,var(--td-gold-start),var(--td-gold-end)); -webkit-background-clip:text; background-clip:text; color: transparent; }
.grad-gold-bg{ background: linear-gradient(90deg,var(--td-gold-start),var(--td-gold-end)); }
.btn{ display:inline-flex; align-items:center; justify-content:center; height:44px; padding:0 1rem; border-radius:12px; font-weight:700; text-decoration:none; }
.btn--primary{ background: var(--td-blue); color:#fff; }
.btn--gradient{ color: var(--td-ink); border:0; background: linear-gradient(90deg,var(--td-gold-start),var(--td-gold-end)); }
.btn--ghost{ background:transparent; color:var(--td-blue); border:2px solid #dbeafe; }
.card{ background:var(--td-surface); border:1px solid #EEF2F7; border-radius:16px; padding:1rem; box-shadow:0 8px 20px rgba(0,0,0,.04); }
.section-tint{ background: var(--td-surface-tint); }
/* Video & icon helpers */
.hero__video,.impact__video,.demo__video{ border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.07); }
.play-overlay{ border:0; color:#0F172A; }
.play-overlay.grad-gold-bg{ background: linear-gradient(90deg,var(--td-gold-start),var(--td-gold-end)); }
.icon { color: var(--td-ink); }
.icon svg, .icon svg path, .icon svg use, .icon svg g { fill: currentColor; stroke: currentColor; }
.icon-blue { color: var(--td-blue); }
.icon-gold { color: var(--td-gold-start); }

  /* Purple & Gold Theme - Matching Mobile App */
  --color-purple: #6c5ce7;
  --color-purple-tint: #a29bfe;
  --color-gold: #fdcb6e;
  --color-gold-soft: #ffeaa7;
  
  /* Background Colors */
  --color-bg: #f8f9fa;
  --color-bg-light: #ffffff;
  --color-bg-dark: #2d3436;
  
  /* Text Colors */
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-text-white: #ffffff;
  --color-text-muted: #b2bec3;
  
  /* UI Colors */
  --color-border: #e9ecef;
  --color-success: #00b894;
  --color-error: #e74c3c;
  --color-warning: #f39c12;
  
  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --gradient-gold: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%);
  --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fdcb6e 100%);
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-round: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  /* Typography */
  --font-size-small: 14px;
  --font-size-body: 16px;
  --font-size-large: 18px;
  --font-size-h3: 20px;
  --font-size-h2: 24px;
  --font-size-h1: 32px;
  --font-size-hero: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility improvements */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2d3436;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100vw;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 20px;
  border-radius: 20px;
  margin: 10px 20px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1160px;
  box-shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.nav.scrolled .logo {
  color: #6c5ce7;
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.css-logo {
  width: 28px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px 0 8px 4px;
  position: relative;
  transform: rotate(-45deg);
}

.css-logo::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  top: 4px;
  left: 6px;
}

.css-logo::after {
  content: '↓';
  position: absolute;
  color: white;
  font-size: 8px;
  top: 8px;
  left: 10px;
  transform: rotate(45deg);
}

.logo-tm {
  font-size: 14px;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav.scrolled .nav-links a {
  color: #636e72;
}

.nav-links a:hover {
  color: #fdcb6e;
}

.nav.scrolled .nav-links a:hover {
  color: #6c5ce7;
}

.admin-link {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.nav.scrolled .admin-link {
  background: #6c5ce7;
  color: white !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

.nav.scrolled .mobile-menu-btn span {
  background: #6c5ce7;
}

/* Mobile menu animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Mobile navigation styles */
.nav-links.mobile-active {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 999;
  animation: slideIn 0.3s ease;
}

.nav-links.mobile-active a {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-links.mobile-active a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m0 40l40-40h-40v40zm40 0v-40h-40l40 40z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.hero-text h1 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.highlight {
  background: linear-gradient(45deg, #fdcb6e, #fd79a8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
  word-wrap: break-word;
  max-width: 100%;
}

/* Download Section */
.download-section {
  margin-bottom: 40px;
}

.download-section h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #2d3436;
  transition: all 0.3s ease;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: white;
}

.btn-icon {
  font-size: 24px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-text .small {
  font-size: 12px;
  color: #636e72;
}

.btn-text .large {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
}

/* Extension Section */
.extension-section h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.extension-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 16px;
}

.extension-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.extension-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.extension-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.extension-btn.chrome {
  border-color: rgba(76, 175, 80, 0.3);
}

.extension-btn.firefox {
  border-color: rgba(255, 152, 0, 0.3);
  opacity: 0.7;
}

.ext-badge {
  background: #00b894;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.firefox .ext-badge {
  background: #fd79a8;
}

/* Hero Demo */
.hero-demo {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.phone-mockup {
  background: linear-gradient(145deg, #2d3436, #636e72);
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-screen {
  background: linear-gradient(135deg, #6c5ce7 0%, #764ba2 100%);
  border-radius: 24px;
  width: 280px;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.app-header {
  padding: 20px 16px 16px;
  color: white;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.app-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
}

.dark-toggle {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 6px 10px;
  font-size: 14px;
}

.app-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px 20px 0 0;
  flex: 1;
  padding: 20px 16px;
  color: #2d3436;
}

.tracking-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 12px;
}

.stat {
  text-align: center;
}

.stat .number {
  font-size: 20px;
  font-weight: 700;
  color: #6c5ce7;
}

.stat .label {
  font-size: 12px;
  color: #636e72;
}

.track-input {
  margin-bottom: 20px;
}

.input-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #636e72;
}

.track-btn {
  background: #00b894;
  color: white;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.recent-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.alert-icon {
  font-size: 14px;
}

.alert-text {
  color: #2d3436;
  font-weight: 500;
}

/* Extension Demo */
.extension-demo {
  transform: rotate(3deg);
}

.browser-mockup {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  width: 320px;
}

.browser-bar {
  background: #f5f6fa;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e9ecef;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.browser-dots span:nth-child(1) { background: #ff6b6b; }
.browser-dots span:nth-child(2) { background: #feca57; }
.browser-dots span:nth-child(3) { background: #48dbfb; }

.url-bar {
  flex: 1;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #636e72;
}

.extension-icon {
  background: #6c5ce7;
  color: white;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}

.extension-popup {
  background: white;
  padding: 16px;
  min-height: 120px;
}

.popup-header {
  font-weight: 700;
  color: #6c5ce7;
  margin-bottom: 12px;
  font-size: 14px;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detected {
  color: #00b894;
  font-size: 12px;
  font-weight: 500;
}

.track-action {
  background: #00b894;
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* Content width constraints */
.hero-text,
.feature-card,
.pricing-card {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* How It Works & Features Section */
.features {
  padding: 100px 0;
  background: var(--color-bg);
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.step-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.step-emoji {
  font-size: 32px;
}

.step-card h3 {
  font-size: var(--font-size-h3);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.step-card p {
  font-size: var(--font-size-body);
  color: var(--color-text-light);
  line-height: 1.6;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 15px;
}

.feature-card p {
  color: #636e72;
  line-height: 1.7;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 60px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.95) 0%, rgba(30, 35, 50, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 220, 140, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular {
  transform: scale(1.05);
  border: 2px solid #fd79a8;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.tier-badge {
  background: #6c5ce7;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card.pro .tier-badge {
  background: #00b894;
}

.pricing-card.premium .tier-badge {
  background: #fd79a8;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #fd79a8;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: #ffdc8c;
  margin-bottom: 30px;
}

.price span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.features-list {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.features-list li {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.cta-btn {
  background: #6c5ce7;
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  width: 100%;
}

.cta-btn:hover {
  background: #5b4bd5;
  transform: translateY(-2px);
}

.pricing-card.pro .cta-btn {
  background: #00b894;
}

.pricing-card.pro .cta-btn:hover {
  background: #00a085;
}

.pricing-card.premium .cta-btn {
  background: #fd79a8;
}

.pricing-card.premium .cta-btn:hover {
  background: #fd6c96;
}

/* Footer */
.footer {
  background: #2d3436;
  padding: 60px 0 30px;
  color: #b2bec3;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.copyright {
  font-size: 14px;
  color: #636e72;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.link-group h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 16px;
}

.link-group a {
  color: #b2bec3;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.link-group a:hover {
  color: #6c5ce7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 0 50px;
  }
  
  .hero-demo {
    order: -1;
  }
  
  .phone-mockup {
    transform: none;
  }
  
  .extension-demo {
    transform: none;
  }
  
  .hero-text {
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    padding: 60px 0 40px;
    text-align: center;
    min-height: auto;
    gap: 30px;
  }
  
  .hero-text h1 {
    font-size: clamp(1.2rem, 5vw, 2rem);
    hyphens: auto;
    margin-bottom: 16px;
  }
  
  .hero-subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin-bottom: 30px;
  }
  
  .download-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .download-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .extension-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .extension-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  
  .hero {
    padding-top: 20px;
  }
  
  .hero-content {
    padding: 40px 0 30px;
    gap: 20px;
  }
  
  .hero-text {
    max-width: 100%;
    padding: 0 5px;
  }
  
  .hero-text h1 {
    font-size: 1.3rem !important;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  
  .download-section,
  .extension-section {
    margin-bottom: 25px;
  }
  
  .download-section h3,
  .extension-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .download-btn {
    min-width: 120px;
    font-size: 13px;
    padding: 10px 16px;
  }
  
  .extension-btn {
    font-size: 11px;
    padding: 8px 12px;
  }
  
  .phone-screen {
    width: 180px;
    height: 320px;
  }
  
  .browser-mockup {
    width: 200px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .logo-icon {
    width: 20px;
    height: 20px;
  }
  
  .nav {
    padding: 15px 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.pricing-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection colors */
::selection {
  background: #6c5ce7;
  color: white;
}

/* AI Demo Section */
.ai-demo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.ai-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.ai-demo-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ai-header {
  margin-bottom: 50px;
}

.ai-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.ai-demo h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(45deg, #fff, #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.ai-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.demo-form-container {
  margin-bottom: 60px;
}

.ai-tracking-form {
  max-width: 600px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#aiTrackingInput {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  font-family: inherit;
  color: #2d3436;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#aiTrackingInput:focus {
  outline: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#aiTrackingInput::placeholder {
  color: #636e72;
  opacity: 0.8;
}

.ai-submit-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}

.ai-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.4);
}

.ai-submit-btn:active {
  transform: translateY(-1px);
}

.ai-status {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.status-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.status-icon {
  font-size: 1.2rem;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.future-vision {
  margin-bottom: 50px;
}

.future-vision h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.ai-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.platform-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.platform-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.platform-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.platform-name {
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}

.platform-example {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
  display: block;
}

.ai-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
}

.benefit-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.benefit-item h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.benefit-item p {
  opacity: 0.9;
  line-height: 1.5;
}

/* Responsive Design for AI Demo */
@media (max-width: 768px) {
  .ai-demo {
    padding: 60px 0;
  }
  
  .ai-demo h2 {
    font-size: 2.2rem;
  }
  
  .ai-subtitle {
    font-size: 1.1rem;
  }
  
  .input-wrapper {
    padding: 20px;
  }
  
  #aiTrackingInput {
    padding: 16px;
    font-size: 15px;
  }
  
  .ai-platforms {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .platform-item {
    padding: 20px;
  }
  
  .ai-benefits {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .future-vision h3 {
    font-size: 1.5rem;
  }
}

/* === TagDrop Contrast Boost (dark brand) === */
:root{
  --td-page-bg:#0B1220;                 /* deep navy base */
  --td-text:#F8FAFC;                    /* near-white for body text */
  --td-text-muted:#CBD5E1;              /* slate-300 */
  --td-card-bg:rgba(255,255,255,0.04);  /* translucent card on dark */
  --td-card-border:rgba(255,255,255,0.08);
}

/* Page background uses icon's blue→purple gradient on top of deep navy */
body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(147,51,234,0.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(37,99,235,0.18), transparent 60%),
    linear-gradient(180deg, rgba(30,58,138,0.65) 0%, rgba(37,99,235,0.35) 40%, rgba(147,51,234,0.25) 100%),
    var(--td-page-bg);
  color: var(--td-text);
}

/* Header: larger logo + visible wordmark on dark */
.site-header strong{ color: var(--td-text); }
.site-header img{ width:44px; height:44px; border-radius:8px; }

/* Hero: bigger title, tighter tracking; first clause often wrapped by .grad-gold */
.hero__title{
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--td-text);
  margin-bottom: .5rem;
}
.hero__sub{ color: var(--td-text-muted); }

/* Buttons on dark */
.btn--primary{ background: var(--td-blue); color:#fff; }
.btn--gradient{ background: linear-gradient(90deg,var(--td-gold-start),var(--td-gold-end)); color:#0F172A; }
.btn--ghost{ border-color: rgba(255,255,255,0.18); color: var(--td-text); }

/* Cards on dark */
.card{
  background: var(--td-card-bg);
  border-color: var(--td-card-border);
  color: var(--td-text);
}
.section-tint{ background: rgba(255,255,255,0.02); }

/* Lists / FAQ / small text */
.faq details > summary, .hero__trust li, .why__card p, .how__card p { color: var(--td-text-muted); }

/* How it works section - ensure readability */
.how__card h3 { color: var(--td-text) !important; }
.how__card p { color: var(--td-text-muted) !important; }

/* Main website how it works - fix actual class names */
.step-card h3 { color: var(--td-text) !important; }
.step-card p { color: var(--td-text-muted) !important; }
.how-it-works-grid .step-card { background: var(--td-card-bg) !important; border-color: var(--td-card-border) !important; }

/* Videos keep radius & shadow (already present); add subtle outline for contrast */
.hero__video, .impact__video, .demo__video, .video-frame {
  outline: 1px solid rgba(255,255,255,0.06);
  outline-offset: 0;
}

/* Nav links contrast on dark - make header buttons readable */
.site-nav a { color: var(--td-text) !important; }
.site-nav a.btn { color: #ffffff !important; background: var(--td-blue) !important; }
.site-nav a.btn--gradient { color: #0F172A !important; }

/* All text readability fixes */
h1, h2, h3, h4, h5, h6 { color: var(--td-text) !important; }
p, .hero-subtitle, .benefit-content p { color: var(--td-text-muted) !important; }

/* How it works section - target the exact elements with maximum specificity and override CSS variables */
section.features h2, .features h2, #features h2 { color: var(--td-text) !important; }
.how-it-works-grid .step-card { 
  background: var(--td-card-bg) !important; 
  border: 1px solid var(--td-card-border) !important; 
}
.how-it-works-grid .step-card h3 { 
  color: var(--td-text) !important; 
  color: #F8FAFC !important; /* Hard-coded fallback for maximum specificity */
}
.how-it-works-grid .step-card p { 
  color: var(--td-text-muted) !important; 
  color: #CBD5E1 !important; /* Hard-coded fallback for maximum specificity */
}

/* Override the original CSS variables being used in step-card styles */
.step-card h3 { 
  color: #F8FAFC !important; /* Near-white text for maximum contrast on dark */
}
.step-card p { 
  color: #CBD5E1 !important; /* Muted but readable text */
}
.step-card {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* Header buttons and navigation readability */
.site-nav .btn, .nav-links a, .beta-link, .download-btn { 
  color: #FFFFFF !important; /* Ensure all header buttons have white text */
}
.btn--gradient, .beta-link { 
  color: #0F172A !important; /* Dark text on gold/gradient backgrounds */
}
.nav-links a:not(.beta-link):not([style*="background"]) {
  color: #F8FAFC !important; /* Regular nav links */
}

/* Step cards and any other cards */
.card, .benefit-item, .step-card { 
  background: var(--td-card-bg) !important; 
  border: 1px solid var(--td-card-border) !important; 
}
.card h3, .card h4, .benefit-item h4 { color: var(--td-text) !important; }
.card p, .benefit-item p { color: var(--td-text-muted) !important; }

/* Icon utilities already exist; ensure icons default to blue on dark if not specified */
.icon { color: var(--td-text); }
.how__icon.icon-blue { color: var(--td-blue); }
.how__icon.icon-gold { color: var(--td-gold-start); }


/* === TagDrop Optional Polish === */
:root{
  --td-card-bg: rgba(255,255,255,0.04);
  --td-card-border: rgba(255,255,255,0.08);
  --td-text: #F8FAFC;
  --td-text-muted: #CBD5E1;
}

/* Glass cards on dark */
.card{
  background: var(--td-card-bg);
  border-color: var(--td-card-border);
  backdrop-filter: saturate(130%) blur(6px);
}

/* One-liner readability tweaks */
.hero__sub, .why__card p, .how__card p, .hero__trust li, .faq details > summary { color: var(--td-text-muted); }

/* Focus: brand gold & accessible */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--td-gold-start);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Hover polish */
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); transition: transform .15s ease, filter .15s ease; }
.btn--gradient:hover { box-shadow: 0 6px 22px rgba(255, 179, 71, .35); transition: box-shadow .15s ease, transform .15s ease; transform: translateY(-1px); }

/* Details/FAQ affordance on dark */
.faq details { border: 1px solid var(--td-card-border); border-radius: 12px; padding: .5rem .75rem; background: rgba(255,255,255,0.02); }
.faq details + details { margin-top: .5rem; }
