:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070a12;
  color: #f7f8ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 115%, rgba(85, 68, 255, .22), transparent 44%),
    linear-gradient(rgba(89, 108, 165, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 108, 165, .075) 1px, transparent 1px),
    #070a12;
  background-size: auto, 56px 56px, 56px 56px, auto;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .09;
  pointer-events: none;
}

body::before { background: #ff9f2d; left: -24rem; bottom: -22rem; }
body::after { background: #665cff; right: -24rem; bottom: -22rem; }

.portal {
  min-height: 100vh;
  min-height: 100svh;
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
  padding: clamp(2.75rem, 8vh, 5.5rem) 0 2rem;
  display: flex;
  flex-direction: column;
}

.brand { text-align: center; }

.logo {
  width: 4.25rem;
  margin: 0 auto 1rem;
  display: grid;
  gap: .35rem;
  filter: drop-shadow(0 0 14px rgba(105, 93, 255, .5));
}

.logo span {
  height: .75rem;
  border: 2px solid #7b72ff;
  border-radius: .3rem;
  background: linear-gradient(90deg, rgba(90, 153, 255, .28), rgba(118, 78, 255, .28));
  box-shadow: inset 0 0 10px rgba(86, 149, 255, .18);
}

.logo span::after {
  content: "";
  display: block;
  width: .26rem;
  height: .26rem;
  margin: .12rem .36rem 0 auto;
  border-radius: 50%;
  background: #8f8aff;
  box-shadow: -.55rem 0 #4db0ff;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: .95;
  letter-spacing: -.06em;
  text-shadow: 0 6px 30px rgba(125, 125, 255, .18);
}

.brand p {
  margin: 1rem 0 0;
  color: #a8ade0;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  letter-spacing: .21em;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(3rem, 8vh, 5rem) auto 2rem;
  width: 100%;
}

.service {
  --accent: #fff;
  --accent-rgb: 255, 255, 255;
  position: relative;
  isolation: isolate;
  min-height: 22rem;
  padding: 2.5rem 2rem 2rem;
  border: 1px solid rgba(var(--accent-rgb), .58);
  border-radius: 1.35rem;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(30, 34, 47, .9), rgba(12, 15, 26, .96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 20rem;
  height: 12rem;
  left: calc(50% - 10rem);
  bottom: -9rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .48);
  filter: blur(48px);
  transition: bottom .25s ease, opacity .25s ease;
}

.service:hover,
.service:focus-visible {
  transform: translateY(-7px);
  border-color: var(--accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4), 0 0 35px rgba(var(--accent-rgb), .13);
  outline: none;
}

.service:hover::before,
.service:focus-visible::before { bottom: -7rem; }

.plex { --accent: #ffac38; --accent-rgb: 255, 166, 48; }
.seerr { --accent: #8178ff; --accent-rgb: 123, 112, 255; }

.icon {
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.3rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  filter: drop-shadow(0 0 13px rgba(var(--accent-rgb), .55));
}

.play { position: relative; }
.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-top: 1.25rem solid transparent;
  border-bottom: 1.25rem solid transparent;
  border-left: 1.85rem solid var(--accent);
}

.search { padding: 1.7rem; fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }

.service-name { font-size: 2rem; font-weight: 750; letter-spacing: -.025em; }
.description { margin-top: .45rem; color: #afb3c6; font-size: 1rem; }

.arrow {
  width: 3rem;
  height: 3rem;
  margin-top: auto;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.5rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.service:hover .arrow,
.service:focus-visible .arrow { color: #070a12; background: var(--accent); transform: translateX(3px); }

footer {
  margin-top: auto;
  padding-top: 2.3rem;
  text-align: center;
  color: #858ba7;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: lowercase;
}

footer span::before,
footer span::after { content: ""; display: inline-block; width: 2.7rem; height: 1px; margin: 0 1rem .25rem; background: #47506b; }

@media (max-width: 700px) {
  .portal { padding-top: 2.2rem; }
  .services { grid-template-columns: 1fr; margin-top: 2.6rem; gap: 1rem; }
  .service { min-height: 15.75rem; padding: 1.6rem; }
  .icon { width: 5.5rem; height: 5.5rem; margin-bottom: .8rem; }
  .search { padding: 1.3rem; }
  .arrow { margin-top: 1.3rem; }
  footer { padding-block: 1rem; }
}

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