/* ============================================================
   ORAIA — cinematic voice hero (index-2)
   Self-contained dark hero with liquid-glass chrome + voice ring.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&display=swap');

.cine-hero {
  position: relative;
  min-height: 100vh;
  background: #04060f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* fade the hero into the page below */
.cine-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,6,15,0.35) 0%, rgba(4,6,15,0) 22% 70%, rgba(4,6,15,0.85) 100%);
}

.cine-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 20px 40px;
}

/* ---------- liquid glass ---------- */
.liquid-glass {
  background: rgba(255,255,255,0.012);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.10);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,0.012);
  backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px);
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.liquid-glass-strong::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.2) 80%, rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ---------- badge ---------- */
.cine-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  position: absolute; top: 128px; left: clamp(20px, calc(9vw + 20px), 220px); z-index: 3;
}
.cine-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #000; border-radius: 999px;
  padding: 6px 15px; font: 600 15px/1 'Barlow', sans-serif;
}
.cine-dot { width: 8px; height: 8px; border-radius: 50%; background: #e25aa8; animation: cinePulse 1.6s ease-in-out infinite; }
.cine-badge-txt { font: 400 17px/1 'Barlow', sans-serif; color: rgba(255,255,255,0.85); }

/* ---------- headline ---------- */
.cine-h1 {
  margin: 28px 0 0; max-width: 16ch;
  font-family: 'Schibsted Grotesk', sans-serif; font-style: normal; font-weight: 700;
  color: #fff; line-height: 0.96; letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  text-shadow: 0 2px 40px rgba(8,12,30,0.7);
}
.cine-h1 .w { display: inline-block; margin-right: 0.24em; }
.cine-h1[data-blur] .w { opacity: 0; filter: blur(12px); transform: translateY(46px); }
.cine-h1.blur-go .w { animation: cineBlurIn 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ---------- subhead ---------- */
.cine-sub {
  margin: 20px 0 0; max-width: 36rem;
  font: 300 clamp(14px,1.4vw,16.5px)/1.6 'Barlow', sans-serif;
  color: rgba(255,255,255,0.8);
}

/* ---------- CTAs ---------- */
.cine-cta { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.cine-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px;
  font: 600 15px/1 'Barlow', sans-serif; color: #fff;
  background: linear-gradient(100deg, #e25aa8 0%, #bc3181 42%, #1f8fc4 100%);
  box-shadow: 0 14px 32px -10px rgba(188,49,129,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: box-shadow .3s, transform .3s;
}
.cine-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px rgba(188,49,129,0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.cine-btn-primary svg { width: 18px; height: 18px; }
.cine-btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 999px; padding: 13px 24px;
  font: 600 15px/1 'Barlow', sans-serif; color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.34);
  transition: background .3s, border-color .3s, color .3s;
}
.cine-btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.55); }
.cine-play-ic { width: 14px; height: 14px; fill: currentColor; }

/* ---------- stats ---------- */
.cine-stats { display: flex; align-items: stretch; gap: 16px; margin-top: 48px; flex-wrap: wrap; justify-content: center; }
.cine-stat {
  border-radius: 20px; padding: 20px; width: 190px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
.cine-stat .ic { color: rgba(255,255,255,0.85); }
.cine-stat .ic svg { width: 24px; height: 24px; }
.cine-stat .big {
  margin-top: 24px; font-family: 'Schibsted Grotesk', sans-serif; font-style: normal; font-weight: 700;
  color: #fff; font-size: 2.1rem; line-height: 1; letter-spacing: -0.03em;
}
.cine-stat .lbl { margin-top: 8px; font: 300 12px/1.35 'Barlow', sans-serif; color: rgba(255,255,255,0.7); }

/* ---------- footer chip ---------- */
.cine-foot { position: relative; z-index: 2; display: flex; justify-content: flex-end; width: 100%; margin-top: 64px; padding-right: clamp(0px, 9vw, 200px); }
.cine-foot-inner {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 9px 20px;
  font: 400 16px/1 'Barlow', sans-serif; color: rgba(255,255,255,0.75);
}
.cine-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.cine-bars i {
  width: 2px; height: 100%; border-radius: 2px;
  background: linear-gradient(to top, #63d2f5, #e25aa8);
  transform-origin: bottom; animation: cineBar 1s ease-in-out infinite;
}
.cine-bars i:nth-child(2){ animation-delay:.12s } .cine-bars i:nth-child(3){ animation-delay:.24s }
.cine-bars i:nth-child(4){ animation-delay:.36s } .cine-bars i:nth-child(5){ animation-delay:.48s }

@keyframes cinePulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
@keyframes cineBar { 0%,100%{ transform: scaleY(.3) } 50%{ transform: scaleY(1) } }
@keyframes cineBlurIn {
  0%   { opacity: 0;  filter: blur(12px); transform: translateY(46px); }
  50%  { opacity: .5; filter: blur(5px);  transform: translateY(-5px); }
  100% { opacity: 1;  filter: blur(0);    transform: translateY(0); }
}

@media (max-width: 560px) {
  .cine-badge-txt { display: none; }
  .cine-stat:nth-child(2) { display: none; }
  .cine-stat { width: 150px; }
}

/* ============================================================
   LIGHT THEME — hero follows the site's dark/light toggle
   ============================================================ */
body.light .cine-hero { background: #e7ecf9; }
body.light .cine-vignette {
  background: linear-gradient(180deg, rgba(231,236,249,0.45) 0%, rgba(231,236,249,0) 22% 70%, rgba(231,236,249,0.92) 100%);
}
body.light .cine-h1 { color: #16204a; text-shadow: 0 2px 30px rgba(120,140,200,0.22); }
body.light .cine-sub { color: #1e2a4f; font-weight: 500; font-size: clamp(15px, 1.6vw, 18px); }
body.light .cine-badge-txt { color: rgba(30,42,80,0.82); }
body.light .cine-stat .ic { color: rgba(30,42,80,0.7); }
body.light .cine-stat .big { color: #16204a; }
body.light .cine-stat .lbl { color: rgba(38,52,96,0.72); }
body.light .cine-btn-primary:hover { box-shadow: 0 20px 46px -12px rgba(188,49,129,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
body.light .cine-btn-ghost { color: #1e2a4f; background: rgba(255,255,255,0.7); border-color: rgba(40,60,120,0.32); }
body.light .cine-btn-ghost:hover { background: #fff; border-color: rgba(40,60,120,0.55); color: #16204a; }
body.light .cine-foot-inner { color: rgba(38,52,96,0.74); }

/* glass + chip on a light backdrop */
body.light .liquid-glass,
body.light .liquid-glass-strong {
  background: rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 8px 30px -18px rgba(40,60,120,0.45);
}
body.light .liquid-glass::before,
body.light .liquid-glass-strong::before {
  background: linear-gradient(180deg, rgba(60,80,140,0.38) 0%, rgba(60,80,140,0.12) 20%, rgba(60,80,140,0) 40%, rgba(60,80,140,0) 60%, rgba(60,80,140,0.12) 80%, rgba(60,80,140,0.38) 100%);
}
body.light .cine-chip { background: #16204a; color: #fff; }

/* ============================================================
   NAV refinements (index-2 only)
   ============================================================ */
.nav-links { gap: 2px; margin-left: 18px; }

/* "Plus" submenu */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14.5px; font-weight: 500; color: var(--body);
  padding: 8px 13px; border-radius: 9px; cursor: pointer;
  background: none; border: none; font-family: inherit;
  transition: color .25s, background .25s;
}
.nav-dd-btn svg { width: 14px; height: 14px; transition: transform .25s; }
.nav-dd:hover .nav-dd-btn,
.nav-dd:focus-within .nav-dd-btn { color: var(--ink); background: var(--tint-2); }
.nav-dd:hover .nav-dd-btn svg,
.nav-dd:focus-within .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 192px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--chip-bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 26px 54px -26px rgba(0,0,0,0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
}
/* hover bridge so the gap doesn't drop the menu */
.nav-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a {
  font-size: 14px; color: var(--body); padding: 9px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-dd-menu a:hover { color: var(--ink); background: var(--tint-2); }

/* Connexion as a button + smaller, squarer démo button */
.nav-btn-login {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--tint);
  transition: border-color .25s, background .25s, color .25s;
}
.nav-btn-login:hover { border-color: var(--cyan-lit); color: #fff; background: var(--tint-2); }
.nav-cta { padding: 9px 16px; border-radius: 10px; font-size: 14px; }

/* Floating dark/light toggle, bottom-left */
.theme-float { position: fixed; left: 18px; bottom: 18px; z-index: 70; }
.theme-float .theme-toggle {
  background: var(--chip-bg); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,0.6);
}
.theme-float .theme-toggle button { width: 40px; height: 36px; }
.theme-float .theme-toggle button svg { width: 16px; height: 16px; }

/* brand wordmark logo */
.brand-img { gap: 0; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo-foot { height: 46px; }
@media (max-width: 600px) { .brand-logo { height: 40px; } }

/* ============================================================
   MOBILE — hero recomposed: centered logo · headline inside the
   voice ring · copy + CTAs below · hamburger nav (index-2)
   ============================================================ */
.cine-mlogo { display: none; }

/* desktop: ring moved to 0.55·H, so drop the content (text + chip) to match */
@media (min-width: 721px) {
  .cine-content { transform: translateY(5vh); }
}

@media (max-width: 720px) {
  /* layout: logo at top, headline lifted into the ring, copy/CTAs below */
  .cine-content { padding: 76px 22px 48px; justify-content: flex-start; }

  /* soft scrim of the page bg behind the copy so it reads over the ring */
  .cine-content::before {
    content: ""; position: absolute; z-index: -1; inset: 4% -4%;
    pointer-events: none;
    background: radial-gradient(ellipse 64% 50% at 50% 44%,
      rgba(4,6,15,0.82) 0%, rgba(4,6,15,0.58) 42%, rgba(4,6,15,0) 72%);
  }
  body.light .cine-content::before {
    background: radial-gradient(ellipse 64% 50% at 50% 44%,
      rgba(231,236,249,0.9) 0%, rgba(231,236,249,0.64) 44%, rgba(231,236,249,0) 74%);
  }

  /* hero wordmark removed on mobile (it now lives top-right in the nav) */
  .cine-mlogo { display: none; }

  /* status badge removed on mobile */
  .cine-badge { display: none; }

  /* headline sits inside the ring; this offset (JS-tracked) also sets how far
     the ring drops below the top bar */
  .cine-h1 {
    margin-top: clamp(132px, 19vh, 172px);
    font-size: clamp(30px, 8.4vw, 38px);
    max-width: 11ch;
  }
  /* fallback gap; JS sets the exact value so copy clears the ring */
  .cine-sub { margin-top: clamp(120px, 22vh, 180px); max-width: 30rem; }

  /* footer status line hidden on mobile */
  .cine-foot { display: none; }
}

/* ---------- hamburger + mobile menu (replaces the wordmark on phones) ---------- */
.nav-burger {
  display: none; width: 42px; height: 42px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--tint); cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s; }
.nav-burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.on span:nth-child(2) { opacity: 0; }
.nav-burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  position: fixed; top: 74px; left: 0; right: 0; z-index: 90;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 54px -28px rgba(0,0,0,0.5);
  transform: translateY(-14px); opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.mnav.open { transform: none; opacity: 1; visibility: visible; }
.mnav a { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); padding: 13px 12px; border-radius: 10px; }
.mnav a:hover { background: var(--tint-2); }
.mnav-login { border: 1px solid var(--line-strong); margin-top: 8px; text-align: center; color: var(--ink); }
.mnav-lang { align-self: center; margin-top: 12px; }
body.menu-open { overflow: hidden; }

@media (max-width: 980px) { .nav-burger { display: flex; } }

/* nav fit on phone — show burger, hide wordmark, keep lang + démo tappable */
@media (max-width: 600px) {
  .nav-inner { gap: 12px; }
  .nav-right { display: none; }                /* lang in menu, login in menu, démo replaced */
  .brand-img { display: flex; margin-left: auto; }  /* wordmark to the top-right */
  .theme-float { left: 14px; bottom: 14px; }
}



