/* ExtractMD Website - Shared Theme */
/* Consistent with extension popup/options design */

/* Font Import - JetBrains Mono for developer aesthetic */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Variables - Light Mode (Default)
   ============================================ */
:root {
  /* Backgrounds */
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #ebebeb;
  --bg-hover: #e8e8e8;
  
  /* Text */
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --text-inverse: #fafafa;
  
  /* Accent - Teal */
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: #ccfbf1;
  --accent-muted: #99f6e4;
  
  /* Borders */
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  
  /* Status */
  --success: #22c55e;
  --success-bg: #dcfce7;
  --success-border: #bbf7d0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
}

/* ============================================
   CSS Variables - Dark Mode (System Preference)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Backgrounds */
    --bg-primary: #171717;
    --bg-secondary: #1f1f1f;
    --bg-tertiary: #2a2a2a;
    --bg-hover: #333333;
    
    /* Text */
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --text-inverse: #171717;
    
    /* Accent - Brighter Teal for dark mode */
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-light: #134e4a;
    --accent-muted: #115e59;
    
    /* Borders */
    --border: #333333;
    --border-strong: #404040;
    
    /* Status */
    --success: #4ade80;
    --success-bg: #14532d;
    --success-border: #166534;
    
    /* 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);
  }
}

/* ============================================
   CSS Variables - Dark Mode (Manual Override)
   ============================================ */
:root[data-theme="dark"] {
  /* Backgrounds */
  --bg-primary: #171717;
  --bg-secondary: #1f1f1f;
  --bg-tertiary: #2a2a2a;
  --bg-hover: #333333;
  
  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-inverse: #171717;
  
  /* Accent - Brighter Teal for dark mode */
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-light: #134e4a;
  --accent-muted: #115e59;
  
  /* Borders */
  --border: #333333;
  --border-strong: #404040;
  
  /* Status */
  --success: #4ade80;
  --success-bg: #14532d;
  --success-border: #166534;
  
  /* 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);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Theme Switcher
   ============================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Hide icons based on theme */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

/* Dark mode: show sun, hide moon */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-inverse);
}

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

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

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ============================================
   Screenshot / Hero Image
   ============================================ */
.hero-image {
  margin-top: 48px;
  padding: 0 24px;
}

.screenshot-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.screenshot-container img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.screenshot-placeholder {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 80px 0;
}

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

.section-header h2 {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.step {
  text-align: center;
}

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

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Privacy Highlights
   ============================================ */
.privacy-highlights {
  padding: 80px 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
}

.privacy-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-item span {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--accent-light);
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================
   Privacy Policy Page
   ============================================ */
.privacy-page {
  padding: 60px 0;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.privacy-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.privacy-content h2 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px 0;
}

.privacy-content h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
}

.privacy-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.7;
}

.privacy-content ul,
.privacy-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.privacy-content li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.privacy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
  font-size: 14px;
}

.privacy-content th,
.privacy-content td {
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border);
}

.privacy-content th {
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.privacy-content td {
  color: var(--text-secondary);
}

.privacy-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.no-collect-list {
  list-style: none;
  padding: 0;
}

.no-collect-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.no-collect-list li::before {
  content: "✗";
  color: var(--text-muted);
  font-weight: bold;
}

.do-store-list {
  list-style: none;
  padding: 0;
}

.do-store-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.do-store-list li:last-child {
  border-bottom: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-tagline {
    font-size: 16px;
  }
  
  .hero {
    padding: 48px 0 40px;
  }
  
  .features,
  .how-it-works,
  .privacy-highlights,
  .cta-section {
    padding: 48px 0;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 12px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .privacy-content h1 {
    font-size: 28px;
  }
}

