@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg-deep: #030b14;
  --bg-mid: #071c2c;
  --bg-panel: rgba(7, 19, 31, 0.78);
  --text-main: #eef7ff;
  --text-muted: #9fb3c8;
  --accent: #6ee7e1;
  --accent-soft: #9ad8ff;
  --accent-warm: #f2c078;
  --border: rgba(148, 201, 255, 0.2);
  --shadow: rgba(2, 6, 12, 0.55);
  --glass: rgba(7, 20, 32, 0.65);
  --font-display: 'Bebas Neue', 'Anton', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --letter-spacing-wide: 0.38em;
  --letter-spacing-headline: 0.16em;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 18%, rgba(110, 231, 225, 0.22), transparent 45%),
    radial-gradient(circle at 82% 12%, rgba(154, 216, 255, 0.2), transparent 40%),
    radial-gradient(circle at 65% 78%, rgba(44, 120, 195, 0.2), transparent 45%),
    linear-gradient(140deg, #02070f 0%, var(--bg-mid) 52%, #071527 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 55%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 6px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 1000;
  opacity: 1;
  pointer-events: none;
  animation: boot-overlay-fade 0.7s ease-out 0.8s forwards;
}

@keyframes boot-overlay-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(110, 231, 225, 0.35), transparent 65%);
  top: -140px;
  left: -120px;
}

.orb-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(242, 192, 120, 0.22), transparent 70%);
  bottom: -180px;
  right: -140px;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(154, 216, 255, 0.25), transparent 70%);
  top: 35%;
  right: 8%;
}

.orb-4 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(44, 120, 195, 0.22), transparent 72%);
  bottom: -240px;
  left: 18%;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 5.5rem 3rem 6rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: relative;
  z-index: 10;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 1.4s;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 1.6s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 1.8s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 2.0s;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 2.2s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(154, 216, 255, 0.85);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 6.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: var(--letter-spacing-headline);
  text-transform: uppercase;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 36rem;
  line-height: 1.75;
  text-shadow: 0 2px 8px rgba(3, 9, 18, 0.6);
}

.inline-link {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 216, 255, 0.4);
  padding-bottom: 2px;
  margin-left: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.inline-link:hover {
  color: var(--text-main);
  border-color: rgba(154, 216, 255, 0.75);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(2, 6, 12, 0.25);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #021018;
  position: relative;
  z-index: 10;
}

.btn-ghost {
  background: rgb(7, 20, 32);
  border: 1px solid rgba(154, 216, 255, 0.2);
  color: var(--text-main);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 16px 30px rgba(2, 6, 12, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(130deg, var(--accent-soft) 0%, var(--accent) 100%);
}

.status-panel {
  background: rgb(7, 19, 31);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(154, 216, 255, 0.15);
  box-shadow: 0 30px 60px rgba(3, 9, 18, 0.4);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updated {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--glass);
  border-radius: 16px;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  border: 1px solid rgba(148, 201, 255, 0.15);
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  background: rgba(9, 27, 40, 0.7);
  border-color: rgba(154, 216, 255, 0.3);
}

.service-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.status-text {
  color: var(--text-main);
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 12px rgba(242, 192, 120, 0.6);
  opacity: 0;
  transform: scale(0.8);
}

.status-dot.boot-lit {
  animation: status-dot-light 0.4s ease-out forwards;
}

@keyframes status-dot-light {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.service-card.status-up .status-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(110, 231, 225, 0.6);
}

.service-card.status-up {
  background: rgba(8, 24, 36, 0.65);
}

.service-card.status-down {
  background: rgba(8, 24, 36, 0.65);
}

.service-card.status-disabled {
  background: rgba(8, 24, 36, 0.5);
  cursor: default;
  pointer-events: none;
}

.service-card.status-disabled .status-dot {
  background: var(--text-muted);
  box-shadow: 0 0 8px rgba(148, 201, 255, 0.2);
}

.service-card.status-disabled .status-text {
  color: var(--text-muted);
}

.status-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  z-index: 2;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 6% 10%;
  background: radial-gradient(circle at 50% 35%, rgba(110, 231, 225, 0.2), transparent 65%);
  border-radius: 32px;
  opacity: 0.6;
  filter: blur(8px);
}

.ocean-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.recently-added-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.drift-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 88px;
  height: 128px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  opacity: var(--card-opacity, 0.25);
  filter: saturate(0.75) blur(0.5px);
  transform: translate(-50%, -50%);
  animation: drift-card var(--float, 16s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 20px 35px rgba(2, 8, 14, 0.3);
  mix-blend-mode: screen;
}

.drift-card .drift-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(12, 34, 52, 0.8), transparent 60%);
  mix-blend-mode: screen;
}

.now-playing-float {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.now-playing-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(3, 9, 18, 0.4);
}

.now-playing-card {
  position: absolute;
  left: var(--card-x, 78%);
  top: var(--card-y, 40%);
  width: 260px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.85rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgb(6, 18, 30);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(154, 216, 255, 0.4);
  transform: translate(-50%, -50%);
  animation: float-card var(--float-duration, 8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 24px 40px rgba(3, 9, 18, 0.8), 0 0 20px rgba(110, 231, 225, 0.15);
  z-index: 5;
  min-width: 260px;
}

.now-playing-card[data-state="paused"] {
  opacity: 0.8;
}

.now-playing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.now-playing-art {
  width: 78px;
  height: 112px;
  border-radius: 12px;
  background: rgba(8, 26, 38, 0.8);
  overflow: hidden;
}

.now-playing-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
}

.now-playing-title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--text-main);
  text-shadow: 0 1px 3px rgba(3, 9, 18, 0.5);
}

.now-playing-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.now-playing-progress {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.now-playing-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(154, 216, 255, 0.2);
  overflow: hidden;
}

.now-playing-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
  width: 0%;
}

.now-playing-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.now-playing-empty {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
}

.now-playing-empty span {
  font-size: 0.7rem;
}

.jellyfish {
  width: min(380px, 78vw);
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(7, 15, 24, 0.65));
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 3;
  opacity: 0;
}

.jellyfish-boot {
  animation: jellyfish-boot-reveal 1.2s ease-out 0.3s forwards, float 6s ease-in-out 1.5s infinite;
}

@keyframes jellyfish-boot-reveal {
  0% {
    opacity: 0;
    filter: drop-shadow(0 26px 46px rgba(7, 15, 24, 0.65)) grayscale(100%) brightness(0.3);
  }
  40% {
    opacity: 0.35;
    filter: drop-shadow(0 26px 46px rgba(7, 15, 24, 0.65)) grayscale(80%) brightness(0.5);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 26px 46px rgba(7, 15, 24, 0.65)) grayscale(0%) brightness(1);
  }
}

.jelly-body .bell {
  fill: url(#bellFill);
}

.jelly-body .bell-glow {
  fill: url(#bellGlow);
  opacity: 0.8;
  animation: pulse 5s ease-in-out infinite;
}

.jelly-body .bell-shadow {
  fill: none;
  stroke: rgba(3, 16, 28, 0.4);
  stroke-width: 8;
  stroke-linecap: round;
}

.jelly-body .bell-highlight {
  fill: rgba(230, 244, 255, 0.8);
}

.jelly-tentacles .tentacle {
  fill: none;
  stroke: rgba(126, 211, 255, 0.9);
  stroke-width: 4;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: top center;
  animation: sway 4.8s ease-in-out infinite;
}

.jelly-tentacles .t2 {
  animation-delay: -0.6s;
}

.jelly-tentacles .t3 {
  animation-delay: -1.2s;
}

.jelly-tentacles .t4 {
  animation-delay: -1.8s;
}

.jelly-tentacles .t5 {
  animation-delay: -2.4s;
}

.jelly-tentacles .t6 {
  animation-delay: -0.9s;
}

.jelly-tentacles .t7 {
  animation-delay: -1.5s;
}

.jelly-tentacles .t8 {
  animation-delay: -2.1s;
}

.jelly-bubbles circle {
  fill: rgba(126, 211, 255, 0.5);
  animation: drift 6s ease-in-out infinite;
}

.jelly-bubbles circle:nth-child(2) {
  animation-delay: -1.5s;
}

.jelly-bubbles circle:nth-child(3) {
  animation-delay: -3s;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.8;
  }
}

@keyframes drift-card {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px) translateX(0px) rotate(-1deg);
  }
  25% {
    transform: translate(-50%, -50%) translateY(-6px) translateX(5px) rotate(0.5deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-8px) translateX(-4px) rotate(-0.5deg);
  }
  75% {
    transform: translate(-50%, -50%) translateY(-4px) translateX(3px) rotate(0.3deg);
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px) translateX(0px) rotate(-1deg);
  }
  25% {
    transform: translate(-50%, -50%) translateY(-8px) translateX(4px) rotate(0.5deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px) translateX(-3px) rotate(-0.5deg);
  }
  75% {
    transform: translate(-50%, -50%) translateY(-6px) translateX(2px) rotate(0.3deg);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-art {
    order: -1;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
  }

  .hero-copy {
    order: 0;
  }

  .page {
    padding: 4.5rem 1.75rem 5rem;
  }

  .jellyfish {
    order: 0;
    margin-bottom: 1.5rem;
    width: min(220px, 55vw);
  }

  .now-playing-float {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
    order: 1;
    z-index: 5;
  }

  .now-playing-card {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 200px;
    max-width: 200px;
    min-width: 200px;
    margin-bottom: 0;
    animation: float-card var(--float-duration, 8s) ease-in-out infinite;
    padding: 0.7rem;
    gap: 0.65rem;
    grid-template-columns: 60px 1fr;
  }

  .now-playing-card .now-playing-art {
    width: 60px;
    height: 85px;
  }

  .now-playing-card .now-playing-title {
    font-size: 0.8rem;
  }

  .now-playing-card .now-playing-sub {
    font-size: 0.7rem;
  }

  .now-playing-card .now-playing-time {
    font-size: 0.65rem;
  }

  .recently-added-field {
    display: block;
    position: fixed;
  }

  .ocean-stage {
    position: fixed;
    inset: 0;
  }
}

@media (max-width: 600px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .status-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-overlay {
    display: none;
  }

  .jellyfish,
  .jelly-body .bell-glow,
  .jelly-tentacles .tentacle,
  .jelly-bubbles circle,
  .now-playing-float,
  .now-playing-card,
  .drift-card {
    animation: none;
  }

  .jellyfish-boot {
    opacity: 1;
    filter: drop-shadow(0 26px 46px rgba(7, 15, 24, 0.65));
  }

  .status-dot {
    opacity: 1;
    transform: scale(1);
  }

  .btn,
  .service-card {
    transition: none;
  }

  .hero-copy > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
