:root {
  color-scheme: dark;
  --bg: #05030f;
  --panel: rgba(16, 14, 35, 0.82);
  --panel-strong: rgba(20, 18, 44, 0.95);
  --text: #f1edff;
  --muted: #a59ccf;
  --accent: #ff5fd7;
  --accent-2: #47f4ff;
  --accent-3: #7c4dff;
  --outline: rgba(255, 255, 255, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1c0f3f 0%, #0b0816 45%, #05030f 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.tv-wall {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.tv {
  background: linear-gradient(180deg, #3a2f57, #1b142f);
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 28px 60px rgba(6, 4, 16, 0.8), inset 0 0 24px rgba(0, 0, 0, 0.5);
  animation: float 12s ease-in-out infinite;
  transform-style: preserve-3d;
  transform: rotate(var(--rotation));
  position: relative;
}

.tv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  filter: saturate(1.1) contrast(1.05);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.tv::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.tv::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 16px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 2px,
    rgba(255, 255, 255, 0.04) 3px,
    rgba(0, 0, 0, 0.2) 4px
  );
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.tv-1 {
  --rotation: -3deg;
  animation-delay: -2s;
}

.tv-2 {
  --rotation: 4deg;
  scale: 1.05;
  animation-delay: -6s;
}

.tv-3 {
  --rotation: -6deg;
  scale: 0.95;
  animation-delay: -4s;
}

.tv-4 {
  --rotation: 2deg;
  scale: 1.08;
  animation-delay: -8s;
}

.tv-5 {
  --rotation: -1deg;
  scale: 0.9;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotation));
  }
  50% {
    transform: translateY(-12px) rotate(var(--rotation));
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(9, 6, 20, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--outline);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav a,
.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0518;
  font-weight: 600;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.updates-card {
  background: rgba(18, 14, 40, 0.85);
  border-radius: 24px;
  padding: 14px 20px;
  border: 1px solid var(--outline);
  box-shadow: 0 18px 40px rgba(5, 6, 11, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.updates-wide {
  margin-top: 8px;
  width: 100%;
}

.updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.updates-header h2 {
  font-size: 1.2rem;
}

.updates-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 95, 215, 0.18);
  color: var(--accent);
}

.updates-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.updates-frame {
  width: 100%;
  min-height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(8, 6, 18, 0.7);
  color: var(--text);
  padding: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-copy h1 span {
  color: var(--accent);
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0518;
  box-shadow: 0 16px 40px rgba(255, 95, 215, 0.25);
}

.button.ghost {
  border-color: var(--outline);
  color: var(--text);
  background: transparent;
}

.button.ghost:hover,
.button.primary:hover {
  box-shadow: 0 0 20px rgba(255, 95, 215, 0.25);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-card {
  background: var(--panel-strong);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--outline);
  box-shadow: 0 24px 60px rgba(5, 6, 11, 0.5);
  align-self: start;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.card-body h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.stats h3 {
  font-size: 1.6rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-total {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.hub-card {
  background: rgba(18, 14, 40, 0.82);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--outline);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hub-card p {
  color: var(--muted);
  line-height: 1.5;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 95, 215, 0.4);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

#apps .card-grid {
  justify-items: start;
}

#apps .media-card {
  width: 100%;
  max-width: 320px;
}

#blog .card-grid {
  justify-items: start;
}

#blog .media-card {
  width: 100%;
  max-width: 320px;
}

.media-card,
.info-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.info-card::after {
  content: "";
  display: block;
  clear: both;
}

.info-card.article-body {
  display: block;
}

.inline-video {
  display: block;
  width: clamp(220px, 38%, 300px);
  margin: 12px 0 20px;
}

.inline-video img,
.inline-video video {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.inline-video.align-left {
  float: left;
  margin-right: 24px;
  margin-left: 0;
}

.inline-video.align-right {
  float: right;
  margin-left: 24px;
  margin-right: 0;
}

.media-card div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.media-card a,
.info-card a {
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

.media-links {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.media-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 95, 215, 0.4);
}

.media-card p,
.info-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    border-radius: 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tv-wall {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 24px;
  }
}
