:root {
  --bg-deep-space: radial-gradient(circle at 20% 0%, #1a1a1a 0, transparent 55%),
    radial-gradient(circle at 80% 0%, #000000 0, transparent 100%),
    radial-gradient(circle at 10% 75%, #000000 0, transparent 25%),
    radial-gradient(circle at 80% 80%, #000000 0, transparent 100%),
    linear-gradient(135deg, #050816 0%, #05010b 40%, #060b24 100%);
  --card-radius: 20px;
  --card-border: 1px solid rgba(255, 255, 255, 0.18);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-glow: 0 0 25px rgba(0, 255, 255, 0.35);
  --accent-cyan: #20adff;
  --accent-magenta: #ff63d8;
  --text-primary: #f7fbff;
  --text-muted: #9eb2d9;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: #02040a;
  overflow-x: hidden;
}

.space-bg {
  position: fixed;
  inset: 0;
  background: var(--bg-deep-space);
  overflow: hidden;
  z-index: -2;
}

.space-bg::before,
.space-bg::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: radial-gradient(
      1px 1px at 10% 20%,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 70% 10%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: star-drift 90s linear infinite;
}

.space-bg::after {
  opacity: 0.35;
  filter: blur(1px);
  animation-duration: 160s;
  animation-direction: reverse;
}

@keyframes star-drift {
  from {
    transform: translate3d(-3%, -3%, 0);
  }
  to {
    transform: translate3d(3%, 3%, 0);
  }
}

.page-shell {
  min-height: 100vh;
  padding: 40px clamp(16px, 4vw, 48px);
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  backdrop-filter: blur(2px);
}

.page-header {
  max-width: 900px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  opacity: 0.85;
}

h1 {
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.subtitle {
  max-width: 520px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 8px;
  perspective: 1200px;
}

.crew-card {
  position: relative;
  border-radius: var(--card-radius);
  border: var(--card-border);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(8, 20, 40, 0.75)
  );
  background-clip: padding-box;
  overflow: hidden;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out,
    border-color 220ms ease-out, background 220ms ease-out;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 40px rgba(1, 3, 20, 0.9);
  backdrop-filter: blur(16px) saturate(150%);
  cursor: pointer;
  isolation: isolate;
}

.crew-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(18, 167, 253, 0.6),
    rgba(59, 127, 230, 0.7)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}

.crew-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(67, 180, 255, 0.32),
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: none;
  z-index: -1;
}

.crew-card.is-hovered::after {
  opacity: 1;
}

.crew-card:hover {
  box-shadow: var(--card-glow), 0 22px 50px rgba(0, 0, 0, 0.95);
  border-color: rgba(178, 250, 255, 0.8);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(8, 20, 40, 0.8)
  );
}

.crew-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.crew-id {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(188, 206, 255, 0.85);
  opacity: 0.85;
}

.status-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(188, 206, 255, 0.4);
  background: radial-gradient(
    circle at 0 0,
    rgba(172, 255, 255, 0.35),
    transparent 60%
  );
  color: #e6f9ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.crew-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.crew-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  opacity: 0.9;
  margin-top: 2px;
}

.crew-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.crew-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(181, 201, 255, 0.9);
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.meta-value {
  font-variant-numeric: tabular-nums;
}

.meta-chip {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(144, 222, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(7, 45, 79, 0.8),
    rgba(8, 12, 30, 0.9)
  );
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 100px;
  }
  .crew-card {
    padding: 16px;
  }
}

@media (max-width: 500px) {
  .page-shell {
    padding-top: 80px;
  }
}
