/* Base reset */
:root {
  --font-main: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --color-bg: #050505;
  --color-text: #ffffff;
  --color-text-muted: #9ca3af;
  --color-primary: #e50914; /* Netflix red-ish, can be adjusted to brand color */
  --color-primary-hover: #f40612;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* Prevent scroll on body, handle in .site if needed */
}

.site {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --- Background Marquee --- */
.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6; /* Dim the background slightly */
  mask-image: radial-gradient(
    circle at center,
    black 40%,
    transparent 100%
  ); /* Focus attention to center */
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 40%,
    transparent 100%
  );
}

.row {
  display: flex;
  padding-block: clamp(10px, 1.5vh, 20px);
  transform: rotate(-5deg) scale(1.1); /* Slight tilt for dynamism */
  width: 120%; /* Compensate for rotation */
  margin-left: -10%;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  width: max-content;
  will-change: transform;
  animation: scroll var(--speed, 80s) linear infinite;
}

.row[style*="-1"] .track {
  animation-direction: reverse;
}

@keyframes scroll {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

.poster {
  width: clamp(140px, 18vw, 240px);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: #1a1a1a;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-out-expo);
  filter: grayscale(40%); /* Subtle desaturation */
}

/* Vignette / Overlay */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    rgba(5, 5, 5, 0.4) 0%,
    rgba(5, 5, 5, 0.95) 80%
  );
}

/* --- Main Content --- */
.hero {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px;
  max-width: 800px;
  width: 90%;

  /* Glassmorphism Container */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  animation: hero-enter 1s var(--ease-out-expo) backwards;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* Spotlight Effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}

.hero:hover::before {
  opacity: 1;
}

.hero .subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-muted);
  margin: 0 auto 32px;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 300;
}

/* --- Actions --- */
.actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  border: 1px solid transparent;
}

/* Primary Button */
.cta:not(.outline) {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta:not(.outline):hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta:not(.outline):active {
  transform: translateY(0);
}

/* Outline Button */
.cta.outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.cta.outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cta.outline:active {
  transform: translateY(0);
}

/* --- Server Card --- */
.server-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.server-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.server-card .label {
  color: var(--color-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.server-card .value {
  font-family: "Outfit", monospace; /* Use Outfit for numbers too, looks cleaner */
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.02em;
}

/* --- Toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 100;
  font-weight: 500;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .row {
    transform: rotate(0deg) scale(1);
    width: 100%;
    margin-left: 0;
  }
  .hero {
    padding: 32px 20px;
    width: 95%;
  }
  .poster {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
  .hero {
    animation: none;
  }
  .cta,
  .poster {
    transition: none;
  }
}
