/* =====================================================================
 * UG Media — Public Landing Page Design System
 * ---------------------------------------------------------------------
 * Dark, cinematic, modern, high-performance styling.
 * Mobile responsive down to 390px.
 * ===================================================================== */

:root {
  --color-sports: #f5c518;
  --color-tv: #00e5ff;
  --color-movies: #e50914;
  --color-series: #9b51e0;
  --color-radio: #ff9900;
  --landing-max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.theme-landing {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main, #070809);
  color: var(--text-main, #f3f5f8);
  font-family: var(--font-body, 'Source Sans 3', system-ui, -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(1000px 500px at 50% -50px, rgba(245, 197, 24, 0.08), transparent 70%),
    radial-gradient(800px 450px at 90% 20%, rgba(0, 229, 255, 0.05), transparent 60%),
    radial-gradient(800px 500px at 10% 45%, rgba(155, 81, 224, 0.05), transparent 60%),
    radial-gradient(900px 600px at 50% 80%, rgba(229, 9, 20, 0.04), transparent 65%);
}

.landing-wrap {
  width: 100%;
  max-width: var(--landing-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Page-Entry Motion Choreography ---------------- */
@keyframes landingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes landingSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingScaleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------- Topbar ---------------- */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 9, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  animation: landingFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.landing-brand__logo {
  height: 38px;
  width: auto;
  display: block;
}

.landing-brand__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f5c518;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------------- Buttons ---------------- */
.btn-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  transition: all var(--dur-fast, 140ms) cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-landing:active {
  transform: scale(0.98);
}

.btn-landing--primary {
  background: linear-gradient(180deg, #fce053 0%, #f5c518 100%);
  color: #070809;
  border-color: #f5c518;
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.28);
}

.btn-landing--primary:hover {
  background: linear-gradient(180deg, #ffea70 0%, #ffd84d 100%);
  border-color: #ffd84d;
  box-shadow: 0 8px 26px rgba(245, 197, 24, 0.42);
  transform: translateY(-2px);
}

.btn-landing--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f8;
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn-landing--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-landing--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 14px;
}

/* ---------------- Hero Section ---------------- */
.hero {
  padding: 84px 0 64px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 65vw, 760px);
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12), rgba(0, 229, 255, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.09);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 24px;
  animation: landingSlideUp 260ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

.hero-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
}

.hero-title {
  font-family: var(--font-display, 'Bebas Neue', 'Source Sans 3', sans-serif);
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: 0.8px;
  margin: 0 0 20px;
  color: #ffffff;
  text-transform: uppercase;
  animation: landingSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #ffd84d 55%, #f5c518 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: #9ba2af;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  animation: landingSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: landingScaleIn 320ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

/* ---------------- Module Grid ---------------- */
.section-title {
  text-align: center;
  margin: 72px 0 14px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.section-subtitle {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
  color: #838c9c;
  font-size: 15px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
  animation: landingSlideUp 340ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

.module-card {
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.72) 0%, rgba(13, 16, 23, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, #ffffff);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.module-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(255,255,255,0.1)), transparent 70%);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px var(--card-glow, transparent);
}

.module-card:hover::after {
  opacity: 0.35;
  transform: scale(1.15);
}

.module-card--sports { --card-color: var(--color-sports); --card-glow: rgba(245, 197, 24, 0.22); }
.module-card--tv     { --card-color: var(--color-tv);     --card-glow: rgba(0, 229, 255, 0.22); }
.module-card--movies { --card-color: var(--color-movies); --card-glow: rgba(229, 9, 20, 0.22); }
.module-card--series { --card-color: var(--color-series); --card-glow: rgba(155, 81, 224, 0.22); }
.module-card--radio  { --card-color: var(--color-radio);  --card-glow: rgba(255, 153, 0, 0.22); }

.module-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--card-color, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.module-card:hover .module-icon {
  transform: scale(1.06);
}

.module-title {
  font-size: 20px;
  font-weight: 750;
  margin: 0 0 10px;
  color: #ffffff;
}

.module-desc {
  font-size: 14px;
  color: #8c96a4;
  margin: 0;
  line-height: 1.55;
}

/* ---------------- Ecosystem / Devices ---------------- */
.ecosystem-section {
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.65) 0%, rgba(11, 14, 19, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 44px 36px;
  margin-bottom: 72px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  animation: landingSlideUp 340ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.ecosystem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ecosystem-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.ecosystem-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f5c518;
}

.ecosystem-item__content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecosystem-item__badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}

.ecosystem-item__badge--active {
  background: rgba(52, 208, 122, 0.15);
  color: #34d07a;
  border: 1px solid rgba(52, 208, 122, 0.3);
}

.ecosystem-item__badge--future {
  background: rgba(155, 162, 175, 0.12);
  color: #9ba2af;
  border: 1px solid rgba(155, 162, 175, 0.25);
}

.ecosystem-item__content p {
  font-size: 13.5px;
  color: #8c96a4;
  margin: 0;
  line-height: 1.5;
}

/* ---------------- Invite Banner ---------------- */
.invite-banner {
  background: radial-gradient(800px 300px at 50% 0%, rgba(245, 197, 24, 0.14), transparent 70%),
              linear-gradient(180deg, #141822 0%, #0c0e13 100%);
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.invite-banner h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 14px;
  color: #ffffff;
}

.invite-banner p {
  font-size: 15.5px;
  color: #9ba2af;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ---------------- Footer ---------------- */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 36px 0;
  background: rgba(7, 8, 9, 0.95);
}

.landing-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-footer__logo {
  height: 26px;
  opacity: 0.8;
}

.landing-footer__copy {
  font-size: 13px;
  color: #636b78;
}

.landing-footer__auth-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: #cdd3dc;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.landing-footer__auth-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-footer__auth-link:hover {
  color: #fff;
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.4);
}
.landing-footer__auth-link:hover svg { transform: translateX(3px); }
.landing-footer__auth-link:focus-visible {
  outline: 2px solid rgba(245, 197, 24, 0.5);
  outline-offset: 2px;
}

/* ---------------- Responsive (down to 390px) ---------------- */
@media (max-width: 768px) {
  .landing-header__inner {
    height: 64px;
  }
  .landing-brand__logo {
    height: 32px;
  }
  .landing-brand__badge {
    display: none;
  }
  .landing-header__actions {
    gap: 8px;
  }
  .btn-landing {
    padding: 0 12px;
    height: 36px;
    font-size: 13px;
    border-radius: 10px;
  }
  .btn-landing--lg {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: 12px;
  }
  .hero {
    padding: 48px 0 36px;
  }
  .hero-title {
    font-size: 38px;
    letter-spacing: 0.5px;
  }
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ecosystem-section {
    padding: 24px 16px;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .invite-banner {
    padding: 32px 16px;
  }
  .landing-footer__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
