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

:root {
  --accent:   #BF9966;
  --accent-light: #D4A86A;
  --accent-10: rgba(191,153,102,0.10);
  --accent-15: rgba(191,153,102,0.15);
  --accent-20: rgba(191,153,102,0.20);
  --accent-25: rgba(191,153,102,0.25);
  --bg:       #0c0c0c;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.10);
  --text:     #ffffff;
  --muted:    rgba(255,255,255,0.45);
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:   16px;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
}
.nav-logo {
  width: 24px; height: 24px;
  border-radius: 6px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 6px 14px;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.btn-nav {
  padding: 7px 16px;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-nav:hover { opacity: 0.85; transform: scale(1.03); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  font-size: 15px; font-weight: 700;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(191,153,102,0);
}
.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 40px rgba(191,153,102,0.25);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.3); transform: scale(1.02); }
.btn-full { width: 100%; justify-content: center; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 60px;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(191,153,102,0.15) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-content {
  text-align: center;
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-10);
  border: 1px solid var(--accent-25);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #BF9966 0%, #D4A86A 50%, #C8A87A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-req {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

/* ── MOCKUP ── */
.mockup-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}
.menubar-strip {
  background: rgba(30,30,30,0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 0 12px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.menubar-left { display: flex; gap: 16px; align-items: center; }
.menubar-apple { font-size: 13px; }
.menubar-item { font-size: 11px; font-weight: 500; }
.menubar-right { display: flex; align-items: center; gap: 12px; }
.menubar-sys { font-size: 11px; }
.menubar-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0.6;
}
.menubar-icon.active { opacity: 1; background: var(--accent-20); }
.menubar-icon:hover { background: rgba(255,255,255,0.1); }

.popover {
  background: rgba(20,20,20,0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.06) inset;
  animation: popoverDrop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  transform-origin: top center;
}
@keyframes popoverDrop {
  from { opacity: 0; transform: scaleY(0.92) translateY(-8px); }
  to   { opacity: 1; transform: scaleY(1)   translateY(0); }
}

/* Popover Tabs */
.popover-tabs {
  display: flex;
  padding: 8px 8px 0;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 7px 14px;
  border-radius: 8px 8px 0 0;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font);
}
.tab.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.tab:hover:not(.active) { color: rgba(255,255,255,0.7); }

/* Tab Content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* URL Row */
.url-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}
.url-icon { flex-shrink: 0; display: flex; align-items: center; }
.url-input {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.url-btn {
  padding: 5px 12px;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.url-btn:hover { opacity: 0.85; }

/* Transcript Area */
.transcript-area {
  min-height: 240px;
  position: relative;
}
.transcript-loading {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 12px;
  height: 240px;
  color: var(--muted);
  font-size: 12px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.transcript-content { padding: 10px; }
.video-meta {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.video-thumb {
  width: 60px; height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.video-thumb::after {
  content: '\25B6';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.video-title {
  font-size: 11px; font-weight: 600;
  line-height: 1.4;
  margin-bottom: 3px;
}
.video-channel {
  font-size: 10px; color: var(--muted);
}
.transcript-text {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.transcript-text::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(20,20,20,0.97));
}
.action-row {
  display: flex; gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.action-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px; font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font);
}
.action-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.action-ai {
  background: var(--accent-10);
  border-color: var(--accent-20);
  color: var(--accent) !important;
  margin-left: auto;
}
.action-ai:hover { background: var(--accent-15) !important; }

/* ── HISTORY TAB ── */
.history-list {
  display: flex; flex-direction: column;
  padding: 6px;
}
.history-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  cursor: default;
}
.history-item:hover { background: rgba(255,255,255,0.04); }
.history-thumb {
  width: 44px; height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1a1a1a, #252525);
  flex-shrink: 0;
  position: relative;
}
.history-thumb::after {
  content: '\25B6';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: rgba(255,255,255,0.3);
}
.history-info { flex: 1; min-width: 0; }
.history-title {
  font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.history-meta {
  font-size: 10px; color: var(--muted);
}

/* ── SETTINGS TAB ── */
.settings-list {
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.settings-section-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 8px 0 4px;
}
.settings-section-label:first-child { padding-top: 2px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0;
  font-size: 11px;
}
.settings-label { color: rgba(255,255,255,0.75); }
.settings-value {
  font-size: 10px; color: var(--muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.settings-key { letter-spacing: 0.05em; }
.settings-toggle {
  width: 32px; height: 18px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  position: relative;
  transition: background 0.2s;
}
.settings-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: transform 0.2s, background 0.2s;
}
.settings-toggle.on {
  background: var(--accent);
}
.settings-toggle.on::after {
  transform: translateX(14px);
  background: rgba(0,0,0,0.8);
}

/* ── FEATURES ── */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 60px;
}

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.bento-card:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.bento-wide { grid-column: span 2; }
.card-icon { font-size: 28px; margin-bottom: 14px; }
.bento-card h3 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.bento-card p {
  font-size: 14px; color: var(--muted);
  line-height: 1.65;
}

/* Card demos */
.card-demo { margin-top: 20px; }
.card-demo-url { display: flex; flex-direction: column; gap: 12px; }
.demo-url-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px; font-family: monospace;
  color: var(--muted);
}
.demo-arrow { color: var(--accent); margin-left: auto; }
.demo-transcript-lines { display: flex; flex-direction: column; gap: 6px; }
.demo-line {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  animation: shimmer 2s ease-in-out infinite;
}
.demo-line.short { width: 60%; }
.demo-line.medium { width: 80%; }
@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.card-demo-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.chat-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}
.chat-bubble.user {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  align-self: flex-end;
  max-width: 85%;
}
.chat-bubble.ai {
  background: var(--accent-10);
  border: 1px solid var(--accent-20);
  align-self: flex-start;
  max-width: 90%;
}

.card-demo-library { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.lib-folder {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
.lib-count {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 99px;
}

.card-demo-kbd {
  margin-top: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.kbd-row { display: flex; gap: 4px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 13px; font-weight: 600;
  font-family: -apple-system, sans-serif;
  color: var(--text);
  min-width: 28px;
}
.kbd-label { font-size: 10px; color: var(--muted); margin-bottom: 10px; }

.card-demo-export { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.export-pill {
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  font-family: monospace;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.export-pill:hover {
  background: var(--accent-10);
  border-color: var(--accent-25);
  color: var(--accent);
}

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.step:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-2px); }
.step-num {
  font-size: 48px; font-weight: 900;
  color: rgba(191,153,102,0.12);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.step-arrow { font-size: 24px; color: var(--muted); flex-shrink: 0; }

/* ── PRICING ── */
.pricing {
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center bottom, rgba(191,153,102,0.10) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}
.pricing .section-label, .pricing .section-headline { align-self: center; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.pricing-top { margin-bottom: 28px; }
.pricing-name {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pricing-price { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
.price-amount {
  font-size: 64px; font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-note { font-size: 13px; color: var(--muted); }
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
}
.check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-trial {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}


/* ── DOWNLOAD ── */
.download-section {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}
.download-card {
  text-align: center;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
}
.download-icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  margin-bottom: 20px;
}
.download-card h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.download-card p {
  font-size: 14px; color: var(--muted);
  margin-bottom: 24px;
}
.download-version {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px;
}
.footer-logo {
  width: 22px; height: 22px;
  border-radius: 5px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .nav-links .nav-link { display: none; }
}
