/* AI File Cleaner - Wispr-inspired Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Wispr Flow inspired theme */
:root {
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #6D28D9;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --success: #22C55E;
  --warning: #EAB308;
  --danger: #EF4444;
  
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F5F5F5;
  --bg-dark: #0A0A0A;
  --bg-dark-secondary: #171717;
  
  --text-primary: #0A0A0A;
  --text-secondary: #525252;
  --text-tertiary: #A3A3A3;
  --text-inverse: #FFFFFF;
  
  --border-light: #E5E5E5;
  --border-medium: #D4D4D4;
  
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --gradient-hero: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
  --gradient-cta: linear-gradient(135deg, #7C3AED 0%, #9333EA 50%, #A855F7 100%);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 60px -15px rgba(124, 58, 237, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.app {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
}

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

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

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-icon {
  font-size: 1.25rem;
}

.btn-disabled {
  background: var(--gradient-primary);
  color: white;
  cursor: default;
  opacity: 0.9;
}

/* Text Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-tertiary); }

/* Section Styles */
section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

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

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

@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 80px 0 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.3));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.badge-icon {
  font-size: 1.125rem;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-requirements {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Hero Mockup */
.hero-illustration {
  margin-top: 60px;
  width: 100%;
  max-width: 900px;
}

.mockup-window {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  border: 1px solid var(--border-light);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

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

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

.mockup-title {
  margin-left: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mockup-content {
  padding: 24px;
}

.mockup-scan {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.scan-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.scan-icon {
  font-size: 1.5rem;
}

.scan-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.scan-size {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.scan-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scan-item.high .scan-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.scan-item.medium .scan-badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.scan-item.low .scan-badge {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ========== FEATURES SECTION ========== */
.features {
  background: var(--bg-primary);
}

.features-grid {
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: var(--radius-lg);
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========== HOW IT WORKS SECTION ========== */
.how-it-works {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-light), var(--primary), var(--accent), var(--border-light));
  z-index: 0;
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before {
    display: none;
  }
}

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

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-light);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 20px auto;
  background: var(--bg-secondary);
  border-radius: 50%;
  font-size: 2rem;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ========== WHAT IT FINDS SECTION ========== */
.what-it-finds {
  background: var(--bg-primary);
}

.categories-grid {
  gap: 20px;
}

.category-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  background: var(--bg-primary);
}

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

.category-header {
  padding: 20px 24px;
  color: white;
}

.category-header h3 {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

.category-items {
  padding: 16px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.category-item:hover {
  background: var(--bg-secondary);
}

.category-item code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.category-item span {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ========== PRIVACY SECTION ========== */
.privacy {
  background: var(--bg-secondary);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .privacy-illustration {
    order: -1;
  }
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.privacy-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.privacy-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

.privacy-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.privacy-feature p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Shield Illustration */
.privacy-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield {
  width: 120px;
  height: 120px;
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2xl);
  z-index: 10;
  border: 1px solid var(--border-light);
}

.shield-icon {
  font-size: 3.5rem;
}

.shield-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid;
  border-color: var(--primary);
  animation: pulse 3s ease-in-out infinite;
}

.ring-1 {
  width: 180px;
  height: 180px;
  opacity: 0.3;
  animation-delay: 0s;
}

.ring-2 {
  width: 230px;
  height: 230px;
  opacity: 0.2;
  animation-delay: 0.5s;
}

.ring-3 {
  width: 280px;
  height: 280px;
  opacity: 0.1;
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: var(--ring-opacity, 0.2); }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: calc(var(--ring-opacity, 0.2) * 1.5); }
}

/* ========== CTA SECTION ========== */
.cta {
  background: var(--bg-primary);
  padding: 120px 0;
}

.cta-card {
  padding: 80px 60px;
  border-radius: var(--radius-2xl);
  text-align: center;
  background: var(--gradient-cta);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .cta-card {
    padding: 60px 32px;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.cta-content > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.cta-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
  .stat-divider {
    display: none;
  }
  .cta-stats {
    gap: 32px;
  }
}

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

.cta .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
}

.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cta .btn-disabled {
  background: white;
  color: var(--primary);
}

.cta-requirements {
  margin-top: 32px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 44px;
  height: 44px;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

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

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.coming-soon-text {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  font-style: italic;
  opacity: 0.7;
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.footer-copyright {
  opacity: 0.7;
}
