/* ================================================================
   CINEMATIC SHOWCASE — pinned, scroll-driven section
   Vanilla port of a GSAP/React "cinematic hero". Without JS or with
   reduced motion it renders as a plain static card + call to action.
   Animated by js/cinematic.js (adds .is-live).
   ================================================================ */

.cine {
  position: relative; margin: 0.75rem; padding: 7rem 0 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
  color: var(--clr-text-primary);
}
.cine__grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 50; opacity: 0.05; mix-blend-mode: overlay;
  background: var(--grain);
}
.cine__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--clr-text-primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--clr-text-primary) 6%, transparent) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

/* Text layers */
.cine__intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 1rem; }
.cine__t1, .cine__t2 { font-family: var(--font-serif); font-size: clamp(2.25rem, 1rem + 5.2vw, 5.5rem); line-height: 1.04; }
.cine__tag {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clr-text-secondary);
  background: color-mix(in srgb, var(--clr-text-primary) 5%, transparent); border: 1px solid var(--clr-border-med);
}
.cine__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--clr-teal); }
.cine__sub { margin-top: 1.75rem; max-width: 52ch; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); line-height: 1.6; color: var(--clr-text-secondary); }
.cine__t1 {
  font-weight: 600; letter-spacing: -0.04em; margin-bottom: 0.25rem;
  text-shadow: 0 10px 30px color-mix(in srgb, var(--clr-text-primary) 20%, transparent), 0 2px 4px color-mix(in srgb, var(--clr-text-primary) 10%, transparent);
}
.cine__t2 {
  font-weight: 700; letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--clr-text-primary) 0%, color-mix(in srgb, var(--clr-text-primary) 40%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: translateZ(0);
  filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--clr-text-primary) 14%, transparent));
}

.cine__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.25rem; }

/* Tactile buttons */
.cbtn {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.75rem; border-radius: 1.25rem;
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; font-size: 1.125rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s;
}
.cbtn svg { width: 1.75rem; height: 1.75rem; flex: none; transition: transform 0.3s; }
.cbtn:hover svg { transform: scale(1.1); }
.cbtn small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.cbtn--light {
  background: linear-gradient(180deg, #fff 0%, #F1F5F9 100%); color: #0F172A;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.1), 0 12px 24px -4px rgba(0,0,0,0.28), inset 0 1px 1px #fff, inset 0 -3px 6px rgba(0,0,0,0.06);
}
.cbtn--light:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 6px 12px -2px rgba(0,0,0,0.15), 0 20px 32px -6px rgba(0,0,0,0.38), inset 0 1px 1px #fff, inset 0 -3px 6px rgba(0,0,0,0.06); }
.cbtn--light:active { transform: translateY(1px); background: linear-gradient(180deg, #F1F5F9, #E2E8F0); box-shadow: inset 0 3px 6px rgba(0,0,0,0.12); }
.cbtn--dark {
  background: linear-gradient(180deg, #27272A 0%, #18181B 100%); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.6), 0 12px 24px -4px rgba(0,0,0,0.85), inset 0 1px 1px rgba(255,255,255,0.15), inset 0 -3px 6px rgba(0,0,0,0.8);
}
.cbtn--dark:hover { transform: translateY(-3px); background: linear-gradient(180deg, #3F3F46, #27272A); }
.cbtn--dark:active { transform: translateY(1px); background: #18181B; box-shadow: inset 0 3px 8px rgba(0,0,0,0.9); }
.cbtn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* ---------- The physical card ---------- */
.cine__stage { width: 100%; display: flex; justify-content: center; }
.cine__card {
  position: relative; overflow: hidden; width: min(92vw, 78rem); border-radius: 2.5rem;
  background: linear-gradient(145deg, #0B3B2E 0%, #07130F 100%);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.9), 0 20px 40px -20px rgba(0,0,0,0.8), inset 0 1px 2px rgba(255,255,255,0.2), inset 0 -2px 4px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05); color: #fff;
}
.cine__sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 50; mix-blend-mode: screen;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.07) 0%, transparent 40%);
}
.cine__layout {
  position: relative; z-index: 10; width: 100%; height: 100%; max-width: 80rem; margin: 0 auto;
  padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 1rem;
}
.cine__brand { order: 1; width: 100%; display: flex; justify-content: center; z-index: 20; }
.cine__brand h2 {
  font-family: var(--font-serif); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; white-space: nowrap;
  font-size: clamp(3.25rem, 14vw, 6rem);
  background: linear-gradient(180deg, #fff 0%, #A1A1AA 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: translateZ(0); filter: drop-shadow(0 12px 24px rgba(0,0,0,0.8)) drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.cine__mock-wrap { order: 2; position: relative; width: 100%; height: 25rem; display: flex; align-items: center; justify-content: center; perspective: 1000px; z-index: 10; }
.cine__mock-scale { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform: scale(0.65); }
.cine__copy { order: 3; width: 100%; text-align: center; z-index: 20; padding-inline: 1rem; }
.cine__copy h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.cine__copy p { display: none; margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.65; color: rgba(209,250,229,0.75); }
.cine__copy strong { color: #fff; font-weight: 600; }

/* ---------- Phone mockup ---------- */
.cine__phone {
  position: relative; width: 280px; height: 580px; border-radius: 3rem; flex: none; background: #111; transform-style: preserve-3d; will-change: transform;
  box-shadow: inset 0 0 0 2px #52525B, inset 0 0 0 7px #000, 0 40px 80px -15px rgba(0,0,0,0.9), 0 15px 25px -5px rgba(0,0,0,0.7);
}
.cine__hw { position: absolute; width: 3px; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, #404040, #171717); box-shadow: -2px 0 5px rgba(0,0,0,0.8), inset -1px 0 1px rgba(255,255,255,0.15); }
.cine__hw--l1 { top: 120px; left: -3px; height: 25px; }
.cine__hw--l2 { top: 160px; left: -3px; height: 45px; }
.cine__hw--l3 { top: 220px; left: -3px; height: 45px; }
.cine__hw--r  { top: 170px; right: -3px; height: 70px; border-radius: 0 3px 3px 0; transform: scaleX(-1); }
.cine__screen { position: absolute; inset: 7px; border-radius: 2.5rem; overflow: hidden; background: #04100C; box-shadow: inset 0 0 15px #000; color: #fff; }
.cine__glare { position: absolute; inset: 0; z-index: 40; pointer-events: none; background: linear-gradient(110deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%); }
.cine__island { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 100px; height: 28px; background: #000; border-radius: 99px; z-index: 50; display: flex; align-items: center; justify-content: flex-end; padding-inline: 12px; }
.cine__island i { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px rgba(34,197,94,0.8); animation: ping-soft 2s ease-in-out infinite; }
@keyframes ping-soft { 50% { opacity: 0.4; } }
.cine__app { position: relative; height: 100%; padding: 3rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cine__app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cine__app-head small { display: block; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: #A1A1AA; }
.cine__app-head strong { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: -0.02em; }
.cine__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.cine__ring { position: relative; width: 11rem; height: 11rem; margin: 0 auto 1rem; display: grid; place-items: center; }
.cine__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cine__ring-bar { transform: rotate(-90deg); transform-origin: 88px 88px; stroke-dasharray: 402; stroke-dashoffset: 120; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(52,211,153,0.5)); }
.cine__ring div { text-align: center; z-index: 1; }
.cine__count::after { content: '+'; color: #34D399; }
.cine__count { display: block; font-family: var(--font-serif); font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.cine__ring small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: rgba(167,243,208,0.6); }
.cine__widget { }
.cine__row {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem; border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04); box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.05);
}
.cine__row b { display: block; font-size: 0.78rem; font-weight: 600; color: #E4E4E7; line-height: 1.2; }
.cine__row small { display: block; font-size: 0.68rem; color: #A1A1AA; margin-top: 2px; }

/* Floating glass badges */
.cine__badge {
  position: absolute; z-index: 30; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.01));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 25px 50px -12px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.2);
}
.cine__badge b { display: block; font-size: 0.75rem; font-weight: 700; color: #fff; white-space: nowrap; }
.cine__badge small { display: block; font-size: 10px; color: rgba(167,243,208,0.6); white-space: nowrap; }
.cine__badge--a { top: 1.5rem; left: -15px; }
.cine__badge--b { bottom: 3rem; right: -15px; }

/* ---------- Desktop layout ---------- */
@media (min-width: 768px) {
  .cine__card { width: min(85vw, 78rem); border-radius: 2.5rem; }
  .cine__mock-scale { transform: scale(0.85); }
  .cine__copy p { display: block; }
}
@media (min-width: 1024px) {
  .cine__layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 3rem; align-items: center; }
  .cine__brand { order: 3; justify-content: flex-end; }
  .cine__brand h2 { font-size: clamp(3.5rem, 5.6vw, 6.25rem); }
  .cine__mock-wrap { order: 2; height: 37.5rem; }
  .cine__mock-scale { transform: none; }
  .cine__copy { order: 1; text-align: left; padding: 0; }
  .cine__copy h3 { margin-bottom: 1.25rem; }
  .cine__copy p { max-width: none; }
  .cine__badge { padding: 1rem; border-radius: 1rem; gap: 1rem; }
    .cine__badge b { font-size: 0.875rem; }
  .cine__badge small { font-size: 0.75rem; }
  .cine__badge--a { top: 2.5rem; left: -150px; }
  .cine__badge--b { bottom: 0.5rem; right: -150px; }
}

/* ---------- Live (pinned) mode — added by JS ---------- */
.cine.is-live {
  margin: 0; padding: 0; gap: 0; display: block; width: 100%;
  height: 100vh; height: 100svh; overflow: hidden; perspective: 1500px;
  background: var(--clr-bg);
}
.cine.is-live .cine__intro {
  position: absolute; left: 0; top: 50%; width: 100%; z-index: 10; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cine.is-live .cine__stage { position: absolute; inset: 0; z-index: 20; align-items: center; pointer-events: none; }
.cine.is-live .cine__card {
  width: 92vw; height: 92vh; height: 92svh; pointer-events: auto; border-radius: 2rem; display: flex; align-items: center; justify-content: center;
}
.cine.is-live .cine__layout { height: 100%; }
@media (min-width: 768px) { .cine.is-live .cine__card { width: 85vw; height: 85vh; height: 85svh; border-radius: 2.5rem; } }
.cine.is-live .gsap-reveal { visibility: hidden; }

@media (prefers-reduced-motion: reduce) { .cine__island i { animation: none; } }

/* Phones use the static layout: skip the floating badges, they would cover the phone screen */
@media (max-width: 767px) { .cine__badge { display: none; } }
