/* ==========================================================================
   LIVE FREE CAM — style.css
   Design tokens
   Color:   --bg:#000000  --surface:rgba(255,255,255,.06)  --line:rgba(255,255,255,.12)
            --text:#F5F5F7  --muted:#9A9AA2  --accent-a:#FF2D78  --accent-b:#7C3AED  --live:#FF3B4E
   Type:    Display -> 'Sora'  Body -> 'Inter'
   ========================================================================== */

:root{
  --bg:#000000;
  --surface: rgba(255,255,255,0.06);
  --surface-strong: rgba(255,255,255,0.1);
  --line: rgba(255,255,255,0.12);
  --text:#F5F5F7;
  --muted:#9A9AA2;
  --accent-a:#FF2D78;
  --accent-b:#7C3AED;
  --live:#FF3B4E;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --ease: cubic-bezier(.22,.9,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img,video{ max-width:100%; display:block; }

a{ color:inherit; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Skip link for a11y */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--text); color:#000;
  padding:10px 16px; z-index:999; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:2px solid var(--accent-a);
  outline-offset:3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  isolation:isolate;
}

/* Simulated multi-cam grid background (real videos load into these tiles;
   a CSS-animated gradient is the graceful fallback + base ambience) */
.cam-grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  grid-template-rows:repeat(3,1fr);
  gap:2px;
  z-index:0;
  transform:scale(1.04);
  filter: blur(1.5px) saturate(1.05);
  animation: grid-drift 40s ease-in-out infinite alternate;
}

@keyframes grid-drift{
  0%{ transform:scale(1.04) translate(0,0); }
  100%{ transform:scale(1.09) translate(-1%, -1%); }
}

.cam-tile{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(120% 140% at 30% 20%, var(--tile-c1,#1a1a1a), transparent 60%),
    radial-gradient(120% 140% at 80% 80%, var(--tile-c2,#0a0a0a), transparent 60%),
    #050505;
  animation: tile-breathe var(--dur,14s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}

.cam-tile video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .8s ease;
}
.cam-tile video.is-ready{ opacity:.85; }

@keyframes tile-breathe{
  0%,100%{ filter:brightness(1) saturate(1); }
  50%{ filter:brightness(1.18) saturate(1.15); }
}

.cam-tile__meta{
  position:absolute;
  top:8px; left:8px; right:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:2;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
}

.cam-tile__badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  padding:3px 7px;
  border-radius:6px;
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
}
.cam-tile__dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--live);
  box-shadow:0 0 6px var(--live);
  animation:pulse-dot 1.4s ease-in-out infinite;
}
.cam-tile__views{
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(6px);
  padding:3px 7px;
  border-radius:6px;
  color:#e8e8ea;
  font-variant-numeric:tabular-nums;
}

.cam-tile__comment{
  position:absolute;
  left:8px; bottom:8px; right:8px;
  z-index:2;
  font-size:10.5px;
  color:#fff;
  background:rgba(20,20,24,.55);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  padding:5px 8px;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events:none;
}
.cam-tile__comment.show{
  opacity:1;
  transform:translateY(0);
}

@keyframes pulse-dot{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.35; transform:scale(.75); }
}

/* Overlay for legibility (~55% per brief) */
.hero__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.75) 100%);
  z-index:1;
}
.hero__vignette{
  position:absolute; inset:0;
  background:radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(0,0,0,.6) 100%);
  z-index:1;
}

/* Floating realtime status pill */
.status-bar{
  position:absolute;
  top:20px; left:50%;
  transform:translateX(-50%);
  z-index:5;
  display:flex; align-items:center; gap:10px;
  background:var(--surface);
  border:1px solid var(--line);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  padding:8px 14px;
  border-radius:999px;
  font-size:12.5px;
  animation:fade-in-down .8s var(--ease) both;
}
.status-bar__live{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:700; letter-spacing:.03em; color:#fff;
}
.status-bar__live .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--live); box-shadow:0 0 8px var(--live);
  animation:pulse-dot 1.4s ease-in-out infinite;
}
.status-bar__sep{ width:1px; height:14px; background:var(--line); }
.status-bar__count{ color:var(--muted); }
.status-bar__count strong{
  color:#fff; font-variant-numeric:tabular-nums; font-weight:700;
}

/* Language switcher */
.lang-switch{
  position:absolute;
  top:20px; right:20px;
  z-index:6;
}
.lang-switch select{
  appearance:none;
  background:var(--surface);
  border:1px solid var(--line);
  backdrop-filter:blur(16px);
  color:var(--text);
  font-size:12.5px;
  font-weight:600;
  padding:8px 30px 8px 14px;
  border-radius:999px;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239A9AA2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
}
.lang-switch select:hover{ background-color:var(--surface-strong); }

/* Hero content */
.hero__content{
  position:relative;
  z-index:4;
  max-width:780px;
  margin:0 auto;
  padding:120px 24px 40px;
  text-align:center;
}

.hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Sora',sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--muted);
  margin-bottom:22px;
  animation:fade-in-up .7s var(--ease) both;
  animation-delay:.05s;
}
.hero__eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent-a),var(--accent-b));
  animation:pulse-dot 1.6s ease-in-out infinite;
}

.hero__title{
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:clamp(2.2rem, 6vw, 4.2rem);
  line-height:1.08;
  letter-spacing:-.02em;
  margin:0 0 22px;
}
.hero__title span{ display:block; }
.hero__title .line1{
  color:#fff;
  animation:fade-in-up .8s var(--ease) both;
  animation-delay:.12s;
}
.hero__title .line2{
  background:linear-gradient(100deg,#fff 10%, #d9d3ff 45%, var(--accent-a) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:fade-in-up .8s var(--ease) both;
  animation-delay:.22s;
}

.hero__desc{
  font-size:clamp(.95rem, 1.4vw, 1.1rem);
  color:var(--muted);
  max-width:520px;
  margin:0 auto 34px;
  line-height:1.6;
  animation:fade-in-up .8s var(--ease) both;
  animation-delay:.32s;
}

.cta-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:'Sora',sans-serif;
  font-weight:600;
  font-size:1.02rem;
  color:#fff;
  background:linear-gradient(135deg,var(--accent-a),var(--accent-b));
  border:none;
  padding:16px 34px;
  border-radius:999px;
  cursor:pointer;
  isolation:isolate;
  box-shadow:0 10px 30px -8px rgba(255,45,120,.45);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  animation:fade-in-up .8s var(--ease) both;
  animation-delay:.42s;
}
.cta-btn::after{
  content:"";
  position:absolute; inset:-2px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent-a),var(--accent-b));
  z-index:-1;
  opacity:0;
  filter:blur(14px);
  transition:opacity .35s var(--ease);
}
.cta-btn:hover, .cta-btn:focus-visible{
  transform:translateY(-2px) scale(1.035);
  box-shadow:0 14px 40px -6px rgba(255,45,120,.6);
}
.cta-btn:hover::after, .cta-btn:focus-visible::after{ opacity:.65; }
.cta-btn:active{ transform:translateY(0) scale(.98); }
.cta-btn svg{ width:16px; height:16px; }

.hero__features{
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 18px;
  font-size:12.5px;
  color:var(--muted);
  animation:fade-in-up .8s var(--ease) both;
  animation-delay:.52s;
}
.hero__features span{ display:inline-flex; align-items:center; gap:6px; }
.hero__features span::before{
  content:"";
  width:4px; height:4px; border-radius:50%;
  background:var(--muted);
}

.scroll-cue{
  position:absolute;
  bottom:26px; left:50%;
  transform:translateX(-50%);
  z-index:4;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.05em;
  animation:fade-in .8s var(--ease) both;
  animation-delay:.8s;
}
.scroll-cue__mouse{
  width:22px; height:34px;
  border:1.5px solid var(--line);
  border-radius:12px;
  position:relative;
}
.scroll-cue__mouse::before{
  content:"";
  position:absolute;
  top:6px; left:50%;
  width:3px; height:6px;
  margin-left:-1.5px;
  border-radius:2px;
  background:#fff;
  animation:float-wheel 1.6s ease-in-out infinite;
}

@keyframes float-wheel{
  0%{ transform:translateY(0); opacity:1; }
  60%{ transform:translateY(10px); opacity:0; }
  61%{ transform:translateY(0); opacity:0; }
  100%{ transform:translateY(0); opacity:1; }
}

@keyframes fade-in-up{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes fade-in-down{
  from{ opacity:0; transform:translate(-50%,-14px); }
  to{ opacity:1; transform:translate(-50%,0); }
}
@keyframes fade-in{
  from{ opacity:0; } to{ opacity:1; }
}

/* Reveal-on-scroll utility (used by main.js on any later sections) */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width:900px){
  .cam-grid{ grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(4,1fr); }
}

@media (max-width:600px){
  .cam-grid{ grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(5,1fr); }
  .hero__content{ padding:100px 20px 40px; }
  .status-bar{ font-size:11px; padding:7px 12px; top:14px; }
  .lang-switch{ top:14px; right:14px; }
  .lang-switch select{ font-size:11px; padding:7px 26px 7px 12px; }
  .cta-btn{ padding:14px 28px; font-size:.95rem; }
  .cam-tile__meta, .cam-tile__views{ font-size:9px; }
}

@media (max-width:380px){
  .status-bar{ left:14px; right:14px; transform:none; justify-content:center; }
  .lang-switch{ top:64px; right:14px; }
}