/* Resavoice — video library. Tokens mirror www.resavoice.com */
:root {
  --blue: #2f6bff;
  --blue-bright: #5b86ff;
  --violet: #6e3af0;
  --purple: #8a4fff;
  --cyan: #2fd3ee;
  --cyan-soft: #7fe8f6;
  --ink: #0a0820;
  --navy: #14103c;
  --navy-2: #1b1556;
  --navy-3: #241a6b;
  --text: #181536;
  --text-soft: #403b63;
  --muted: #6a6589;
  --muted-light: hsla(0, 0%, 100%, .72);
  --muted-dim: hsla(0, 0%, 100%, .55);
  --paper: #f5f4fb;
  --paper-2: #fff;
  --tint: #ece8fb;
  --tint-2: #f0ecfe;
  --line: rgba(24, 21, 54, .1);
  --line-strong: rgba(24, 21, 54, .16);
  --line-dark: hsla(0, 0%, 100%, .12);
  --grad-brand: linear-gradient(118deg, var(--blue) 0%, var(--violet) 72%, var(--purple) 100%);
  --grad-cta: linear-gradient(120deg, #2f6bff, #6e3af0);
  --grad-cyan: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 100%);
  --grad-dark: radial-gradient(120% 120% at 12% 8%, #241a6b 0%, #14103c 46%, #0a0820 100%);
  --sh-sm: 0 1px 2px rgba(10, 8, 32, .06), 0 2px 8px rgba(10, 8, 32, .05);
  --sh-md: 0 8px 26px rgba(20, 16, 60, .1), 0 2px 8px rgba(20, 16, 60, .06);
  --sh-lg: 0 24px 60px rgba(20, 16, 60, .16), 0 6px 18px rgba(20, 16, 60, .08);
  --sh-glow: 0 0 0 6px rgba(47, 107, 255, .14), 0 18px 50px rgba(47, 107, 255, .4);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --maxw: 1200px;
  --pad: clamp(16px, 5vw, 64px);
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.dark { background: var(--grad-dark); color: var(--muted-light); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px; padding: 15px 26px;
  border-radius: 999px; line-height: 1; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { color: #fff; background: var(--grad-cta); box-shadow: 0 10px 26px rgba(47, 107, 255, .34); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-glow); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--ghost { color: var(--text); background: rgba(24, 21, 54, .05); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(24, 21, 54, .08); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.nav.scrolled { background: hsla(0, 0%, 100%, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(20, 16, 60, .06); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(110, 58, 240, .35)); }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: #fff; }
.logo__name b { color: var(--cyan); font-weight: 800; }
.nav.scrolled .logo__name, .nav.scrolled .nav__link { color: var(--text); }
.nav__tag {
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-soft); padding: 5px 10px; border-radius: 999px; background: rgba(47, 211, 238, .12);
  box-shadow: inset 0 0 0 1px rgba(47, 211, 238, .28);
}
.nav.scrolled .nav__tag { color: var(--violet); background: var(--tint-2); box-shadow: inset 0 0 0 1px rgba(110, 58, 240, .18); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__link { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--muted-light); transition: color .2s; }
.nav__link:hover { color: #fff; }
.nav.scrolled .nav__link:hover { color: var(--violet); }

.lang-toggle {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 3px; color: #fff;
  background: hsla(0, 0%, 100%, .12); box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .18);
  font-family: var(--display); font-weight: 600; font-size: 13px;
}
.nav.scrolled .lang-toggle { color: var(--text); background: rgba(24, 21, 54, .05); box-shadow: inset 0 0 0 1px var(--line); }
.lang-toggle a { padding: 6px 12px; border-radius: 999px; opacity: .62; letter-spacing: .03em; transition: opacity .2s, background .2s; }
.lang-toggle a:hover { opacity: 1; }
.lang-toggle a.active { opacity: 1; color: #fff; background: var(--grad-cta); box-shadow: 0 4px 12px rgba(110, 58, 240, .34); }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; padding: 128px 0 clamp(56px, 8vw, 96px); }
.hero__glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__glow span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow span:nth-child(1) { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(110, 58, 240, .9), transparent 70%); }
.hero__glow span:nth-child(2) { width: 460px; height: 460px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(47, 211, 238, .55), transparent 70%); }
.hero__stack { display: grid; gap: clamp(36px, 5vw, 56px); }
.hero__copy { max-width: 760px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px 6px 10px;
  border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan-soft); background: hsla(0, 0%, 100%, .06); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 211, 238, .2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 211, 238, 0); } }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -.035em; }
.hl { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); margin: 22px 0 0; max-width: 640px; color: var(--muted-light); }

/* featured */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(14px, 2vw, 20px); border-radius: var(--r-xl);
  background: hsla(0, 0%, 100%, .05); box-shadow: inset 0 0 0 1px var(--line-dark), 0 30px 80px rgba(0, 0, 0, .3);
}
.feature__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-2); width: 100%; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature__media:hover img { transform: scale(1.03); }
.feature__body { padding: 8px clamp(4px, 1vw, 12px) 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.feature__body h2 { font-size: clamp(26px, 3vw, 38px); }
.feature__desc { margin: 0; color: var(--muted-light); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.feature__body .btn { margin-top: 6px; }
.bigplay {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(64px, 8vw, 88px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--grad-cta);
  box-shadow: 0 0 0 10px hsla(0, 0%, 100%, .14), 0 18px 50px rgba(47, 107, 255, .5); transition: transform .25s ease;
}
.bigplay svg { width: 38%; margin-left: 6%; }
.feature__media:hover .bigplay { transform: scale(1.08); }

/* shared bits */
.dur {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 12.5px; color: #fff; background: rgba(10, 8, 32, .72);
  backdrop-filter: blur(6px); letter-spacing: .02em;
}
.tag {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-family: var(--display);
  font-weight: 600; font-size: 12.5px; color: var(--violet); background: var(--tint-2);
}
.tag--light { color: var(--cyan-soft); background: rgba(47, 211, 238, .12); box-shadow: inset 0 0 0 1px rgba(47, 211, 238, .25); }
.by { margin: 0; font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.by strong { color: var(--text); font-weight: 600; }
.by strong + span { position: relative; padding-left: 14px; }
.by strong + span::after { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.by--light { color: var(--muted-dim); }
.by--light strong { color: #fff; }

/* ------------------------------------------------------------ Library */
.library { padding-top: clamp(48px, 6vw, 80px); }
.library__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.library__count { margin: 0 0 0 auto; color: var(--muted); font-size: 15px; }
.library__count #count { font-family: var(--display); font-weight: 700; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14.5px;
  color: var(--text-soft); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); transition: all .2s ease;
}
.chip:hover { color: var(--violet); box-shadow: inset 0 0 0 1px rgba(110, 58, 240, .35), var(--sh-sm); }
.chip.active { color: #fff; background: var(--grad-cta); box-shadow: 0 6px 16px rgba(110, 58, 240, .3); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--paper-2); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--sh-lg); }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-dark); display: block; width: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 8, 32, .35)); }
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(20, 16, 60, .55); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .3); transition: all .25s ease;
}
.play svg { width: 22px; margin-left: 3px; }
.card:hover .play { background: var(--grad-cta); box-shadow: var(--sh-glow); transform: scale(1.06); }
.card .dur { z-index: 1; }
.card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vlang { font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.card h3 { font-size: 20px; line-height: 1.2; }
.card h3 button { text-align: left; }
.card h3 button:hover { color: var(--violet); }
.card__desc { margin: 2px 0 0; font-size: 15px; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.empty { text-align: center; max-width: 520px; margin: 0 auto; padding: 32px 0; display: grid; justify-items: center; gap: 14px; }
.empty__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-cta); box-shadow: var(--sh-glow); }
.empty__icon svg { width: 28px; margin-left: 4px; }
.empty h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 8px; }
.empty p { margin: 0 0 8px; color: var(--muted); }

/* ------------------------------------------------------------ CTA + footer */
.cta { overflow: hidden; text-align: center; }
.cta .hero__glow span { width: 600px; height: 600px; left: 50%; top: -50%; translate: -50% 0; background: radial-gradient(circle, rgba(110, 58, 240, .7), transparent 70%); }
.cta__inner { max-width: 760px; display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); }
.cta p { margin: 0 0 10px; font-size: 18px; }

.footer { background: var(--ink); color: var(--muted-dim); padding: 48px 0 28px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer .logo__img { width: 32px; height: 32px; }
.footer .logo__name { font-size: 19px; }
.footer__tag { margin: 12px 0 0; max-width: 340px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.footer__links a:hover { color: #fff; }
.footer__copy { padding-top: 22px; font-size: 13.5px; }

/* ------------------------------------------------------------ Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 32, .82); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease; }
.modal__box {
  position: relative; width: min(1100px, 100%); max-height: 100%; overflow: auto; border-radius: var(--r-lg);
  background: var(--navy); box-shadow: 0 40px 120px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line-dark);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s ease, transform .3s ease;
}
.modal.is-open .modal__backdrop, .modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__player { aspect-ratio: 16 / 9; background: #000; }
.modal__player video, .modal__player iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.modal__info { padding: 22px clamp(18px, 3vw, 32px) 28px; color: var(--muted-light); }
.modal__info h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; margin-bottom: 8px; }
.modal__desc { margin: 12px 0 0; white-space: pre-line; font-size: 16px; }
.modal__close {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(10, 8, 32, .6); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px hsla(0, 0%, 100%, .2); transition: background .2s;
}
.modal__close:hover { background: var(--grad-cta); }
.modal__close svg { width: 20px; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__body { padding: 4px 8px 12px; }
  .nav__link--site { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__inner { padding-block: 10px; gap: 10px; }
  .logo__img { width: 34px; height: 34px; }
  .logo__name { font-size: 18px; }
  .nav__tag, .nav__cta { display: none; }
  .hero { padding-top: 104px; }
  .library__head { flex-direction: column; align-items: flex-start; }
  .library__count { margin: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .modal { padding: 0; place-items: center stretch; }
  .modal__box { border-radius: 0; }
  .feature__body .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
