/* =========================================
   YouTube Transcript App - Global Styles
   ========================================= */

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #667eea;
  --primary-dark: #5568d3;
  --secondary-color: #764ba2;
  --accent-color: #ff6b6b;
  --success-color: #51cf66;
  --warning-color: #ffd43b;
  --error-color: #ff6b6b;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --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 -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* =========================================
   Reset & Base Styles
   ========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-dark);
}

/* =========================================
   Layout
   ========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* =========================================
   Navbar (Modern Design)
   ========================================= */

.navbar {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.15);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s;
}

.navbar .logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  stroke: url(#logo-gradient);
  transition: all 0.3s ease;
}

.navbar:hover .logo-icon svg {
  stroke: url(#logo-gradient-hover);
  transform: scale(1.05);
}

/* SVG Gradients for logo */
.navbar .logo::before {
  content: '';
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.logo-icon svg {
  stroke: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  color: #374151;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.nav-links a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: left 0.3s;
  z-index: -1;
  border-radius: 50px;
}

.nav-links a:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.3);
}

.nav-links a:hover:before {
  left: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
  gap: 0.25rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 0;
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.mobile-open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
  }

  .nav-links a:before {
    display: none;
  }

  .nav-links a:hover {
    background: #f3f4f6;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .logo-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Homepage header styles */
.header {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Ensure logo image and text sit side-by-side in homepage header */
.header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin: 0;
}

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav a {
  color: #374151;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.nav a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: left 0.3s;
  z-index: -1;
  border-radius: 50px;
}

.nav a:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.3);
}

.nav a:hover:before {
  left: 0;
}

/* Mobile responsive for homepage header */
@media (max-width: 768px) {
  .header .mobile-menu-toggle {
    display: flex;
  }

  .header .nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 0;
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .header .nav.mobile-open {
    transform: translateY(0);
  }

  .header .nav a {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
  }

  .header .nav a:before {
    display: none;
  }

  .header .nav a:hover {
    background: #f3f4f6;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .header {
    padding: 0.75rem 0;
  }

  .logo h1 {
    font-size: 1.3rem;
  }
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: var(--spacing-3xl) 0;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
  font-weight: 400;
}

/* =========================================
   Input Section
   ========================================= */

.input-section {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--spacing-2xl);
}

.input-wrapper {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.video-input {
  flex: 1;
  padding: var(--spacing-lg);
  font-size: 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: var(--font-sans);
}

.video-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.video-input::placeholder {
  color: var(--gray-400);
}

.input-example {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.input-example strong {
  color: var(--gray-700);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
}

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

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================
   Stats
   ========================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* =========================================
   Why Transcripts Section
   ========================================= */

.why-transcripts {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f7 100%);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.use-case-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.use-case-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.use-case-card h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.use-case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-case-list li {
  padding: 0.75rem 0;
  line-height: 1.6;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
}

.use-case-list li:last-child {
  border-bottom: none;
}

.use-case-list li strong {
  color: #1f2937;
  font-weight: 600;
}

/* Responsive adjustments for use cases */
@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .use-case-card {
    padding: 1.5rem;
  }
  
  .use-case-icon {
    font-size: 2.5rem;
  }
  
  .use-case-card h3 {
    font-size: 1.2rem;
  }
  
  .use-case-list li {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }
}

/* =========================================
   Features Section
   ========================================= */

.features {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--gray-900);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: var(--gray-50);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

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

/* =========================================
   How It Works Section
   ========================================= */

.how-it-works {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.step-content p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* =========================================
   Use Cases Section
   ========================================= */

.use-cases {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.use-case {
  padding: var(--spacing-xl);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  transition: transform var(--transition-base);
}

.use-case:hover {
  transform: translateX(5px);
}

.use-case h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-900);
}

.use-case p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* =========================================
   FAQ Section
   ========================================= */

.faq {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.faq-answer {
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--spacing-sm);
}

/* =========================================
   CTA Section
   ========================================= */

.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

/* =========================================
   Footer
   ========================================= */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-section p {
  line-height: 1.6;
  color: var(--gray-400);
}

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

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  font-size: 1.5rem;
}

.social-links a {
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: scale(1.2);
}

/* Footer X Icon */
.footer .social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* align with heading */
  gap: var(--spacing-md);
  margin-top: 0.5rem;
}

.footer-x-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  padding: 0.5rem !important;
  border-radius: 50% !important;
  background: rgba(107, 114, 128, 0.1) !important;
  margin: 0 !important;
}

.footer-x-icon:hover {
  color: #1da1f2 !important;
  background: rgba(29, 161, 242, 0.1) !important;
  transform: translateY(-2px) scale(1.1) !important;
}

.footer-x-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--gray-500);
}

.footer-bottom p {
  margin-bottom: var(--spacing-sm);
}

/* Logo image sizing */
.navbar .logo .logo-image,
.header .logo .logo-image {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .navbar .logo .logo-image,
  .header .logo .logo-image {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .navbar .logo .logo-image,
  .header .logo .logo-image {
    width: 22px;
    height: 22px;
  }
}

/* =========================================
   Popular Transcripts Section
   ========================================= */

.popular-transcripts {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f7 100%);
}

.popular-transcripts .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--gray-900);
}

.popular-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.popular-list li {
  border-bottom: 1px solid #e5e7eb;
}

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

.popular-list a {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.75rem;
  color: #374151;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.popular-list a::before {
  content: "▶";
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.popular-list a:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
  color: var(--primary-color);
  padding-left: 2rem;
}

.popular-list a:hover::before {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .popular-transcripts {
    padding: 3rem 0;
  }

  .popular-transcripts .section-title {
    font-size: 2rem;
  }

  .popular-list a {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .input-wrapper {
    flex-direction: column;
  }
  
  .video-input {
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .nav {
    gap: var(--spacing-md);
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .input-section {
    padding: var(--spacing-lg);
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .header .container {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

/* =========================================
   Animations
   ========================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

/* =========================================
   Utility Classes
   ========================================= */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* =========================================
   Transcript Display
   ========================================= */

#transcript-result {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  gap: 1rem;
}

.transcript-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.transcript-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.transcript-actions .btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: auto;
}

.transcript-segments {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.transcript-segment {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 6px;
  transition: background-color 0.2s, transform 0.2s;
  border-left: 3px solid transparent;
}

.transcript-segment:hover {
  background: #e8f4f8;
  border-left-color: #2563eb;
  transform: translateX(4px);
}

.transcript-timestamp {
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  background: #dbeafe;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.2s;
  min-width: 60px;
  text-align: center;
  display: inline-block;
}

.transcript-timestamp:hover {
  background: #2563eb;
  color: white;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.transcript-text {
  flex: 1;
  line-height: 1.6;
  color: #374151;
  font-size: 0.95rem;
}

/* =========================================
   Legal Pages (Terms, Privacy)
   ========================================= */

.legal-page {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  display: inline-block;
  color: #6b7280;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 3rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.privacy-highlight {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  padding: 2rem;
  border-radius: 16px;
  border-left: 6px solid var(--primary-color);
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.privacy-highlight h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
}

.privacy-highlight p {
  margin: 0;
  font-size: 1.05rem;
}

.legal-content h2 {
  color: #1f2937;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #e5e7eb;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  color: #374151;
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-content p {
  line-height: 1.9;
  color: #4b5563;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.legal-content ul {
  line-height: 1.9;
  color: #4b5563;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  font-size: 1.05rem;
}

.legal-content li::marker {
  color: var(--primary-color);
}

.legal-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}

.legal-content a:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.legal-footer {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  border-radius: 16px;
  border: 2px solid #dbeafe;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.legal-footer p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.legal-footer p:last-child {
  margin-bottom: 0;
}

/* Legal Page Layout with Sidebar TOC */
.legal-page .container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.legal-content-wrapper {
  display: flex;
  gap: 3rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Table of Contents Sidebar */
.toc-sidebar {
  position: sticky;
  top: 100px;
  width: 280px;
  flex-shrink: 0;
  align-self: flex-start;
}

.toc-box {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid #dbeafe;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.toc-box h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  color: var(--primary-color);
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
  margin: 0;
  padding: 0;
}

.toc-list li a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: #4b5563;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
}

.toc-list li a:before {
  content: counter(toc-counter) ". ";
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

.toc-list li a:hover {
  background: #f0f9ff;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 1rem;
}

.toc-list li a.active {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* Main Content Area */
.legal-main-content {
  flex: 1;
  min-width: 0;
}

/* =========================================
   Contact Page
   ========================================= */

.contact-page {
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, #fef3c7 0%, #f0f9ff 50%, #e0e7ff 100%);
  min-height: 100vh;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  font-size: 1.3rem;
  color: #6b7280;
  font-weight: 400;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-content: start;
}

.contact-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.contact-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.contact-card:hover .contact-icon {
  animation: none;
  transform: scale(1.1);
}

.contact-card h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.contact-card p {
  color: #6b7280;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  font-size: 1rem;
}

.contact-card .btn {
  width: 100%;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s;
}

.contact-card .btn:hover {
  transform: scale(1.02);
}

.contact-faq {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-faq h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.contact-faq > p {
  color: #6b7280;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.faq-item:hover {
  background: #f3f4f6;
  transform: translateX(5px);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  color: #1f2937;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-item p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

.faq-item a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}

.faq-item a:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.contact-footer {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-footer h3 {
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-footer h3:first-child {
  margin-top: 0;
}

.contact-footer p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 1.05rem;
}

.contact-social {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid #e5e7eb;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
  font-size: 0.95rem;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
  background: linear-gradient(135deg, #0d8bd9 0%, #1da1f2 100%);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Responsive adjustments for legal/contact pages */
@media (max-width: 1024px) {
  .legal-page .container {
    flex-direction: column;
  }
  
  .legal-content-wrapper {
    flex-direction: column;
  }
  
  .toc-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .legal-content {
    padding: 2rem 1.5rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }
  
  .toc-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .social-link {
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .transcript-actions .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .transcript-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .transcript-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .transcript-actions .btn-sm {
    flex: 1;
    min-width: 70px;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .transcript-segment {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .transcript-timestamp {
    align-self: flex-start;
  }
}
