/* ════════════════════════════════════════════════════════════════════
   DEJOTA VISUALS — freelance video editor landing page
   Ported from VideoEditorPortfolio.dc.html (Claude Design)
   ════════════════════════════════════════════════════════════════════ */

:root {
  --accent: oklch(70% 0.19 292);
  --accent-hi: oklch(76% 0.19 292);
  --bg: #000;
  --ink: rgba(255, 255, 255, 0.92);
  --ink-60: rgba(255, 255, 255, 0.6);
  --ink-35: rgba(255, 255, 255, 0.35);
  --ink-30: rgba(255, 255, 255, 0.3);
  --line: #201f1f;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* o nav e sticky (56px) — evita que a ancora esconda o topo da secao */
section[id] { scroll-margin-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: oklch(70% 0.19 292 / 0.35); }

.dim-4 { opacity: .4; }
.dim-5 { opacity: .5; }
.spacer { flex: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ── animations ──────────────────────────────────────────────────── */

@keyframes reelPlayhead { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
@keyframes reelBlink    { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes heroLineIn   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeIn   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.anim-line { display: block; animation: heroLineIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
.anim-fade { animation: heroFadeIn .7s ease both; animation-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* quem pediu menos movimento fica so com a imagem parada */
  .monitor__video { display: none; }
}

/* ── nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px);
}

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.nav__name { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: var(--ink-60);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .03em;
  transition: color .2s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: rgba(255, 255, 255, .95); }

.nav__clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-35);
  font-variant-numeric: tabular-nums;
}
.nav__rec {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(65% 0.19 25);
  animation: reelBlink 1.4s step-end infinite;
}

/* ── hero: Premiere Pro chrome ───────────────────────────────────── */

.hero { max-width: 1400px; margin: 0 auto; padding: 40px 32px 72px; }

.app {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}

.app__topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 34px;
  padding: 0 16px;
  border-bottom: 1px solid #232323;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

.app__workspace {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  min-height: 460px;
  border-bottom: 1px solid #232323;
}

.panel { background: #1c1c1c; padding: 14px; }
.panel--left  { border-right: 1px solid #232323; }
.panel--right { border-left: 1px solid #232323; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .5); }

.panel__title { font-family: var(--sans); font-size: 11px; color: var(--ink-35); margin-bottom: 10px; }
.panel--right .panel__title { margin-bottom: 12px; }

.panel__search {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink-30);
  margin-bottom: 14px;
}

.panel__row {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  padding: 6px 0;
  border-bottom: 1px solid #202020;
}

.panel__group { color: var(--accent); margin: 14px 0 8px; }
.panel__group:first-of-type { margin-top: 0; }

.prop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0 5px 12px;
  border-bottom: 1px solid #202020;
}
.prop--last { border-bottom: none; }
.prop span { opacity: .55; }
.prop b { font-weight: 400; opacity: .8; }

/* program monitor */
.monitor {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px;
  position: relative;
  min-width: 0;
}

/* video de fundo do monitor + escurecimento para a copy continuar legivel.
   A imagem serve de cartaz enquanto o embed carrega e de fallback. */
.monitor__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: url('assets/hero-editing.jpg') center / cover no-repeat;
  filter: grayscale(35%) brightness(.42) saturate(115%);
  container-type: size;
}

/* cover de verdade para um iframe 16:9 dentro de um container de proporcao
   qualquer — as unidades cq medem o proprio .monitor__bg. As duas primeiras
   declaracoes sao o fallback para navegadores sem container queries. */
.monitor__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
  pointer-events: none;
}

.monitor__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* precisa cobrir o iframe, nao so a imagem */
  background:
    linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.30) 100%),
    linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 40%);
}

/* a copy fica acima da foto */
.monitor > .eyebrow,
.monitor__h1,
.monitor__lead,
.monitor__cta { position: relative; z-index: 1; }

.monitor__label {
  position: absolute;
  top: 12px; left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-30);
}

.monitor .eyebrow { margin-bottom: 16px; }

.monitor__h1 {
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}

.monitor__lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-60);
  margin: 0 0 24px;
  max-width: 42ch;
}

.monitor__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.monitor__note { font-size: 12.5px; color: var(--ink-35); }

.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hi); }

.monitor__times {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-30);
}

/* timeline */
.timeline { background: #161616; padding: 14px 16px; }

.timeline__ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-30);
  margin-bottom: 10px;
}

.timeline__tracks { position: relative; }

.track { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.track__label { width: 24px; font-family: var(--mono); font-size: 10px; color: var(--ink-30); }
.track__lane {
  flex: 1;
  height: 26px;
  background: #141414;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.track__lane i {
  position: absolute;
  top: 2px; bottom: 2px;
  left: var(--l);
  width: var(--w);
  background: var(--c);
  border-radius: 2px;
}

.playhead {
  position: absolute;
  top: -2px; bottom: 0;
  left: 38%;
  width: 1px;
  background: var(--accent);
  animation: reelPlayhead 6s ease-in-out infinite;
}
.playhead::before {
  content: "";
  position: absolute;
  top: -2px; left: -3px;
  width: 7px; height: 7px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

/* ── sections ────────────────────────────────────────────────────── */

.section { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }

.section__head {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.section__head--split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.section__head h2 { font-size: 30px; font-weight: 700; margin: 0; }

/* linha de contexto abaixo do titulo da secao */
.section__sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 58ch;
}
.section__count { font-family: var(--mono); font-size: 12px; color: var(--ink-30); white-space: nowrap; }

/* ── work cards ──────────────────────────────────────────────────── */

.cards { display: flex; flex-direction: column; gap: 28px; }

.card {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  min-height: 520px;
}
.card--reverse { flex-direction: row-reverse; }

/* mirrored background: thumbnail do proprio video, ampliada + borrada */
.card__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.card__bgimg {
  width: 100%;
  height: 100%;
  background: #14121a center / cover no-repeat;
  transform: scale(1.5);
  filter: blur(70px) saturate(180%) brightness(.55);
}
.card__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }

.card__media {
  position: relative;
  z-index: 1;
  width: 380px;
  flex-shrink: 0;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85);
}
/* embed vertical do YouTube Shorts */
.frame__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  background: #000;
}

.card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(30px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.card--reverse .card__body {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.card__niche {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.card__title { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.card__desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  margin: 0 0 20px;
  max-width: 48ch;
}
.card__meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}

/* botao opcional do card — leva ao video completo no YouTube.
   Estilo fantasma de proposito: o CTA cheio do hero continua sendo o principal. */
.card__cta {
  align-self: flex-start;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .07);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.card__cta:hover, .card__cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ── services ────────────────────────────────────────────────────── */

.service { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.service__track {
  width: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .32);
}
.service__card {
  flex: 1;
  background: #111;
  border-radius: 7px;
  padding: 18px 22px;
  border-left: 3px solid var(--c);
}
.service__card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.service__card p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .55); margin: 0; }

/* ── contact + footer ────────────────────────────────────────────── */

.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact .eyebrow { margin-bottom: 16px; }
.contact__h2 { font-size: 34px; font-weight: 800; margin: 0 0 16px; }
.contact__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, .55);
  max-width: 52ch;
  margin: 0 auto 32px;
  line-height: 1.6;
}
/* botoes das redes sociais */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* cada cartao tem duas zonas: o link principal e o botao de copiar */
.social {
  display: flex;
  align-items: stretch;
  min-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.social:hover, .social:focus-within {
  background: #16131d;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social__main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  text-decoration: none;
  text-align: left;
}

.social__copy {
  flex-shrink: 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .09);
  color: var(--ink-35);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.social__copy svg { width: 16px; height: 16px; fill: currentColor; }
.social__copy:hover, .social__copy:focus-visible { background: var(--accent); color: #000; }

/* confirmacao visual apos copiar */
.social.is-copied { border-color: var(--accent); }
.social.is-copied .social__text i { color: var(--accent); }

.social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
}
.social__icon svg {
  width: 19px; height: 19px;
  fill: var(--ink);
}
.social:hover .social__icon { background: var(--accent); }
.social:hover .social__icon svg { fill: #000; }

.social__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.social__text b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.social__text i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-35);
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-30);
}

/* ── responsive ──────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .app__workspace { grid-template-columns: 1fr; min-height: 0; }
  .panel--left, .panel--right { display: none; }
  .monitor { padding: 64px 28px 44px; }
  .monitor__h1 { font-size: clamp(26px, 6vw, 34px); }

  .card, .card--reverse { flex-direction: column; min-height: 0; }
  .card__media { width: 100%; padding: 24px 24px 0; }
  .frame { max-width: 320px; margin: 0 auto; }
  .card__body {
    padding: 28px 24px 32px;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .nav { padding: 0 18px; }
  .nav__links { gap: 16px; }
  .nav__clock { display: none; }
  .hero { padding: 24px 16px 48px; }
  .section { padding: 48px 18px; }
  .contact { padding: 60px 18px 72px; }
  .contact__h2 { font-size: 26px; }
  .socials { flex-direction: column; }
  .social { min-width: 0; width: 100%; }
  .footer { padding: 20px 18px; flex-direction: column; align-items: center; text-align: center; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
}
