:root {
  --bg: #0a0e14;
  --bg-deep: #06090e;
  --panel: rgba(18, 24, 34, 0.72);
  --panel-solid: #121822;
  --line: rgba(200, 210, 222, 0.12);
  --text: #e8ecf2;
  --muted: #8b96a8;
  --mint: #8bead4;
  --mint-dim: rgba(139, 234, 212, 0.18);
  --cyan: #5ec8e8;
  --slate: #c8d2de;
  --watch: #a78bfa;
  --font-brand: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(139, 234, 212, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(94, 200, 232, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 100% 20%, rgba(167, 139, 250, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0c121a 45%, var(--bg) 100%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 210, 222, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 15%, transparent 75%);
  opacity: 0.8;
  transform: translate(var(--parallax-x), var(--parallax-y));
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-mint {
  width: 380px;
  height: 380px;
  background: rgba(139, 234, 212, 0.16);
  top: 50%;
  left: -100px;
}

.orb-slate {
  width: 420px;
  height: 420px;
  background: rgba(94, 200, 232, 0.12);
  top: -80px;
  right: -120px;
  animation-delay: -6s;
}

@keyframes floatOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, -22px) scale(1.06); }
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: riseIn 0.7s ease both;
}

.logo {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  justify-self: start;
  padding-left: 0.35rem;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(6, 9, 14, 0.45);
  border: 1px solid var(--line);
}

.pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  color: var(--text);
  outline: none;
}

.pill.is-active {
  color: var(--bg-deep);
  background: var(--slate);
}

.eco-chip {
  justify-self: end;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--mint);
  background: var(--mint-dim);
  border: 1px solid rgba(139, 234, 212, 0.28);
}

/* Page */
.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
  flex: 1;
}

.hero-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  background: linear-gradient(115deg, #fff 8%, var(--mint) 42%, var(--cyan) 72%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShine 9s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(139, 234, 212, 0.2));
  will-change: transform;
}

@keyframes brandShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  letter-spacing: 0.03em;
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.feature {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover,
.feature:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.feature-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-firmware .feature-bg {
  background:
    radial-gradient(ellipse 80% 70% at 85% 20%, rgba(139, 234, 212, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(94, 200, 232, 0.2), transparent 50%),
    linear-gradient(145deg, #0f1a22 0%, #132430 50%, #0a1218 100%);
}

.feature-monitoring .feature-bg {
  background:
    radial-gradient(ellipse 70% 60% at 90% 15%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 85%, rgba(94, 200, 232, 0.12), transparent 50%),
    linear-gradient(145deg, #12101c 0%, #1a1528 55%, #0c0e16 100%);
}

.feature-firmware:hover {
  border-color: rgba(139, 234, 212, 0.45);
  box-shadow: 0 18px 48px rgba(139, 234, 212, 0.12);
}

.feature-monitoring:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.12);
}

.feature-body {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.45rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 14, 0.55) 55%, rgba(6, 9, 14, 0.82) 100%);
}

.feature-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.feature-monitoring .feature-kicker {
  color: var(--watch);
}

.feature-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 22rem;
  margin-bottom: 0.55rem;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(232, 236, 242, 0.94);
  color: #0a0e14;
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature:hover .feature-cta {
  transform: translateX(3px);
  background: #fff;
}

.play-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a0e14;
  position: relative;
}

.play-ico::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--mint);
}

/* Chips */
.chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 34, 0.65);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  color: var(--text);
  border-color: rgba(200, 210, 222, 0.28);
  outline: none;
}

.chip.is-active {
  color: var(--bg-deep);
  background: var(--slate);
  border-color: transparent;
}

/* Catalog */
.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.catalog-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.poster {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.poster.is-hidden {
  display: none;
}

.poster:hover,
.poster:focus-visible {
  transform: translateY(-5px);
  outline: none;
}

.poster-art {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-solid);
  position: relative;
  overflow: hidden;
}

.poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 9, 14, 0.55) 100%);
  pointer-events: none;
}

.poster-art--firmware {
  background:
    radial-gradient(circle at 70% 25%, rgba(139, 234, 212, 0.45), transparent 45%),
    linear-gradient(160deg, #14303a, #0c1a22);
}

.poster-art--monitoring {
  background:
    radial-gradient(circle at 30% 70%, rgba(167, 139, 250, 0.4), transparent 50%),
    linear-gradient(160deg, #1e1730, #101018);
}

.poster-art--panel {
  background:
    radial-gradient(circle at 60% 40%, rgba(200, 210, 222, 0.28), transparent 50%),
    linear-gradient(160deg, #1a222c, #0e141c);
}

.poster-art--vpn {
  background:
    radial-gradient(circle at 40% 30%, rgba(94, 200, 232, 0.4), transparent 48%),
    linear-gradient(160deg, #102830, #0a141a);
}

.poster-art--semya {
  background:
    radial-gradient(circle at 55% 55%, rgba(139, 234, 212, 0.25), transparent 50%),
    linear-gradient(160deg, #1a2830, #121820);
}

.poster-art--pay {
  background:
    radial-gradient(circle at 65% 35%, rgba(250, 204, 120, 0.35), transparent 48%),
    linear-gradient(160deg, #2a2218, #14120e);
}

.poster-art--search {
  background:
    radial-gradient(circle at 35% 40%, rgba(94, 200, 232, 0.32), transparent 50%),
    linear-gradient(160deg, #142028, #0c1218);
}

.poster-art--blacklist {
  background:
    radial-gradient(circle at 50% 30%, rgba(232, 120, 120, 0.28), transparent 50%),
    linear-gradient(160deg, #241818, #120e0e);
}

.poster-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.15rem;
}

.poster-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.poster-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.more {
  margin-top: 2.25rem;
  text-align: center;
}

.more-text {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* Motion */
.reveal {
  animation: riseIn 0.75s ease both;
}

.hero-brand { animation-delay: 0.05s; }
.featured { animation-delay: 0.12s; }
.chips { animation-delay: 0.2s; }
.catalog { animation-delay: 0.28s; }
.more { animation-delay: 0.36s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    border-radius: 20px;
    gap: 0.65rem;
  }

  .logo { grid-column: 1; }
  .eco-chip { grid-column: 2; }
  .pill-nav {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .pill {
    flex: 1;
    text-align: center;
    padding-inline: 0.5rem;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 200px;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .orb,
  .reveal,
  .topbar,
  .feature,
  .poster {
    animation: none !important;
    transition: none !important;
  }
}
