:root {
  --bg: #08080A;
  --surface: #111114;
  --surface-2: #16161B;
  --accent: #FACC15;
  --accent-hover: #EAB308;
  --accent-glow: rgba(250, 204, 21, 0.25);
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(250, 204, 21, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(250, 204, 21, 0.10), transparent 65%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1220px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  transition: color 0.18s ease;
}

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #08080A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Hero */
.hero {
  padding: 3.2rem 0 1.8rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}

.hero-subtitle {
  color: var(--accent);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-lead strong {
  color: var(--text);
}

/* Sections */
.section {
  padding: 2.2rem 0 3.6rem;
}

.section-alt {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 17, 20, 0.55) 0%, transparent 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}

.section-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hint-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.hint-pill-yellow {
  background: rgba(250, 204, 21, 0.14);
  border-color: var(--border-accent);
  color: var(--accent);
}

.hint-sep {
  color: var(--muted);
}

/* Short-Form 3-Column Comparison Grid */
.short-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.short-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.short-card:hover {
  border-color: rgba(250, 204, 21, 0.32);
}

.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #040405;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  outline: none;
}

.compare-stage:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.compare-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vid-edit {
  z-index: 1;
}

.vid-raw {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

/* Badges */
.badge {
  position: absolute;
  top: 0.75rem;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-raw {
  left: 0.75rem;
  background: rgba(8, 8, 10, 0.74);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-edit {
  right: 0.75rem;
  background: rgba(250, 204, 21, 0.92);
  color: #08080A;
  border: 1px solid rgba(250, 204, 21, 1);
}

/* Divider & Handle */
.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.75);
  z-index: 5;
  touch-action: none;
}

.handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #08080A;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #08080A;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 18px var(--accent-glow);
  transition: transform 0.14s ease;
  touch-action: none;
}

.compare-stage.is-dragging .handle,
.compare-stage:hover .handle {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Bottom Controls Overlay */
.controls-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.8rem 0.7rem 0.65rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 10, 0.88) 72%);
  cursor: default;
}

.ctrl-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 17, 20, 0.85);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ctrl-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #08080A;
}

/* Toggle icons via card state */
.play-btn .icon-pause {
  display: none;
}

.short-card.is-playing .play-btn .icon-play {
  display: none;
}

.short-card.is-playing .play-btn .icon-pause {
  display: block;
}

.mute-btn .icon-unmuted {
  display: none;
}

.short-card.is-unmuted .mute-btn .icon-muted {
  display: none;
}

.short-card.is-unmuted .mute-btn .icon-unmuted {
  display: block;
}

.progress-wrap {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  min-width: 2.3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.card-meta {
  padding: 0.1rem 0.25rem 0.3rem;
}

.card-meta h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-meta p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Long-Form 2-Column YouTube Grid */
.long-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.yt-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.yt-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.yt-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #040405;
  overflow: hidden;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.yt-card:hover .yt-thumb {
  transform: scale(1.03);
}

.yt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.12) 0%, rgba(8, 8, 10, 0.55) 100%);
}

.yt-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.82);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent);
  color: #08080A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 24px var(--accent-glow);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.yt-card:hover .yt-play {
  transform: translate(-50%, -50%) scale(1.09);
  background: var(--accent-hover);
}

.yt-meta {
  padding: 1.05rem 1.2rem 1.15rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.yt-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.yt-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #060608;
  padding: 2.6rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.footer-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 46ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.contact-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.contact-pill-primary {
  background: rgba(250, 204, 21, 0.14);
  border-color: var(--border-accent);
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .short-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin-inline: auto;
  }

  .long-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1220px, 100% - 1.5rem);
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 2.3rem 0 1.4rem;
  }

  .section {
    padding: 1.8rem 0 2.8rem;
  }
}
