/* =============================================
   Video Quick Cut — Editing Console
   Warm charcoal + indigo (#6366f1) + monospace
   ============================================= */

/* --- CSS Variables --- */
:root {
  --bg: #14110e;
  --bg-alt: #1a1612;
  --surface: #201c17;
  --surface2: #28231d;
  --border: rgba(99, 102, 241, 0.12);
  --border-hover: rgba(99, 102, 241, 0.3);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dim: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.06);
  --green-led: #4ade80;
  --text: #e8e0d4;
  --text-secondary: #a09585;
  --text-muted: #73695d;
  --text-dim: #5a5147;
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Accent --- */
.accent { color: var(--accent); }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20, 17, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  gap: 6px; font-size: 0.95rem; color: var(--text);
}
.nav-logo-img { height: 26px; width: auto; display: block; }
.logo-text { font-weight: 700; color: var(--accent); }
.logo-sep { color: var(--text-dim); }
.logo-sub { font-weight: 400; color: var(--text-secondary); font-size: 0.85rem; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* --- Hamburger --- */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 110; position: relative;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); transition: background 0.2s, transform 0.2s;
}
.hamburger:hover span { background: var(--text); }
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.85rem;
  border: none; cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.nav-links .btn-primary,
.nav-links .btn-primary:visited {
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light); transform: scale(1.02);
  color: #fff;
}
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface2); border-color: var(--border-hover); transform: scale(1.02);
}
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 24px 60px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 40px;
  min-width: 112px;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-led); display: inline-block;
}

/* --- Hero Cover --- */
.hero-cover {
  width: 100%; max-width: 1100px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.05), 0 4px 24px rgba(0,0,0,0.4);
  position: relative;
  cursor: pointer;
}
.hero-cover:hover .play-overlay { opacity: 1; }
.hero-cover:hover .cover-img { filter: brightness(0.55); }
.cover-img { transition: filter 0.3s ease; }

/* --- Play overlay --- */
.play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(20, 17, 14, 0.35);
  backdrop-filter: blur(2px);
}
.play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(99,102,241,0.22), 0 12px 40px rgba(99,102,241,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.play-btn svg { margin-left: 4px; }
.play-overlay:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 0 12px rgba(99,102,241,0.18), 0 16px 56px rgba(99,102,241,0.6);
}
.play-label {
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.14em;
}

/* --- Video Modal --- */
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.modal-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px;
  animation: modalIn 0.28s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.modal-video {
  width: 100%; border-radius: 4px; display: block;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(99,102,241,0.2);
  outline: none;
  background: #000;
}
.cover-img {
  display: block; width: 100%; height: auto;
}
.mock-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.toolbar-left {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted);
}
.toolbar-left svg { opacity: 0.6; }
.toolbar-sep {
  width: 1px; height: 16px; background: var(--border);
}
.timecode {
  font-size: 0.7rem; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.toolbar-tabs {
  display: flex; gap: 0;
}
.mock-tab {
  font-size: 0.65rem; padding: 4px 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); cursor: default;
  border: 1px solid transparent;
}
.mock-tab.active {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(99, 102, 241, 0.04);
}
.mock-timeline {
  padding: 12px 14px 10px;
}
.timeline-ruler {
  display: flex; justify-content: space-between;
  font-size: 0.55rem; color: var(--text-dim);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.waveform {
  display: flex; align-items: center; gap: 2px;
  height: 60px;
  position: relative;
}
.wave-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-dim), var(--accent));
  opacity: 0.5;
  border-radius: 1px;
  min-height: 2px;
}
.wave-bar:nth-child(3n) { opacity: 0.7; }
.wave-bar:nth-child(5n) { opacity: 0.35; }
.playhead {
  position: absolute;
  left: 42%; top: -4px; bottom: -4px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent), 0 0 8px rgba(99, 102, 241, 0.3);
}
.playhead::before {
  content: '';
  position: absolute; top: -4px; left: -4px;
  width: 10px; height: 10px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.cut-marker {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: var(--text-dim);
}
.cut-label {
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem; color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mock-infobar {
  display: flex; gap: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.info-item {
  flex: 1;
  padding: 8px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.info-item:last-child { border-right: none; }
.info-tag {
  display: block;
  font-size: 0.55rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.info-val {
  font-size: 0.7rem; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.hero-tagline {
  font-size: 0.9rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 500; margin-bottom: 8px;
}
.hero-title {
  font-size: 2.5rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.01em; margin-bottom: 16px; color: var(--text);
}
.hero-subtitle {
  font-size: 0.95rem; color: var(--text-secondary);
  max-width: 540px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px;
}

/* --- Platform Buttons --- */
.hero-platforms {
  margin-top: 10px; margin-bottom: 8px;
}
.platform-label {
  font-size: 0.65rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: block; margin-bottom: 8px;
}
.platform-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 176px));
  gap: 10px;
  justify-content: center;
}
.btn-platform {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 18px; font-size: 0.75rem;
  font-family: inherit; font-weight: 500;
  background: rgba(255,255,255,.03);
  color: rgba(232, 224, 212, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.18);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-platform svg {
  opacity: 0.9;
  width: 14px;
  height: 14px;
  color: rgba(232, 224, 212, 0.8);
}
.btn-platform:hover {
  border-color: rgba(99, 102, 241, 0.46);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.btn-platform:hover svg { opacity: 1; }
.btn-platform-active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.42);
}
.btn-platform-active svg { color: var(--accent); }
.btn-platform-active:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-platform-active:hover svg { opacity: 1; color: #fff; }
.btn-platform-muted {
  color: rgba(232, 224, 212, 0.88);
}
.btn-platform-muted:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.34);
  background: rgba(255,255,255,.06);
}
