/* ============================================================
   World Streaming Vision — global styles
   ============================================================ */
:root {
  --bg: #0b0f17;
  --bg-soft: #121826;
  --panel: #161d2d;
  --text: #e8ecf4;
  --muted: #9aa6bd;
  --accent: #3dd6c4;
  --accent-2: #5b8cff;
  --accent-grad: linear-gradient(120deg, #5b8cff 0%, #3dd6c4 100%);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 800; color: #06121f;
  font-size: 15px;
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent-grad);
  color: #06121f !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { text-decoration: none; opacity: 0.92; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 50% -10%, rgba(91, 140, 255, 0.22), transparent 70%),
              radial-gradient(700px 380px at 85% 20%, rgba(61, 214, 196, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1; margin: 0 0 20px; font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #06121f; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 10px 0 14px; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-alt { background: var(--bg-soft); }

/* ---------- Backstory timeline ---------- */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--accent-2), var(--accent));
  opacity: 0.5;
}
.tl-item { position: relative; padding: 0 0 40px 70px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 12px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 0 5px rgba(61, 214, 196, 0.12);
}
.tl-item h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tl-item .step { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tl-item p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(61, 214, 196, 0.4); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(91, 140, 255, 0.14);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Gallery cards (index of galleries) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  min-height: 260px; display: flex; align-items: flex-end;
  text-decoration: none; color: var(--text);
}
.gallery-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; transition: transform 0.5s ease;
}
.gallery-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(6, 12, 24, 0.92));
  z-index: 1;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .meta { position: relative; z-index: 2; padding: 24px; width: 100%; }
.gallery-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.gallery-card .count { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.gallery-card p { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; }

/* ---------- Media grid (inside a gallery page) ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.media-tile {
  position: relative; border-radius: 12px; overflow: hidden;
  cursor: pointer; background: var(--panel); border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.media-tile:hover img { transform: scale(1.07); }
.media-tile .play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  pointer-events: none;
}
.media-tile .play span {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(6, 12, 24, 0.6); backdrop-filter: blur(2px);
  display: grid; place-items: center; border: 2px solid rgba(255,255,255,0.8);
}
.media-tile .play span::after {
  content: ""; margin-left: 4px;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.media-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 10px 12px; font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(6,12,24,0.85)); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 14, 0.95);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 92vw; max-height: 88vh; position: relative; }
.lightbox-content img, .lightbox-content video { max-width: 92vw; max-height: 82vh; border-radius: 10px; }
.lightbox .cap { color: var(--muted); text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 22px; cursor: pointer; display: grid; place-items: center;
}
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; z-index: 2; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(61,214,196,0.14); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-info .row strong { display: block; }
.contact-info .row a { color: var(--text); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 15px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 46px 0 30px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.92rem; }
.footer-copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Hero signal animation ---------- */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(61, 214, 196, 0.18);
  animation: ring-pulse 4s ease-out infinite;
}
.ring-2 { animation-delay: 1.33s; }
.ring-3 { animation-delay: 2.66s; }
@keyframes ring-pulse {
  0%   { width: 80px;  height: 80px;  opacity: 0.7; }
  100% { width: 900px; height: 900px; opacity: 0; }
}

/* Animated shimmer on gradient headline */
.hero h1 .grad {
  background-size: 200% 100%;
  animation: text-shimmer 5s linear infinite;
}
@keyframes text-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Live badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  background: rgba(61, 214, 196, 0.08);
  border: 1px solid rgba(61, 214, 196, 0.22);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4a4a;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 74, 74, 0.45); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(255, 74, 74, 0); }
}

/* Signal waveform below hero CTA */
.hero-wave {
  display: flex; justify-content: center; align-items: center; gap: 3px;
  height: 52px; margin-top: 46px; opacity: 0.35;
  pointer-events: none;
}
.hero-wave span {
  display: block; width: 3px; border-radius: 2px;
  background: var(--accent-grad);
  animation: wave-bar 1.6s ease-in-out infinite;
}
@keyframes wave-bar {
  0%, 100% { height: 6px; }
  50%       { height: var(--h, 20px); }
}
.hero-wave span:nth-child(1)  { --h: 14px; animation-delay: 0.00s; }
.hero-wave span:nth-child(2)  { --h: 22px; animation-delay: 0.08s; }
.hero-wave span:nth-child(3)  { --h: 34px; animation-delay: 0.16s; }
.hero-wave span:nth-child(4)  { --h: 44px; animation-delay: 0.24s; }
.hero-wave span:nth-child(5)  { --h: 38px; animation-delay: 0.32s; }
.hero-wave span:nth-child(6)  { --h: 48px; animation-delay: 0.40s; }
.hero-wave span:nth-child(7)  { --h: 36px; animation-delay: 0.48s; }
.hero-wave span:nth-child(8)  { --h: 46px; animation-delay: 0.40s; }
.hero-wave span:nth-child(9)  { --h: 50px; animation-delay: 0.32s; }
.hero-wave span:nth-child(10) { --h: 44px; animation-delay: 0.24s; }
.hero-wave span:nth-child(11) { --h: 50px; animation-delay: 0.16s; }
.hero-wave span:nth-child(12) { --h: 44px; animation-delay: 0.24s; }
.hero-wave span:nth-child(13) { --h: 50px; animation-delay: 0.32s; }
.hero-wave span:nth-child(14) { --h: 46px; animation-delay: 0.40s; }
.hero-wave span:nth-child(15) { --h: 36px; animation-delay: 0.48s; }
.hero-wave span:nth-child(16) { --h: 48px; animation-delay: 0.40s; }
.hero-wave span:nth-child(17) { --h: 38px; animation-delay: 0.32s; }
.hero-wave span:nth-child(18) { --h: 44px; animation-delay: 0.24s; }
.hero-wave span:nth-child(19) { --h: 34px; animation-delay: 0.16s; }
.hero-wave span:nth-child(20) { --h: 22px; animation-delay: 0.08s; }
.hero-wave span:nth-child(21) { --h: 14px; animation-delay: 0.00s; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stat {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: rgba(61, 214, 196, 0.1);
  display: grid; place-items: center;
  color: var(--accent);
}
.stat-icon svg { width: 20px; height: 20px; }
.stat strong { display: block; font-size: 0.95rem; color: var(--text); }
.stat span   { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 1px; }

/* ---------- Section dot pattern ---------- */
.section-alt {
  background: var(--bg-soft);
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Service card SVG icons ---------- */
.card .ic svg { width: 26px; height: 26px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .hero-wave { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 10px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
}
