/* ==========================================================================
   Edeetor Landing Page - Text-Based Video Editor Showcase
   Auto Light/Dark Theme (Matches system prefers-color-scheme)
   Distinct Emerald & Teal Design System
   ========================================================================== */

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

:root {
  /* Font Tokens */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Light Theme Defaults */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text: #475569;
  --text-muted: #64748b;
  --text-h: #0f172a;

  --border: #e2e8f0;
  --border-active: #94a3b8;

  --accent: #10b981;
  --accent-light: #059669;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-bg: rgba(16, 185, 129, 0.08);

  --badge-silence: #f59e0b;
  --badge-silence-bg: rgba(245, 158, 11, 0.1);
  --badge-filler: #ef4444;
  --badge-filler-bg: rgba(239, 68, 68, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

  --max-width: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme Overrides */
    --bg: #090d16;
    --bg-card: #111827;
    --bg-subtle: #1f2937;
    --bg-glass: rgba(17, 24, 39, 0.88);

    --text: #9ca3af;
    --text-muted: #6b7280;
    --text-h: #f9fafb;

    --border: #1f2937;
    --border-active: #374151;

    --accent: #34d399;
    --accent-light: #2dd4bf;
    --accent-gradient: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    --accent-bg: rgba(52, 211, 153, 0.12);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 30px -5px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-h);
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

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

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

/* Hero Section */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px 40px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-image-frame {
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-frame video {
  width: 100%;
  height: auto;
  display: block;
}

/* Section */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Feature Grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-feature:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-h);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* Interactive Transcript Editor Simulator */
.sim-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.sim-transcript-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  line-height: 2;
}

.word-chip {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.word-chip.deleted {
  text-decoration: line-through;
  opacity: 0.4;
  background: var(--badge-filler-bg) !important;
  color: var(--badge-filler) !important;
}

.word-chip.silence {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--badge-silence-bg);
  color: var(--badge-silence);
  border: 1px dashed var(--badge-silence);
}

.word-chip.filler {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--badge-filler);
}

.sim-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Tech List */
.stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.stack-name {
  font-weight: 600;
  color: var(--text-h);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.stack-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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