/* ================================================
   TranscriptPro – style.css
   Dark editorial aesthetic with amber accents
   ================================================ */

/* ── CSS Variables ── */
:root {
  --bg:          #0a0a0b;
  --surface:     #111114;
  --surface-2:   #1a1a1f;
  --surface-3:   #232329;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --accent:      #f5a623;
  --accent-2:    #ff6b35;
  --accent-glow: rgba(245,166,35,0.18);
  --text:        #e8e8ea;
  --text-2:      #9898a8;
  --text-3:      #5a5a6a;
  --success:     #34d399;
  --error:       #f87171;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.7);
  --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, button { font-family: inherit; }
details { list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Orbs / Background Glow ── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #f5a623, transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 14s;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #ff6b35, transparent 70%);
  bottom: 10%; right: -80px;
  animation-duration: 18s;
  animation-delay: -6s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: 40%; left: 30%;
  animation-duration: 22s;
  animation-delay: -3s;
  opacity: 0.08;
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.08); }
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }
.logo-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  font-size: 0.75rem;
  color: #000;
}
.logo-text em {
  font-style: normal;
  color: var(--accent);
}
.header-nav {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.header-nav a {
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--text); }

/* ================================================
   HERO
   ================================================ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  animation: fadeInDown 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease 0.1s both;
}
h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
  animation: fadeInDown 0.6s ease 0.2s both;
}

/* ── Input Card ── */
.input-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03) inset;
  animation: fadeInUp 0.6s ease 0.3s both;
  position: relative;
}
.input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
.url-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  padding: 13px 40px 13px 44px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.url-input::placeholder { color: var(--text-3); }
.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.clear-btn:hover { color: var(--text); background: var(--surface-3); }

.extract-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(245,166,35,0.3);
  font-family: var(--font-display);
}
.extract-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(245,166,35,0.45);
}
.extract-btn:active { transform: translateY(0); }
.extract-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
.btn-icon { font-size: 1.1rem; }

.input-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-3);
  flex-wrap: wrap;
}
.input-hints code {
  font-family: var(--font-mono);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-2);
}

.error-msg {
  margin-top: 16px;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--error);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}

/* ================================================
   LOADING
   ================================================ */
.loading-section {
  padding: 60px 0;
  text-align: center;
}
.loader-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 60px;
}
.loader-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}
.loader-bars span {
  display: block;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  animation: barAnim 1.1s ease-in-out infinite;
}
.loader-bars span:nth-child(1) { animation-delay: 0s;    height: 20px; }
.loader-bars span:nth-child(2) { animation-delay: 0.15s; height: 30px; }
.loader-bars span:nth-child(3) { animation-delay: 0.3s;  height: 40px; }
.loader-bars span:nth-child(4) { animation-delay: 0.45s; height: 28px; }
.loader-bars span:nth-child(5) { animation-delay: 0.6s;  height: 16px; }
@keyframes barAnim {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}
.loader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.loader-sub {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ================================================
   RESULT SECTION
   ================================================ */
.result-section {
  padding: 0 0 60px;
  animation: fadeInUp 0.5s ease both;
}

/* ── Video Info ── */
.video-info-bar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.video-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  border-radius: 8px;
  overflow: hidden;
}
.video-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  display: block;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.video-thumb-wrap:hover .play-overlay { opacity: 1; }

.video-meta { flex: 1; min-width: 0; }
.video-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Controls ── */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.controls-left { display: flex; gap: 6px; }
.tab-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--border-2); color: var(--text); }
.tab-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text-3);
  transition: border-color var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent);
  color: var(--text);
}
#transcript-search {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  width: 180px;
}
#transcript-search::placeholder { color: var(--text-3); }

/* ── Transcript Box ── */
.transcript-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.transcript-box {
  max-height: 420px;
  overflow-y: auto;
  padding: 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.transcript-box::-webkit-scrollbar { width: 6px; }
.transcript-box::-webkit-scrollbar-track { background: transparent; }
.transcript-box::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
.transcript-box.hidden { display: none; }

/* Timestamp lines */
.ts-line {
  display: flex;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.ts-line:last-child { border-bottom: none; }
.ts-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
  white-space: nowrap;
}
.ts-text { flex: 1; }

/* Search highlight */
mark {
  background: rgba(245,166,35,0.35);
  color: var(--text);
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Action Bar ── */
.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  transition: all var(--transition);
  font-family: var(--font-display);
}
.action-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}
.action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
}
.action-btn.secondary {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.action-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.action-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.action-btn.ghost:hover {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--surface-2);
}
.action-btn:active { transform: translateY(0) scale(0.98); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  z-index: 999;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(52,211,153,0.4); color: var(--success); }
.toast.error   { border-color: rgba(248,113,113,0.4); color: var(--error); }

/* ================================================
   HOW IT WORKS
   ================================================ */
.how-section, .features-section, .faq-section {
  padding: 80px 0;
}
.how-section { border-top: 1px solid var(--border); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  line-height: 1.1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.step-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-3px);
}
.step-card:hover::before { opacity: 1; }
.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ================================================
   FEATURES
   ================================================ */
.features-section { border-top: 1px solid var(--border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(245,166,35,0.25);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.75rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ================================================
   FAQ
   ================================================ */
.faq-section { border-top: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: rgba(245,166,35,0.3); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  user-select: none;
  transition: color var(--transition);
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 18px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  transition: opacity var(--transition);
}
.footer-logo-link:hover { opacity: 0.75; }
.footer-logo-link .logo-icon {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 7px;
  font-size: 0.7rem;
  color: #000;
}
.footer-logo-link .logo-text em {
  font-style: normal;
  color: var(--accent);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer-links a:hover { color: var(--text-2); }

/* ── Social Badges ── */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.social-badge.youtube {
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.2);
  color: #ff4444;
}
.social-badge.youtube:hover {
  background: rgba(255, 0, 0, 0.16);
  border-color: rgba(255, 0, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.2);
}
.social-badge.facebook {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.2);
  color: #4a90e2;
}
.social-badge.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.2);
}
.social-badge.twitter {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-2);
}
.social-badge.twitter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  transform: translateY(-2px);
}
.social-badge.instagram {
  background: rgba(228, 64, 95, 0.08);
  border-color: rgba(228, 64, 95, 0.2);
  color: #e4405f;
}
.social-badge.instagram:hover {
  background: rgba(228, 64, 95, 0.15);
  border-color: rgba(228, 64, 95, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(228, 64, 95, 0.2);
}
.social-badge.threads {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-2);
}
.social-badge.threads:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  transform: translateY(-2px);
}
.social-badge.linkedin {
  background: rgba(0, 119, 181, 0.08);
  border-color: rgba(0, 119, 181, 0.2);
  color: #0a9adc;
}
.social-badge.linkedin:hover {
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 119, 181, 0.2);
}

/* ── Footer Bottom ── */
.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
}
.footer-made {
  font-size: 0.9rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.heart {
  font-size: 1.1rem;
  animation: heartbeat 1.8s ease-in-out infinite;
  display: inline-block;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.2); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.15); }
  56%       { transform: scale(1); }
}
.india-flag { font-size: 1rem; }
.author-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--transition);
}
.author-link:hover { opacity: 0.75; text-decoration: underline; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .social-links { gap: 8px; }
  .social-badge span { display: none; }
  .social-badge { padding: 9px 12px; border-radius: 50%; }

  .header-nav { display: none; }

  .hero { padding: 50px 0 40px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-subtitle { font-size: 1rem; }

  .input-row { flex-direction: column; }
  .extract-btn { width: 100%; justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .controls-bar { flex-direction: column; align-items: stretch; }
  .controls-left { justify-content: center; }
  #transcript-search { width: 100%; }
  .search-box { width: 100%; }

  .action-bar { flex-direction: column; }
  .action-btn { width: 100%; justify-content: center; }

  .video-info-bar { flex-direction: column; }
  .video-thumb-wrap { width: 100%; }
  .video-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
  .video-title { white-space: normal; }

  .section-title { margin-bottom: 32px; }
  .how-section, .features-section, .faq-section { padding: 56px 0; }

  .toast { white-space: normal; text-align: center; width: calc(100% - 32px); }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .input-hints { justify-content: center; }
}

@media (min-width: 769px) and (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Focus Visible (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
